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)
@valardragon
Organization or Individual Name
Valargroup
Additional Team Members
- name: Dev Ojha
github: Valardragon
role: Specification lead, Project Manager, Engineer
responsibilities: Research and design of the scheme, engineering, and performance.
- name: Adam Tucker
github: czarcas7ic
role: Protocol and Wallet Engineer
responsibilities: Client-library development and hardening; ZODL, Vizor,
Keystone, and Ironwood integration; recovery and persistence work; and
development of the custody-voter companion application.
- name: Roman Akhtariev
github: p0mvn
role: Protocol and Infrastructure Engineer
responsibilities: Core voting protocol, zero-knowledge circuits, vote chain,
private nullifier infrastructure, specifications, testing, deployment,
and production operations.
- name: Greg Nagy
github: greg0x
role: Protocol and Infrastructure Engineer
responsibilities: Vote-chain and client-library engineering, integration,
reliability, testing, deployment, and production operations.
How did you learn about the Lockbox: Coinholder Retroactive Grants Program?
Valargroup is an active community member
Requested Grant Amount (USD)
$840,000
Category
Research & Development
Project Summary
This application requests retroactive compensation for Valargroup’s
- design
- implementation
- external audits and bug bounties
- wallet integration support
- deployment, and operation of a new shielded coinholder voting system.
- Infrastructure costs throughout development
The work replaced the prior separate-application workflow with an open-source stack comprising shielded voting circuits, a reusable wallet library, the first production deployment of Private Information Retrieval (PIR) for Zcash, a dedicated vote chain, production infrastructure, ZODL and Vizor integrations, Keystone signing support, and a companion custody-voter application.
The resulting system allows eligible ZEC holders to vote without moving their funds or entering their wallet seed into a separate voting application. It also creates a path for hardware-wallet users and customers whose ZEC remains under third-party custody.
Project Description
Hanh’s Coin Voting 2.0 established an important foundation for private, coin-weighted Zcash polling. However, its separate voting application created a difficult user workflow. Users were advised to move funds before importing a seed into third-party software, and hardware-wallet and ordinary wallet integrations remained limited. These usability and custody limitations were discussed publicly in the original Valargroup design thread. Valargroup designed a replacement architecture in which voting is integrated into the user’s existing wallet. The wallet proves that eligible shielded notes existed at a snapshot height, delegates their voting authority to a separate voting hotkey, and casts private votes without spending or transferring the underlying ZEC. This required substantially more than a replacement user interface. Valargroup delivered:
- Three Halo2 voting circuits.
- A reusable Rust voting library and wallet lifecycle.
- Deployment of a DKG, and threshold encryption/decryption
- A dedicated application-specific blockchain that verifies proofs and coordinates private votes.
- Private Information Retrieval infrastructure for nullifier non-membership.
- Authenticated wallet configuration and service discovery.
- ZODL, Vizor, Keystone and Ledger integrations.
- External security reviews and bug bounties
- Ironwood note and signing compatibility.
- A companion custody-voter application for customers whose ZEC remains controlled by a custodian.
Technical Approach (how you did it)
- Separate voting authority from spending authority. Eligible ZEC authorizes an independent governance hotkey through a synthetic, non-spending delegation flow.
- Prove eligibility privately. Halo2 proofs establish that eligible shielded notes existed at the snapshot without disclosing the notes or their ordinary Zcash nullifiers.
- Query spent-state privately. PIR lets a wallet obtain the required nullifier information without revealing its query to the service.
- Prevent double voting. The vote chain verifies proofs and rejects reused governance authority.
- Hide balances and selections. Voting weight is represented through blinded commitments and encrypted shares rather than publishing a wallet’s exact balance.
- Distribute execution. Multiple vote-chain operators can receive and verify ballots, while the tally uses a distributed key ceremony and verified share reveals.
- Integrate at the wallet boundary. Wallets retain seed custody, network transport, signing UI, and hardware-wallet communication while the reusable Rust library owns the cryptographic voting lifecycle.
- Make interrupted votes recoverable. Signed submissions and confirmation state are persisted before network submission so wallet restarts do not create conflicting votes.
- Support split custody. The custody handoff exports only voting authority to the customer’s independently controlled voting hotkey. It does not export custody seeds or spending authority.
Completed work and timeline
February 3–8: public design and security review. Valargroup published the initial replacement design, gathered feedback from Hanh, Zooko, Nuttycom, and other Zcash contributors, and refined it into a two-stage delegation and voting design using an independent governance hotkey. The updated design removed the need to expose a user’s real transaction nullifier or move their funds.
February–March: specification and reusable architecture. The team published the Shielded Vote Book, opened a draft PIR for Nullifier Exclusion Proofs ZIP, opened a draft Shielded Voting Protocol ZIP, and later opened a draft Shielded Voting Wallet API ZIP.
March onward: cryptographic circuits and wallet library. Valargroup implemented the three proof stages in voting-circuits:
- Delegation from eligible shielded notes into Vote Authority Notes.
- Private vote construction using Vote Authority Notes.
- Verified share reveal for tallying.
The higher-level
zcash_votinglibrary made those circuits usable by wallets. It handles snapshot eligibility, proof construction, governance PCZTs, voting hotkeys, tree synchronization, signed submission recovery, SQLite persistence, authenticated configuration, and custody capability handoff. March onward: first production PIR deployment. Thevote-nullifier-pirservice lets wallets obtain nullifier non-membership information without revealing which nullifier they are querying. Valargroup adapted and deployedypirfor the high-performance private-query layer, creating the first production deployment of PIR for a Zcash wallet. March–May: dedicated vote chain. Valargroup builtvote-sdk, a Cosmos SDK application chain that verifies the Halo2 proofs, rejects reused voting authority, coordinates encrypted ballots, manages validator key ceremonies, and produces verifiable results. May: secure voting-round coordination and endorsement. Valargroup spent substantial time defining the operational voting process so that multi-party coordination and endorsement of voting rounds would be streamlined and secure. This included developing a separate administration and authentication system through which wallets can validate round attestations and endorsements from authorized vote coordinators. May 16 onward: ZODL integration. Josh Swihart publicly announced the ZODL integration. ZODL subsequently released Zodl 3.5.0 with in-wallet shielded coinholder polling, explicitly crediting collaboration with Valargroup. ZODL later confirmed that the Android release completed the cross-platform launch. This was the first shielded coinholder voting flow integrated directly into a Zcash mobile wallet. It supported both software-wallet funds and ZEC secured by Keystone, with review and signing performed on the hardware device. May 23 onward: production operation. The final productionzvote-1chain produced its genesis block on May 23 and had no downtime through August 14, continuously producing blocks for 83 days. As of August 14, the production configuration listed 11 vote-chain endpoints representing 11 operators and three PIR endpoints operated by Valargroup and Stardust. May 31–June 4: Vizor integration. The reusable stack was also integrated into Vizor through merged upstream work covering the Rust foundation, voting API, generated Dart bridge, combined integration, and wallet UI and orchestration. Security reviews. Valargroup incurred $150,000 in aggregate external audit and security-review expenses. These expenses are not included in any other Valargroup grant application. FractalDevelopment audited the Shielded Vote SDK at commit73d4cf82from March 18–27, covering ten areas across the Cosmos application, FFI boundary, tallying, authorization, threshold ceremony, helper-server privacy, persistence, and general correctness. Its final report records 13 resolved findings, two accepted risks, and no open findings. The review explicitly excluded the internal cryptographic correctness and soundness of the Halo2 circuits, RedPallas signature scheme, and Poseidon hash function. Zellic separately reviewed the YPIR component. Ouicate separately reported bugs in the DKG, which are patched and have been awarded bug bounties. No report should be described as an audit of the entire voting system. Vendor-specific prices are intentionally not disclosed, and most were ZEC payouts at far lower prices. June–August: maintenance and Ironwood compatibility. When Ironwood changed the active Zcash note format and wallet stack, Valargroup continued maintaining the voting system. The circuits and client library were updated for Ironwood notes, and Vizor accepted the corresponding Ironwood delegation update and batched Keystone voting signatures. August: faster mobile proving and many-note signing. ZIP 318’s Orchard-to-Ironwood migration can leave users with many canonical-denomination Ironwood notes, increasing the number of delegation bundles needed to use all eligible voting weight. Valargroup reduced delegation ZKP1 proving time on iPhone by 22.9%, from 1.842 seconds to 1.421 seconds, in the K12 delegation optimization, and reduced ZKP2 proving time by 31.0% in warmed release benchmarks in the K11 vote-proof optimization. For Keystone users, Vizor’s merged batch-PCZT integration places all pending delegation PCZTs into the existing size-partitioned QR signing flow and uses compact signature-only responses, reducing one-at-a-time signing overhead for wallets with many notes. August: PIR performance, bandwidth reduction, and security hardening. Valargroup replaced the depth-25, two-query design with a single-query 12+7 layout sized for Ironwood. This removed the second encrypted PIR tier and its sequential network round trip, reducing query bandwidth, storage, compute, and latency while shrinking the raw PIR database from approximately 3 GiB to 48 MiB. Valargroup then added support for a 4096-degree YPIR profile, deployed it in the production configuration, and bound that parameter into the authenticated client-server layout handshake. August 14: custody-voter companion application. Valargroup releasedcustody-voter, a desktop client that works with the same voting chain andzcash_votinglibrary. It is an additional client of the system, not the final deliverable or a separate voting protocol. A custodian retains control of the customer’s ZEC while the customer generates an independent voting hotkey, imports a narrowly scoped delegation capability, and casts private votes. Recovery data contains voting state and voting keys, not the custodian’s wallet seed or funds. The completed work is documented in the merged initial application PR, hardening PR, and downloadable v1 macOS release. September 18: Integration of ledger signing. The libraries needed some work to accomodate edge cases in Ledger's firmware, and these were released in time for the September vote. September: Significant reworks in the wallet library state machines to improve performance, and state management quality October: Security patching for MPTCP issues, etc. November: PIR infrastructure improvements around auto-scaling as Ironwood's transaction count and database massively grew.
There is ongoing work for supporting a new "delegation circuit" in voting and libraries. That is not included as part of this grant request.
Time Period of Work Completion
Feb 3 2026 - Nov 10th 2026
Total Budget (USD)
$840000
Budget Breakdown
- Compensation:
- $(USD): 615,000
- Justification: Completed engineering, product, design, QA, release, and operations work for voting. (3 senior full stack engineers, 1 senior frontend engineer, cumulative 104 person-work-weeks based on 40-hour work-week. A 60 hour person week is accounted as 1.5 work-weeks)
- Technology/Software:
- $(USD): 10,000
- Justification: AI auditing costs
- Infrastructure/Hosting:
- $(USD): 40,000
- Justification: PIR servers, and various GPU's throughout development, amongst multiple testnet voting chains.
- Services/Contractors:
- $(USD): 150000
- Justification: External audits and bug bounties, several of which were denominated in ZEC so now bear a higher cost.
- Other:
- $(USD): 25000
- Justification: Travel and expenses as we repeatedly flew to New York and Denver for IRL collaboration with other teams during this work.
- Total $(USD): 840,000
Previous Funding
Yes
Previous Funding Details
- Building of Ironwood in the consensus code, unrelated to this
- Retro-active payment for audits of Ironwood
Other Funding Sources
No
Other Funding Sources Details
No response
Success Metrics
Your voting on it right now :)
- The difficult separate-app workflow was replaced. Users can vote from an integrated wallet without moving their ZEC or entering their seed into separate voting software.
- **Voting on a record high
- The first in-wallet shielded coinholder voting flow shipped. ZODL publicly released the integration on iOS and Android and attributed the protocol work to Valargroup.
- Multiple wallets use the stack. Vizor merged the Rust, FFI, Dart, UI, Ironwood, Keystone and Ledger integration work.
- A reusable open-source implementation exists. The public stack includes circuits, client libraries, vote chain, PIR services, protocol documentation, and authenticated configuration.
- Production infrastructure operated without downtime. The production vote chain continuously produced blocks for 174 days from genesis through November 13, with 15 vote-chain endpoints representing 15 operators and four PIR endpoints across three operators.
- The first production PIR deployment for a Zcash wallet shipped and was hardened. Four configured PIR endpoints let wallets retrieve nullifier non-membership information without revealing which nullifier they query.
- Security-critical components received external review. FractalDevelopment’s Shielded Vote SDK report and Zellic’s YPIR report are public, with each report’s scope stated explicitly. There was a bug bounty, with bounties awarded.
- The system survived protocol changes. Valargroup updated voting for Ironwood notes and retained Keystone compatibility.
- RIA-compliant custodian support. The custody-voter companion client allows a custodian to retain control of the customer’s ZEC while delegating only voting authority to the customer.
- Voting is fast. The last vote had a record high 37 questions, and thus required 600 ZKP's per user. The client side portion was done very quickly on optimized software stacks.
Proof of completion
Protocol and reusable software
- Shielded Vote Book
voting-circuitszcash_voting- PIR for Nullifier Exclusion Proofs ZIP
- Shielded Voting Protocol ZIP
- Shielded Voting Wallet API ZIP
Chain, privacy infrastructure, and operations
vote-sdkvote-nullifier-pirypircustody-voter- Production configuration
- Production genesis
- Current production block
External integration and acceptance
- ZODL’s Valargroup collaboration announcement
- Josh Swihart’s public integration announcement
- ZODL cross-platform release confirmation
- Vizor integrated voting stack
- Vizor voting UI
- Vizor Ironwood voting update
- Vizor Keystone batch signing
Security reviews
Conflict of Interest Disclosure
- Dev Ojha is a small angel investor in v12, a Zellic product. Zellic performed the YPIR review. This relationship is disclosed even though the engagement was paid and vendor-specific pricing remains confidential.
- The integrations were collaborative. ZODL, Chainapsis, Vizor, Keystone, validators, and PIR operators produced independent work that is acknowledged and excluded from Valargroup’s claimed scope.
- The previous implementation is a comparator. Hanh’s grants are cited only as public valuation comparators. This application does not claim Hanh’s implementation or maintenance work.
- Project Tachyon team members audited the circuits, however that was done at 0 cost and is not included in any billing
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.