๐Ÿ”— Trust Chain

v0.1.0 โ€” Constitutional Trust

Cryptographic trust establishment, attestation, and verification

๐Ÿ›๏ธ Trust Axioms

TA1
Trust is earned through cryptographic proof, never assumed
TA2
Trust delegation is bounded by the delegator's trust level
TA3
Revocation is immediate and irreversible
TA4
Every trust relationship must have an auditable provenance

๐Ÿ” Trust Levels

Root โ€” Constitutional source
Established โ€” Verified authority
Provisional โ€” Pending verification
Unverified โ€” No proof

๐Ÿ“ Trust Invariants (10)

TI1 Key uniqueness โ€” each keypair has a unique ID
TI2 Signature integrity โ€” signatures verify against their public key
TI3 Level conservation โ€” delegation cannot exceed delegator's level
TI4 Chain validity โ€” every link in a trust chain must be valid
TI5 Revocation immediacy โ€” revoked keys lose all trust instantly
TI6 Attestation completeness โ€” every attestation has author, target, and evidence
TI7 Non-repudiation โ€” signers cannot deny their signatures
TI8 Temporal boundedness โ€” attestations have expiry
TI9 Transitivity limits โ€” trust does not automatically transit
TI10 Constitutional grounding โ€” all trust derives from constitutional source

๐Ÿ“ฆ Architecture

keypair.rs

65 LOC
Ed25519 key generation with constitutional trust metadata

signature.rs

67 LOC
Digital signing and verification โ€” TI2, TI7

chain.rs

172 LOC
Trust anchors, delegations, chain verification โ€” TI4, TI9

attestation.rs

141 LOC
Attestation records with evidence โ€” TI6, TI8

revoke.rs

78 LOC
Immediate and irreversible revocation โ€” TA3, TI5

๐Ÿงช Conformance (15 tests)

TC-01 Key Generation โ€” Ed25519 keypair creation
TC-02 Key Uniqueness โ€” distinct keys from identical params
TC-03 Signature Integrity โ€” sign and verify round-trip
TC-04 Non-Repudiation โ€” wrong key fails verification
TC-05 Trust Anchor โ€” self-signed root creation
TC-06 Level Conservation โ€” delegation level enforcement
TC-07 Delegation Chain โ€” multi-hop trust chain
TC-08 Chain Gap Detection โ€” broken chain detection
TC-09 Attestation Creation โ€” signed claims
TC-10 Evidence Requirement โ€” mandatory evidence
TC-11 Revocation Immediacy โ€” instant trust loss
TC-12 Double Revocation Prevention โ€” idempotent revocation
TC-13 Trust Level Hierarchy โ€” ordering constraints
TC-14 Self-Conformance โ€” axioms and invariants count
TC-15 Full Lifecycle โ€” end-to-end trust flow

๐Ÿ“ฆ WASM Artifacts

WASI
64 KB โ€” server runtime
Browser
470 KB โ€” wasm32-unknown-unknown

๐Ÿ”— IPFS

WASI: QmPwNKjKzPhfUQzu1eWYKyQDT5cTB9CPaJT2qdzgCcso5C

Browser: Qmbvf2thUmLnrQb9oKZkfj12KN3m1jVnuBUotmJZKfQ1FN