OXYGENHUB
◆ main spectra / crates / spectra-core / src / lib.rs
855 B · Rust · last changed Spectra stands alone: its own identities, signatures and CBOR; projects of any kind of work (#26, #27) 1 day ago source blame history raw
258bb382 Andy McCall ↶ 1
//! Spectra's model (spec §7.3): the ledger and its projections, principals
2
//! and their identities, the bus, rules and search. No HTTP, no CLI: those
3
//! are `spectra-mcp`, `radar` and the `spectra` binary, all built on this.
4
//!
5
//! Identities, delegation, composite signatures, deterministic CBOR and
6
//! hashing come from `oxy-core`; nothing here reimplements them.
7
037c45d8 Andy McCall ↶ 8
pub mod attachments;
09752034 Andy McCall ↶ 9
pub mod authn;
98a0fb9f Andy McCall ↶ 10
pub mod cbor;
5eb57578 Andy McCall ↶ 11
pub mod conversation;
571572f5 Andy McCall ↶ 12
pub mod daemon;
98a0fb9f Andy McCall ↶ 13
pub mod durable;
36537112 Andy McCall ↶ 14
pub mod event;
15
pub mod hlc;
98a0fb9f Andy McCall ↶ 16
pub mod identity;
36537112 Andy McCall ↶ 17
pub mod ids;
18
pub mod keys;
19
pub mod ledger;
2fc88a7b Andy McCall ↶ 20
pub mod presence;
09752034 Andy McCall ↶ 21
pub mod principals;
36537112 Andy McCall ↶ 22
pub mod projections;
2fc88a7b Andy McCall ↶ 23
pub mod projects;
09752034 Andy McCall ↶ 24
pub mod proof;
037c45d8 Andy McCall ↶ 25
pub mod rules;
36537112 Andy McCall ↶ 26
258bb382 Andy McCall ↶ 27
/// The ledger's format version: the frozen event envelope (spec §9.1). A
28
/// database written with a newer format is refused, never guessed at.
29
pub const LEDGER_FORMAT: u32 = 1;