decodeAddr method
Overrides the method to decode an Egld (Elrond) address from the provided string addr.
Implementation
@override
List<int> decodeAddr(String addr) {
/// Decode the Bech32 address with the specified Human-Readable Part (HRP)
final addrDecBytes = Bech32Decoder.decode(
AddrKeyValidator.getConfigArg(CoinsConf.elrond.params.addrHrp, "addrHrp"),
addr,
);
/// Validate the length of the decoded address
AddrDecUtils.validateBytesLength(
addrDecBytes,
Ed25519KeysConst.pubKeyByteLen,
);
return addrDecBytes;
}