Constructor
new KeyPair(privateKey, publicKey)
The KeyPair interface represents an asymmetric key pair that is comprised of both public and private keys.
interface KeyPair {
readonly attribute Key publicKey;
readonly attribute Key privateKey;
};
WebCrypto API reference http://www.w3.org/TR/WebCryptoAPI/#keypair
Parameters:
| Name | Type | Description |
|---|---|---|
privateKey |
Key | Private key |
publicKey |
Key | Public key |
- Source: