decodeAddr method

  1. @override
BuBytes decodeAddr(
  1. String addr, {
  2. int? ss58Format,
})
override

Decodes a given blockchain address string.

Throws AddressConverterException on invalid input.

Implementation

@override
BuBytes decodeAddr(String addr, {int? ss58Format}) {
  final pubkeyBytes = _SubstrateAddrUtils.decodeAddr(addr, ss58Format).$1;
  AddrKeyValidator.validateAndGetEd25519PubKey(pubkeyBytes);
  return pubkeyBytes;
}