hopr_crypto_types/lib.rs
1//! This Rust crate contains implementation of common cryptographic types.
2//!
3
4/// Contains error enum implementation used across other `hopr-crypto-...` crates
5pub mod errors;
6/// Implements [ChainKeypair](keypairs::ChainKeypair) and [OffchainKeypair](keypairs::OffchainKeypair),
7/// the important representations of chain key and packet key.
8pub mod keypairs;
9/// Implements low-level cryptographic primitives, such as [SimpleStreamCipher](primitives::SimpleStreamCipher),
10/// [SimpleDigest](primitives::SimpleDigest) and [SimpleMac](primitives::SimpleMac).
11pub mod primitives;
12/// Enables randomized encryption (sealing)
13/// and decryption of data using [`OffchainKeypair`](keypairs::OffchainKeypair).
14pub mod seal;
15/// Implements basic cryptography-related types based on [primitives], such as [Hash](types::Hash),
16/// [PublicKey](types::PublicKey) and [Signature](types::Signature).
17pub mod types;
18/// Contains small utility functions used in the other `hopr-crypto-...` crates
19pub mod utils;
20/// Contains implementation of Verifiable Random Function used in tickets
21pub mod vrf;
22
23#[doc(hidden)]
24pub mod prelude {
25 pub use super::errors::CryptoError;
26 pub use super::keypairs::*;
27 pub use super::primitives::*;
28 pub use super::seal::*;
29 pub use super::types::*;
30 pub use super::utils::*;
31 pub use super::vrf::*;
32
33 //pub use libp2p_identity::PeerId;
34}