decodeAddr method
Decodes a Monero (XMR) address.
Given an XMR address and optional decoding parameters specified in kwargs
,
this method decodes the XMR address and returns the result as a List
If decoding parameters are provided, ensure that "net_ver" is a List
Parameters:
- addr: The XMR address to decode.
- kwargs: A map of optional decoding parameters, such as "net_ver."
Returns: A List
Implementation
@override
List<int> decodeAddr(String addr, [Map<String, dynamic> kwargs = const {}]) {
AddrKeyValidator.validateAddressArgs<List<int>>(kwargs, "net_ver");
final List<int> netVerBytes = kwargs["net_ver"];
return _XmrAddrUtils.decodeAddr(addr, netVerBytes);
}