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)
@zcash-dev-hub
Organization or Individual Name
Veevaa Bajaj
Additional Team Members
none
How did you learn about the Lockbox: Coinholder Retroactive Grants Program?
Through the Zcash Community Forums and the Financial Privacy Foundation's GitHub repository.
Requested Grant Amount (USD)
200
Category
Non-Wallet Applications
Project Summary
zcash-donation-widget is an open-source, zero-backend browser widget and payment-link builder that lets any creator accept shielded Zcash testnet donations through ZIP-321 payment links, with memo-based payment confirmation that uses only a viewing key no server, no account, and no custody of funds.
Project Description
About me: I am Veevaa Bajaj, an independent creator and final-year design student based in New Delhi, India, building open-source tools for the Zcash testnet ecosystem.
Creators who want to accept ZEC donations today have to run payment infrastructure, use a point-of-sale system, or ask donors to copy raw addresses with no confirmation that a payment arrived. On testnet, where most experimentation happens, there was no small, embeddable, donations-focused package at all.
zcash-donation-widget fills that gap. It is a TypeScript package (MIT licensed) that provides:
- An embeddable donation widget: one function call renders a donation box with amount and message fields on any web page.
- ZIP-321 payment links: shareable links and payment URIs built with the published @z-labs/zip321 library, so any ZIP-321 compatible wallet can pay.
- Strict address validation: ZIP-316 unified addresses and viewing keys are checksum-verified; mainnet addresses are rejected in testnet mode, and spending keys are refused by design.
- Memo-based receipts: the receipt watcher matches an incoming payment by memo and amount using only a Unified Full Viewing Key, so a creator can show a donor "Paid" without a server and without ever holding spending keys.
- A static demo page showing the full flow end to end.
The package has a single runtime dependency (@z-labs/zip321), ships with 26 automated tests (all passing), full TypeScript types, a README with integration instructions, and a CONTRIBUTING.md following Zcash development norms.
Disclosure: receipt watching is implemented against the published lightwalletd client interface and the watch API pattern of the open source zcash-testnet-wallet project. This application claims only the widget, the payment-link builder, the validation layer, and the demo not the underlying watcher or wallet work, which belongs to its authors.
Technical Approach (how you did it)
Architecture: a single TypeScript package (ESM, strict mode) with five small modules.
- validate.ts: ZIP-316 unified address and UFVK validation using bech32m decoding and checksum verification. Testnet human-readable prefixes (utest1 / uviewtest1) are accepted; mainnet addresses and spending-key-shaped inputs are rejected.
- link.ts: ZIP-321 payment link builder and parser, built on the published @z-labs/zip321 library (v0.1.1, the package's only runtime dependency). Amounts are handled internally as zatoshis in bigint, never floating point.
- memo.ts: memo encoding within the 512-byte Zcash memo limit, carried in links as base64url without padding.
- widget.ts: the embeddable donation widget. One function call mounts the donation box; a creator configures a single unified address (reused for every donation) or a list of addresses (rotated per donation).
- receipt.ts: a payment watcher that matches an incoming transaction by memo and amount using only a Unified Full Viewing Key, over an injectable lightwalletd client interface (public testnet endpoint testnet.zec.rocks:443), with a configurable timeout that resolves as "expired" when no matching payment arrives.
Process: implemented module by module with tests written against each behaviour (Vitest, 26 tests, all passing), type-checked with tsc, and released as v0.1.0 in November 2026 with a static demo page (demo/index.html) that runs entirely in the browser with no backend.
Time Period of Work Completion
November 2026
Total Budget (USD)
200
Budget Breakdown
Compensation: $(USD): 200 Justification: Solo design and development of the widget package implementation, testing, documentation, and release. Technology/Software: $(USD): 0 Justification: Built entirely with open-source tooling. Infrastructure/Hosting: $(USD): 0 Justification: Static, zero-backend package; public testnet infrastructure (testnet.zec.rocks) used at no cost. Services/Contractors: $(USD): 0 Justification: None engaged. Other: $(USD): 0 Justification: None. Total $(USD): 200
Previous Funding
No
Previous Funding Details
N/A
Other Funding Sources
No
Other Funding Sources Details
Success Metrics
The work is complete and public. The package is released on GitHub under the MIT license with a working demo page in the repository, full TypeScript types, and 26 automated tests covering address validation, ZIP-321 link building and parsing, memo handling, and receipt matching , including the acceptance case of a 0.01 TAZ donation with a memo round-tripping through the ZIP-321 URI exactly. It is, to my knowledge, the first donations-focused (rather than checkout or point-of-sale) testnet widget package in the Zcash ecosystem, and it is designed so any creator or community site can embed it without running a server.
Proof of completion
Repository/Commit: zcash-donation-widget - v0.1.0 initial release, commit bd3685aa8c45b339c6311def2bd6a939042c3569 Publication: GitHub repository - public, MIT licensed Deployment/Release: Source release v0.1.0 - demo page included in the repository under demo/ Other Evidence: 26 automated tests in the repository under test/, all passing (npm test)
Conflict of Interest Disclosure
None. I am not affiliated with the Financial Privacy Foundation, the Zcash Foundation, ECC, or any keyholder organization, and I have received no funding from any source for this work.
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.