bibeam_core/lib.rs
1#![forbid(unsafe_code)]
2#![doc = include_str!("../README.md")]
3
4pub mod claims;
5pub mod error;
6pub mod identity;
7pub mod ids;
8pub mod redaction;
9pub mod time;
10
11pub use claims::SessionClaims;
12pub use error::Error;
13pub use identity::Fingerprint;
14pub use ids::{ChainId, CohortId, NodeId, PeerId};
15pub use redaction::{RedactionKey, redact_ip, redact_peer_id};
16pub use time::Timestamp;
17
18/// Convenience alias over [`std::result::Result`] using the crate's [`Error`].
19///
20/// Every fallible call inside the `BiBeam` core surface uses this alias, so
21/// callers can write `bibeam_core::Result<T>` instead of repeating the error
22/// type each time.
23pub type Result<T> = std::result::Result<T, Error>;