Optional
identityKeyManager: IdentityKeyManagerInterfaceOptional
sessionKeyManager: SessionKeyManagerInterfaceOptional
encryptor: SymmetricEncryptionInterfaceOptional
kdf: KeyDerivationFunctionDecrypt the next message received by the sender.
Encrypt the next message to send to the recipient.
Generates and signs a bundle of one-time keys.
Useful for pushing more OTKs to the server.
Initialize keys for receiving an initial message. Returns the initial plaintext message on success. Throws on failure.
Get the shared key when receiving an initial message.
Initialize for sending.
Get the shared key when sending an initial message.
not needed for key operations, ust for context
Sets the identity string for the current user.
Sign a pre-key with the identity key. This is what should be used for signed pre-keys in X3DH.
Pluggable X3DH implementation, using Web Crypto API.