encodeKey method
Encodes a Ripple (XRP) public key as a blockchain address.
Implementation
@override
String encodeKey(List<int> pubKey, {EllipticCurveTypes? pubKeyType}) {
final hash160 = XRPAddressUtils.keyToHash(pubKey, type: pubKeyType);
return XRPAddressUtils.hashToAddress(hash160);
}