Key Property
The ECC key.
Syntax
getKey(): ECCKey; setKey(key: ECCKey): void;
Default Value
Remarks
This property specifies the ECC private key. This property must be set before calling Sign or ComputeSecret.
NIST Curve Notes
Keys for use with the secp256r1, secp384r1, and secp521r1 curves are made up of a number of individual parameters.
The public key consists of the following parameters:
- KeyRx
- KeyRy
The private key consists of one value:
- KeyK
Curve25519 and Curve448 Notes
Keys for use with Curve25519 or Curve448 are made up of a private key and public key field.
KeyXPk holds the public key.
KeyXSk holds the private key.