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