Skip to main content

xmtp_cryptography/
lib.rs

1pub mod basic_credential;
2pub mod configuration;
3pub mod ethereum;
4pub mod hash;
5pub mod rand;
6pub mod signature;
7pub mod utils;
8
9pub use basic_credential::*;
10pub use openmls;
11
12pub type Secret = tls_codec::SecretVLBytes; // Byte array with ZeroizeOnDrop
13
14// When upgrading to reqwest 0.13 and disabling the default aws-lc-rs crypto provider
15// some tests fail without initializing the ring crypto provider. Doing this here because
16// it is crypto related and all crates depend on this crate.
17#[cfg(not(target_arch = "wasm32"))]
18#[ctor::ctor]
19fn install_rustls_crypto_provider() {
20    let _ = rustls::crypto::ring::default_provider().install_default();
21}