zcash wallet core: encrypted wallet over verified chunks + ceremony spend path (KSE-0194 tranche 2) #208

Merged
founder merged 2 commits from zcash-wallet-core into main 2026-08-23 23:39:13 +00:00
Owner

crates/zcash-wallet-core

  • Encrypted wallet DB: zcash_client_sqlite 0.22 on a sqlite3mc connection (raw 32-byte page key from the record hierarchy; refuses codec-less builds unless ZWC_ALLOW_PLAINTEXT=1). Delivered by a [patch.crates-io] libsqlite3-sys shim whose bundled C is the SQLite3MultipleCiphers 2.5.0 amalgamation (vendor/, MIT) — every bundled SQLite in the workspace becomes codec-capable. Tests prove key/wrong-key/no-key and that the file has no plaintext SQLite header.
  • Import ceremony: BIP-39 phrase → import_account_hd with AccountBirthday::from_parts built from our verified layer-1b state (Sapling/Orchard/Ironwood frontiers). Seed zeroized; only the UFVK persists.
  • Scanning: WalletSyncer = layers 1+1b+checkpoints, then scan_cached_blocks with per-block tree sizes from BlockRoots (Ironwood included).
  • Spend path: propose (viewing keys, ZIP 317) + sign_and_store (phrase in, Orchard + Sapling provers, raw txs out, zeroized) — the ceremony-scoped FFI shape, no key handles.

zcash-chunks

  • layer2: embedded mainnet checkpoints (from the full verified genesis run) + tip-agreement policy, enforced inside the Syncer.

CLI

zcash-wallet init/import/sync/balance/propose/send — the demo path against zec.key.store.

Forge dry-activate before merge (crane now vendors vendor/ and builds the workspace incl. the Orchard circuit).

🤖 Generated with Claude Code

## `crates/zcash-wallet-core` - **Encrypted wallet DB**: `zcash_client_sqlite` 0.22 on a sqlite3mc connection (raw 32-byte page key from the record hierarchy; refuses codec-less builds unless `ZWC_ALLOW_PLAINTEXT=1`). Delivered by a `[patch.crates-io]` **libsqlite3-sys shim** whose bundled C is the SQLite3MultipleCiphers 2.5.0 amalgamation (`vendor/`, MIT) — every bundled SQLite in the workspace becomes codec-capable. Tests prove key/wrong-key/no-key and that the file has no plaintext SQLite header. - **Import ceremony**: BIP-39 phrase → `import_account_hd` with `AccountBirthday::from_parts` built from our verified layer-1b state (Sapling/Orchard/Ironwood frontiers). Seed zeroized; only the UFVK persists. - **Scanning**: `WalletSyncer` = layers 1+1b+checkpoints, then `scan_cached_blocks` with per-block tree sizes from `BlockRoots` (Ironwood included). - **Spend path**: `propose` (viewing keys, ZIP 317) + `sign_and_store` (phrase in, Orchard + Sapling provers, raw txs out, zeroized) — the ceremony-scoped FFI shape, no key handles. ## `zcash-chunks` - `layer2`: embedded mainnet checkpoints (from the full verified genesis run) + tip-agreement policy, enforced inside the `Syncer`. ## CLI `zcash-wallet init/import/sync/balance/propose/send` — the demo path against `zec.key.store`. Forge dry-activate before merge (crane now vendors `vendor/` and builds the workspace incl. the Orchard circuit). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
zcash wallet core: encrypted zcash_client_sqlite wallet over verified chunks, ceremony spend path (KSE-0194 tranche 2)
Some checks failed
Build: Web / Build (Web) (pull_request) Successful in 39s
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 43s
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: Apple / Check (SwiftLint) (pull_request) Has been cancelled
Build: Linux / Build (Linux x86_64) (pull_request) Has been cancelled
fa168fb4a4
crates/zcash-wallet-core: the wallet DB is zcash_client_sqlite 0.22 on a
sqlite3mc-encrypted connection (raw 32-byte page key from the record
hierarchy; refuses codec-less builds), delivered by a [patch.crates-io]
libsqlite3-sys shim whose bundled C source is the SQLite3MultipleCiphers
2.5.0 amalgamation (vendor/, MIT). Import ceremony derives the account from
a BIP-39 phrase against a verified layer-1b birthday state
(AccountBirthday::from_parts of our frontiers — Sapling/Orchard/Ironwood);
WalletSyncer verifies each compact object (layers 1+1b+checkpoints) and
scans it via scan_cached_blocks with per-block tree sizes from BlockRoots;
the spend path is propose (viewing keys) + sign_and_store (phrase in,
ZIP 317 fees, Orchard circuit + Sapling Groth16 provers, raw txs out,
everything zeroized) — the ceremony-scoped FFI shape.

zcash-chunks: layer2 module (embedded mainnet checkpoints from the full
verified run + tip-agreement policy) wired into the Syncer; chain state
exposes frontiers and per-block tree sizes.

zcash-wallet CLI (dev): init / import / sync / balance / propose / send
against any chunk publisher.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
flake: keep vendor/ real in the crane dummy source (sqlite3mc shim build.rs)
Some checks failed
Build: KaiOS / Build (KaiOS) (pull_request) Successful in 24s
Build: Web / Build (Web) (pull_request) Successful in 36s
Build: Apple / Check (SwiftLint) (pull_request) Failing after 4m5s
Build: Apple / Build (macOS) (pull_request) Has been skipped
Build: Apple / Build (iOS) (pull_request) Has been skipped
Build: Apple / Build (visionOS) (pull_request) Has been skipped
Deploy: API / Deploy (API) (push) Failing after 3s
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 4s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 4m5s
Release: If Needed / Check (Release Needed) (push) Successful in 5s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Namespace: Build Images / Refresh Linux runner image (push) Successful in 6s
Build: Apple / Check (SwiftLint) (push) Failing after 13s
Build: Apple / Build (macOS) (push) Has been skipped
Build: Apple / Build (iOS) (push) Has been skipped
Build: Apple / Build (visionOS) (push) Has been skipped
Build: Web / Build (Web) (push) Failing after 10s
Build: KaiOS / Build (KaiOS) (push) Failing after 10s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Successful in 43s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 1m7s
Deploy: Web / Deploy (Web) (push) Has been cancelled
Build: Linux / Build (Linux x86_64) (push) Successful in 4m58s
Build: Linux / Build (keystore-forge x86_64) (push) Has been skipped
bb881f9acc
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
founder deleted branch zcash-wallet-core 2026-08-23 23:39:13 +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!208
No description provided.