| 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 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 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; |