Skip to main content

Crate dent8_core

Crate dent8_core 

Source
Expand description

Core domain model for dent8.

The public model intentionally starts with fact events rather than memory items. Materialized memory is a replayed projection of the event log.

Re-exports§

pub use anchor::ChainAnchor;
pub use anchor::anchor_head;
pub use anchor::verify_anchor;
pub use anchor::SignedTreeHead;
pub use anchor::sign_head;
pub use anchor::verify_signed_head;
pub use hash::CanonError;
pub use hash::attestation_message;
pub use hash::canonical_bytes;
pub use hash::event_hash;
pub use hash::hash_chain;
pub use ids::ActorId;
pub use ids::EvidenceId;
pub use ids::FactEventId;
pub use ids::FactId;
pub use ids::IdError;
pub use ids::SourceId;
pub use ids::TimestampMillis;
pub use model::AttestationAlgorithm;
pub use model::Authority;
pub use model::AuthorityLevel;
pub use model::CanonicalJson;
pub use model::ChallengeKind;
pub use model::ChallengeRejection;
pub use model::Confidence;
pub use model::ContradictionBasis;
pub use model::Evidence;
pub use model::EvidenceKind;
pub use model::ExpirationReason;
pub use model::FactEvent;
pub use model::FactEventKind;
pub use model::FactValue;
pub use model::Predicate;
pub use model::Provenance;
pub use model::RetractionReason;
pub use model::Subject;
pub use model::SupersessionReason;
pub use model::Ttl;
pub use model::ValidationError;
pub use model::WriteAttestation;
pub use policy::EpistemicPolicy;
pub use state::FactLifecycle;
pub use state::FactState;
pub use state::TransitionError;
pub use state::apply_event;

Modules§

anchor
External tamper-resistance anchor for the event-log hash chain.
content_check
Pluggable write-time content-check hook.
hash
Canonical serialization and tamper-evident hashing for fact events.
ids
model
policy
Epistemic policy for counterfactual replay.
state