decodeAddr method
Decodes a given blockchain address string.
Throws AddressConverterException on invalid input.
Implementation
@override
BuBytes decodeAddr(
String addr, {
List<int>? netVersion,
List<int>? paymentId,
}) {
netVersion = AddrKeyValidator.getAddrArg<List<int>>(
netVersion,
"netVersion",
);
paymentId = AddrKeyValidator.getAddrArg<List<int>>(paymentId, "paymentId");
final decodeAddr = XmrAddrDecoder().decode(
addr,
netVerBytes: netVersion,
paymentId: paymentId,
);
return BuBytes(decodeAddr.keyBytes);
}