AgeRecipient.fromBech32 constructor

AgeRecipient.fromBech32(
  1. String bechPublicKey
)

Implementation

factory AgeRecipient.fromBech32(String bechPublicKey) {
  final publicKey = Bech32Decoder().convert(bechPublicKey, 1024);
  return AgeRecipient(publicKey.hrp,
      Uint8List.fromList(_convertBits(publicKey.data, 5, 8, false)));
}