coreCryptoNew

suspend fun coreCryptoNew(database: Database): CoreCryptoFfi(source)

Free function to construct a new CoreCryptoFfi instance.

This is necessary because in uniffi async constructors are not supported.

MLS or proteus can be initialized with core_crypto::transaction_context::TransactionContext::mls_init or core_crypto::transaction_context::TransactionContext::proteus_init, respectively.