Expand description
Identifiers, hashes and the canonical CBOR encoding of NibKeep.
Everything NibKeep stores, hashes, signs or syncs is encoded with cbor, a strict
subset of CBOR in which every value has exactly one encoding. Content is identified by
its Hash, and entities, spaces and people by random identifiers such as
EntityId. The formats are specified in docs/spec/encoding.md.
This crate does no I/O. In particular, it never reads the operating system’s random number generator: callers pass in the random bytes for new identifiers.
Modules§
- cbor
- Canonical CBOR: a strict subset of CBOR (RFC 8949) in which every value has exactly one encoding.
- small
- Sets and maps that are small in memory while they are small in size.
Structs§
- Change
Id - The ID of a change: the BLAKE3 hash of its encoding.
- Entity
Id - Identifies an entity: a person, a photo, a book, a list or anything else.
- Hash
- The hash of some content, together with the algorithm that produced it.
- Hasher
- Computes a
Hashincrementally, for content that arrives in pieces. - Parse
IdError - The error returned for text that is not an identifier in its text form.
- Person
Id - Identifies a person who uses NibKeep.
- SpaceId
- Identifies a space, the unit of sharing, sync and encryption.
- Statement
Id - Identifies a statement: one value of one field of an entity, with its qualifiers.
Enums§
- Hash
Algorithm - The algorithms that produce hashes (
Hash). - Parse
Hash Error - Why a hash could not be read.