Skip to main content

Crate touchstone_core

Crate touchstone_core 

Source
Expand description

touchstone-core: the types and verdict rules for the personal AGI conformance spec. See SPEC.md at the repo root for the normative text.

This crate deliberately has no filesystem, network, or process dependencies so it can compile to WASM and be shared by every verifier.

Structs§

Attestation
The signed attestation document.
CheckResult
One check result in an attestation.
Signature
A signature block on an attestation.
Subject
The subject under test.

Enums§

Organ
The organs a conformant organism must demonstrate.
Status
Status of a single check, as emitted by an adapter.
ValidationError
Structural validation errors an attestation can carry even when it parses as JSON.
Verdict
Overall verdict for a run.

Constants§

SPEC_VERSION
Version of the conformance spec this crate implements. Independent of crate semver — SPEC.md bumps only when the checklist or verdict rules change, not on every code release.

Functions§

canonical_bytes
Canonical serialization of an attestation for signing: the JSON with the signature field removed, keys emitted in sorted order.
document_hash
SHA-256 of the canonical document — what signatures cover.
verdict_for
Compute the verdict for a set of check results.