Skip to main content

dent8_core/
lib.rs

1//! Core domain model for dent8.
2//!
3//! The public model intentionally starts with fact events rather than memory
4//! items. Materialized memory is a replayed projection of the event log.
5
6pub mod anchor;
7pub mod content_check;
8pub mod hash;
9pub mod ids;
10pub mod model;
11pub mod policy;
12pub mod state;
13
14pub use anchor::{ChainAnchor, anchor_head, verify_anchor};
15#[cfg(feature = "signed-anchor")]
16pub use anchor::{SignedTreeHead, sign_head, verify_signed_head};
17pub use hash::{CanonError, attestation_message, canonical_bytes, event_hash, hash_chain};
18pub use ids::{ActorId, EvidenceId, FactEventId, FactId, IdError, SourceId, TimestampMillis};
19pub use model::{
20    AttestationAlgorithm, Authority, AuthorityLevel, CanonicalJson, ChallengeKind,
21    ChallengeRejection, Confidence, ContradictionBasis, Evidence, EvidenceKind, ExpirationReason,
22    FactEvent, FactEventKind, FactValue, Predicate, Provenance, RetractionReason, Subject,
23    SupersessionReason, Ttl, ValidationError, WriteAttestation,
24};
25pub use policy::EpistemicPolicy;
26pub use state::{FactLifecycle, FactState, TransitionError, apply_event};