zcash: verifiable static chunk store — producer, zec.key.store, OHTTP static upstream (KSE-0193) #191

Merged
founder merged 2 commits from zcash-chunk-producer into main 2026-08-23 06:34:44 +00:00
Owner

KSE-0193 producer tranche.

services/zcash-chunks

  • zcash-chunks library: object format (compact / memos / frontier), ZIP 244 digest layering, header-anchored verifier (hash chain, merkle root, recomputed txids for every v5/v6 shielded tx, optional Equihash). No librustzcash outside the producer feature, so the wasm client can share the crate.
  • zcash-chunk-producer: Zebra JSON-RPC → content-addressed objects + Ed25519-signed manifest + tail.bin; rayon over 1,000-block ranges; every block self-checked against librustzcash (txid + each bundle digest) and run through the client verifier before it is written.
  • Tests: the 10 ZIP 244 transaction vectors and Zebra mainnet block fixtures (pre- and post-NU5) through extract → encode → decode → verify; tampering detection. Also tested end-to-end against the forge Zebra for ranges 0, 1000 and 1,690,000 (post-NU5).

Findings

  • NU6.3 “Ironwood” introduced v6 transactions (Orchard v6 + Ironwood bundle, new txid layering). Handled.
  • v4 shielded transactions remain valid through NU6.3 (ZIP 2003 removes them at NU7): no digests, reported as unverified, bound only by tree roots.

Forge

  • crane package zcash-chunk-producer (tests run in the build), key-store-zcash-chunk-producer.service (own user, chain disk, Nice 10), Zebra RPC cookie auth off (loopback only).
  • zec.key.store: Caddy file_server over /var/lib/key-store-chain/zcash/chunks, immutable caching for obj/*, 30 s for the manifest/tail, open CORS; DNS + ACME.

API

  • KEY_STORE_OHTTP_STATIC_UPSTREAMS: GET/HEAD-only, /v1/-only read-only upstreams for the OHTTP gateway; deploy-api sets zec.key.store=https://zec.key.store so chunk fetches ride the existing Oblivious Network relay. Unit test added. (Rides the next green deploy-api.)

Forge dry-activate of this branch runs before merge.

🤖 Generated with Claude Code

KSE-0193 producer tranche. ## `services/zcash-chunks` - **`zcash-chunks`** library: object format (compact / memos / frontier), ZIP 244 digest layering, header-anchored verifier (hash chain, merkle root, recomputed txids for every v5/v6 shielded tx, optional Equihash). No librustzcash outside the `producer` feature, so the wasm client can share the crate. - **`zcash-chunk-producer`**: Zebra JSON-RPC → content-addressed objects + Ed25519-signed manifest + `tail.bin`; rayon over 1,000-block ranges; every block self-checked against librustzcash (txid + each bundle digest) and run through the client verifier before it is written. - Tests: the 10 ZIP 244 transaction vectors and Zebra mainnet block fixtures (pre- and post-NU5) through extract → encode → decode → verify; tampering detection. Also tested end-to-end against the forge Zebra for ranges 0, 1000 and 1,690,000 (post-NU5). ## Findings - **NU6.3 “Ironwood” introduced v6 transactions** (Orchard v6 + Ironwood bundle, new txid layering). Handled. - **v4 shielded transactions remain valid through NU6.3** (ZIP 2003 removes them at NU7): no digests, reported as unverified, bound only by tree roots. ## Forge - crane package `zcash-chunk-producer` (tests run in the build), `key-store-zcash-chunk-producer.service` (own user, chain disk, Nice 10), Zebra RPC cookie auth off (loopback only). - `zec.key.store`: Caddy `file_server` over `/var/lib/key-store-chain/zcash/chunks`, immutable caching for `obj/*`, 30 s for the manifest/tail, open CORS; DNS + ACME. ## API - `KEY_STORE_OHTTP_STATIC_UPSTREAMS`: GET/HEAD-only, `/v1/`-only read-only upstreams for the OHTTP gateway; deploy-api sets `zec.key.store=https://zec.key.store` so chunk fetches ride the existing Oblivious Network relay. Unit test added. (Rides the next green deploy-api.) Forge dry-activate of this branch runs before merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
zcash: verifiable static chunk store — producer, zec.key.store, OHTTP static upstream (KSE-0193)
All checks were successful
Build: Apple / Check (SwiftLint) (pull_request) Successful in 21s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 27s
Build: Web / Build (Web) (pull_request) Successful in 36s
Build: Apple / Build (visionOS) (pull_request) Successful in 30s
Build: Apple / Build (iOS) (pull_request) Successful in 38s
Build: Apple / Build (macOS) (pull_request) Successful in 3m44s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 4m27s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
29623bb019
services/zcash-chunks: a Cargo workspace with the zcash-chunks library
(object format, ZIP 244 digest layering for v5 and NU6.3 v6/Ironwood
transactions, header-anchored verifier incl. Equihash; no librustzcash
outside the producer feature so the wasm client can share it) and the
zcash-chunk-producer forge binary (Zebra JSON-RPC → content-addressed
compact/memos/frontier objects, tail, Ed25519-signed manifest; rayon over
ranges; every block self-checked against librustzcash and the client
verifier before it is written). Tests run the ZIP 244 transaction vectors
and Zebra mainnet block fixtures through extract → encode → decode → verify,
plus tampering detection.

Forge: crane package, key-store-zcash-chunk-producer.service (own user,
chain disk), Zebra RPC cookie auth off (loopback only), zec.key.store Caddy
file server (immutable object caching, open CORS), DNS + ACME.

API: KEY_STORE_OHTTP_STATIC_UPSTREAMS — GET/HEAD-only read-only upstreams
for the OHTTP gateway so chunk fetches ride the Oblivious Network relay;
deploy-api sets zec.key.store.

Findings recorded in KSE-0193: v6 transactions are live (Ironwood), and v4
shielded transactions remain valid through NU6.3 (unverifiable by digest;
bound by tree roots).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
flake: keep zcash-chunks test fixtures in the crane source
Some checks failed
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 30s
Build: Web / Build (Web) (pull_request) Successful in 41s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 2m30s
Build: Apple / Build (macOS) (pull_request) Has been cancelled
Build: Apple / Build (iOS) (pull_request) Has been cancelled
Build: Apple / Build (visionOS) (pull_request) Has been cancelled
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been cancelled
Build: Linux / Build (Linux x86_64) (pull_request) Has been cancelled
453b026bd3
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
founder force-pushed zcash-chunk-producer from 453b026bd3
Some checks failed
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 30s
Build: Web / Build (Web) (pull_request) Successful in 41s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 2m30s
Build: Apple / Build (macOS) (pull_request) Has been cancelled
Build: Apple / Build (iOS) (pull_request) Has been cancelled
Build: Apple / Build (visionOS) (pull_request) Has been cancelled
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been cancelled
Build: Linux / Build (Linux x86_64) (pull_request) Has been cancelled
to 711812ab20
Some checks failed
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 5s
Deploy: API / Deploy (API) (push) Failing after 5s
Build: KaiOS / Build (KaiOS) (push) Successful in 22s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 27s
Build: Web / Build (Web) (pull_request) Successful in 36s
Build: Web / Build (Web) (push) Successful in 39s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 42s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 59s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 20s
Build: Apple / Check (SwiftLint) (push) Successful in 15s
Deploy: Web / Deploy (Web) (push) Successful in 2m54s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Successful in 37s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 3m33s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Apple / Build (iOS) (pull_request) Successful in 34s
Build: Apple / Build (visionOS) (pull_request) Failing after 27s
Build: Apple / Build (macOS) (push) Failing after 13s
Release: If Needed / Check (Release Needed) (push) Has been cancelled
Build: Apple / Build (macOS) (pull_request) Successful in 3m30s
Build: Linux / Build (Linux x86_64) (push) Successful in 3m17s
Build: Linux / Build (keystore-forge x86_64) (push) Has been skipped
Build: Apple / Build (visionOS) (push) Successful in 3m21s
Build: Apple / Build (iOS) (push) Successful in 3m41s
2026-08-23 06:34:42 +00:00
Compare
founder deleted branch zcash-chunk-producer 2026-08-23 06:34:44 +00:00
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!191
No description provided.