EdPublicKey.fromBytes constructor

EdPublicKey.fromBytes(
  1. Uint8List publicKey,
  2. Curve curve
)

Implementation

EdPublicKey.fromBytes(Uint8List publicKey, this.curve) {
  if (publicKey.length == curve.keySize) {
    this.publicKey = publicKey;
  } else {
    throw KeySizeException(curve.keySize);
  }
}