decodeWithoutHRP static method

(String, List<int>) decodeWithoutHRP(
  1. String address, {
  2. Bech32Encodings encoding = Bech32Encodings.bech32,
})

Implementation

static (String, List<int>) decodeWithoutHRP(
  String address, {
  Bech32Encodings encoding = Bech32Encodings.bech32,
}) {
  final decode = Bech32DecoderBase.decodeBech32(
    address,
    Bech32Const.separator,
    Bech32Const.checksumStrLen,
    (hrp, data) => Bech32Utils.verifyChecksum(hrp, data, encoding),
  );

  final result = Bech32BaseUtils.convertFromBase32(decode.$2);

  return (decode.$1, result);
}