Secp256PublicKey.fromString constructor

Secp256PublicKey.fromString(
  1. String publicKeyBase64,
  2. int flag
)

Create a new Secp256PublicKey object.

secp256 publicKeyBase64 as base-64 encoded string.

Implementation

factory Secp256PublicKey.fromString(String publicKeyBase64, int flag) {
  Uint8List buffer = base64Decode(publicKeyBase64);
  return Secp256PublicKey.fromBytes(buffer, flag);
}