PrivateKey constructor

PrivateKey(
  1. Uint8List key,
  2. Curve curve
)

Implementation

PrivateKey(this.key, this.curve) {
  if (this.key.length > this.curve.lPrivateKey()!) {
    throw Exception(
        'Invalid private key length for ${this.curve.name} - expected <= ${this.curve.lPrivateKey()}, got ${this.key.length}');
  }
}