decodeAddr method

  1. @override
List<int> decodeAddr(
  1. String addr, [
  2. Map<String, dynamic> kwargs = const {}
])
override

Validates and decodes the given Ripple (XRP) X-address.

This method decodes the provided Ripple address using the specified network prefix.

addr The Ripple address to be decoded. kwargs An optional map of keyword arguments, such as "prefix" for the address prefix. returns The decoded address bytes.

Implementation

@override
List<int> decodeAddr(String addr, [Map<String, dynamic> kwargs = const {}]) {
  final prefix =
      AddrKeyValidator.nullOrValidateAddressArgs<List<int>>(kwargs, "prefix");

  return XRPAddressUtils.decodeXAddress(addr, prefix).bytes;
}