# CipherHouse Verifiable AI-Agent x402 Receipt & Encrypted CARv1 Archive PoC (Filecoin R&D) > 100% MIT open-source, zero-dependency deterministic CIDv1 (sha2-256 raw/dag-cbor) generator, CARv1 (.car) exporter, client-side WebCrypto AES-256-GCM encrypted archive vault, RFC 6962 Merkle receipt-batch proof verifier, Cloudflare Pages Edge API, and Node.js CLI/MCP stdio verifier for Filecoin R&D. - Canonical URL: https://cipherhouse-fil-receipts.pages.dev/ - Publisher: CipherHouse (Open-Source Crypto & Agent Verification Infrastructure) - License: MIT - Zero Custody & Zero Plaintext Leak: AES-256-GCM encryption/decryption runs 100% client-side in browser WebCrypto (`PBKDF2-SHA256` 210,000 iters + AAD bound to `rootCid` & `merkleRoot`); passphrases and keys never leave the device. ## Core Capabilities 1. **Pure-JS Deterministic CIDv1 Generator (`raw` 0x55 & `dag-cbor` 0x71)** - Implements NIST FIPS 180-4 SHA-256, unsigned LEB128 varints, RFC 4648 lowercase base32 (`b` multibase), and canonical RFC 8949 / IPLD DAG-CBOR with Tag 42 CID links. - Matches official IPFS test vectors (e.g., empty raw bytes -> `bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku`). 2. **Spec-Compliant CARv1 (`.car`) Archive Exporter & Tamper Verifier** - Packs x402 HTTP 402 Base Mainnet USDC payment receipts + raw API response payload blocks + batch manifest into a self-contained IPLD CARv1 binary with Filecoin Fr32-aligned padded piece size estimation. - Verifies every block's CIDv1 digest, root presence, and DAG-CBOR link graph offline, immediately flagging 1-byte tampering (`BLOCK_HASH_MISMATCH`). 3. **Client-Side WebCrypto AES-256-GCM Encrypted Archive Vault** - Encrypts the `.car` archive locally with 128-bit GCM auth tag and Additional Authenticated Data (AAD) binding `{ schema, rootCid, merkleRoot }`, computes a content-addressed ciphertext CIDv1 (`raw`), and performs full round-trip decrypt + CARv1 re-verification. 4. **RFC 6962 Domain-Separated Merkle Receipt-Batch Proof Verifier** - Second-preimage-resistant (`0x00` leaf / `0x01` internal node) Merkle inclusion proofs allowing lightweight auditors or Filecoin FVM/FEVM contracts to verify any individual x402 payment receipt CID against a batch Merkle root. 5. **Zero-Dependency CLI & JSON-RPC 2.0 / MCP (`2025-11-25`) stdio Server** - Run `node cli.mjs stdio` to expose `generate_cid_v1`, `pack_x402_car_v1`, `verify_car_v1`, `verify_merkle_receipt_proof`, and `encrypt_and_verify_bundle` to AI agents. ## Public Edge API Endpoints - `GET https://cipherhouse-fil-receipts.pages.dev/api/health` — Engine status, specs, schemas & live x402 origin - `GET https://cipherhouse-fil-receipts.pages.dev/api/presets` — Curated x402 Base Mainnet USDC receipt batch presets & MCP schema - `GET https://cipherhouse-fil-receipts.pages.dev/api/mcp-schema` — JSON-RPC 2.0 / MCP `2025-11-25` tool definitions - `GET https://cipherhouse-fil-receipts.pages.dev/api/x402-live-spec` — Live probe of CipherHouse x402 Base USDC API (`cipherhouse-x402-api.pages.dev`) - `POST https://cipherhouse-fil-receipts.pages.dev/api/cid` — Deterministic CIDv1 encoder (`raw` / `dag-cbor`) - `POST https://cipherhouse-fil-receipts.pages.dev/api/car/pack` — Pack x402 receipts into CARv1 + Merkle proofs - `POST https://cipherhouse-fil-receipts.pages.dev/api/car/verify` — Cryptographically verify any base64 CARv1 archive - `POST https://cipherhouse-fil-receipts.pages.dev/api/merkle/verify` — Verify an RFC 6962 Merkle receipt inclusion proof ## CipherHouse Ecosystem Portals - Hub: https://cipherhouse-hq.github.io/ - Live x402 Base USDC API: https://cipherhouse-x402-api.pages.dev/ - Alerts Pass: https://cipherhouse-alerts.pages.dev/ - Sponsors: https://cipherhouse-sponsors.pages.dev/ - X: https://x.com/cipher__house - Contact: admin@ratingplay.cc