Skip to main content

relay_crypto/
lib.rs

1pub use ed25519_dalek::{Signature, SignatureError, SigningKey, VerifyingKey};
2pub use hex;
3pub use hkdf::Hkdf;
4pub use rand_core::{CryptoRng, OsRng, RngCore};
5pub use sha2::Sha256;
6pub use x25519_dalek::{PublicKey, SharedSecret, StaticSecret};
7
8pub mod crypto;
9pub mod encode;
10pub mod kid;
11pub mod record;
12pub mod rng;
13
14pub mod prelude {
15    pub use super::crypto::{CryptoError, e2e, sign};
16    pub use super::encode::canonical_cbor;
17    pub use super::kid::kid_from_x25519_pub;
18    pub use super::record::KeyRecord;
19}