encodeKey method
Encodes a public key or address bytes into a blockchain address.
Throws AddressConverterException on invalid input.
Implementation
@override
String encodeKey(
List<int> pubKey, {
List<int>? netVersion,
List<int>? pubVKey,
}) {
netVersion = AddrKeyValidator.getAddrArg<List<int>>(
netVersion,
"netVersion",
);
pubVKey = AddrKeyValidator.getAddrArg<List<int>>(pubVKey, "pub_vkey");
return encode(
pubSpendKey: pubKey,
pubViewKey: pubVKey,
netVarBytes: netVersion,
);
}