FILECOIN R&D PoC
CIDv1 raw/dag-cbor
CARv1 (.car)
WebCrypto AES-256-GCM
MCP 2025-11-25 stdio
Verifiable AI-Agent x402 Payment Receipt & Encrypted IPLD/CARv1 Archive
Turn HTTP 402 Base Mainnet USDC agent settlements + API response hashes into deterministic,
tamper-evident IPLD DAG-CBOR + CARv1 (.car) archives with
client-side WebCrypto AES-256-GCM encryption and RFC 6962 Merkle inclusion proofs.
Zero npm dependencies. Runs 100% locally in-browser, on Cloudflare Pages Edge, or offline via CLI/MCP.
Active Batch Root CIDv1
—
Merkle Batch Root (SHA-256)
—
CARv1 Size / Fr32 Piece
—
Receipts & USDC Settled
—
x402 Payment Receipt Batch Input
Select a preset or customize Base Mainnet USDC x402 receipts JSON
CARv1 Cryptographic Verification Verdict
Validates header v1, every block CIDv1 sha2-256 digest & Tag 42 IPLD links
VERIFIED_CAR_V1
Ready
CAR SHA-256
—
Verified Blocks
—
Filecoin Fr32 Padded Piece
—
Dangling IPLD Links
0
| Block Role | Codec | Bytes | CIDv1 (sha2-256) | Integrity |
|---|
Client-Side WebCrypto AES-256-GCM Archive Encryption
PBKDF2-SHA256 (210,000 iters) · 128-bit GCM auth tag · AAD bound to rootCid & merkleRoot
Ciphertext CIDv1 (raw 0x55)
—
Cipher / KDF
AES-256-GCM / PBKDF2-SHA256
Plaintext -> Ciphertext Size
—
Ciphertext Fr32 Piece
—
Client-Side Decrypt & End-to-End CARv1 Re-Verifier
Checks Ciphertext CIDv1 -> AES-GCM Tag + AAD -> Full Decrypted CARv1 Block Graph
AWAITING ENCRYPTION
Click "Encrypt Active CARv1 Locally" to generate an AES-256-GCM envelope.
{ "status": "idle" }
Batch Receipts & Domain-Separated Merkle Tree
RFC 6962 leaf prefix (0x00) & internal node prefix (0x01) — second-preimage resistant
Batch Merkle Root (SHA-256)
—
| # | Endpoint & Amount | Receipt CIDv1 | Action |
|---|
Receipt Inclusion Proof Audit Trace
Independently verify any single x402 receipt without downloading other receipts
MERKLE_PROOF_VALID
Select a receipt to inspect its sibling path.
Pure-JS Deterministic CIDv1 Generator
RFC 4648 base32 · sha2-256 (0x12) · raw (0x55) & canonical DAG-CBOR (0x71)
Zero-Dep CLI, MCP 2025-11-25 stdio & Live x402 Integration
Copy-paste commands for AI agents, CI pipelines, and Filecoin R&D reviewers
# 1. Deterministic CIDv1 (matches IPFS empty raw vector)
node cli.mjs cid "" --codec raw --json
# 2. Pack x402 Base USDC receipts into CARv1 + Fr32 piece metadata
node cli.mjs pack --preset base-x402-batch-3 --out x402-batch.car
# 3. Verify every block CIDv1 & IPLD Tag 42 link offline
node cli.mjs verify-car x402-batch.car --json
# 4. Run JSON-RPC 2.0 / MCP 2025-11-25 stdio server (5 tools)
node cli.mjs stdio
# 5. Cloudflare Pages Edge API
curl -s https://cipherhouse-fil-receipts.pages.dev/api/health
curl -s -X POST https://cipherhouse-fil-receipts.pages.dev/api/car/pack \
-H "content-type: application/json" \
-d '{"preset":"base-x402-batch-3"}'
Click "Probe Live CipherHouse x402 API" to query /api/x402-live-spec.