decodeAddr method

  1. @override
List<int> decodeAddr(
  1. String addr
)
override

Decodes a Zilliqa blockchain address from a human-readable representation.

Implementation

@override
List<int> decodeAddr(String addr) {
  /// Decode the Zilliqa address using the specified Human Readable Part (HRP).
  final addrDecBytes = Bech32Decoder.decode(
    AddrKeyValidator.getConfigArg(
      CoinsConf.zilliqa.params.addrHrp,
      "addrHrp",
    ),
    addr,
  );
  return addrDecBytes;
}