Static_StaticEXCHANGE_StaticINFOStaticTYPEStaticWRITE_The machine-readable name for this keypair.
Decrypt the given message. Expects encrypted AES key + encrypted content.
Optionalkeysize: string | CryptoKey | SymmKeyLengthOptional_aesAlgorithm: stringDecrypt and return as string.
Optionalkeysize: string | CryptoKey | SymmKeyLengthOptional_aesAlgorithm: stringDelete the keys stored in indexedDB.
Encrypt content using hybrid encryption (RSA + AES).
Optionalrecipient: string | CryptoKeyOptionalaesKeyOrInfo: string | Uint8Array<ArrayBufferLike> | CryptoKeyOptionalkeysizeOrAesKey: string | Uint8Array<ArrayBufferLike> | CryptoKey | SymmKeyLengthOptionalkeysize: SymmKeyLengthEncrypt and return as base64 string.
Optionalrecipient: string | CryptoKeyOptionalaesKeyOrInfo: string | Uint8Array<ArrayBufferLike> | CryptoKeyOptionalkeysizeOrAesKey: string | Uint8Array<ArrayBufferLike> | CryptoKey | SymmKeyLengthOptionalkeysize: SymmKeyLengthGet the relevant AES key for RSA - decrypt the given encrypted key.
OptionalencryptedKey: string | CryptoKey | nullOptional_info: string | nullReturn a 32-character, DNS friendly hash of the public signing key.
Save this keys instance to indexedDB.
Optionalformat: SupportedEncodingsOptionalformat: SupportedEncodingsSerialize this keys instance. Will return an object of
{ DID, publicExchangeKey }, where DID is the public signature key,
and publicExchangeKey is the encryption key, base64 encoded.
Optionalformat: SupportedEncodingsStatic_Static_StaticcreateFactory function.
Optionalsession: booleanSession only? i.e., not saved in indexedDB.
Default false.
Optionalextractable: booleanCan we extract the private keys? Default
false.
Optionalkeys: { exchangeKeys?: CryptoKeyPair | null; writeKeys?: CryptoKeyPair | null }A set of keys to use here.
A new class instance.
StaticdeviceReturn a 32-character, DNS-friendly hash of the given DID.
A DID format string
32 character, base32 hash of the DID
StaticexistStaticloadRestore some keys from indexedDB, or create a new keypair if it doesn't exist yet.
Strings to use as keys in indexedDB, and a session boolean, is this in memory only? Or can it be persisted.
The parent key. Doesn't implement the encrypt/sign functions.