CoreCrypto

class CoreCrypto(cc: <Error class: unknown class>)

The type representing a CoreCrypto client

Constructors

Link copied to clipboard
constructor(cc: <Error class: unknown class>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun close()

Closes this CoreCrypto instance and deallocates all loaded resources.

Link copied to clipboard

See CoreCryptoContext.isHistorySharingEnabled

Link copied to clipboard
suspend fun provideTransport(transport: MlsTransport)

Provide an implementation of the MlsTransport interface. See MlsTransport.

Link copied to clipboard
suspend fun registerEpochObserver(scope: CoroutineScope, epochObserver: EpochObserver)

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: HistoryObserver)

Register a History Observer which will be notified every time a new history client is created.

Link copied to clipboard
suspend fun <R> transaction(block: suspend (context: CoreCryptoContext) -> R): R

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.