OXYGENHUB
# 8cfb9269bb14 spectra / crates / spectra-core / src / lib.rs
806 B · Rust · last changed The 0.1 tools: brief, rules, agents, status, say, read, inbox, wait with the idle guard, ack, search, redact; every call on the record (#8) 2 days 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 conversation;
11
pub mod daemon;
12
pub mod event;
13
pub mod hlc;
14
pub mod ids;
15
pub mod keys;
16
pub mod ledger;
17
pub mod presence;
18
pub mod principals;
19
pub mod projections;
20
pub mod projects;
21
pub mod proof;
22
pub mod rules;
23
24
/// The ledger's format version: the frozen event envelope (spec §9.1). A
25
/// database written with a newer format is refused, never guessed at.
26
pub const LEDGER_FORMAT: u32 = 1;