evidencebook 0.0.23

Evidence book: records, epistemic types, typed links, retention, disclosure, index classes, request answers and reconcile/close over an embedded Checkpointed Local Log -- a Rust implementation of the Evidence Layer semantics.
Documentation
//! The x-deal-v0 deal record profile: an opt-in reference profile, built
//! only with the crate's `deal` feature.
//!
//! This module is the Rust counterpart of the Go package `dealprofile` in
//! this repository, and produces the same bytes: the profile's names, the
//! keys and fingerprints that keep raw identifiers out of a record, a
//! record's payload and digest, the record-level checks a sealed record must
//! pass, the sealed `deal_report`'s payload, the members of a step's
//! Capsule, and the record types ([`Record`]). The normative text is
//! `dealprofile/x-deal-v0/PROFILE.md`; its schemas are vendored here byte
//! for byte.
//!
//! [`v1`] is the x-deal-v1 profile (evidencebook#461), the counterpart of
//! Go's `dealprofile/xdealv1`.
//!
//! It is a profile the crate carries, not part of the Evidence Layer
//! semantics: nothing else in the crate depends on it. It holds no deal
//! logic: what a step says, what it is approved by and what a report's lines
//! read are the producer's. It seals nothing either: it returns the bytes
//! and plain Capsule members ([`Capsule`]), and the producer seals them with
//! its own sealer and key, on its own book. The sealed Capsule's layout is
//! the sealer's; the [`Capsule`] docs say where capsule-emit 0.0.8's differs
//! from the one Go seals.
//!
//! The chain stage (PROFILE.md ยง6), which reads a record against the records
//! before it, is [`check_chain`]: the same refusals, in the same order and with
//! the same text, as the reference checker's `check_chain`
//! (`check_profile.py`).
//!
//! A refusal matches Go's in its stage, and in its text wherever the
//! profile's fixtures name one, with one stricter refusal: a member named
//! `"$serde_json::private::Number"` or `"$serde_json::private::RawValue"`,
//! which serde_json would read as something else, is refused at the
//! canonicalization stage, and by [`decode`], where Go reads it as written
//! (evidencebook#534). Two diagnostics are written differently: a
//! `canonicalization` value that is not a string is shown as JSON, not as
//! Go's `%v` prints it, and a quoted value is not escaped where Go's `%q`
//! escapes a non-printable character beyond ASCII. The Unicode tables are
//! not Go's: the personal-data and wording scans' character classes come
//! from the `regex` crate (Unicode 16) and identifier normalization and
//! case mapping from ICU4X's data, where Go 1.27's tables are Unicode 17, so
//! a character newer than a table may be read differently.

mod capsule;
mod chain;
mod check;
mod keys;
mod names;
mod publicsuffix;
mod record;
mod report;
mod schema;
mod standard_history;
mod step;
mod types;
pub mod v1;

pub use capsule::{
    Capsule, Chain, Disposition, Effect, Extension, ACTION_TYPE_DECIDE, ACTION_TYPE_FYI,
    ATTESTATION_RUNTIME_CLAIMED, EFFECT_DISPATCHED, RELATION_CONFIRMS, RELATION_FOLLOWS,
};
pub use chain::{check_chain, check_chain_values, STAGE_CHAIN};
pub use check::{
    check, check_digest, digest, encode, Error, StageError, STAGE_CANONICALIZATION, STAGE_DIGEST,
    STAGE_PERSONAL_DATA, STAGE_SCHEMA, STAGE_WORDING,
};
pub use keys::{
    commit_text, deal_key, fingerprint, kinds, normalize, profile_key, NotNormalizable,
};
pub use names::*;
pub use record::{decode, Body, Record};
pub use report::{report_capsule, report_payload, Checkpoint, Report};
pub use schema::profile_schema;
pub use standard_history::{
    minor_units, standard_history_deal, HistoryInput, HistoryRecord, HistoryResult,
};
pub use step::{step_capsule, Decide, StepHeader, StepInput};
pub use types::*;