Core Crypto Client
A high-level wrapper around a CoreCrypto client as emitted by Uniffi.
This wrapper should be largely transparent to end users. It exists to improve the callback interfaces: .transaction(...)
, .registerFooObserver(...)
, etc.
Functions
Link copied to clipboard
See CoreCryptoContext.isHistorySharingEnabled
Link copied to clipboard
Provide an implementation of the MlsTransport interface. See MlsTransport.
Link copied to clipboard
suspend fun registerEpochObserver(scope: CoroutineScope, epochObserver: <Error class: unknown class>)
Register an Epoch Observer which will be notified every time a conversation's epoch changes.
Link copied to clipboard
suspend fun registerHistoryObserver(scope: CoroutineScope, historyObserver: <Error class: unknown class>)
Register a History Observer which will be notified every time a new history client is created.
Link copied to clipboard
Starts a NonCancellable transaction in Core Crypto. If the callback succeeds, it will be committed, otherwise, every operation performed with the context will be discarded.