toBech32 method

String toBech32()

Implementation

String toBech32() {
  final network = ADANetwork.fromProtocolMagic(payload.attrs.networkMagic);
  final hrp = AdaShelleyAddrConst.networkTagToAddrHrp[network]!;
  return Bech32Encoder.encode(hrp, toCbor().encode());
}