Ed25519PublicKey.fromString constructor

Ed25519PublicKey.fromString(
  1. String publicKeyBase64
)

Create a new Ed25519PublicKey object.

ed25519 publicKey as base-64 encoded string.

Implementation

factory Ed25519PublicKey.fromString(String publicKeyBase64) {
  Uint8List buffer = base64Decode(publicKeyBase64);
  return Ed25519PublicKey.fromBytes(buffer);
}