bech32Decode function

Map<String, String> bech32Decode(
  1. String bech32Data
)

Implementation

Map<String, String> bech32Decode(String bech32Data) {
  final decodedData = bech32.decode(bech32Data);
  final convertedData = convertBits(decodedData.data, 5, 8, false);
  final hexData = hex.encode(convertedData);

  return {'prefix': decodedData.hrp, 'data': hexData};
}