Function core_crypto_new

Source
pub async fn core_crypto_new(
    path: String,
    key: DatabaseKey,
    client_id: ClientId,
    ciphersuites: Ciphersuites,
    entropy_seed: Option<Vec<u8>>,
    nb_key_package: Option<u32>,
) -> CoreCryptoResult<CoreCrypto>
Expand description

Free function to construct a new CoreCrypto instance.

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

See [core_crypto::mls::Client::try_new]