KeyPair.fromScalarAndPublicKey constructor

KeyPair.fromScalarAndPublicKey(
  1. SigningAlgorithm algorithm,
  2. Uint8List scalar,
  3. Uint8List publicKey
)

Loads a fixed-length big-endian scalar, refused unless publicKey, an X9.62 point, is its public key, as a JWK's d and x/y carry them.

Implementation

KeyPair.fromScalarAndPublicKey(
  SigningAlgorithm algorithm,
  Uint8List scalar,
  Uint8List publicKey,
) : this._(algorithm, 3, scalar, publicKey);