A minimal key representation interface.
This interface is designed to be compatible with Web Cryptography's CryptoKey objects while allowing for custom key implementations that may not have all CryptoKey properties. It includes only the essential properties needed for HPKE operations and validations.
Keys are created through CipherSuite.GenerateKeyPair, CipherSuite.DeriveKeyPair, CipherSuite.DeserializePrivateKey, or CipherSuite.DeserializePublicKey.
readonlyalgorithm:object
The key algorithm properties
name:
string
The algorithm identifier for the key.
readonlyextractable:boolean
Whether the key material can be extracted.
readonlytype:"private"∣"public"
The type of key: 'private' or 'public'