Terms and Conditions
- I agree to the Grant Agreement terms if funded
- I agree to Provide KYC information if funded above $50,000 USD
- I agree to disclose conflicts of interest
- I understand that this grant program is only eligible for completed work, as it is a retroactive grant program. Applications for planned or partially completed work will not be considered. All completed work will be verified and accepted by its intended users or their representatives, who will confirm that the outputs meet the required quality, functionality, and usability before the work is listed as an option for Coinholder voting.
- I agree that for any new open-source software, I will create a CONTRIBUTING.md file that reflects the high standards of Zcash development, using the
librustzcashstyle guides as a primary reference. - I understand when contributing to existing Zcash code, I am required to adhere to the project specific contribution guidelines, paying close attention to any merge, branch, pull request, and commit guidelines as exemplified in the librustzcash repository.
- I understand all grants are valued in USD but will be disbursed in Shielded ZEC. I acknowledge and accept that disbursement amounts may fluctuate based on the ZEC/USD exchange rate at the time of payment.
Application Owners (@octocat, @octocat1)
@0xOucan
Organization or Individual Name
0xOucan (individual), LeekWallet
Additional Team Members
- Name: 0xOucan
Role: Founder and CTO
Background: Fiscal and financial engineer. Nine years in crypto conferences, community and project management; now building software with AI agents. 17 hackathon wins.
Responsibilities: Development and communications
How did you learn about the Lockbox: Coinholder Retroactive Grants Program?
The Q4 2026 call for proposals on the Zcash Community Forum, and conversations at ZCon7.
Requested Grant Amount (USD)
$6,770
Category
Wallets
Project Summary
LeekWallet Zcash is an open-source DIY hardware wallet for Zcash, built from about $25 of generic parts (ESP32-S3), that verifies and signs shielded transactions as a PCZT signer (ZIP 374) and shows the user what it signs. It ships with a Zodl fork that adds hardware signing, a desktop and Android wallet, a Chrome extension, a CLI and a browser simulator, all released with signed checksums. Since then: an integration SDK (Rust, with Kotlin and Swift bindings) so other wallets can add the board, a public docs site, and a pre-ZIP for per-app storage keys derived by the signer.
Project Description
The problem. Holding shielded ZEC on a hardware device today means trusting a closed device or the computer you sign from. Few hardware signers support Orchard, and there was no open, cheap device that anyone can build, read end to end and verify.
What was built (completed and public):
- Board firmware (ESP32-S3, 128×128 OLED, rotary knob, one Cancel button). It holds the seed (BIP39, ZIP 32, unified addresses).
- Signs Ironwood (NU6.3) and Orchard spends and transparent P2PKH inputs (shielding), with memos.
- Works as a PCZT signer: it parses the PCZT, checks that the spends belong to its keys, recomputes the sighash, rebuilds the note and value commitments and the memo ciphertext, shows the outputs and memo, and returns only RedPallas spend-auth signatures (~110 B), bound to the SHA-256 of the exact bytes it reviewed.
- Signs from a compact PCZT view (~1.4 KB instead of ~2.8 KB).
- Address verification: it proves a displayed address, including a rotated diversified one, is its own (Orchard
pk_d = [ivk]·g_d, index recovered by FF1), and refuses foreign or mixed addresses. - Network guard: the board is set to mainnet or testnet and refuses requests for the other network.
- Links: USB serial, Bluetooth LE (an encrypted session: X25519, HKDF, ChaCha20-Poly1305, with a six-digit passkey), and SD card for air-gapped use.
- Two independent signers, C on the device and Rust on the host, cross-checked against shared test vectors generated from librustzcash.
- Zodl fork (MIT, two apps: mainnet and testnet). A hardware-signer account whose keys stay on the board, signed over USB or Bluetooth, with "Verify on device". Release 3.17.0-leek.2.
- Zcash LeekWallet app (Tauri 2: Linux, Windows, macOS, Android). A full light wallet:
- syncs, sends and shields with signatures from the board;
- supports watch-only wallets;
- swaps ZEC through NEAR Intents.
- Chrome extension: librustzcash in WebAssembly, the wallet stored in OPFS, the board over Web Serial and Web Bluetooth.
zeczCLI and Rust libraries (zecz-core,leek-device,leek-android) that all the companions share.- Board simulator and test vectors: the firmware's own protocol and signers on a PTY for hardware-free testing. Keys and PCZTs, both valid and refused, generated from librustzcash.
- Website with a simulated board you can wire, unlock and sign with in the browser, verify-first downloads, and a web flasher.
- Release v0.1.0 "Sacbeh":
- firmware (reproducible build), desktop bundles, Android APK and Chrome extension;
- a
SHA256SUMSsigned with SSH, plus signed git tags.
- Real transactions signed on the board: testnet over USB, Bluetooth and SD, and the first mainnet sends, a shield, and a ZEC → USDC swap through NEAR Intents.
- Integration SDK (after the hackathon, 2026-10-31 to 2026-11-03). Motivated by conversations with the Zodl, Zingo and Zillions teams: one SDK instead of a separate integration per wallet.
leek-zcash(Rust): preflight, the signer view,sign_pczt,apply_zsig(every signature verified before it is applied), persisting the signed result and txid before broadcast, a check that the mined transaction is the one signed, typed errors with stable codes.leek-zcash-ffi: UniFFI bindings for Kotlin (Android) and Swift (iOS); the app owns the USB / Bluetooth transport; progress and cancel.
- Privacy and safety on the board (same period):
- the board asks "Share view key?" before releasing the UFVK; a fingerprint-only call identifies the board without it;
- the six-digit pairing code is required on every connection (no remembered hosts);
- an encrypted request is never answered in plaintext, even when the session ends mid-request;
- transactions with duplicate action keys (
rk) are refused; - an audit of the SD-card and flash writes, with power cuts simulated after every write; two high findings fixed (an unreadable vault no longer treated as empty; a crash-safe PIN key migration).
- Pre-ZIP "Hardware-Wallet App Storage Keys": the signer derives a per-app key (ZIP 32 Registered key derivation) so a light wallet can keep its UFVK and database encrypted, released only after an OK on the board; implemented in the firmware and the SDK, with test vectors. Draft.
- Docs site: https://zcash.leekwallet.xyz/docs, live: getting started, security and limits, an integration guide, the simulator, and a reference imported from the repositories (firmware, protocol, audits, SDK), with offline search.
- Outreach: a demo video, a website walkthrough, showing the board in person at ZCon7, and forum write-ups (security discussion on supply chain and side channels, and a project update). Videos: docs tour, SDK integration, pre-ZIP in 60 seconds.
Not claimed here: work after November 3 is not part of this application. That includes the NU7 update (on main, not yet released or tested on a board), the colour screen kit and the OPTIGA Trust M bring-up, which are still in progress.
Status, stated honestly:
- The project is experimental and not audited.
- Flash encryption and secure boot are deliberately off (no eFuses burned), so physical access to the board can read its flash. This is documented in the README, with the stateless and SD-card modes as mitigations.
Technical Approach (how you did it)
- Starting point (not billed here): my own earlier open-source ESP32 hardware wallet, LeekWallet. The tag
pre-zecathon(2026-09-23) marks it. From it I reused the screen, buttons, PIN, encrypted vault and the USB/Bluetooth transport. Its EVM code was removed; everything listed above for Zcash was written from 2026-10-14 (git diff pre-zecathon..main: 355 commits in the main repository, 48 in the Zodl fork). - Firmware: ESP-IDF 5.5 through PlatformIO. The Zcash code is in
firmware/src/zcash-*.c, a C signer incomponents/zsign-c, and a Rust signer incomponents/zsign-rust. Host-side unit tests build the firmware's C code for Linux. - Host: Rust on librustzcash for keys, sync (lightwalletd), PCZT construction (ZIP 374), proving and the wallet database.
leek-devicedefines the device client and the.zsigformat.leek-androidis the JNI library loaded by the Zodl fork. - Apps:
- Tauri 2 for desktop and Android;
- Kotlin modules in the Zodl fork;
- an MV3 Chrome extension with a Rust → WebAssembly engine.
- Verification and release:
- shared test vectors (valid, compact, mainnet, transparent, refused);
- CI on three desktop operating systems;
- a reproducible firmware build;
- a
SHA256SUMSsigned with SSH, and signed tags.
- Timeline:
- 2026-10-14: work starts;
- the first testnet signature over USB, then Bluetooth, SD and the compact PCZT;
- mainnet sends and a shield;
- Chrome over USB and Bluetooth;
- NEAR swaps;
- v0.1.0 "Sacbeh";
- Zodl fork 3.17.0-leek.2, which fixes R8 minification breaking the JNI callbacks;
- website and docs site (2026-10-30).
- Tools disclosure: I built this with heavy help from AI coding assistants (Claude, through Claude Code, and Codex). I directed the design, reviewed the code, and tested and flashed everything on real hardware myself. The test vectors and the two independent signers exist precisely so that correctness does not rest on any one implementation.
Time Period of Work Completion
Q4 October 14, 2026 - November 3, 2026
Total Budget (USD)
$6,770
Budget Breakdown
- Compensation:
- $(USD): 6,300
- Justification: 60 hours (15 working days × 4 hours, 2026-10-14 to 2026-11-03) at $105 per hour, my rate as a full-stack developer, by one developer who also did the design, releases, documentation and outreach. Only 4 hours a day are claimed; additional hours during the hackathon are not, and neither is the earlier Ethereum LeekWallet base.
- Firmware: PCZT review and signing (Ironwood, Orchard, transparent), compact PCZT, address verification, network guard: 18 h, $1,890
- Rust libraries (
zecz-core,leek-device,leek-android),zeczCLI, test vectors, board simulator: 9 h, $945 - Zodl fork: hardware-signer account, mainnet and testnet apps, the 3.17.0-leek.2 fix: 8 h, $840
- Zcash LeekWallet app (desktop and Android) with NEAR Intents swaps: 6 h, $630
- Chrome extension (librustzcash in WebAssembly, Web Serial and Web Bluetooth): 5 h, $525
- Release engineering (reproducible firmware, signed sums), website and simulator, docs site, videos: 6 h, $630
- Integration SDK (
leek-zcash, Kotlin/Swift bindings), the board's privacy and safety changes, the storage-write audit, the pre-ZIP and the live docs: 8 h, $840
- Technology/Software:
- $(USD): 200
- Justification: One month of each of the two AI coding assistant subscriptions used for the work: Claude ($100) and Codex ($100).
- Infrastructure/Hosting:
- $(USD): 20
- Justification: The VPS hosting zcash.leekwallet.xyz and the release downloads ($120 a year, $10 for the month of the work) and the domain ($10 a year). Cloudflare is on the free tier.
- Services/Contractors:
- $(USD): 0
- Justification: N/A
- Other:
- $(USD): 250
- Justification: Hardware for the LeekWallet lab: prototype boards, candidate modules (screens, encoders, buttons), test parts, soldering supplies. Travel is not claimed.
- Total $(USD): 6,770
Previous Funding
No
Previous Funding Details
None
Other Funding Sources
No
Other Funding Sources Details
None
Success Metrics
- A working, open Zcash hardware signer that has signed real transactions:
- testnet over USB, Bluetooth and SD;
- mainnet sends, a shield, and a NEAR Intents swap.
Testnet txids are listed in the README, for example
1daaff6366fccbd6ea50f137a975a5013b2632083446b5220205ad16057b1ef0(the first, over USB).
- Hardware signing inside a mainstream Zcash wallet: the Zodl fork pairs with the board and signs on mainnet and testnet.
- Accessibility: about $25 of generic parts, with no vendor that knows the buyer is getting a wallet. Anyone can try it without hardware through the browser simulator.
- Verifiability:
- reproducible firmware;
- signed checksums and tags;
- shared test vectors;
- two independent signer implementations.
- Community:
- showed it in person at ZCon7;
- conversations about possible integrations with Zodl, Zingo and Zillions;
- the earlier Ethereum LeekWallet, which this firmware grew from, is one of four DIY signers built with AI agents on a slide shared by Web3Privacy Now from the BTChip x zknox (Ledger) session at Ethereum Cypherpunk Congress 3;
- public demo and walkthrough videos;
- the pre-ZIP is in open discussion on the forum: feedback from Konclave's developer and from Hanh (Ywallet) has already led to a revised draft, and the open question of whether it should exist at all is being discussed in public.
- Downloads: 32 downloads of the v0.1.0 release files and 19 of the Zodl fork's APKs (3.17.0-leek.1 and leek.2), as counted by GitHub on 2026-11-09. It's early and small, and I report it as it is. Demo video, 2 minutes on real hardware: https://www.youtube.com/watch?v=8F6_8AhsnAA
Proof of completion
- Repository/Commit:
- leekwallet-zcash - firmware, apps, libraries, CLI, simulator, vectors (Apache-2.0); the Zcash work is
pre-zecathon..main - leekwallet-zcash-android - Zodl fork with hardware signing (MIT)
- leekwallet-zcash - firmware, apps, libraries, CLI, simulator, vectors (Apache-2.0); the Zcash work is
- Publication:
- Documentation and standards:
- Docs site
- Pre-ZIP draft: App Storage Keys and its forum thread
- SDK:
host/leek-zcashandhost/leek-zcash-ffi(the exact code submitted to ZECATHON is at the tagzecathon-submission) - CONTRIBUTING.md, following the librustzcash guide
- Deployment/Release:
- v0.1.0 "Sacbeh" - firmware, desktop, Android, Chrome extension, signed SHA256SUMS
- Zodl fork v3.17.0-leek.2 - mainnet and testnet APKs, signed SHA256SUMS
- Other Evidence:
- Testnet transactions signed on the board, listed in the README
Conflict of Interest Disclosure
None. I am not affiliated with FPF, the Keyholder Organizations, ZCG or the Zcash Foundation.
Community Forum Posting
- I understand it is my responsibility to post a link to this issue on the Zcash Community Forums after this application has been submitted so the community can give input. I understand this is required in order for the community to discuss and vote on this grant application. Note: If you are unable to post on the forum (for example, due to new user restrictions), please leave a comment below, and we will adjust your posting permissions.