| uri |
chittycanon://docs/tech/architecture/chittyproof |
| namespace |
chittycanon://docs/tech |
| type |
architecture |
| version |
1.0.0 |
| status |
PENDING |
| registered_with |
chittycanon://core/services/canon |
| title |
ChittyProof |
| certifier |
chittycanon://core/services/chittycertify |
| visibility |
PUBLIC |
| author |
ChittyOS Infrastructure |
| created |
2026-03-01 00:00:00 UTC |
| modified |
2026-03-01 00:00:00 UTC |
| tags |
cryptography |
integrity |
ecdsa |
tier-0 |
|
| category |
infrastructure |
chittycanon://core/services/chittyproof | Tier 0 (Trust Anchors) | proof.chitty.cc
Cryptographic integrity library and service for FACT v2 bundles. Provides deterministic JSON canonicalization, SHA-256 hashing, and ECDSA P-256 signature verification — the foundation that makes every fact in the ChittyOS ecosystem provably tamper-evident. Available both as a library (SDK import) and as HTTP endpoints at proof.chitty.cc.
Dual-export: pure JavaScript ESM library (SDK consumers import directly) + Hono Worker deployed at proof.chitty.cc (HTTP consumers). Library core runs anywhere the Web Crypto API is available (Workers, Node 20+, Deno, browsers).
- Language: JavaScript (ESM)
- HTTP: Hono on Cloudflare Workers
- Crypto: Web Crypto API (SHA-256, ECDSA P-256)
- Auth: Shared-secret Bearer token (
CHITTY_AUTH_SERVICE_TOKEN)
- Testing: Vitest
- Key Authority: ChittyCert JWKS (
cert.chitty.cc/.well-known/jwks.json)
src/index.js — SDK barrel export (library consumers)
src/worker.js — Hono Worker entry point (HTTP consumers)
src/lib/chittyproof-v2-canonical.js — Canonicalization, normalization, hashing
src/lib/chittyproof-verify-ecdsa.js — ECDSA P-256 verification, JWKS resolution
src/routes/ — HTTP route handlers (health, verify, canonicalize, hash, validate)
src/middleware/auth.js — Shared-secret Bearer token middleware
etc/authority/schema/chittyproof-v2-fact-bundle.schema.json — FACT v2 bundle schema
| Method |
Path |
Auth |
Purpose |
| GET |
/health |
None |
Health probe |
| GET |
/api/v1/status |
None |
Service metadata |
| POST |
/api/v1/verify |
Bearer |
Hash + ECDSA verification |
| POST |
/api/v1/canonicalize |
Bearer |
Deterministic JSON |
| POST |
/api/v1/hash |
Bearer |
SHA-256 of canonical payload |
| POST |
/api/v1/validate |
Bearer |
FACT v2 schema validation |
- Deterministic: Same input always produces the same canonical JSON and hash, across all runtimes
- Court-grade: Rounding uses half-up with epsilon guard for audit reproducibility
- Zero dependencies: Only Web Crypto API — no npm crypto packages
- Edge-native: Designed for Cloudflare Workers, no Node-only APIs
- Badge: ChittyOS Compatible
- Certifier: ChittyCertify (
chittycanon://core/services/chittycertify)
- Last Certified: 2026-03-01
- Lineage: root (foundational library + service)
- Role: Integrity primitive — consumed by any service that mints, seals, or verifies FACT bundles (SDK import or HTTP call)
| Service |
Purpose |
| ChittyCert |
JWKS public key hosting for signature verification |
| ChittyAuth |
Shared-secret Bearer token validation |
| ChittyTrack |
Log/trace aggregation (tail_consumers) |
| ChittyBeacon |
Health monitoring (probes /health) |
| Service |
Usage |
| ChittyScore |
Hash verification of scored FACT bundles |
| ChittyEvidence |
Evidence integrity checks |
| ChittyLedger |
Seal verification at ledger write |
| ChittyCases |
Bundle verification for case presentation |
| ChittySign |
Canonical hash for signing counterpart |
| DocuMint |
Bundle verification (library or HTTP) |
| Module |
Key Functions |
chittyproof-v2-canonical.js |
canonicalize, normalizeBundle, hashSignedPayload, verifyBundle |
chittyproof-verify-ecdsa.js |
verifyECDSA, getPublicKeyByKid, importP256Jwk |
| ID |
Path |
chittycanon://schemas/chittyproof/v2/fact-bundle |
etc/authority/schema/chittyproof-v2-fact-bundle.schema.json |