Module event

Module event 

Source
Expand description

Event types for the Event DAG system.

The Event DAG provides unidirectional event flow with upstream signaling (the “tram car tracks” pattern).

§Event Header

The EventHeader is a 64-byte cache-aligned structure for optimal memory access. It contains all metadata needed to process an event without accessing the payload.

Structs§

Blake3Verifier
Blake3-based event verifier (default, recommended for performance).
Causality
W3C Trace Context compatible distributed tracing.
DagPosition
Position of an event in the DAG.
EnhancedProvenance
Enhanced provenance with evidence chains.
Event
A complete event with header and payload.
EventBuilder
Builder for creating events with proper positioning.
EventContentRef 🔒
Borrows header + payload for content-only hashing.
EventFlags
Flags for event processing hints.
EventHeader
Event header with all metadata needed for processing.
EventKind
Event kind encoded as a 16-bit value.
HashChain
Hash chain for tamper-evident event log.
Sha256Verifier
SHA-256-based event verifier (for compatibility).

Enums§

EvidenceRef
Evidence reference types for provenance tracking.
HashAlgorithm
Hash algorithm for event integrity.
UpstreamSignal
Signals that can be sent upstream in the DAG (“tram car tracks”).
VerificationStatus
Verification status for evidence.

Traits§

EventDag
Trait for Event DAG operations.
EventDagExt
Extension trait for EventDag with convenience methods.
EventVerifier
Trait for cryptographic event verification.

Functions§

validate_event_kind
Validate that an event kind is a recognized, defined variant.