H33.ai · h33.ai/digital-scif/spec/
H33 Digital SCIF · Technical Product Definition · v2

H33 Digital SCIF

Custodial Infrastructure — Authoritative Specification

Post-quantum custodial platform built entirely in Rust. Zero external cryptographic dependencies*. Every key operation post-quantum attested. Every secret zeroized on drop. This document is the authoritative technical definition of what Digital SCIF is, how it works, what modules exist, what cryptography exists, what workflows exist, what policies exist, what recovery exists, what compliance exists, and what evidence exists.

18 custodial modules
3 PQ signature families
74-byte attestation
29 receipt event types
5 substrates composed
8 frameworks mapped
100% Rust · zero external crypto*
Offline-verifiable evidence
VERSION: 2026-06-v2  ·  SOURCE: h33.ai/digital-scif/spec/  ·  AUDIENCE: Banks · Custodians · Exchanges · Insurers · Auditors · Architects · Regulators · CISOs · Patent Counsel
VIEW

The SCIF Wallet · Three Canonical Screens

The consumer surface — the Digital SCIF wallet as a PWA. Every screen is the user-facing rendering of receipts and capabilities defined in the substrate. Three screens shown: Dashboard (entry point), Payment Authorization (Chase Mortgage as a real example), Document Distribution Matrix (estate succession UX). Detailed flow walkthrough at §40a.

9:41 100% H33 · DASHBOARD Good morning, Eric TOTAL ASSETS $14,892 .41 ↑ +$124 (today) · 5 chains AI QUICK ACTIONS Pay rent ✍︎ Sign doc Send RECENT ATTESTATIONS Chase Mortgage −$347.82 Stake reward +2.4 H33 Voice attest 9:32a 99.7% Tax doc · NFT agent read Home Pay Docs 9:41 100% PAYMENT AUTHORIZATION $347.82 Chase Mortgage · monthly RECIPIENT · ALLOWLISTED JPMorgan Chase Bank N.A. Routing 021000021 · verified POLICY CHECKS ✓ Per-tx limit ($500) ✓ Daily aggregate ✓ Counterparty allowlist ✓ Jurisdiction (US) ✓ Recurring policy signed 03-15 THREE-FAMILY PQ SIGNING ML-DSA-65 · FALCON-512 + SLH-DSA-SHA2-128f BIOMETRIC GATE · FHE MATCH Confidence 99.8% · held for 24h Receipt: 0x60 → 0x61 (on commit) Hold to Approve Cancel · ZK proof of cancellation 9:41 100% DIGITAL ESTATE Distribution Matrix LIFE VALIDATION · ACTIVE Last attestation: 2 days ago BENEFICIARIES · 3 SP Spouse primary · biometric paired Home (100%) · Brokerage (40%) C1 Child · daughter secondary · UPQ-ID linked Brokerage (30%) · Medical records C2 Child · son secondary · UPQ-ID linked Brokerage (30%) · Crypto wallet SUCCESSION TRIGGERS 120 days dormancy 72h cooling-off Multi-modal biometric incapacity proof 4 modalities · 99.8% threshold Each row → Authority Transfer Delegate

Stylized representations · canonical PWA in production · final visual design renders in H33 copper + cream over obsidian phone chrome

TOC

Table of Contents

  1. APart A — Platform Positioning
  2. 01Executive Summary
  3. 02Proof of Enforcement
  4. 03Human Authority Model
  5. 04Auditor / Regulator Story
  6. 05Architecture — 5-Layer Custodial Model
  7. 06Substrate Composition — Five Primitives
  8. BPart B — Cryptographic Foundations
  9. 07Cryptographic Stack — Complete Inventory
  10. 08H33-74 Evidence Receipt — Wire Format
  11. 09Receipt Event Taxonomy — All 29 Events
  12. CPart C — The Five Governance Substrates
  13. 10Root v0 — Authority Lineage
  14. 11Q-Sign / HATS — Approval
  15. 12H33-Key — Secret Use
  16. 13Authority Transfer — Transition
  17. DPart D — Capability Surfaces
  18. 14Identity & Biometric Authentication
  19. 15Identity Trust Chain (Soulbound + Guardian + Recovery)
  20. 16Wallet & Transaction Operations
  21. 17DeFi Integration
  22. 18Payments Surface
  23. 19International Settlement & Cross-Border
  24. 20Document Management & Archival
  25. 21Document Trust Chain (Sprint 4A)
  26. 22Wills, Estates & Succession
  27. 23Recovery & Digital Estate Lifecycle
  28. 24Privacy & Zero-Knowledge
  29. 25PQ Messaging & Chat
  30. 26Encrypted Decision Engine
  31. 27WiFi & Network Security
  32. 28Agent Governance (Agent-008, CKA, PQ-Video)
  33. EPart E — Operations & Control Plane
  34. 29Custody & Key Lifecycle
  35. 30Policy Engine & Authorization
  36. 31Separation of Duties — Role × Capability Matrix
  37. 32Incident Response & Emergency Controls (9)
  38. 33Custody Business Flows (9 Procedures)
  39. FPart F — Compliance & Threat
  40. 34Compliance Mapping (8 Frameworks)
  41. 35Threat Model — Designed Against
  42. GPart G — Implementation Reference
  43. 36API Reference
  44. 37Source Code Map — Rust Workspace
  45. 38Asset & Protocol Support
  46. HPart H — Due Diligence
  47. 39Performance & Numeric Claims
  48. 40Buyer Outcomes & Differentiation
  49. 40aConsumer Application Surface (PWA)
  50. 41Honest Gaps — v0.1 Hardening + v1 Roadmap
  51. 42Canonical Specifications
  52. 43Confidentiality & Contact
Digital SCIF · Custodial Infrastructure Specification h33.ai/digital-scif/spec/
01

Executive Summary

H33 Digital SCIF is a post-quantum custodial platform built entirely in Rust with zero external cryptographic dependencies*, presenting two coherent product surfaces from a single substrate.

Institutional Surface

Custodial Infrastructure

18 custodial modules, 3 PQ signature families, threshold-gated MPC signing, 9 emergency controls, 8 compliance frameworks mapped, 9 fully-specified business flows. Every operation emits a 74-byte H33-74 evidence receipt. Sold to banks, exchanges, treasury operators, RIA custodians, and regulators.

Consumer Surface

Continuity Across a Lifetime

One biometric → one DID → three PQ key families → every device, chain, document, app, message, and asset. Passwordless. Server-blind. 38.5 µs per authentication, 2.17M auth/sec sustained, 17 anti-spoofing types detected without decryption.

Both surfaces share the same Rust crate, the same FHE engine, the same H33-74 attestation, the same key lifecycle, the same evidence chain, the same Root authority substrate, the same Q-Sign approval substrate, the same Authority Transfer substrate, and the same H33-Key secret-use substrate. The product is not two products — it is one substrate with two presentations.

Boardroom Positioning

Most custody systems ask you to trust who had control. H33 proves who had authority, what policy applied, whether it executed or was denied, and why. The proof is offline-verifiable against a published ML-DSA-65 public key. No vendor relationship required.

Operating Principle

The computation happens inside the encryption. The authentication happens inside the encryption. Nothing ever comes out.

* Except audited NIST reference implementations (pqcrypto-mldsa, pqcrypto-falcon, pqcrypto-sphincsplus) where wire-format compliance with the standardized primitives is required. All FHE, ZK-STARK, key derivation, Shamir, evidence-chain, Root, Q-Sign adapter, H33-Key, and Authority Transfer engines are proprietary H33 implementations.
02

Proof of Enforcement

Every operation traverses five gates. Each gate is independently attested. Each gate can fail closed. Each failure mode is named, gated by a different cryptographic primitive, and produces evidence.

REQUEST Operation initiated Signed by operator's PQ identity STEP 1 · POLICY Policy checked jurisdiction · limit · velocity counterparty allowlist STEP 2 · BIOMETRIC FHE match verified 99.8% threshold SignedMatchAssertion STEP 3 · QUORUM k-of-n satisfied over signed quorum specification STEP 4+5 · SIGN · RCPT 3-family + 74 B ML-DSA · FALCON · SLH-DSA SHA3-chained evidence Any gate fails closed → PolicyDenied 0x51 receipt · the audit primitive
GateWhat's EnforcedPrimitiveEvidence Emitted
Policy checkedJurisdiction · asset allowlist · per-tx limit · daily aggregate · velocity · time-of-day · counterpartyPolicy engine bound to a signed policy versionPolicy decision row (approve/deny + reason code)
Biometric verifiedMulti-modal FHE match at 99.8% confidence thresholdClient/Server FHE Split (compile-time enforced via Rust feature gates)SignedMatchAssertion (ML-DSA-65, non-replayable)
Quorum satisfiedm-of-n approver threshold per operation type; quorum policy itself signedk-of-n threshold over signed quorum specificationSigner-quorum hash + per-approver signature
Key signed / deniedThree-family signing OR denial with reason code; never anything in betweenML-DSA-65 + FALCON-512 + SLH-DSA-SHA2-128fThree independent signatures over canonical message
74-byte receiptSelf-verifying record of the entire chain; binds predecessor receiptSHA3-256 tamper-evident hash chainH33-74 receipt → predecessor hash link
Critical Guarantee

Denial emits the same receipt as approval. A denied operation is provable too — that is the regulator's audit primitive. There is no "off-the-record" denial path. There is no path where an operation occurred and no receipt exists.

03

Human Authority Model

Seven roles, cryptographically separated. Every institutional buyer needs to know exactly who can do what before signing anything. This is that table.

If you need to…The only role that can do itBound by
Initiate a transactionOperatorOperator's PQ identity
Approve a transaction above thresholdApprover(s) — quorum satisfiedSigned quorum policy
Override policy (emergency freeze, key quarantine)Operator / Approver / Recovery Agent with Emergency Freeze capabilityEmergency action itself attested
Freeze all operationsCompromise Freeze trigger (any authorized role with capability)Instant · system-wide · cannot be off-the-record
Recover access (device loss, key compromise, incapacity)Recovery Agent + k-of-n guardian quorum72-hour time lock · guardian shares · biometric re-enrollment
Rotate keys (scheduled or forced)Recovery AgentPending → Active → Overlap → Retired state machine
Inherit assets (estate succession)Beneficiary set (configured by holder)120-day dormancy + 72-hr cooling-off + multi-modal biometric proof of incapacity
Hold court-ordered freezeCompliance Reviewer + Regulator/LE Hold capabilityLegal authorization verified · time-bounded · attested
The Load-Bearing Claim

System Admin holds infrastructure. Not keys. Not transactions. Not authority. The row in the matrix where every column is "—" is the proof that even the people running the boxes cannot move money.

04

The Auditor / Regulator Story

This is Digital SCIF's single largest underplayed advantage. It is the strongest claim in the entire stack and it is framed here as a guarantee, not a feature.

The Guarantee

Auditors verify every operation offline — without trusting H33, without an API, without a vendor relationship.

What an auditor receives

What the auditor does

Independent verification — no H33 cooperation required

Hash-chain the receipts. Detect any gap. Detect any modification.
Verify the three PQ signatures (ML-DSA-65, FALCON-512, SLH-DSA) against published public keys.
Replay the policy decision against the snapshot for the relevant policy version.
Confirm the biometric assertion hash matches the binding inside the SignedMatchAssertion.
Confirm chain predecessor hashes form an unbroken SHA3-256 sequence.
Walk every receipt's root_hash back to h33-root:identity-origin via the Definition A lineage walker.
For H33-Key secret-use receipts: re-derive the op_msg from the structured record and re-run the 7-gate aggregate_v0 verifier offline.
Done. Independently. Offline. Verifiable.
Survival Property

If H33 disappears tomorrow, the evidence chain still verifies. The receipts are self-verifying; the public keys are publishable; the verifier instructions ship inside the artifact; the substrate vocabulary (event discriminants, scope labels, op_msg shapes) is open and documented in §15–§16. Vendor lock-in to the auditor does not exist.

05

Architecture — 5-Layer Custodial Model

Stacked guarantees, not alternatives. Every custodial operation traverses every layer in order.

#LayerWhat it isPrimitives
1H33-74 Attestation74-byte post-quantum proof binding every custodial operationML-DSA-65 + FALCON-512 + SLH-DSA
2FHE BiometricsEncrypted biometric matching · server computes on ciphertext · structurally cannot decrypt · client holds secret keyBFV (N=4096) · TFHE · CKKS
3Threshold Custodyk-of-n Shamir secret sharing · DKG key generation · MPC signing channels · no single point of key compromiseShamir GF(256) · Feldman VSS + Pedersen MPC · Kyber + Dilithium MPC
4Recovery & EstateThree independent recovery paths + guardian social recovery + digital estate succession with life validation and dormancyML-KEM-768 encrypted shares · FHE biometric life check
5Encrypted DecisionsTFHE programmable bootstrapping · Boolean circuits on encrypted data · compliance checks without data exposureTFHE PBS · CKKS-encrypted ML · BFV-PSI
A sixth orthogonal layer — Substrate Composition — is added in v2 and detailed in §07: H33-74 · Root · Q-Sign/HATS · H33-Key · Authority Transfer compose horizontally to provide governance vocabulary across every layer above.
06

Substrate Composition — Five Primitives

H33 Digital SCIF is built on five composable governance substrates. Each substrate independently verifies a different question. The platform's distinguishing property is that the five compose into a single externally-verifiable chain — no product surface depends on a private vocabulary.

SubstrateCategoryQuestion AnsweredStatus
H33-74Evidence GovernanceDid this operation happen, when, and signed by whom?Shipped
Root v0Authority GovernanceWhose human authority chain authorizes this?Shipped — Definition A
Q-Sign / HATSApproval GovernanceDoes an approved policy bundle exist for this action?Shipped — 4-stage
H33-KeySecret-Use GovernanceWho used a credential, where, why authorized, and bound to which authority?Shipped v0 (Stages 1–7)
Authority TransferTransition GovernanceHow did authority move from one principal to another, with what conditions?Shipped v0 (Stages 1–3)
Substrate Independence Principle

Every product surface (Wallet, DeFi, Documents, Estate, Messaging, WiFi, Agents) composes these five substrates rather than embedding its own. When a new capability is needed, the question asked is "which substrate already answers this?" not "what new system do we build?" Four times during 2026-06, this principle reduced an apparent new-substrate need to a generalization of an existing one (Q-Sign → HATS · Root → lineage aggregation · Delegation Capsules → CKA · H33-Key → Use governance). The fifth surfaced as Authority Transfer.

The five substrates — one platform, one vocabulary

H33-74 · Evidence Governance · the 74-byte receipt every operation emits Root v0 · Authority Lineage · Definition A aggregate walker Q-Sign / HATS · Approval Governance · 4-stage envelope verifier H33-Key · Secret-Use Governance · 7-gate aggregate_v0 Authority Transfer · Transition Governance

How the five compose in a single operation

An operator runs:  h33 key use openai-prod --env OPENAI_API_KEY -- curl https://api.openai.com/v1/models

  ┌─ H33-Key ─────────────────────────────────────────────────────────────────────────┐
  │  Terminal cert verifies (Stage 2)                                                  │
  │  H33KeyCapsule presented · passes 9-stage verify_capsule (Stage 3)                 │
  │  Handle store dispenses plaintext only after capsule + policy + root match (St 4) │
  │  SecretActivated 0x82 · SecretResolved 0x83 emitted                                │
  │  Child process exec'd via tokio::process::Command (NEVER sh -c, NEVER argv)        │
  │  After child.wait(): SecretUsed 0x84 emitted with exit_code + duration + argv[0]   │
  └────────────────────────────────────────────────────────────────────────────────────┘
                                            │
  ┌─ H33-74 ─────────────────────────────────┴─────────────────────────────────────────┐
  │  Every receipt: ML-DSA-65 detached signature over SHA3-256(substrate)              │
  │  Cache-pointer chain: compact[32..42] = predecessor.chain_hash()[..10]             │
  │  74-byte wire format: substrate(58) || compact[..16]                               │
  └────────────────────────────────────────────────────────────────────────────────────┘
                                            │
  ┌─ Root v0 ────────────────────────────────┴─────────────────────────────────────────┐
  │  Handle's root_hash binds to a Root artifact (origin or transition)                │
  │  Definition A walker (/root/lineage/:hash) terminates at h33-root:identity-origin  │
  │  authority_lineage_verified = AND of per-step h33_74 + qsign + scope + predecessor │
  └────────────────────────────────────────────────────────────────────────────────────┘
                                            │
  ┌─ Q-Sign / HATS ──────────────────────────┴─────────────────────────────────────────┐
  │  At Root inscription time (or transition): GovernanceBundle verified               │
  │  4-stage: HATS 20-check · envelope binding · ML-DSA-65 crypto · quorum threshold   │
  │  qsign_verified_at_emit recorded on the host receipt                               │
  └────────────────────────────────────────────────────────────────────────────────────┘
                                            │
  ┌─ Authority Transfer ─────────────────────┴─────────────────────────────────────────┐
  │  If a transition is in play: AuthorityDelegated 0x70 → Activated 0x71 → Transferred 0x72  │
  │  Predecessor invariant locked: Transferred MUST walk back through Delegated         │
  │  /key/handle/rebind moves the handle's authority anchor under the new chain         │
  └────────────────────────────────────────────────────────────────────────────────────┘

  Result: GET /key/use/:receipt_hash/verify  →  secret_use_verified: true
          7 gates each independently false-able; failure_reasons array enumerates any miss
07

Cryptographic Stack — Complete Inventory

7.1 · Post-Quantum (NIST-standardized)

AlgorithmUseNIST Level / Parameters
ML-DSA-65 (CRYSTALS-Dilithium)Top-level signatures · lineage signatures · match-assertion signing · H33-74 evidence receipts · Q-Sign GovernanceBundle node signaturesLattice (MLWE) · Level 3
ML-KEM-768 / ML-KEM-1024 (CRYSTALS-Kyber)Key encapsulation: guardian share encryption · MPC ephemeral session keys · encrypted backup · OT · recovery share transport · PQ messaging ratchetLattice · Level 3 / Level 5
FALCON-512Compact second-family signatures on every wallet transactionNTRU lattice
SLH-DSA-SHA2-128f (SPHINCS+)Third-family hash-based signatures · archival document signingHash-based · stateless

7.2 · Fully Homomorphic Encryption

SchemeUse
BFV (N=4096)Face-recognition matching on ciphertext · private set intersection · FHIR field-level encryption (MedVault) · VaultKey credential operations
TFHE Programmable BootstrapBoolean circuit evaluation on encrypted data · decision trees · AND/NAND/OR/NOR (1 PBS each) · XOR/XNOR/NOT (free) · GT/LT/EQ comparisons (768 TPS 8-bit GT on Graviton4)
CKKSFloating-point neural-network inference · linear/logistic regression · anomaly detection (autoencoder)

7.3 · Zero-Knowledge & ZK-related

SystemUse
ZK-STARK (Lookup + AIR)ZK-KYC · ZK-Verify · ZK-Phish · ZK-Trustless · anonymous credentials · selective disclosure
ZKP-AIRAlgebraic Intermediate Representation proofs
ZK-Phish (6 proofs)Phishing detection without exposing user content
ZK-Verify (8 proofs)Identity verification without revealing identity attributes
ZK-Proven (CCRA)Compliance proof without account disclosure
BotShield (free tier)Bot detection via ZK challenge-response

7.4 · Classical / Hybrid

PrimitiveUse
AES-256-GCMDKG share transport · encrypted backup payloads · OT payloads
SHA3-256Per-share integrity checksums · tamper-evident hash chain · receipt commitments · canonical Root lineage hash
SHA3-384Pillar attestation hashing
SHA3-512HD key-derivation function
Ed25519 scalar fieldConstant-time field arithmetic for threshold signatures · terminal certificates (algorithm-agnostic surface, dispatch on cert.algorithm) · H33KeyCapsule signatures
Shamir over GF(256)k-of-n secret sharing (up to 64 KB secret size)

7.5 · Engineering guarantees (all modules)

08

H33-74 Evidence Receipt — Wire Format

The 74-byte H33-74 receipt is the platform's universal evidence primitive. Every meaningful SCIF operation produces one. The format is open, documented here, and offline-verifiable against a published ML-DSA-65 public key.

8.1 · The 58-byte substrate header — visual layout

SUBSTRATE · 58 B ver 1B evt 1B commitment = SHA3-256(operation_message) 32 bytes · the chain's binding to the op_msg timestamp_ms 8 B · LE u64 nonce 16 B CSPRNG [0] [1] [2..34] [34..42] [42..58] COMPACT · 42 B (internal) → first 16 B ship on wire as part of the 74-byte receipt receipt_hash = SHA3-256(signature) 32 bytes · stable identifier of this receipt cache_pointer 10 B · predecessor[..10] internal · not on wire 26 B of compact stays in chain ↑ 74-BYTE WIRE = substrate(58) + compact[..16] · shipped in X-H33-Receipt

8.2 · The 42-byte compact receipt

┌─────────────────────────────────┬──────────────────────────┐
│       receipt_hash              │     cache_pointer        │
│  32 B = SHA3-256(signature)     │  10 B (predecessor[..10])│
└─────────────────────────────────┴──────────────────────────┘
   [0..32]                          [32..42]

8.3 · The 74-byte wire format (the X-H33-Receipt header)

substrate (58) + compact[..16] = 74 bytes. The remaining 26 bytes of compact stay internal to the chain. The 74-byte form is what ships on every HTTP response, what's anchored on Bitcoin (segment-level), and what auditors export.

8.4 · The full receipt structure (server-internal)

Receipt {
    event:     Event,            // u8 discriminant (§09)
    substrate: [u8; 58],
    compact:   [u8; 42],
    signature: Vec<u8>,          // ML-DSA-65 detached, ~3309 bytes
    pubkey:    Vec<u8>,          // ML-DSA-65 public key, ~1952 bytes
}

8.5 · Chain hash linkage

chain_hash(R) = SHA3-256(substrate || compact || signature)
predecessor(R_next).compact[32..42] = chain_hash(R)[..10]

Each successor's cache_pointer is the first 10 bytes of its predecessor's chain_hash. A verifier confirming chain membership re-derives chain_hash(R_i) from the receipt body and matches the prefix against R_(i+1).compact[32..42]. Any tampering breaks the prefix match.

8.6 · Segment closure & external anchoring (Sprint 3, optional)

8.7 · External verifier protocol — three artifacts

  1. The 74-byte H33-74 receipt (from X-H33-Receipt header or GET /h33-74/receipt/:hash)
  2. The emitter's ML-DSA-65 public key (GET /h33-74/pubkey)
  3. The structured op_msg record for this event type (from the event's verifier endpoint, e.g. GET /key/use/:hash/verify for SecretUsed)

From these three, the auditor independently re-builds the canonical op_msg, computes SHA3-256(op_msg), verifies the ML-DSA-65 signature over SHA3-256(substrate), compares the recomputed commitment to receipt.substrate[2..34], and walks the chain predecessor backwards. No live SCIF access is required.

09

Receipt Event Taxonomy — All 29 Events

The complete v2 event taxonomy. Discriminants are stable and hard-pinned by tests (all_event_discriminants_unique, authority_transfer_discriminants_locked) in the h33_74_receipt crate. Adding a new event reserves its discriminant; reordering existing ones is a compile-time error.

9.1 · Identity (0x01–0x02)

0x01
IdentityCreated
Soulbound identity registered on-chain · biometric template enrolled · root_artifact inscribed at origin scope
Active
0x02
IdentityUpdated
Owner field changed (post-recovery) · guardian list mutated · biometric re-enrollment confirmed
Active

9.2 · Document (0x10–0x11)

0x10
DocumentCreated
New document committed to the Document Trust Chain · canonical hash · authoring principal
Active
0x11
DocumentVersioned
New version chained to predecessor · clause-level amendments tracked · ML-DSA-65 + SLH-DSA dual-signature for archival
Active

9.3 · Consent (0x20–0x21)

0x20
ConsentGranted
Principal grants consent (data sharing, processing, disclosure) — purpose-scoped + time-bounded
Active
0x21
ConsentRevoked
Prior consent withdrawn — chain records both grant and revoke, never a silent expiry
Active

9.4 · Beneficiary (0x30–0x31)

0x30
BeneficiaryAdded
Guardian / heir designation · today used for guardian-add path with Q-Sign envelope; estate-beneficiary semantics distinct
Active
0x31
BeneficiaryExecuted
Recovery / succession executed · on-chain owner field changed · Q-Sign envelope verified at emit
Active

9.5 · Delegation (CKA, 0x40–0x41)

0x40
DelegationGranted
Canonical Agent Capability Token (cka_*) issued · short-TTL · capability-bitmap bound
Active
0x41
DelegationRevoked
cka_* revoked before expiry · binding revocation receipt for forensic chain
Active

9.6 · Policy (0x50–0x51)

0x50
PolicyApproved
Policy engine + Q-Sign envelope approved the operation — reason code + signer quorum recorded
Active
0x51
PolicyDenied
Operation refused at policy or envelope stage — the audit primitive; denial is provable too
Active

9.7 · Payment (0x60–0x61)

0x60
PaymentAuthorized
Quorum + policy + biometric verified · transaction signed by 3 PQ families · ready to broadcast
Active
0x61
PaymentExecuted
On-chain settlement confirmed · txid bound · final state attested
Active

9.8 · Authority Transfer (0x70–0x74) NEW Sprint Authority-Transfer-0

0x70
AuthorityDelegated
Current authority A names successor B under conditions C · scope h33-root:authority-delegate · Q-Sign envelope hard-gated
Active v0
0x71
AuthorityActivated
Trigger condition observed · predecessor MUST be authority-delegate (direct-parent rule)
Active v0
0x72
AuthorityTransferred
B's authority chain replaces A's · predecessor MUST walk back through AuthorityDelegated · invariant locked 2026-06-16
Active v0
0x73
AuthorityRevoked
Delegation revoked before transfer · same predecessor invariant
Reserved v0
0x74
AuthorityExpired
Delegation lapsed (TTL exceeded) · same predecessor invariant
Reserved v0

9.9 · Secret Use Governance (H33-Key, 0x80–0x89)

0x80
SecretWrapped
Handle inserted into HandleStore · metadata committed · POST /key/handle/store
Active v0
0x81
SecretDelivered
Reserved · v1 out-of-band handle delivery to a remote terminal
Reserved
0x82
SecretActivated
Capsule passed 9-stage verify_capsule · terminal binding confirmed
Active v0
0x83
SecretResolved
Plaintext dispensed · last_used + last_verified bumped · distinct from Activated so chain can record activate-without-use
Active v0
0x84
SecretUsed
Child process exited · op_msg carries exit_code + duration_ms + argv[0] · emitted ONLY after Command::wait()
Active v0
0x85
SecretPolicyChanged
Reserved · policy edit on an existing handle (not an authority transition — that's SecretDelegated)
Reserved
0x86
SecretDelegated
H33-Key rebind under Authority Transfer · POST /key/handle/rebind · NOT a policy edit — a secret-use authority delegation to a new root
Active v0 (Stage 3)
0x87
SecretRevoked
Reserved · v1 explicit revocation
Reserved
0x88
SecretDenied
Refusal at any of: handle-not-found · capsule-failure · policy-mismatch · terminal-not-registered · rebind-chain-broken — the audit primitive for H33-Key
Active v0
0x89
TerminalCertificateRegistered
Idempotent terminal cert registration · emitted only on newly-registered=true · re-register of same hash does NOT emit
Active v0
Discriminant Locking Tests

all_event_discriminants_unique hard-pins every value; authority_transfer_discriminants_locked hard-pins 0x70–0x74 + their as_str() names. A careless reorder is a compile-time test failure.

10

Root v0 — Authority Lineage Substrate

Root v0 answers: "does this action still trace back to the human's original authority?" It is not a separate product; it is a lineage primitive consumed by every other substrate. Definition A aggregate verification is the formal model.

10.1 · The RootAuthorityArtifact (8 fields × 32 bytes = 256 bytes canonical)

RootAuthorityArtifact {
    root_origin_hash:           [u8; 32],   // stable identifier of the human-origin claim
    human_origin_receipt_hash:  [u8; 32],   // R#1 receipt; zero at origin itself
    authority_subject:          [u8; 32],   // pubkey holding authority at this point
    authority_scope:            [u8; 32],   // SHA3-256 of canonical scope label
    delegated_to:               [u8; 32],   // target principal for delegations; zero otherwise
    predecessor_authority_hash: [u8; 32],   // prior artifact's lineage_hash; zero at origin
    qsign_proof_hash:           [u8; 32],   // four-hash envelope commitment
    authority_lineage_hash:     [u8; 32],   // computed: SHA3 over all 7 prior fields
}

10.2 · Canonical scope labels

Scope labelMeaningQ-Sign required?
h33-root:identity-originThe root of authority (R#1) · no predecessor · biometric + DID enrolledNo (origin has no envelope)
h33-root:identity-controlWitness of control without transition (post-recovery confirmation)No
h33-root:guardian-designateOwner names a guardian set · Q-Sign envelope binds the policyYes
h33-root:authority-recoverRecovery flow transitions on-chain ownership · multi-guardian quorumYes
h33-root:authority-delegateAuthority Transfer substrate · authority A names successor BYes
h33-root:authority-activateAuthority Transfer · trigger condition observedYes
h33-root:authority-transferAuthority Transfer · B's chain replaces A'sYes
h33-root:authority-revokeAuthority Transfer · v1 reservedYes
h33-root:authority-expireAuthority Transfer · v1 reservedYes

10.3 · POST /root/inscribe — origin-scope minimal inscription

Minimal Root inscription path for callers (e.g., H33-Key handles) that bind to a Root WITHOUT going through full identity-create / guardian-add / recovery-execute Solana CPI ceremonies. v0 guardrail: only h33-root:identity-origin scope is accepted. Transitions go through dedicated identity / authority handlers that enforce the full Soulbound + Q-Sign chain.

10.4 · GET /root/lineage/:receipt_hash — Definition A walker

Walks the chain backwards via predecessor_authority_hash, terminating at h33-root:identity-origin. For each step, the walker computes six independent booleans:

Per-step booleanWhat it asserts
h33_74_verifiedHost receipt's ML-DSA-65 signature valid AND found in chain
qsign_requiredScope is one of {guardian-designate, authority-recover, authority-*}
qsign_verifiedQ-Sign adapter returned Ok at this receipt's emit time
scope_validScope hash matches a label in known_scope_labels()
predecessor_validEither origin with zero predecessor, OR predecessor artifact is in the lineage index
step_aggregate_okh33_74 ∧ (¬qsign_required ∨ qsign_verified) ∧ scope_valid ∧ predecessor_valid

10.5 · Definition A aggregate verdict

authority_lineage_verified =
       terminated_at_origin
    ∧ root_origin_consistent
    ∧ ∀ step ∈ walk : step_aggregate_ok
verification_level = "aggregate_v0"
Honest Disclosure

Definition A does NOT include an independent Root authority signature — every underlying signature comes from SCIF's pubkey. If SCIF is compromised, the aggregate's truth depends on the scope of that compromise. Definition A also does NOT bind R#1's biometric template to a liveness proof. independent_root_signature: false, human_liveness_verified: false are explicit response fields, never hidden.

11

Q-Sign / HATS — Approval Substrate

Q-Sign answers: "does an approved governance bundle authorize this action?" The implementation is the HATS-as-Q-Sign adapter — Q-Sign is the vocabulary; HATS (a separate audited Rust crate) is the substrate. The adapter sits at every authority-transition call site.

11.1 · The four-stage verifier

StageCheckFailure
1 · HATS 20-checkStructural validity of the GovernanceBundle: schema, DAG, tenant, transcript version, parent_refs, cycle absence, canonical hashes, signatures present, required payload fields, timestamp ordering, replay-witness consistency, attestation hash presence, etc.QSignDenial{stage:"hats", reason:<HATS-V-NNN list>}
2 · Envelope bindingFour hashes match bundle content: policy_id == SHA3(Policy.policy_hash), quorum_hash == SHA3("h33-qsign-quorum:" || sorted authority node_ids), replay_witness_hash == SHA3(canonical ReplayWitness), qsign_proof_hash == SHA3(concat node canonical_hashes)QSignDenial{stage:"envelope-binding"}
3 · Crypto signatureEvery node's signature verifies against pk_registry pubkey (ML-DSA-65 detached); witness signature verifies over canonical witness signing messageQSignDenial{stage:"signature-crypto"}
4 · Quorum thresholdNumber of Authority nodes with (action_type matching + authorized=true) ≥ Policy.payload.evaluation_dimensions["quorum_threshold"].actualQSignDenial{stage:"quorum-threshold"}

11.2 · The four envelope hashes (what every transition request carries)

QSignProofSlot {
    qsign_proof_hash_hex:     String,   // bundle merkle root
    policy_id_hex:            String,   // SHA3 of the Policy node's payload.policy_hash string
    quorum_hash_hex:          String,   // canonical hash of sorted Authority node_ids
    replay_witness_hash_hex:  String,   // canonical hash of the ReplayWitness
}

11.3 · Call sites in v0 (all hard-gated)

At each site, an envelope failure emits a chain-bound PolicyDenied 0x51 with the deny stage in the op_msg tag. The chain records WHY refusal happened, not just THAT it happened.

Reusable Test Fixture

The crate ships qsign_test_fixture::build_passing_bundle(action_type) behind #[cfg(any(test, feature = "qsign-fixtures"))]. The fixture constructs a HATS GovernanceBundle programmatically (one Policy + one Authority + one ReplayWitness, all ML-DSA-65 signed over canonical_hashes), registers the pubkey in the PubkeyRegistry, and produces the four envelope hashes. Two self-tests confirm a generated bundle passes verify_qsign_envelope. Stage 4 end-to-end demos reuse this same builder — no duplication.

12

H33-Key — Secret Use Governance

Category sentence (locked 2026-06-16, Stage 8D)

H33-Key is the first system that produces a signed, externally verifiable receipt every time an API key, secret, or credential is used — bound to the human authority chain that authorized that use.

H33-Key v0 ships against the Use column of the credential market (Storage = 1Password / iCloud Keychain · Management = Vault / Doppler / Infisical · Use = H33-Key). Pair with whichever vault the customer already uses; H33-Key produces the signed proof of use. Do not market it as a vault — see Stage 8D narrative freeze.

12.1 · The five components

  1. Terminal Certificate Registry — ed25519 self-signed certs · idempotent registration · algorithm-agnostic surface (cert.algorithm dispatches verify)
  2. H33KeyCapsule — wrapper above CKA (does NOT modify h33-agent-token) · 9-stage verifier · CKA hash reference + capability bits + handle/policy/root/terminal bindings + ed25519 signature
  3. HandleStore — in-memory plaintext custody · HashMap<[u8;32], StoredHandle> · v0 NOT persistent, NOT encrypted at rest, NOT a vault
  4. Resolver + Use-Receipt Endpoint — emits SecretActivated/Resolved on dispense, SecretUsed only after child.wait()
  5. Aggregate VerifierGET /key/use/:receipt_hash/verify · re-derives op_msg from side-table · 7-gate aggregate_v0

12.2 · The 7-gate aggregate_v0 verifier

GET /key/use/:receipt_hash/verify → aggregate_v0 1 · h33_74_verified ML-DSA-65 + chain + commitment 2 · terminal_registered cited terminal_id still in registry 3 · capsule_verified Stage 3 nine-stage check re-run 4 · root_lineage_verified Root walks back to origin 5 · qsign_required → qsign_verified scope-conditional implication 6 · handle_metadata_consistent policy_id + root_hash still match 7 · secret_not_returned_by_inspect type-static guarantee — always true AND secret_use_verified = TRUE Any false → failure_reasons[] enumerated · honest disclosure of which gate(s) tripped
#GateAsserts
1h33_74_verifiedSignature valid + chain-membership + commitment matches re-built op_msg + event == SecretUsed (0x84)
2terminal_certificate_registeredCited terminal_id still in registry
3capsule_verifiedFull 9-stage capsule check re-run independently from saved capsule + current TerminalRegistry
4root_lineage_verifiedRoot artifact exists at handle's root_hash AND its host receipt passes h33_74
5qsign_required / qsign_verifiedScope-conditional implication: origin scope honestly has no envelope · transition scopes require one
6handle_metadata_consistenthandle_store metadata still matches recorded policy_id + root_hash
7secret_not_returned_by_inspectType-static: InspectResponse has no secret field by struct definition

12.3 · CLI surface

h33 key terminal register
h33 key terminal show
h33 key store HANDLE --policy-id HEX --root-hash HEX [--mode env|stdin|file] [--owner OWNER]
h33 key inspect HANDLE
h33 key use HANDLE (--env VAR | --stdin | --file PLACEHOLDER) -- CMD [ARGS…]
h33 key verify RECEIPT_HASH

12.4 · Killer demo (locked 2026-06-16)

h33 key use openai-prod --env OPENAI_API_KEY -- curl https://api.openai.com/v1/models

12.5 · What v0 explicitly is NOT

Stage 8D Banned-Phrases List
  • NOT "encrypted key storage" (in-memory plaintext, not encrypted at rest)
  • NOT a "password manager" or "vault"
  • NOT a replacement for 1Password / Vault / Doppler / Infisical
  • NOT "quantum-secure storage" (the RECEIPT is PQ-signed; the STORE is not)
  • NOT a clipboard / OS-keychain / browser-autofill product
13

Authority Transfer — Fifth Substrate

Authority Transfer is the transition primitive. It generalizes a pattern that surfaced across six independent use cases — identity recovery, role offboarding, estate succession, agent ownership transfer, service-account migration, and secret rebinding — into one substrate. It became the fifth H33 primitive on 2026-06-16 after a six-question generic-substrate test resolved unanimously.

13.1 · The three canonical operations

OpReceiptScopeMeaning
DelegateAuthorityDelegated 0x70h33-root:authority-delegateAuthority A names successor B under conditions C, while A is still authoritative
ActivateAuthorityActivated 0x71h33-root:authority-activateCondition C is observed by an attesting party · predecessor MUST be a Delegated artifact
TransferAuthorityTransferred 0x72h33-root:authority-transferB's chain replaces A's for the target media · predecessor walks back through Delegated

13.1.1 · State machine visualization

identity-origin R#1 · no predecessor authority-delegate 0x70 · Q-Sign required activation_required: bool authority-activate 0x71 · optional predecessor must be delegate authority-transfer 0x72 · walks back through delegate B's chain replaces A's if activation_required = false · Delegate → Transfer direct REJECTED · MissingPriorDelegate · the locked invariant

13.2 · The predecessor invariant (locked 2026-06-16)

AuthorityTransferred MUST walk back through AuthorityDelegated before reaching origin. No shortcut.

VALID:    identity-origin → authority-delegate → authority-transfer
VALID:    identity-origin → authority-delegate → authority-activate → authority-transfer
INVALID:  identity-origin → authority-transfer            (no prior delegation — REJECTED)
INVALID:  identity-origin → authority-activate            (activate without delegate)

The validator is validate_authority_predecessor_chain. The implementation walks back up to 32 hops via a caller-supplied lookup closure, rejecting any non-{delegate, activate} scope on the walk. Errors are MissingPriorDelegate or InvalidPredecessorScope, mapped to PolicyDenied 0x51 + HTTP 422 at every authority/* route.

13.3 · activation_required policy

At delegate time, the request carries activation_required: bool. SCIF persists it in the AuthorityDelegationRegistry side-table keyed by the delegate's authority_lineage_hash. At transfer time, if the policy demanded activation, the direct predecessor MUST be an AuthorityActivated (not the bare Delegate) — enforced beyond the chain-walk rule.

13.4 · Six consumers, one substrate

Use caseWhat transfersTrigger mechanism
Identity recoverySoulbound PDA owner fieldGuardian quorum signs + time lock expires
Role offboardingHR title + role-bound credentialsHR system attests offboarding
Estate successionBeneficiary set inherits assets120-day dormancy + multi-modal biometric proof of incapacity
Agent ownershipAgent runtime · MCP certAdmin reassignment with Q-Sign envelope
Service-account migrationService account credentialsContract end / DevOps rotation
H33-Key handle rebindHandle's root_hash bindingAuthorityTransferred receipt presented to POST /key/handle/rebind

13.5 · POST /key/handle/rebind — first substrate consumer (Stage 3)

The H33-Key rebind endpoint is the v0 proof that Authority Transfer composes with another substrate without modifying it. The rebind enforces five gates (any failure → SecretDenied 0x88):

  1. Handle exists and old_root_hash matches its metadata
  2. AuthorityTransferred receipt exists and event is exactly 0x72
  3. Root artifact at that receipt indexed, lineage_hash = new_root_hash, scope = authority-transfer
  4. Transfer's predecessor chain walks back to reach old_root_hash (32-hop bounded walk)
  5. Q-Sign was verified at the AuthorityTransferred emit-time

On success: handle metadata's root_hash updates, rotation_epoch bumps, SecretDelegated 0x86 emitted — chosen over SecretPolicyChanged 0x85 per the framing "this is not a policy edit; it is a secret-use authority delegation to a new root."

14

Identity & Biometric Authentication

14.1 · UPQ-ID — The Unified Identity Object

One biometric → one DID → three PQ key families. Soulbound on Solana (immutable per-owner PDA). Used across Bitcoin, Solana, Ethereum, FIDO2, OAuth, physical access. Format: DID:PQ.

14.2 · Client/Server FHE Split — The Load-Bearing Architecture

The product's hardest single guarantee. Type-system-enforced via Rust feature gates.

Server Context — compile-time enforced

ServerBiometricContext

  • Public key + eval keys only
  • Encrypted match computation
  • NO secret-key field exists
  • NO decrypt() method exists
  • Structurally cannot access plaintext
Client Context

ClientBiometricContext

  • Secret-key custody
  • Encrypt embeddings locally
  • Decrypt match scores
  • Sign match assertions (ML-DSA-65)
  • Export server keys (pubkey only)
SignedMatchAssertion

The client signs a match verdict binding challenge_id, template_id, encrypted_result_hash, timestamp, nonce, and policy_version. Non-replayable. Non-forgeable. Proves the match was computed correctly without revealing biometric data.

14.3 · Modalities — 4 active, fused

ModalityTechnologyAnti-spoof
FaceFHE BFV N=40963D liveness + micro-expression analysis
VoiceNeural voiceprint, FHE-encryptedAnti-deepfake, anti-replay
Keystroke dynamicsBehavioral, continuousTyping rhythm & pressure
Gait / physiologicalPassive accelerometer-fusedLiving-tissue detection (near-IR palm-vein optional 5th modality)

14.4 · Unified Biometric API

14.5 · Performance

38.5 µs
per auth
2.17M
auth/sec sustained
17
spoofing types detected
99.7%
multi-modal accuracy
99.8%
high-value confidence threshold
15

Identity Trust Chain — Soulbound + Guardian + Recovery

The Identity Trust Chain answers "are you who you say you are?" across one principal's lifetime. Sprint 4B Phase 2 shipped 2026-06-15 with externally-verifiable end-to-end attestation of every state change. Estate Trust Chain (across principals) is documented in §22.

15.1 · The on-chain anchor — Soulbound Identity program

Program ID
9zSpmbvNA8HfnphZ7VxwzgzacrbFv5V82ezEsf9kXhaV
Network
Solana devnet (production migration pending audit)
PDA seed
[b"identity", owner.key()] — deterministic per-owner address
Account size
450 bytes (Borsh-encoded IdentityData)
Mutability
Freeze authority retained · transfer blocked-by-design

15.2 · The 9-step trust chain (Sprint 4B + 4C audits)

#StepStatus
1Human Origin — biometric hashes (face, voice, keystroke, gait) + FHE template enrollPartial (no liveness ZK proof)
2Root Authority — RootAuthorityArtifact at identity-origin scopeShipped
3Q-Sign Approval — HATS GovernanceBundle at every transitionShipped (4-stage)
4Guardian Authority — POST /identity/guardian/add with Q-Sign envelope + Soulbound CPIShipped (Phase 2)
5Recovery Authority — POST /identity/recovery/execute with Q-Sign envelope + Root artifact (scope=authority-recover)Shipped (Phase 2)
6Beneficiary (Estate) Authority — distinct from Guardian (§22)v1 (Authority Transfer enables)
7Succession Authority — dormancy + triggerv1
8Asset Transfer — escrow + DeFi router under heir's PQ keyPartial (document NFT; v1 escrow)
9Verification — GET /h33-74/receipt + /root/lineage walkerShipped

15.3 · Recovery flow — what's cryptographically gated today

  1. Client constructs RecoveryExecuteRequest with: original_owner, new_owner, guardian_signatures[], qsign_proof (4-hash slot), root_artifact (scope=authority-recover), qsign_bundle (HATS JSON)
  2. SCIF runs parse_root_input → rejects malformed Root
  3. SCIF runs verify_qsign_envelope → 4-stage; any fail emits PolicyDenied 0x51 + 422
  4. SCIF emits BeneficiaryExecuted 0x31, indexes Root artifact with qsign_verified_at_emit=true
  5. Client submits Solana tx recover_identity; SCIF confirms on-chain owner field
  6. On match: SCIF emits IdentityUpdated 0x02 bound to txid, slot, account_size, snapshot_hash
  7. On mismatch (recovery landed but owner unexpected): SCIF emits PolicyDenied 0x51 + 422
Honest Disclosure — Soulbound Contract Gap

The on-chain recover_identity instruction still has // In production, verify actual signature here at line 167 of programs/soulbound-identity/src/lib.rs. SCIF's /identity/recovery/execute Q-Sign-verifies BEFORE emitting the receipt, so the attestation chain is honest — but the contract itself currently accepts unauthenticated recovery_identity calls from anyone with SOL. The v1 fix is contract migration: remove the contract's own authorization layer and require SCIF-signed transitions. Tracked in [[project-h33-key-release-blockers-2026-06-16]].

16

Wallet & Transaction Operations

16.1 · Three-Family Signing

Every wallet transaction signed with three independent PQ signature families: ML-DSA-65 (MLWE lattice), FALCON-512 (NTRU lattice), and SLH-DSA-SHA2-128f (hash-based). Forgery requires breaking all three simultaneously — three independent mathematical bets.

16.2 · Multi-Sig Wallet

16.3 · Biometric-Gated Operations

High-value wallet operations gated by FHE biometric verification: transaction signing, key export, recovery initiation all require encrypted biometric match.

16.4 · Consumer Wallet Surface (substrate-derived)

17

DeFi Integration

DeFi access is mediated by the policy engine and the Q-Sign/HATS substrate. Every DeFi interaction emits H33-74 receipts so a regulator can later replay which protocol, which counterparty, which approval, and which authority chain authorized each interaction. v0 ships as guarded access; v1 layers programmatic strategy attestation.

17.1 · Policy-gated DEX swaps

17.2 · Lending & staking attestation

17.3 · Permissioned LP & vault interaction

17.4 · DeFi Travel Rule + counterparty proof

17.5 · ZK-proven solvency & PoR

DeFi integration is policy-mediated by design. Smart-contract risk is bounded by the allow-list; protocol risk surfaces as ordinary PolicyDenied. The chain doesn't promise "DeFi is safe" — it promises "every DeFi action you took has provable authority and is replayable by your auditor."
18

Payments Surface

Payments are the highest-volume H33-74 emission surface. Every authorization and every settlement produces a receipt. The chain is the auditor's primary surface.

18.1 · Supported rails

RailPhaseNotes
On-chain crypto (EVM)Phase 1 · LiveEthereum, Polygon, Arbitrum, Base · ERC-20 transfers · gas estimation attested
On-chain crypto (Bitcoin)Phase 1 · LiveUTXO management · Taproot · SegWit · P2SH/P2WSH multi-sig
StablecoinsPhase 1 · LiveUSDC, USDT, DAI · cross-chain (EVM + Solana) · allowlist-enforced counterparties
SolanaPhase 2 · Q3 2026SPL tokens · ATA · versioned tx signing
Tokenized securitiesPhase 2 · Q3 2026ERC-3643 (T-REX), ERC-1400 · transfer restrictions enforced at custody layer
Cross-chain settlementPhase 3 · 2027Atomic swaps · PQ-attested bridge operations · HTLC with Dilithium pre-images
Fiat rails (bridge)v1 partner integrationSEPA / FedNow / SWIFT via licensed partner; H33 attests the off-ramp instruction

18.2 · Per-transaction guarantees

18.3 · Velocity, limits, and dual-control

18.4 · Reconciliation export

19

International Settlement & Cross-Border

Cross-border payments and asset transfers carry the heaviest compliance load. Digital SCIF treats Travel Rule, sanctions screening, and counterparty identity as first-class receipt-bound primitives — not bolt-on log entries.

19.1 · FATF Travel Rule integration

19.2 · Sanctions / OFAC screening

19.3 · Cross-currency & FX

19.4 · Atomic cross-chain swaps

19.5 · Jurisdiction-aware policy

20

Document Management & Archival

Documents are first-class custodial objects. Every document version, every consent grant, every disclosure is receipt-bound. The Document Trust Chain (Sprint 4A) provides the substrate; ArchiveSign, MedVault, Contracts, and PQ Messaging are surfaces above it.

ArchiveSign

30+ Year Archival

SLH-DSA + ML-DSA dual signatures. RFC 3161 timestamping. Batch up to 500 per signing op. Survives RSA/ECC obsolescence by design.

MedVault

FHIR R4 · Field-level FHE

A breach exposes nothing. HIPAA-aligned. Field-level encryption per record. Authorized clinician queries run on ciphertext; results decrypt only at clinician device.

Contracts

Clause-Level Amendments

Sign just the changed clause. Cryptographically link to the original. Full version chain. Auto-renew with strongest current PQ algorithm. Counterparty signature collection coordinated via PQ messaging.

API Keys Inside FHE

Credentials never leave the FHE domain. HTTP requests execute homomorphically through a proxy. Complementary to H33-Key (§12): H33-Key governs use; VaultKey eliminates the surface entirely for FHE-compatible endpoints.

20.1 · Contract Validation Flow (field-by-field, human-in-the-loop)

Per-field AI extraction → user confirmation → FHE encryption → blockchain log

AI extracts each field with confidence (Patient Name 98% · DOB 95% · SSN 92% · Insurance 89% · Blood Type 99%)
Sensitivity badge per field: medium / high / critical
Highlighted source context, document zoom, page indicator
User confirms or edits each field
On confirm: FHE-encrypted and persisted
Blockchain-logged via GraphQL mutation (logContractValidation → blockchain tx ID returned)
Pre-validation security mesh threat check via Phase 4 client

20.2 · Document operations supported

21

Document Trust Chain (Sprint 4A)

The Document Trust Chain answers "is this document the same one the author signed, who else has touched it, and who has consented to what?" Sprint 4A shipped the full lifecycle: create → version → consent grant → consent revoke → ownership transfer.

21.1 · Endpoints

Method · PathReceiptPurpose
POST /document/createDocumentCreated 0x10New document committed · canonical hash · authoring principal · template_hash optional
POST /document/:doc_id/versionDocumentVersioned 0x11New version chained to predecessor receipt · clause-diff bound
POST /document/:doc_id/consentConsentGranted 0x20Grant scope: purpose, retention, parties, expiry
POST /document/:doc_id/consent/:cid/revokeConsentRevoked 0x21Withdraw — chain records both grant and revoke, never a silent expiry

21.2 · DocumentRecord structure

DocumentRecord {
    doc_id:                       String,
    receipt_hash:                 [u8; 32],     // host h33-74 receipt
    predecessor_receipt_hash:     Option<[u8; 32]>,
    versions:                     Vec<VersionEntry>,
    consents:                     Vec<ConsentEntry>,
}

ConsentEntry {
    receipt_hash:                 [u8; 32],
    revokes_receipt_hash:         Option<[u8; 32]>,  // points to the grant being revoked
}

21.3 · Verification — "is this consent live?"

  1. Resolve the most-recent ConsentGranted for (subject, purpose) pair
  2. Walk forward looking for ConsentRevoked whose revokes_receipt_hash targets that grant
  3. If found: live consent = false (revoked)
  4. If not found and (now < expiry): live consent = true
  5. If not found and (now ≥ expiry): live consent = false (expired)

The chain replays this deterministically. A regulator does not trust the store; they walk the chain.

22

Wills, Estates & Succession

The Estate Trust Chain answers "if the principal dies tomorrow, can a third party independently prove the person receiving control is the person the principal explicitly authorized while alive?" Today: not fully. v0 ships the substrate; full estate end-to-end is the canonical Authority Transfer demo (§13).

22.1 · The Estate role distinct from Guardian

RoleWhen activeAuthority scope
GuardianPrincipal is alive but locked out (lost key, device failure, incapacity-but-recoverable)Recovery of the SAME principal · identity-control
BeneficiaryPrincipal is gone (death, permanent incapacity)Succession to a NEW principal · authority-transfer

v0 conflates these in the BeneficiaryAdded/Executed events (0x30/0x31) which today carry the guardian-add semantics. The architectural correction is Authority Transfer (§13) — Beneficiary becomes a generic authority-delegate with succession conditions, Activate fires when dormancy + biometric incapacity proof is observed, Transfer rebinds assets.

22.2 · Patent-backed digital estate succession (current capability)

22.3 · Estate Activation business flow

Dormancy detected: no life validation for 120 days
Beneficiary notification dispatched
72-hour cooling-off period
Multi-modal biometric proof of death/incapacity (legal document + biometric non-match)
Estate transfer executed under beneficiary's PQ keys (under Authority Transfer · scope authority-transfer)
Full evidence chain sealed and archived

22.4 · Key Escrow (Enterprise) — COMPLIANCE

23

Recovery & Digital Estate Lifecycle

Three independent recovery paths. No mnemonics — purely cryptographic. Digital estate succession with biometric life validation.

23.1 · PQ Recovery Keys — REPLACES BIP-39

23.2 · Guardian Social Recovery — 3 INDEPENDENT PATHS

PathMechanism
Guardian Recoveryk-of-n trusted guardians hold encrypted shares · 72-hour time lock · voting approval workflow
Multi-Device TransferRe-encrypt shares under target device's ML-KEM key · source device attestation proves legitimacy
Biometric Re-enrollmentFHE-encrypted biometric match against enrolled template triggers share release · no plaintext biometrics

Guardian types: personal, hardware, institutional, self-custody, cloud. Time-locked delays prevent immediate compromise. Recovery history audit trail.

23.3 · Recovery Request flow

User triggers recovery (via surviving device or guardian contact)
Guardian notification dispatched to all registered guardians
k-of-n share collection (guardians decrypt and submit shares)
72-hour time lock begins (configurable per policy)
Time lock expires → master seed reconstructed
Immediate re-key: new shares generated, old shares invalidated
Attest recovery completion with H33-74 receipt
24

Privacy & Zero-Knowledge

Privacy is enforced at three layers: data never decrypts (FHE), assertions disclose minimum (ZK), interactions reveal counterparty only on policy match (selective consent). Each layer composes; none is a substitute.

24.1 · ZK proof suites

SystemProofs · Use
ZK-Phish6 proofs · phishing detection without exposing user content
ZK-Verify8 proofs · identity verification without revealing identity attributes
ZK-Proven (CCRA)Compliance Continuous Regulatory Attestation · proof of regulatory adherence without account disclosure
ZK-KYCSelective KYC disclosure: age ≥ N, jurisdiction, accredited investor status — without revealing identity
ZK-TrustlessTrustless anonymous credentials
ZKP-AIRAlgebraic Intermediate Representation proofs for arbitrary statements
BotShieldFree-tier bot detection via ZK challenge-response

24.2 · Selective disclosure patterns

24.3 · Privacy primitives composed

24.4 · Compliance × Privacy reconciliation

The reconciliation claim

The substrate makes compliance attestation and data minimization compatible. ZK-Proven attests regulatory adherence to a regulator without exposing the underlying customer dataset. Selective disclosure satisfies Travel Rule, KYC, and AML without sharing user identity beyond what each specific rule requires. The chain proves "this rule was satisfied" without leaking "here is everyone affected."

25

PQ Messaging & Chat

Forward-secret post-quantum messaging. Survives TLS compromise, survives intermediate-CA compromise, survives indefinite ciphertext capture (harvest-now-decrypt-later resistant by construction).

25.1 · Channel construction

25.2 · 1:1, group, broadcast

25.3 · Cross-organization & counterparty messaging

25.4 · Chat surface for consumer + institutional

26

Encrypted Decision Engine

TFHE programmable bootstrapping enables Boolean-level decisions on encrypted data. Compliance checks, policy evaluation, and classification all run without decryption.

TFHE Programmable Bootstrap (PBS)

Boolean Circuits on Ciphertext

Gate-level encrypted computation with noise refresh on every AND gate. Unlimited circuit depth. Server evaluates all branches — cannot determine which was taken.

  • AND/NAND/OR/NOR: 1 PBS each
  • XOR/XNOR/NOT: free
  • GT/LT/EQ comparisons: 768 TPS 8-bit GT on Graviton4
Encrypted ML

CKKS + TFHE + BFV

Machine learning inference on encrypted data.

  • CKKS for neural networks and regression
  • TFHE for decision trees (Boolean gates)
  • BFV for private set intersection (PSI)
  • Anomaly detection (autoencoder)
  • Linear / logistic regression

This is the engine that lets compliance checks, policy evaluation, and classification all run without decryption. The substrate's most differentiating capability vs. classical custody.

27

WiFi & Network Security

Post-quantum network access. WPA3-PQ for WiFi, IPSec-PQ for site-to-site tunnels, mTLS-PQ for service-to-service. All bound to the same UPQ-ID that authorizes wallet transactions and document access.

27.1 · WPA3-PQ — Post-Quantum WiFi authentication

27.2 · IPSec-PQ — Site-to-site tunnels

27.3 · mTLS-PQ — Service-to-service

27.4 · Network access control (NAC) policy

27.5 · Why this matters

WiFi authentication is the most frequent identity event a typical user generates — often 100×/day. Binding it to the same PQ identity chain that signs payments means the entire user surface (network, document, message, wallet, agent) is one coherent attestation graph. No identity surface bolted on; no implicit trust between layers.

28

Agent Governance — Agent-008, CKA, PQ-Video

AI agents acting on behalf of humans (or other agents) are first-class principals. The substrate distinguishes what an agent did from why an agent was allowed to act. The chain answers both.

28.1 · CKA — Canonical Agent Capability Token

Token prefix
cka_ (canonical capability token)
Crate
h33-agent-token (untouched by H33-Key wrapper)
Lifetime
Configurable TTL (default 3600s, max 86400s)
Capability bitmap
Bitmask of authorized operations (read, sign, transact, mint, delegate, …)
Production restriction
production: true requires dashboard approval — sandbox tokens default
Receipts
DelegationGranted 0x40 on mint · DelegationRevoked 0x41 on revoke
Receipt slot
Agent identifier + user attribution recorded for forensic chain

28.2 · Agent-008 — PQ AI Governance Infrastructure

Agent-008 is the runtime layer that takes a CKA, evaluates Q-Sign envelopes per action, walks Root lineage for authority, and emits H33-74 receipts. It is the system that turns "an agent did X" into "this agent was allowed to do X because: human → Root → Q-Sign policy → Delegation → Activation → Authority → action."

28.3 · The runtime moat statement

A Provable Authority Pack (PAP) can answer "Why was this agent allowed to act?" — not just "What did this agent do?" That is the difference between an audit log and a governance system. The four evaluators (Read Attestation + Delegation Capsule + Activation + Freshness) deliver it.

28.4 · The four runtime evaluators

EvaluatorQuestionHow it's answered
Read AttestationHas this principal acknowledged the Root that authorizes them?Read Attestation Registry · acknowledged_root_version per principal
Delegation CapsuleDoes this agent currently hold a valid CKA + H33KeyCapsule for the secrets it needs?CKA verify + H33KeyCapsule 9-stage check
ActivationHas the action's authority chain been activated (not just delegated)?5-state machine: Wrapped → Delivered → Activated → Resolved → Used
FreshnessIs the Root the agent is acting under still the latest acknowledged version?latest_root_version > acknowledged_root_version → CANNOT act

28.5 · H33-PQ-Video — Provable Authority Meetings

Meetings are first-class authority events. Every participant (human or agent) holds a per-meeting delegated principal. Authority Map shows who is admitted, who can speak, who can approve. Authority Flow shows decisions made + their downstream commits. The meeting produces a receipt; the receipt walks back to the principals' Root chains.

28.6 · Agent runtime catalog (v1 LOCKED)

Agent typePurposeAuthority scope
Research AgentReal web research → cited results · per-source attestationRead-only network · CKA scope: research:read
Note AgentMeeting capture + summarization · per-speaker attributionRead meeting transcript · write notes only
Compliance AgentPolicy evaluation across documents · flags + recommendationsRead documents · write annotations · cannot transact
Procurement AgentGenerates real PO requests for human approvalRead inventory + budget · write PO drafts · requires human approve

28.7 · Rogue agent defense

29

Custody & Key Lifecycle

Split key authority across parties, geographies, or compliance domains. No single entity can sign, decrypt, or access key material alone.

29.1 · Shamir Secret Sharing — FOUNDATION

29.2 · Distributed Key Generation (DKG v2) — ADVANCED

29.3 · MPC Signing Channel — PRODUCTION

29.4 · Threshold Signatures — PRODUCTION

29.5 · Oblivious Transfer — PRIMITIVE

29.6 · HD Key Derivation — CORE

29.7 · Automated Key Rotation — CORE

29.8 · KeyStore (Server-Side) — PRODUCTION

Automatic rotation scheduling · version tracking · usage limiting · sanitized error output (details in logs only, never exposed to API consumers).

29.9 · Encrypted Backup — PRODUCTION

30

Policy Engine & Authorization

Configurable policy engine governing every custodial operation. Policies evaluated before signing, enforced cryptographically, and bound to the H33-74 evidence chain. No operation bypasses policy — not even emergency actions.

30.1 · Role-Based Approvals — CORE

30.2 · Transaction Limits — LIMITS

30.3 · Velocity Controls — LIMITS

30.4 · Asset Allowlists / Denylists — POLICY

30.5 · Jurisdiction Controls — POLICY

31

Separation of Duties — Role × Capability Matrix

Explicit role separation enforced cryptographically. Each role is bound to a distinct PQ identity. No role can exceed its authority — enforced at the policy engine, not by convention.

RoleInitiate TXApprove TXRotate KeysView EvidenceModify PolicyHold Shares
Operator
Approver
Recovery Agent
Compliance Reviewer
Key-Share Holder
Auditor
System Admin

Role definitions

32

Incident Response & Emergency Controls — 9

Nine emergency controls covering every compromise scenario from key exposure to legal holds. Every emergency action is itself attested — no "off-the-record" interventions.

#ControlTagWhat it does
1Compromise FreezeINSTANTInstant system-wide lockdown · triggered by any role with Emergency Freeze capability · auto-generates incident evidence snapshot
2Key QuarantineISOLATEIsolate suspected compromised key · ops continue with remaining keys · quarantined key cannot sign but history preserved for forensics
3Signer RemovalEMERGENCYEvict from MPC/threshold group · remaining signers reshare via DKG · old shares cryptographically invalidated
4Forced Key RotationEMERGENCYImmediate rotation, no grace period · old revoked instantly · new activated atomically · pending ops re-signed under new key
5Recovery SuspensionEMERGENCYHalt in-progress recovery if fraud suspected · time lock paused · shares held in escrow (not returned) · compliance reviewer gate to resume/cancel
6Beneficiary LockEMERGENCYFreeze all estate beneficiary changes · prevents social-engineering targeting succession config · dual-control required to lift
7Suspicious Recovery ChallengeEMERGENCYAdditional verification factors for flagged recoveries · biometric re-challenge · time-delay extension · manual compliance review
8Regulator / LE HoldLEGALCourt-ordered freeze with full audit trail · legal auth verified before activation · all ops frozen except evidence export · hold itself is attested and time-bounded
9Incident Evidence SnapshotFORENSICSFull state capture at freeze: key versions · active sessions · pending ops · policy state · signer roster · recovery state · evidence chain tip · signed + timestamped · immutable once captured
33

Custody Business Flows — 9 Specified Procedures

Concrete operational flows for the nine most critical custodial scenarios. Every step produces an H33-74 evidence receipt.

33.1 · New Account Creation

Generate HD master seed (256–512 bit, CSPRNG)
Derive initial signing, encryption, authentication child keys
Split master seed via Shamir (k-of-n, configurable)
Encrypt each share under guardian's ML-KEM public key
Distribute shares to guardian set
Attest setup configuration with H33-74 receipt

33.2 · Deposit Authorization

Receive inbound deposit request
Verify sender identity against allowlist
Policy engine checks: jurisdiction, asset type, limits
Approve or reject (with reason code)
Emit H33-74 evidence receipt

33.3 · Withdrawal Approval (Standard)

Operator initiates withdrawal request
Policy engine checks: per-tx limit · daily aggregate · velocity · asset allowlist
Approver(s) authorize (quorum requirement satisfied)
Threshold signing: k-of-n signers produce Dilithium final signature
Broadcast transaction to target chain
Emit H33-74 evidence receipt with tx hash

33.4 · High-Risk Withdrawal

Operator initiates exceeding standard threshold
Velocity flag triggers escalation
Dual-control required: two independent approvers
Compliance reviewer signs off on policy check
k-of-n threshold signing with elevated quorum
24-hour mandatory delay (configurable)
Broadcast after delay expires with no cancellation
Emit H33-74 receipt with full approval chain

33.5 · Recovery Request

User triggers recovery (via surviving device or guardian contact)
Guardian notification dispatched to all registered guardians
k-of-n share collection (guardians decrypt and submit shares)
72-hour time lock begins (configurable per policy)
Time lock expires → master seed reconstructed
Immediate re-key: new shares generated, old shares invalidated
Attest recovery completion with H33-74 receipt

33.6 · Court-Order Release

Legal authorization document received and verified
Compliance reviewer approves release scope
Escrow agent releases assets under threshold signing
Full audit trail generated (regulator-exportable)
Regulator/LE hold applied to prevent further operations if ordered

33.7 · Estate Activation

Dormancy detected: no life validation for 120 days
Beneficiary notification dispatched
72-hour cooling-off period
Multi-modal biometric proof of death/incapacity (legal document + biometric non-match)
Estate transfer executed under beneficiary's PQ keys
Full evidence chain sealed and archived

33.8 · Signer Rotation

New signer onboarded (identity verified, PQ keys generated)
DKG reshare: new share distribution computed including new signer
Old signer's shares cryptographically invalidated
Zero downtime — signing authority transitions atomically
Attest rotation with H33-74 receipt

33.9 · Breach Response

Compromise detected (automated monitoring or manual report)
Emergency freeze activated — all ops halted
Key quarantine: isolate suspected compromised key
Incident evidence snapshot captured (full state at freeze)
Forced key rotation: new keys generated, old revoked
DKG reshare excluding compromised signer
Regulator notification (per jurisdiction requirements)
Post-incident evidence bundle exported
34

Compliance Mapping — 8 Frameworks

How custodial capabilities map to regulatory frameworks. Each row shows the H33 capability satisfying the compliance requirement.

FrameworkRequirement areaH33 capability
SOC 2 Type IIKey management · access controls · audit loggingKeyStore lifecycle · role-based policy engine · H33-74 evidence chain
ISO 27001ISMS controls · key lifecycle · incident responseAutomated key rotation · separation of duties · emergency controls · evidence export
NYDFS 500Encryption · access controls · audit trail · incident responseThree-family PQ signing · role matrix · tamper-evident chain · compromise freeze
SEC Custody Rule (15c3-3)Segregation · control · recordkeepingThreshold custody (no single party) · policy engine · evidence receipts
Travel Rule (FATF)Transaction evidence · counterparty identificationH33-74 receipts with counterparty binding · exportable evidence bundles · TRP / TRISA envelope
AML / KYCIdentity verification · biometric proof · tx monitoringFHE biometric matching · velocity controls · suspicious recovery challenge
GLBASafeguards · access controls · risk assessmentFHE encryption (data never plaintext) · role-based access · policy engine
HIPAAPHI protection · access controls · audit (where applicable)FHE biometrics (zero plaintext) · MedVault field-level FHE · access logging · evidence chain · retention policies
35

Threat Model — "Designed Against"

Every architectural decision maps to a specific threat. The system is designed to survive each of these scenarios independently.

ThreatMitigation
Insider compromisek-of-n threshold signing · no single party holds full key · separation of duties enforced cryptographically
Guardian collusion (below threshold)Information-theoretic security · k-1 shares reveal zero information — mathematically proven, not policy-dependent
TLS compromiseKyber ephemeral keys provide forward secrecy independent of TLS · inner channel encryption survives outer transport failure
Server compromiseServer structurally cannot decrypt · no secret-key field, no decrypt code path · enforced at compile time via Rust feature gates
Biometric database breachOnly FHE ciphertexts stored · useless without client's secret key · ciphertexts computationally indistinguishable from random
Recovery fraudTime locks (72hr) · multi-factor challenge · suspicious recovery hold · compliance reviewer gate · no instant recovery
SIM swapNo SMS/phone-based recovery · pure cryptographic shares · device identity bound to ML-KEM public keys, not phone numbers
Deepfake / liveness attackMulti-modal biometrics (face · voice · keystroke · physiological) · 99.8% confidence threshold · anti-spoofing liveness detection
Harvest-now-decrypt-laterThree PQ signature families (lattice + NTRU + hash-based) · breaks iff MLWE, NTRU, AND stateless hash functions are simultaneously broken
Rogue agent (LLM/MCP)CKA capability bitmap · per-action Q-Sign envelope · Authority Freshness check (latest_root_version > acknowledged → cannot act) · Pause Autonomous Authority freeze
Compromised H33-Key terminal certDetected by chain (two terminals sharing same id) · attested by receipt (every SecretUsed names the terminal) · v1 closes runtime gap with per-use Q-Sign approval
Court-order coercionCourt order processed through Compliance Reviewer + LE Hold capability · hold itself attested · time-bounded · scope-bounded · auditor sees the order in the chain
36

API Reference

Every public endpoint shipped or reserved in Digital SCIF v2. Implementations live in rust-service/api/src/routes/.

36.1 · Identity

Method · PathReceipt(s)Purpose
POST /identity/createIdentityCreated 0x01Soulbound PDA · biometric template enroll · Root artifact at identity-origin
POST /identity/guardian/addBeneficiaryAdded 0x30Owner names guardian · Q-Sign envelope hard-gated · Root scope guardian-designate
POST /identity/guardian/add/confirmIdentityUpdated 0x02On-chain confirmation of guardian add
POST /identity/recovery/executeBeneficiaryExecuted 0x31 / PolicyDenied 0x51Recovery flow · Q-Sign + Root scope authority-recover
POST /identity/recovery/confirmIdentityUpdated 0x02 / PolicyDenied 0x51On-chain owner field confirmation

36.2 · H33-74

Method · PathReturns
GET /h33-74/pubkeyEmitter's ML-DSA-65 public key (offline verification)
GET /h33-74/receipt/:hashFull receipt body + chain position (Phase 1.3)
POST /h33-74/verifySignature + chain check (verdict)
POST /h33-74/anchor/confirmBind external Bitcoin txid to a closed segment (Sprint 3)

36.3 · Root

Method · PathReturns
POST /root/inscribeOrigin-scope inscription · authority_lineage_hash + IdentityCreated 0x01
GET /root/lineage/:receipt_hashDefinition A walker · per-step + aggregate verdict

36.4 · Authority Transfer

Method · PathReceiptHard gates
POST /authority/delegateAuthorityDelegated 0x70Scope match · Q-Sign envelope · predecessor exists
POST /authority/activateAuthorityActivated 0x71Scope match · Q-Sign · predecessor scope is delegate
POST /authority/transferAuthorityTransferred 0x72Scope match · Q-Sign · predecessor chain reaches delegate · activation_required honored

36.5 · H33-Key

Method · PathReceipt(s)
POST /key/terminal/registerTerminalCertificateRegistered 0x89 (newly only)
GET /key/terminal/:terminal_idnone
POST /key/handle/storeSecretWrapped 0x80
POST /key/handle/inspectnone (metadata only)
POST /key/handle/resolveSecretActivated 0x82 → SecretResolved 0x83 / SecretDenied 0x88
POST /key/handle/use-receiptSecretUsed 0x84 (after child.wait())
GET /key/use/:receipt_hash/verifyaggregate_v0 verdict · 7 gates + failure_reasons
POST /key/handle/rebindSecretDelegated 0x86 / SecretDenied 0x88

36.6 · Document Trust Chain

Method · PathReceipt
POST /document/createDocumentCreated 0x10
POST /document/:doc_id/versionDocumentVersioned 0x11
POST /document/:doc_id/consentConsentGranted 0x20
POST /document/:doc_id/consent/:cid/revokeConsentRevoked 0x21

36.7 · FHE / Biometric

Method · PathPurpose
POST /fhe/enrollFHE biometric template enrollment (encrypted on client, stored opaque on server)
POST /fhe/verifyFHE match · returns encrypted score · client decrypts + signs SignedMatchAssertion
GET /fhe/modesAvailable FHE modes + characteristics + target latencies

36.8 · Threshold Custody · KEMs · Signatures

Method · PathPurpose
POST /kyber/keygenML-KEM-768 keypair (server pool-warmed)
POST /kyber/encapKey encapsulation
POST /kyber/decapKey decapsulation (client-only path)
POST /dilithium/keygenML-DSA-65 keypair (Dilithium pool)
POST /dilithium/signDetached signature
POST /dilithium/verifySignature verification

36.9 · Health & observability

Method · PathPurpose
GET /Root health probe (liveness)
GET /healthDetailed health (kyber cache, dilithium pool, FHE pool, receipt emitter)
GET /health/cacheCache statistics
GET /api/docsServe OpenAPI documentation
GET /api/openapi.yamlRaw OpenAPI spec
37

Source Code Map — Rust Workspace

Digital SCIF is a Rust workspace. Each member crate has a single responsibility and a clean public API. Reviewers can audit each crate independently.

37.1 · Workspace members

CrateRole
ml_kemML-KEM-768 / ML-KEM-1024 (Kyber) implementation · SIMD-accelerated · audited NIST-aligned
ml_dsa_dilithiumML-DSA (Dilithium) implementation · keypair pool · forbid(unsafe_code)
dsa_falconFALCON-512 (NTRU lattice) implementation
fhe_bfvBFV homomorphic encryption · 3 modes (turbo 5-10µs · standard 18-25µs · precision 50-100µs)
h33_74_receiptThe H33-74 attestation crate · Event enum (29 variants) · ReceiptEmitter · Segment · verify_receipt
identity_roundtripIdentity flow integration tests · round-trip harness
solana_auth_contractOn-chain Solana auth contract source
apiThe route layer · axum-based HTTP service · entry point h33-crypto-api
benchmarksPerformance regression suite

37.2 · `api` crate modules

ModuleOwns
cacheKyberCache (key pool + Redis layer)
fhe_poolFHE context pool · enrollment tracking
document_storeDocumentStore (Sprint 4A) · version + consent ledger
handle_storeHandleStore · v0 in-memory plaintext (H33-Key Stage 4)
key_capsuleH33KeyCapsule · 9-stage verify_capsule (Stage 3)
key_metadataSecretHandleMetadata · InjectionMode
pk_registryPubkeyRegistry · pubkey resolution for Q-Sign signature verification
qsign_adapterverify_qsign_envelope (4-stage) · ReplayWitness canonical hashing
qsign_test_fixturebuild_passing_bundle (test-only · feature-gated)
root_artifactRootAuthorityArtifact · RootArtifactStore · scope_hash · validate_authority_predecessor_chain
secret_use_recordSecretUseRegistry · structured side-table for Stage 6 verifier
authority_delegationAuthorityDelegationRegistry · DelegationPolicy · activation_required side-table
soulbound_clientSolana CPI client · IdentityData parsing
terminal_registryTerminalRegistry · ed25519 self-signature dispatch
routes/*identity · document · root · authority · key_terminal · key_handle · kyber · dilithium · fhe · h33_74 · health

37.3 · CLI repo (separate workspace)

h33-cli-rs · the canonical Rust CLI (binary h33) · subcommands: signup, mint, mcp, status, audit, domains, detect, wrap, verify, scan, bitcoin, key, health. H33-Key surface lives under h33 key {terminal, store, inspect, use, verify}.

37.4 · Test counts (as of 2026-06-16)

38

Asset & Protocol Support

Multi-chain, multi-asset custodial support. Three phases, explicitly demarcated.

Phase 1 · Live

EVM Chains

Ethereum · Polygon · Arbitrum · Base. Full ERC-20 / 721 / 1155 support. Smart-contract interaction signing.

Phase 1 · Live

Bitcoin

UTXO management · Taproot support · SegWit. Multi-sig P2SH and P2WSH transaction construction.

Phase 1 · Live

Stablecoins

USDC · USDT · DAI. Cross-chain support (EVM + Solana). Allowlist-enforced counterparties.

Phase 2 · Q3 2026

Solana

SPL tokens · program accounts · associated token accounts · versioned transaction signing.

Phase 2 · Q3 2026

Tokenized Securities

ERC-3643 (T-REX) and ERC-1400 security tokens. Transfer restrictions enforced at the custody layer.

Phase 2 · Q3 2026

Treasury Wallets

Multi-sig corporate treasury. Policy-gated disbursement. Configurable approval chains per spend tier.

Institutional Accounts

Omnibus and segregated account structures · sub-account isolation with independent policy engines · institutional reporting and NAV calculation support.

Cross-Chain Settlement

Atomic cross-chain swaps with PQ-attested bridge operations · hash time-locked contracts with Dilithium pre-images · settlement finality evidence.

39

Performance & Numeric Claims

MetricValueSource · context
Custodial modules18Custodial Infrastructure Capabilities
Receipt event discriminants29 (24 active + 5 reserved 0x73/0x74/0x81/0x85/0x87)h33_74_receipt::Event enum (2026-06-16)
PQ signature families per tx3 (ML-DSA-65, FALCON-512, SLH-DSA)Three-family signing requirement
External crypto dependencies0* (proprietary engines)NIST refs used only for standardized PQ primitives
Attestation primitive size74 bytesH33-74 receipt (58-byte substrate + 16-byte compact prefix)
H33-Key aggregate verifier gates7aggregate_v0 (Stage 6, 2026-06-16)
Authority Transfer ops5 (3 active + 2 reserved)Sprint Authority-Transfer-0 taxonomy lock
Free attestation quota10,000 / monthPublic pricing tier
Patent portfolio9 patents pending · 250+ claimsCanonical (footer truth)
Biometric auth throughput2.17M auth/sec (sustained)Production benchmark
Per-auth latency38.5 µsProduction benchmark
Anti-spoofing types detected17Without decrypting
Multi-modal biometric accuracy99.7%Production accuracy
Confidence threshold for high-value99.8%Gating threshold
Shamir secret-size maximum64 KBThreshold custody
Recovery time lock72 hours (configurable)Default policy
Dormancy threshold120 daysEstate succession
Life-validation cadence30 daysHolder validates every cycle
Beneficiary cap50Maximum configured beneficiaries
Per-key usage cap1M encryptions · 10M signaturesCryptographic hygiene
High-risk withdrawal delay24 hours (configurable)Dual-control flow
TFHE GT throughput768 TPS 8-bit on Graviton4Benchmark
Document archival horizon30+ yearsArchiveSign target
ArchiveSign batch size500Per signing op
Test count (api crate)51/51 pass · 13/13 receipt crate2026-06-16
40

Buyer Outcomes & Differentiation

40.1 · What makes Digital SCIF unlike anything in market

  1. Server structurally cannot decrypt biometrics — not policy, not procedure, compile-time enforced via Rust feature gates. The decrypt code path does not exist in server binaries.
  2. Three-family PQ signing on every transaction — forgery requires breaking MLWE, NTRU, and stateless hash functions simultaneously. No other custodian offers this triple-bet on a single op.
  3. 74-byte self-verifying evidence on every operation — regulators verify offline, without H33 cooperation, without an API.
  4. Five composable governance substrates (H33-74, Root, Q-Sign/HATS, H33-Key, Authority Transfer) — one consistent vocabulary across identity · payments · DeFi · documents · estate · messaging · WiFi · agents.
  5. 18 custodial modules in one Rust crate, zero external crypto deps — auditable as a single artifact.
  6. Identity, custody, recovery, estate, biometric, documents, messaging, wallet, network, agents — all from the same substrate. Competitor stacks bolt these together · H33 derives them from one cryptographic root.
  7. k-1 shares reveal zero — mathematically, not by policy. Information-theoretic threshold security is a stronger guarantee than computational security; very few custodians ship it.
  8. Patent-backed digital estate succession with cryptographic life validation. Wallet competitors do not address generational continuity at all.
  9. Externally-verifiable per-use receipts for every credential dispensed (H33-Key) — first system in the credential-Use category.
  10. Per-transition authority attestation (Authority Transfer) — generic across identity recovery, estate succession, agent ownership, and service-account rotation.

40.2 · Boardroom-grade headlines

"Every key operation post-quantum attested. Every secret zeroized on drop."

"The computation happens inside the encryption. Nothing ever comes out."

"Server-blind by construction. Type-system enforced, not policy enforced."

"Three independent mathematical bets — every transaction."

"Self-verifying evidence in 74 bytes. No vendor required to audit."

"Authority lineage walks back to a human, every time. The chain doesn't just say what happened — it proves who was allowed."

40.3 · Buyer use cases

AudienceLead use caseHook
Bank / RIA / exchangeSOC 2 / NYDFS 500 / SEC 15c3-3 custody substratek-of-n threshold + role matrix + H33-74 evidence chain
Healthcare providerMedVault: PHI under FHE"A breach exposes nothing."
Legal / estate plannerClause-level contract amendments + 30-year archivalRFC 3161 + dual PQ signatures
Government / defenseServer-blind biometric ID at scale2.17M auth/sec on FHE ciphertexts
RegulatorSelf-verifying evidence bundlesCBOR + JSON · offline verification · no H33 cooperation
InsurerCyber-claim verification + continuous attestationHATS-linked attestation chain · proof of ongoing custody hygiene
HNW individualEstate + identity + multi-chain wallet in one device"Sign it today. Prove it in 2055."
Enterprise security team (H33-Key)Externally verifiable per-use receipts for every API key dispensePairs with existing vault · doesn't compete on storage · wins on attestation
Agent operations (Agent-008)Provable Authority Pack for every autonomous actionAnswers "why was this agent allowed to act?" — not just "what did it do?"
40a

Consumer Application Surface (PWA)

The consumer wallet PWA is the user-facing presentation of the entire substrate. Every screen is a thin renderer of receipts and capabilities defined in earlier sections. This section enumerates the canonical screens, surfaces the receipt that backs each one, and connects them to the substrate calls.

🔐 AUTH MANAGEMENT Connected Services 17 sites · UPQ-ID Google · profile · email read · 48 sessions Apple ID · sign-in read · 12 sessions X · post on behalf scoped · 2 sessions Chase · payment authorized · 1 session 3 frozen post-breach quarantine + Connect new service Every login emits SignedMatchAssertion Revoke = ConsentRevoked 0x21 receipt 📡 HOME NETWORK 8 devices · WPA3-PQ All current · last attest 2m ago H33 router 📱 💻 📷 🖨 🔊 NETWORK INTEGRITY All devices attested · 0 quarantine Generate guest pass · 4h 📷 QUANTUM CAMERA Document Ingest Authenticated capture · FHE encrypt 📄 Aligning · biometric verifying Voice + face · 99.8% confidence READY · CAPTURE WILL ATTEST DocumentCreated 0x10 + biometric AI WILL EXTRACT Patient name 98% · DOB 95% · SSN 92% Field-level FHE before persist 💬 SECURE CHAT Dr. Patel · PQ E2E Forward-secret · Kyber ratchet Your labs came back normal. 9:14a · ML-DSA ✓ Thanks. Forward to my chart? 9:16a · ML-DSA ✓ 📎 DOCUMENT · CONSENT GRANTED CBC_PANEL_2026-06-16.pdf FHE-encrypted · MedVault ConsentGranted 0x20 → chart Done. See you 6/24. 9:17a · ML-DSA ✓ Type a message… Every msg ML-DSA-65 signed · zero TLS dependency ⚡ H33 STAKING Yield Overview All receipts on chain STAKED · H33 1,247.82 8.4% APY · auto-compound REWARDS (30D) Stake +8.71 Mining (2.4/hr) +1,728 VALIDATOR H33 validator pool 99.97% uptime · 3-family signed Receipts → all chain-bound 📥 DATA REQUESTS Inbox · 4 new All FHE-encrypted on arrival CB Chase Bank Monthly statement · June → AI Doc Agent auto-filed 2m DR Dr. Patel · CBC labs MedVault · FHIR R4 Action: review & consent 1h IRS IRS · 1099-DIV Government notice Action: tax agent ready 3h SP Spouse · share doc PQ message · 3 attachments Consent: pre-granted 5h Every sender PQ-attested · revocable per source

Six screens · Auth Management · Home Network · Quantum Camera · Secure Chat · H33 Staking · Data Requests

40a.1 · Dashboard & AI Quick Actions

Single-screen entry point. AI-curated quick actions surface the most-likely-next operation (pay rent, sign contract, attest document, approve agent action). Every quick action is a one-tap shortcut to an authority-attested flow — the AI suggests; the substrate enforces.

40a.2 · AI-Powered Send

40a.3 · AI Document Agents · NFT Document Agents

40a.4 · Auth Management — Connected Websites & Services

The OAuth-replacement surface. Every site, app, or service the user authenticates to is a PQ-signed binding to their UPQ-ID. The consumer sees a single screen: which sites can talk to which capabilities, what each site is allowed to read or do, and a one-tap revoke.

40a.5 · Modern Linking — Cross-Device Authentication

40a.6 · Quantum Camera · Secure Document Ingestion

40a.7 · Data Requests — The Inbox

40a.8 · Bill Pay & Recurring Payments (Chase Mortgage example)

40a.9 · Beneficiary Details · Document Distribution Matrix

40a.10 · Home Network · Privacy Controls

40a.11 · H33 Staking & Mining

40a.12 · Invite & Earn — Referral Mechanics

40a.13 · Settings, Help & Support

UX → substrate mapping principle

Every consumer screen is the user-facing presentation of an existing substrate operation. The PWA does not introduce new authority. It surfaces what the substrate already attests, in a form a non-technical user can act on. When a screen feels too important to be "just a substrate call," that's a sign we need a new substrate primitive — not a new UX abstraction. This principle held five times during 2026-06 (Q-Sign → HATS · Root → lineage · Delegation → CKA · H33-Key → Use governance · Authority Transfer → transition).

40b

Auth Model · Biometric-First Hybrid (Decision D)

Locked 2026-06-17. Every sensitive substrate call passes through a three-layer auth gate. Biometric proves the human, terminal certificate proves the device/session, Auth1 keeps the app session usable. Auth1 alone is never sufficient — it is the session shell, not the trust root.

40b.1 · The three layers

LayerWhat it provesPrimitive
Biometric sessionA real human is present at the call · multi-modal FHE match held within freshness windowSignedMatchAssertion (ML-DSA-65) · 99.8% confidence threshold · 4 modalities fused
Terminal CertificateA specific registered device is executing the call · request signed by the cert's private keyed25519 self-signed cert · registered idempotently in TerminalRegistry · binds to user + biometric session
Request signatureThis specific call is not replayed and is fresh · nonce never seen + timestamp inside windowed25519 over SHA3-256(method || path || body || nonce || ts)

40b.2 · Wire shape · every sensitive request

POST /key/handle/resolve   (or any sensitive endpoint)
Headers:
  X-H33-Biometric-Session: <opaque session token issued by /auth/biometric/begin>
  X-H33-Terminal-Id:       <terminal_certificate_id>
  X-H33-Nonce:             <16-byte random hex>
  X-H33-Timestamp:         <unix-ms>
  X-H33-Signature:         <hex ed25519 over canonical message>
Body: { ... endpoint-specific JSON ... }

Canonical signed message:
  SHA3-256( method.utf8 || ":" || path.utf8 || ":" || body.bytes
         || ":" || nonce.hex || ":" || timestamp.ascii )

40b.3 · Verification order · backend

  1. Timestamp freshness. abs(now − ts) ≤ 60s. Outside window → 401 + PolicyDenied 0x51.
  2. Nonce uniqueness. Lookup in NonceReplayCache (TTL 5min, sized for peak QPS). Seen → 401 + PolicyDenied.
  3. Biometric session. Lookup BiometricSessionRegistry. Must exist, not expired, not revoked, bound to X-H33-Terminal-Id. Any miss → 401 + PolicyDenied.
  4. Terminal cert resolution. Lookup TerminalRegistry by id. Cert must be active. Resolved pubkey = trust anchor for next step.
  5. Request signature. Verify ed25519 over the canonical signed message against the cert's pubkey. Mismatch → 401 + PolicyDenied.
  6. Endpoint-specific gates. All previously-documented gates (Q-Sign envelope, predecessor invariant, capsule verify, policy/root match, etc.) continue to apply after the three auth layers pass.

40b.4 · Receipt op_msg extensions

The receipt wire format (74-byte H33-74) does NOT change. The structured side-tables (SecretUseRecord, AuthorityDelegationRecord, and the new BiometricSessionRecord) gain two fields:

Verifiers re-derive these fields from the side-table; the recomputed op_msg commitment matches without breaking any prior receipts.

40b.5 · Auth1's role · honest scope

  • ✓ Session token storage for the PWA shell (route gating, login redirect)
  • ✓ User profile (display name, email, preferences)
  • ✓ Billing / subscription boundary
  • ✓ App-level routing decisions
  • ❌ NOT used as authorization for any substrate call
  • ❌ NOT positioned as a trust root in spec, marketing, or sales
  • ❌ NEVER granted standalone ability to sign · approve · dispense · transfer

40b.6 · Why this composition

40b.7 · New endpoints

Method · PathPurpose
POST /auth/biometric/beginClient submits SignedMatchAssertion · server issues biometric_session_token bound to terminal_certificate_id · 15-min default lifetime
POST /auth/biometric/refreshExtend an active biometric session with a fresh assertion · same terminal · same user
POST /auth/biometric/revokeExplicit revocation (logout, lost device, suspicious activity)
GET /auth/biometric/statusReturns remaining lifetime + bound terminal_certificate_id (never returns the token itself)
Migration note

v0 substrate endpoints (Stages 1–7 H33-Key · Stages 1–3 Authority Transfer) currently accept unauthenticated requests because they were designed for local-only / SCIF-internal use. The biometric-first hybrid gate goes in front of these as middleware — no change to existing endpoint logic. The first endpoint to land behind the gate is POST /key/handle/resolve (most sensitive: dispenses plaintext). The rest follow.

41

Honest Gaps — v0.1 Hardening + v1 Roadmap

What is documented here is the explicit gap list as of 2026-06-16. The product's defensibility depends on the honesty of this section. Marketing copy that conflicts with this section is wrong.

41.1 · v0.1 hardening blockers — small, mechanical, must close before public release

#GapFix
1H33-Key manual for b: *b = 0 is dead-store-elidable · secret_str + Command env map unzeroedAdd zeroize dep on CLI · wrap secret buffers in Zeroizing<T>
2TOCTOU race: fs::write then set_mode(0o600) for terminal key + EphemeralFileAtomic OpenOptions::mode(0o600).create_new(true)
3EphemeralFile cleanup only on success path · early-return / SIGKILL bypassRAII EphemeralSecretFile { Drop }
4std::sync::Mutex PoisonError could surface SecretHandle via panic chainparking_lot::Mutex (no poisoning)
5Soulbound contract recover_identity still has // In production, verify actual signature hereRemove contract's own authorization layer · require SCIF-signed transitions only

41.2 · v1 must-haves before general sellability

  1. Persistent SecretUseRegistry — today in-memory only · SCIF restart loses verifiability of pre-restart receipts · DB-backed (SQLite or Postgres)
  2. Vault adapters — 1Password · HashiCorp Vault · Doppler · AWS Secrets Manager pull-through · handle becomes pointer + attestation, NOT plaintext copy in SCIF · closes the "compromised SCIF = full dump" honest disclosure
  3. Per-use Q-Sign approval — today Q-Sign verifies at Root inscribe time · v1 adds a fresh Q-Sign envelope at resolve time · closes the runtime moat ("why was THIS use authorized")
  4. Windows + Linux CI parity — v0 tested on macOS only · cross-platform matrix
  5. Persistent terminal-cert binding — today terminal_binding_required only checks registry membership · v1 should match against original storing terminal
  6. Authority Transfer Stage 4 — full Estate-variant demo binary using qsign_test_fixture::build_passing_bundle with the qsign-fixtures feature enabled · proves end-to-end estate succession against the live binary
  7. Bitcoin L2 anchoring — DEPRIORITIZED as a development milestone (assurance / compliance / marketing, not capability) · re-prioritize when a customer requires Tier-2 attestation
  8. Estate substrate completion — full beneficiary-distinct-from-guardian flow (succession-execute scope, dormancy oracle, biometric incapacity gate) on top of Authority Transfer

41.3 · Out of scope (explicitly deferred or rejected)

41.4 · Marketing banned-phrases list (Stage 8D narrative freeze)

  • H33-Key is NOT "encrypted key storage" (in-memory plaintext)
  • H33-Key is NOT a "password manager" or "vault"
  • H33-Key does NOT "replace 1Password / Vault / Doppler / Infisical"
  • The receipt is PQ-signed; the store is not — do NOT say "quantum-secure storage"
  • Do not market unreleased Authority Transfer scopes (revoke, expire) as shipped
  • Do not describe Soulbound v0 contract as "fully cryptographically validated" — see 41.1 #5
42

Canonical Specifications

These are the reconciled, authoritative values. They override any conflicting figures found in older marketing, slide decks, or design files.

ClaimCanonical value
Patent portfolio9 patents pending · 250+ claims
Substrates composed5 (H33-74 · Root · Q-Sign/HATS · H33-Key · Authority Transfer)
Receipt event discriminants29 total · 24 active · 5 reserved
Life-validation cadence30-day intervals · 120-day dormancy · 72-hour cooling-off
Zero external crypto dependenciesZero for proprietary engines (FHE, ZK-STARK, key derivation, Shamir, evidence chain, Root, Q-Sign, H33-Key, Authority Transfer). NIST reference implementations used only for the three standardized PQ signature primitives.
Live assets — Phase 1EVM Chains (Ethereum, Polygon, Arbitrum, Base) · Bitcoin · USD stablecoins (USDC, USDT, DAI)
Phase 2 (Q3 2026)Solana · Tokenized Securities (ERC-3643 T-REX, ERC-1400) · Treasury Wallets
Phase 3 (2027)Institutional Accounts · Cross-Chain Settlement
Biometric throughput38.5 µs · 2.17M auth/sec sustained
Modalities4 production (face, voice, keystroke, gait); palm-vein available as optional 5th
Recovery paths3 (Guardian Recovery · Multi-Device Transfer · Biometric Re-enrollment)
Emergency controls9
Compliance frameworks mapped8 (SOC 2 Type II · ISO 27001 · NYDFS 500 · SEC Custody Rule 15c3-3 · Travel Rule/FATF · AML/KYC · GLBA · HIPAA)
Custodial modules18
PQ signature families per transaction3 (ML-DSA-65 + FALCON-512 + SLH-DSA-SHA2-128f)
Attestation primitiveH33-74 · 74 bytes · self-verifying
H33-Key aggregate verifier gates7 (h33_74 · terminal_registered · capsule · root_lineage · qsign_required/verified · handle_consistent · secret_not_returned_by_inspect)
Authority Transfer ops5 (Delegated · Activated · Transferred · Revoked-reserved · Expired-reserved)
Authority Transfer scope prefixh33-root:authority-* (NOT h33-authority:*)
Authority Transfer predecessor invariantTransfer MUST walk back through Delegated · enforced at endpoint layer · violation → PolicyDenied 0x51 + 422
43

Confidentiality & Contact

Distribution Statement

CONFIDENTIAL — H33.ai, Inc. — For Partner Evaluation Only. This specification reflects production capabilities as of June 2026. Capabilities are subject to phase-defined availability (see §38). Compliance mapping (§34) reflects framework alignment; conformance audits are conducted by independent third parties. The Honest Gaps section (§41) enumerates known limitations and is the authoritative disclosure surface.

Contact


Confidential · H33.ai, Inc. · For Partner Evaluation Only
H33 Digital SCIF — Custodial Infrastructure
All Rust · Zero External Crypto Dependencies* · 100% Post-Quantum Attested
Contact: support@h33.ai · Schedule Demo