bech32PublicKey property

String get bech32PublicKey

Returns the associated publicKey as a Bech32 string

Implementation

String get bech32PublicKey {
  final type = [235, 90, 233, 135, 33]; // "addwnpep"
  final prefix = networkInfo.bech32Hrp + 'pub';
  final fullPublicKey = Uint8List.fromList(type + publicKey);
  return Bech32Encoder.encode(prefix, fullPublicKey);
}