eventgraph
A hash-chained, append-only, causal event graph. The foundation for building systems where every action is signed, auditable, and causally linked.
Install
Quick Start
use BTreeMap;
use Value;
use ;
// Create store and bootstrap
let mut store = new;
let source = new.unwrap;
let boot = create_bootstrap;
let boot = store.append.unwrap;
// Record an event — hash-chained and causally linked
let mut content = new;
content.insert;
content.insert;
let ev = create_event;
store.append.unwrap;
// Verify chain integrity
let result = store.verify_chain;
assert!;
What's Included
- Types — Always-valid domain models: Score [0,1], Weight [-1,1], Activation [0,1], Layer [0,13], Cadence [1,+inf), typed IDs (EventId, ActorId, Hash, etc.)
- Event — Immutable events with canonical form, SHA-256 hash chain, and causal links
- Store — Store trait and InMemoryStore with chain integrity enforcement
- Bus — Pub/sub event bus with pattern-based subscriptions
- Primitive — Primitive trait, lifecycle state machine, and registry
- Tick Engine — Ripple-wave processor with cadence control and quiescence detection
Conformance
This crate produces identical SHA-256 hashes to the Go reference implementation for the same canonical form inputs. 73 tests including 3 conformance hash vectors.
Links
License
BSL 1.1 converting to Apache 2.0 on 26 February 2030.