### Terms and Conditions
- [x] I agree to the [Grant Agreement](https://9ba4718…c-5c73-47c3-a024-4fc4e5278803.usrfiles.com/ugd/9ba471_f81ef4e4b5f040038350270590eb2e42.pdf) terms if funded
- [x] I agree to [Provide KYC information](https://9ba4718c-5c73-47c3-a024-4fc4e5278803.usrfiles.com/ugd/9ba471_7d9e73d16b584a61bae92282b208efc4.pdf) if funded above $50,000 USD
- [x] I agree to disclose conflicts of interest
- [x] I agree to adhere to the [Code of Conduct](https://forum.zcashcommunity.com/t/zcg-code-of-conduct/41787) and [Communication Guidelines](https://forum.zcashcommunity.com/t/zcg-communication-guidelines/44284)
- [x] I understand all milestone deliverables will be validated and accepted by their intended users or their representatives, who will confirm that the deliverables meet the required quality, functionality, and usability for each user story.
- [x] 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 [`librustzcash` style guides](https://github.com/zcash/librustzcash/blob/main/CONTRIBUTING.md#styleguides) as a primary reference.
- [x] 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](https://github.com/zcash/librustzcash/blob/main/CONTRIBUTING.md#merge-workflow), [branch](https://github.com/zcash/librustzcash/blob/main/CONTRIBUTING.md#branch-history), [pull request](https://github.com/zcash/librustzcash/blob/main/CONTRIBUTING.md#pull-request-review), and [commit](https://github.com/zcash/librustzcash/blob/main/CONTRIBUTING.md#commit-messages) guidelines as exemplified in the `librustzcash` repository.
- [x] I agree to post request details on the [Community Forum](https://forum.zcashcommunity.com/c/grants/33)
- [x] I understand it is my responsibility to post a link to this issue on the [Zcash Community Forums](https://forum.zcashcommunity.com/c/grants/33) after this application has been submitted so the community can give input. I understand this is required in order for ZCG to discuss and vote on this grant application.
### Application Owners (@Octocat, @Octocat1)
@chigozzdevv
### Organization Name
Zbeam — independent project
### How did you learn about Zcash Community Grants
I discovered Zcash Community Grants through the Zcash Community Forum.
### Requested Grant Amount (USD)
85000
### Category
Infrastructure
### Project Lead
```project-lead.yaml
Name: Ukpaa Chigozie
Role: Independent developer and project lead
Background: |
I am Ukpaa Chigozie, an independent developer based in Enugu, Nigeria, and a Computer Science graduate of Enugu State University of Science and Technology (ESUT). I build applications and infrastructure that combine cryptographic verification, smart contracts, backend services and client SDKs.
I learned about Zcash through Mert. I later built ZecFlow at the Zypherpunk hackathon and won a $1,000 Project Tachyon bounty and a $2,500 Axelar Network prize. ZecFlow is a drag-and-drop workflow builder that connects Nillion's inference, confidential computation and storage services with Zcash transaction workflows.
I built PNLX, a perpetuals trading application on Stellar testnet. It stores cryptographic commitments to margin and positions on-chain. Trades are matched off-chain, RISC Zero zkVM proofs verify batch execution, and Soroban contracts verify the proofs and settle the results. I built the contracts, matching and proving pipeline, settlement integration, backend services and client application.
For PNLX's current testnet, I chose public Boundless provers to prove zkVM execution. The uploaded witness data includes trading inputs and position seeds and is publicly retrievable. The matcher and external prover can read those inputs. Some of these inputs are spending material, so exposing them can affect spending authority as well as privacy. This deployment demonstrates verifiable computation and settlement.
I also built Depth, shared confidential perpetuals infrastructure. It uses Arcium MPC and computations written in Arcis to process encrypted orders and maker quotes and update balances, positions and risk state. Solana handles collateral custody and settlement. Trading applications connect to the shared trading system through trader and maker SDKs. I built the contracts, encrypted computations, SDKs, backend services, demo terminals and maker-hedging integration with Hyperliquid.
Depth's published execution evidence is from Solana devnet and Hyperliquid testnet. The demo's recovery committee is controlled by Depth, and public transactions, transfers and external hedges remain observable.
Responsibilities: |
I will lead Zbeam's implementation, testing, wallet integration, documentation and release. The budget separately funds specialist security analysis and independent review.
```
### Additional Team Members
```team-members.yaml
None. I am the sole project developer. External specialists will be contracted for security analysis, independent review and retesting.
```
### Project Summary
This grant will build Zbeam, a trustless gRPC network for Zcash clients to discover compatible providers, verify supported chain and shielded scan data, and switch providers without losing verified progress. The architecture is documented; the grant funds implementation, security analysis, independent review and performance testing, with wallet scanning and keys kept on the user's device.
### Project Description
A Zcash wallet needs complete, authentic scan data to discover transactions and keep its records up to date. It must also recover when a provider fails or returns an invalid response. Zbeam combines data verification and provider switching with local wallet scanning and recovery.
Providers construct cryptographic evidence from validated Zcash blocks. The client SDK checks the chain evidence and verifies the requested scan range against the chain it has accepted. It then passes verified records to the application. The wallet adapter scans those records locally and saves wallet changes and scan coverage in one database transaction. Switching providers preserves the accepted chain and wallet state. If the client accepts a reorg, the wallet rolls back the affected state and replays the verified data before scanning continues.
The architecture defines how verification works, what each component does and how the system recovers from interruptions. It covers supported transaction formats, service methods, stored state, provider operations, sponsored and paid access, network upgrades and release requirements.
This grant funds implementation of that design: provider software, a Rust SDK, a wallet adapter, access services, tests, independent review, benchmarks and a documented release. The review milestones cover the remaining security analysis and check the implementation against the design.
### Relevant work
| Project | What I built | URL | Repository | Awards |
|---|---|---|---|---|
| ZecFlow | A visual workflow builder connecting Nillion services and Zcash transactions. | [App](https://zecflow.vercel.app/demo) | [Repository](https://github.com/chigozzdevv/zecflow) | [Tachyon and Axelar awards](https://devfolio.co/projects/zecflow-58e7) |
| PNLX | A Stellar testnet perpetuals application with zkVM execution proofs and Soroban settlement. | [App](https://www.pnl.family/) | [Repository](https://github.com/chigozzdevv/PNLX) | — |
| Depth | Shared confidential perpetuals infrastructure on Solana using Arcium MPC. | [App](https://trydepth.xyz/) | [Repository](https://github.com/chigozzdevv/depth.supply) | — |
### Proposed Problem
A transaction-membership proof shows that a transaction is included in a block. It does not show that a server returned every transaction needed to scan a requested block range. Missing records can prevent a wallet from discovering activity even when the records it received are individually valid.
When a wallet switches providers, the replacement must serve data for the chain the client has accepted. If it supplies a different branch, the client must verify the change and reconcile the wallet state before applying more data. Two available servers can still return data from different chain histories.
Zbeam checks completeness as well as membership and preserves the accepted chain context when providers change. Tests will compare the resulting wallet state with a reference scan using data from a validating Zcash node. Benchmarks will measure the bandwidth, computation and storage that these checks add.
### Proposed Solution
Zbeam will provide a client SDK and independently operated evidence services. The SDK verifies chain and scan data before the wallet uses it, and preserves accepted state when a provider fails or supplies an invalid response. The wallet adapter scans verified records locally and saves wallet changes and scan progress together. Sponsored and paid access support provider operation while applying the same verification rules to every response.
### Solution Format
The grant will deliver open-source software, documentation and results that others can reproduce:
- A service and verification specification with exact request, response and proof formats, a security profile and shared test vectors.
- A Rust provider daemon, rebuildable index, gRPC services and HTTPS archive tooling.
- A Rust client SDK with verification, routing, persistent chain state and resource limits.
- A wallet adapter and maintained reference integration demonstrating the complete synchronization and recovery flow.
- Sponsored access, paid capacity purchases and delivery accounting that prevents duplicate charges.
- Independent review reports, records of fixes and retest results, with responsible handling of unresolved vulnerabilities.
- Device benchmarks, provider-cost measurements, versioned builds, operator documentation and a public demonstration.
### Dependencies
The main verification and software dependencies are:
- **Chain verification:** Zbeam uses FlyClient's chain-verification construction. The grant covers the Zcash-specific verifier, security analysis and independent review.
- **Chain data and Zcash libraries:** Zebra supplies validated blocks. Its block, transaction and history types, together with the selected Zcash transaction libraries, support evidence construction and verification.
- **Provider storage:** RocksDB stores the evidence index. Historical evidence packages need HTTPS archive storage and backups.
- **Wallet integration:** librustzcash, particularly `zcash_client_backend` and `zcash_client_sqlite`, supplies local scanning and wallet operations. SQLite stores wallet state and the adapter's checkpoint and coverage records.
- **Network services:** tonic, prost and Protocol Buffers provide the gRPC message and service implementation. HTTPS and TLS protect service connections. A compatible Tor transport is needed when the client's policy requires Tor.
- **Paid access:** zpay and Zinder's native WalletQuery service handle the selected payment flow. The wallet must support the required PCZT authorization format. These dependencies apply to paid purchases; sponsored access does not require a wallet purchase.
Development and testing also need provider servers, validated historical blocks, archive storage, backups, CI compute and physical phone and desktop devices. The final switching demonstration needs separately operated providers.
External work includes specialist security analysis and independent review, feedback from wallet developers, and validation by the intended users or their representatives. Before the final grant agreement, I will confirm reviewer scope, fees, availability and payment terms. Milestone 1 starts that work and confirms the wallet, platform, validators and deployment arrangements.
Each release will record the exact dependency versions and supported network profiles. The evidence service, client SDK and wallet adapter are also delivered by this grant.
### Technical Approach
**Provider evidence.** Each provider runs Zebra, an evidence index and a Rust proof service. It serves live evidence through gRPC and fixed historical packages through HTTPS. Each response is assembled from one consistent chain snapshot, including during index rebuilds and reorg recovery.
**Chain verification.** The SDK applies a versioned FlyClient policy that specifies sampling parameters, difficulty rules, bootstrap assumptions and freshness checks. It verifies membership and history consistency, saves the accepted chain state and applies the rules for each network upgrade at the correct block height. Chain acceptance is probabilistic under the stated mining, network and bootstrap assumptions. The client does not repeat full consensus validation of every transaction.
**Complete shielded scan ranges.** Where authenticated history counts are available, the range verifier authenticates the transaction count for each requested shielded pool and checks the complete requested block range. Pre-Heartwood Sapling restoration uses complete v4 blocks: the verifier checks canonical transaction enumeration, recomputes the transaction Merkle root and verifies header linkage to the accepted chain. Across supported profiles, it checks native transaction membership, duplicates, canonical ordering and the required scan fields. Transaction identifiers are reconstructed from scan fields and auxiliary proof material, or from complete transaction bytes where the format requires them. The architecture derives the completeness argument under explicit encoding, chain and hash-binding assumptions. Milestone 2 includes independent review of that argument and the verifier implementation.
**Local wallet integration.** The adapter uses the selected librustzcash SQLite backend. It saves wallet state, account context and scan coverage together in one database transaction. The architecture defines recovery rules for wallet restoration, account import, verified empty block ranges, interrupted database commits and reorg replay. Viewing and spending keys remain on the device.
**Discovery and switching.** The SDK selects providers by supported network, proof profile, historical coverage, transport and service terms. It keeps the accepted chain context when switching providers and verifies any chain change before the wallet advances. It also checks provider endpoints, limits credentials to their intended scope and follows the configured privacy-transport policy throughout retries and switching.
**Access and provider compensation.** Sponsored access lets wallets use capacity funded by a sponsor without first obtaining spendable funds. Paid access uses the selected Zinder/zpay interfaces, with purchases authorized locally through PCZTs. For each authorized delivery, the ledger records the exact request and package and prevents duplicate charges across retries. The architecture defines recovery rules for payment confirmations, payment reorgs and redelivery. Sponsored and paid responses pass the same evidence checks.
The implementation reuses Zcash's history commitments, transaction Merkle tree, transaction digest structures and wallet libraries. Applications can use chain verification, range verification and transaction evidence without a wallet account. The wallet adapter adds local scanning and storage of wallet state.
### Upstream Merge Opportunities
The main potential upstream repository is `zcash/librustzcash`, particularly `zcash_client_backend` and `zcash_client_sqlite`. The wallet integration needs support for advancing across verified empty block ranges and saving scan checkpoints, account changes and coverage in the same transaction as wallet updates. Zbeam-specific tables can remain in the adapter's extension schema.
During Month 1, I will discuss the proposed interfaces and tests with maintainers. I will prepare contributions as the wallet integration develops during Months 3 through 6. These changes could help other wallets integrate verified scan data and recover consistently after interruptions. The grant includes a maintained reference integration; upstream maintainers decide which changes to accept and when to merge them.
### Open Source License
MIT
### Hardware/Software Costs (USD)
800
### Hardware/Software Justification
$800. This is a provisional allowance for a physical test device needed for the agreed mobile benchmarks. The final budget will name the device and exclude equipment already available. Benchmark reports will list all devices used.
### Service Costs (USD)
28200
### Service Costs Justification
$28,200, including $25,000 for specialists and $3,200 for infrastructure. The specialist budget is an estimate. Before the final grant agreement, I will agree a written scope, fee and schedule with the reviewers. This work covers analysis of the verification rules and security arguments, independent review and testing of the fixes. The review plan will distinguish who prepares the analysis, who independently assesses it and who verifies the fixes. Specialist allocations across milestones remain estimates until the fees are confirmed.
| Service | Amount |
|---|---:|
| Specialist security analysis, independent review and retesting | $25,000 |
| Two provider environments and setup | $2,700 |
| Archive storage and backups | $200 |
| Additional CI and load-test compute | $300 |
| **Total** | **$28,200** |
### Compensation Costs (USD)
56000
### Compensation Costs Justification
Lead engineering compensation is $7,000 per month for eight months ($56,000). This covers implementation, integration, testing, documentation and coordination, including preparing material for review and fixing the issues found. Specialist fees are budgeted separately.
### Total Budget (USD)
85000
### Previous Funding
No
### Previous Funding Details
Not applicable. I have not received previous funding from Zcash Community Grants.
### Other Funding Sources
No
### Other Funding Sources Details
No other funding is currently committed to Zbeam. This request covers all six milestones. I may seek additional funding for substantial development beyond these milestones after they are completed. Any future request would cover separate work.
### Implementation Risks
**Security analysis.** The Zcash-specific FlyClient difficulty and sampling profile needs further analysis and independent review. The native-membership and completeness argument also needs independent assessment of its encoding and hash assumptions. Milestone 2 funds this work alongside the verifier implementation. Issues that could invalidate the security guarantees must be resolved before the affected verification path is accepted. Integration tests and benchmarks check implementation behavior and resource use separately.
**Wallet and upgrade compatibility.** Older transaction formats, changes to shielded pools and wallet storage rules can cause integration failures. Tests will cover upgrade boundaries and compare results with a validating node. The client applies the verification profile for each block height and stops processing data if it does not support that profile.
**Performance and resource use.** Evidence verification adds bandwidth and computation. I will measure the baseline and set resource limits for the target devices, then use the results to guide optimization. Reports will show download, verification, local scanning and database costs separately. Any claimed speed improvement will be supported by measurements.
**External coordination.** Reviewer and operator availability can affect timing. The review scope, schedule and payment terms will be agreed before the final grant agreement. Milestone 1 starts the review work and confirms integration and deployment arrangements. Each review will include the relevant specifications, source code and tests. I will track the issues found, the fixes and the retest results.
### Potential Side Effects
**Privacy and availability.** Providers can observe request timing, sizes and network metadata. Follow-up requests can reveal interest in particular transactions. Privacy transports and request policies reduce some exposure but do not provide complete traffic anonymity. Resource limits, cancellation rules and recovery tests address stalled clients and abusive requests. Signed provider descriptions help clients discover services; clients still verify the chain data they receive.
### Success Metrics
Completion will be assessed through public releases, tests, independent reviews and measurements that others can reproduce:
1. Altered, omitted, duplicated, reordered and malformed supported scan data is rejected under the specified verifier rules.
2. The wallet's discovered outputs, spends, note positions, trees, witnesses and confirmed state match a reference scan using data from a validating Zcash node.
3. Restore, incremental sync, account transitions, crash recovery and reorg replay preserve atomic wallet state and coverage.
4. Switching providers preserves the accepted chain context or completes a verified reorg. The next eligible provider connection attempt begins within one second after the configured failure deadline, with no loss of committed state. Provider response time is measured separately.
5. Sponsored and paid deliveries record at most one usage debit per entitlement and `DeliveryId`, including during concurrent retries, lost responses and restart.
6. Phone and desktop benchmark reports include uncompressed and compressed bytes, time spent at each stage, p50/p95 latency, peak memory, CPU time and data wasted on retries. Each report records the test data and software builds used. Provider reports include index and storage use, proof-assembly cost and data-serving cost.
7. Issues that block release are fixed and independently retested. The target devices meet the agreed resource limits, and another operator can follow the deployment instructions and take part in the switching demonstration.
The benchmark plan covers wallet restoration, incremental sync, mostly empty ranges, heavy activity, mixed pools, older transaction formats, network upgrades, provider interruptions and reorg recovery. Milestone 1 establishes the baseline, devices and numerical acceptance targets. Measurements continue throughout implementation.
### Startup Funding (USD)
0
### Startup Funding Justification
No advance is requested. This application proposes payments after completed and accepted milestones. Before the final grant agreement, I will confirm that specialist payment terms and initial project expenses can fit this schedule without an advance.
The schedule runs for eight months from the confirmed project start date. For planning, I am allowing about four weeks between application submission and the proposed start. This is an estimate: the start depends on the review outcome, approval and completion of the grant agreement. Milestone deadlines are measured from the confirmed start date. Each payment request includes a public progress report, links to the completed work and the relevant test and review results. Software and test results will include version numbers or commit references.
The Month 2 review target must be agreed with the specialists before the final grant agreement. If the foundational analysis reveals an unresolved security limitation, I will report it and agree any changes to scope, dates and payments with ZCG before advancing the affected work. Work that does not rely on the unresolved result can continue.
### Milestone Details
```milestones.yaml
# Provisional dates assume submission on 2026-10-26 and a start on 2026-11-23.
# The actual start depends on approval and the grant agreement; all dates move if that start changes.
- Milestone: 1
Name: "Service specification and integration plan"
Amount (USD): 8300
Expected Completion Date: "2026-12-23"
User Stories:
- "As a security reviewer or integrator, I need precise algorithms, encodings and test cases so I can assess and implement the same verification rules."
Deliverables:
- "Specify the exact message formats and verification algorithms, and publish initial valid and invalid test cases. Document the chain-security model and the plan for selecting its parameters. Confirm the wallet and platform for integration, test the required PCZT capabilities and record benchmark baselines and resource targets. Identify the intended users or representatives who will validate the integration, and agree how they will assess it. Start independent review under the previously agreed scope and schedule."
Acceptance Criteria: "Others can reproduce the test cases, and the interfaces cover the operations required by the architecture. Executable tests demonstrate the wallet capabilities assessed. The integration validators and acceptance process are documented, and the independent review has started under the agreed scope and schedule."
- Milestone: 2
Name: "Reviewed security profile and executable verifier"
Amount (USD): 20000
Expected Completion Date: "2027-01-23"
User Stories:
- "As a client developer, I need a chain-verification policy supported by security analysis and a range verifier that checks scan data under clearly stated assumptions."
Deliverables:
- "Implement chain and range verification, with test data from a validating node covering historical formats and upgrade boundaries. Complete the Zcash-specific FlyClient analysis and concrete parameters. Obtain independent review of that analysis and the native-membership and completeness argument, and resolve issues that block acceptance."
Acceptance Criteria: "Reviewers assess the security arguments and check that the verifier implements the required checks. Valid test cases pass, adversarial cases fail and issues that block acceptance are resolved. Acceptance requires both the reviewed analysis and the implementation tests."
- Milestone: 3
Name: "Provider infrastructure and Rust SDK"
Amount (USD): 14800
Expected Completion Date: "2027-03-23"
User Stories:
- "As a client developer or provider operator, I need compatible evidence services and a reusable SDK that preserves verified state across restarts."
Deliverables:
- "Build the Zebra adapter, rebuildable index, live and archived evidence services, transaction-evidence support, Rust SDK and persistent chain journal. Begin implementing the access ledger and provider routing."
Acceptance Criteria: "Others can reproduce the deployment and verify the served ranges within the stated resource limits. Tests cover consistent chain snapshots, fork repair, index rebuilds, cancellation, interrupted streams and client restarts. Incomplete responses are never accepted as verified ranges."
- Milestone: 4
Name: "Wallet, routing and sponsored access"
Amount (USD): 14800
Expected Completion Date: "2027-05-23"
User Stories:
- "As a wallet integrator, I need synchronization and provider replacement to preserve correct, recoverable wallet state."
Deliverables:
- "Build the maintained wallet reference integration with restoration, incremental scanning and atomic scan checkpoints. Support account changes, verified empty block ranges, crash recovery and reorg replay. Add provider discovery and switching, endpoint and credential checks, privacy-transport enforcement and sponsored capacity accounting."
Acceptance Criteria: "Wallet state matches the reference scan for the agreed test cases. Failure tests show that commits and rollbacks preserve consistency, provider switching follows the verification and transport rules, and retries do not apply wallet updates or charge for a delivery twice. Deployment testing with a second operator will take place before final release."
- Milestone: 5
Name: "Paid access and implementation audit"
Amount (USD): 16300
Expected Completion Date: "2027-06-23"
User Stories:
- "As a wallet user or provider, I need capacity purchases to follow the approved payment and service terms and recover correctly after interruptions."
Deliverables:
- "Deploy the selected versions of Zinder and zpay. Implement local PCZT authorization and redaction, confirmation tracking and payment-reorg recovery. Issue each entitlement once and support redelivery without duplicate charges. Complete the implementation audit and optimize the system using benchmark results."
Acceptance Criteria: "Tests reject unsupported formats, substituted recipients or amounts, and expired or mismatched purchases. Duplicate settlement and delivery attempts follow the specified recovery rules. The audit checks the implementation against the service specification and security arguments and records issues to fix. Payment work starts earlier in the schedule; this milestone covers the completed integration."
- Milestone: 6
Name: "Remediation, retesting and release"
Amount (USD): 10800
Expected Completion Date: "2027-07-23"
User Stories:
- "As a wallet maintainer or operator, I need a reviewed release with tests and benchmarks I can reproduce and clear integration and deployment instructions."
Deliverables:
- "Fix issues that block release and have reviewers retest the fixes. Publish final phone, desktop and provider benchmarks, versioned builds and release manifests. Complete contribution guidelines, integration and operator documentation, and recovery procedures. Demonstrate the complete system publicly with separately operated providers."
Acceptance Criteria: "The final service, verification and recovery tests pass, the target devices meet the agreed resource limits, and independent retesting verifies the required fixes. Others can reproduce the complete wallet and provider flow from the published software and instructions, including switching between separately operated providers. The intended-user representatives agreed in Milestone 1 assess the integration."
```
### Supporting Documents
```files.yaml
[ZBEAM architecture — PDF](https://drive.google.com/file/d/1v8CiZGDZ6diy23qpvYZSPpryC2ZiIiou) — System architecture, verification arguments, wallet integration, service contracts, recovery flows and references.
The independent-review scope and quotation will be added when the engagement is confirmed.
I will post monthly progress updates on the grant's forum thread. Each update will include links to completed work, test and benchmark results, review findings and any changes to the delivery schedule.
```