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
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
8
pub mod attachments;
9
pub mod authn;
10
pub mod cbor;
11
pub mod conversation;
12
pub mod daemon;
13
pub mod durable;
14
pub mod event;
15
pub mod hlc;
16
pub mod identity;
17
pub mod ids;
18
pub mod keys;
19
pub mod ledger;
20
pub mod presence;
21
pub mod principals;
22
pub mod projections;
23
pub mod projects;
24
pub mod proof;
25
pub mod rules;
26
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;