EcKeyPairData constructor

EcKeyPairData({
  1. required List<int> d,
  2. required List<int> x,
  3. required List<int> y,
  4. required KeyPairType<KeyPairData, PublicKey> type,
  5. String? debugLabel,
})

Constructs a private key with elliptic curve parameters.

Implementation

EcKeyPairData({
  required List<int> d,
  required this.x,
  required this.y,
  required KeyPairType type,
  this.debugLabel,
})  : _d = SensitiveBytes(d),
      publicKey = EcPublicKey(
        x: x,
        y: y,
        type: type,
      ),
      super(type: type);