Core Crypto Ffi
CoreCrypto wraps around MLS and Proteus implementations and provides a transactional interface for each.
Constructors
Functions
Returns the ciphersuite in use for the given conversation.
Get the credential ref for the given conversation.
Returns the current MLS epoch of the given conversation.
Returns true if a conversation with the given id exists in the local state.
Returns the end-to-end identity verification state of the given conversation.
Returns true if end-to-end identity is enabled for the given ciphersuite.
Returns true if the PKI environment has been set up and its provider is configured.
Derives and exports a secret of key_length bytes for the given conversation.
Returns the client ids of all members of the given conversation.
Returns the E2EI identity claims for the specified devices in the given conversation.
Returns the serialized public key of the external sender for the given conversation.
Get the PKI environment of the CoreCrypto instance.
Returns the E2EI identity claims for the specified users in the given conversation, grouped by user ID.
Returns true if history sharing is currently enabled for the given conversation.
Wrap a CoreCryptoFfi instance in a CoreCrypto instance. Should largely be invisible to end-users.
Returns the hex-encoded public key fingerprint of this device's Proteus identity.
Returns the hex-encoded local public key fingerprint for the Proteus session with the given ID.
Returns the hex-encoded remote public key fingerprint for the Proteus session with the given ID.
Returns true if a Proteus session with the given ID exists in local storage.
Add an epoch observer to this client.
Add a history observer to this client.
Set the PKI environment of the CoreCrypto instance.
Starts a new transaction in Core Crypto. If the callback succeeds, it will be committed, otherwise, every operation performed with the context will be discarded.