nibkeep_base/lib.rs
1//! Identifiers, hashes and the canonical CBOR encoding of NibKeep.
2//!
3//! Everything NibKeep stores, hashes, signs or syncs is encoded with [`cbor`], a strict
4//! subset of CBOR in which every value has exactly one encoding. Content is identified by
5//! its [`Hash`](struct@Hash), and entities, spaces and people by random identifiers such as
6//! [`EntityId`]. The formats are specified in `docs/spec/encoding.md`.
7//!
8//! This crate does no I/O. In particular, it never reads the operating system's random
9//! number generator: callers pass in the random bytes for new identifiers.
10
11pub mod cbor;
12mod hash;
13mod id;
14pub mod small;
15
16pub use hash::{ChangeId, Hash, HashAlgorithm, Hasher, ParseHashError};
17pub use id::{EntityId, ParseIdError, PersonId, SpaceId, StatementId};