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>? paymentId,
List<int>? pubVKey,
}) {
netVersion = AddrKeyValidator.getAddrArg<List<int>>(
netVersion,
"netVersion",
);
paymentId = AddrKeyValidator.getAddrArg<List<int>>(paymentId, "paymentId");
pubVKey = AddrKeyValidator.getAddrArg<List<int>>(pubVKey, "pubVKey");
return XmrAddrEncoder().encode(
pubSpendKey: pubKey,
pubViewKey: pubVKey,
netVarBytes: netVersion,
paymentId: paymentId,
);
}