Retroactive Grant Application - Nerdbank.Cryptocurrencies upkeep and librustzcash fork improvements

Ask: $16,000 USD (80 hours at $200/hour)
Category: Infrastructure
GitHub Issue: Retroactive Grant Application - Nerdbank.Cryptocurrencies upkeep and librustzcash fork improvements · Issue #85 · Financial-Privacy-Foundation/ZcashCoinholderGrantsProgram · GitHub
Work period: February 19, 2024 (where the prior grant’s work ended) to November 2, 2026 (v0.5.53 release)
Applicant: Andrew Arnott (@AArnott, nerdcash), no additional team members

Hi everyone. I’ve submitted a retroactive grant application for keeping Nerdbank.Cryptocurrencies, the ZF-funded .NET Zcash light wallet library, working through NU6, Ironwood and NU7, and for building faster sync and view-only wallet support in the nerdcash/librustzcash fork that powers it. The full application is in the GitHub issue; here’s the short version.

Why it matters

Nerdbank.Cryptocurrencies, originally funded by two Zcash Foundation Minor Grants, is the only known way for .NET apps to embed a Zcash light wallet. Since the grants ended I have kept it current with each network upgrade, unpaid. To make it fast and useful for watch-only and merchant scenarios, I also extended librustzcash in the nerdcash fork. These changes ship today in the library, which eZcash builds on, and in MoneyStream, which uses the fork directly.

Library upkeep (nerdcash/Nerdbank.Cryptocurrencies, all merged after Feb 19, 2024)

  • Full Ironwood pool support (#713, released in v0.5.53), and preloaded Ironwood subtree roots so older birthdays finish syncing (#649)
  • Adapted to zcash_client_sqlite 0.22.0 and 0.23.0 (#620, #648) and kept the librustzcash submodule current (#575, #506, #693), including a fix for zcash/librustzcash#2096
  • Sync speedups: profiling, faster lightwalletd reads, larger subtree chunks, faster note-commitment tree updates (#646, #647, #650, #658), and an opt-in sandblast trial-decryption filter (#699)
  • View-only wallets: UIVK account import (#591) and scanning without note commitment trees (#669)
  • Mempool reporting (#561), incoming payments to a particular address (#568), and a fix sending a block range end on open GetTaddressTxids requests (#709)
  • NativeAOT libraries and tool (#541), Authenticode-signed releases (#632), and CI moved from Azure Pipelines to GitHub Actions (#479)

Releases in this period: v0.4.1, v0.4.9, v0.4.79, v0.5.29 and v0.5.53.

librustzcash fork improvements (nerdcash/librustzcash, merged Oct 27–29, 2026)

  • UIVK import and IVK-only account scanning, proposed upstream as zcash/librustzcash#3206
  • View-only scan mode with no note commitment trees, its own scan queue and optional anchor retention (#8, #9, #14); view-only rewind by height and block hash, and balances without witnesses (#10, #11)
  • Opt-in sandblast spam filter in the scan API (#20)
  • Trial decryption across every core, plus a mainnet benchmark (#16, #17)
  • Faster commitment-tree writes: cached updates, larger subtree chunks, folded checkpoints (#4, #15); bounded nullifier-map growth with staged nullifier writes off the SQLite writer (#22)
  • Idempotent subtree-root appends past a stored prefix, so Ironwood roots can be preloaded (#12)
  • pasta_curves 0.6.1 assembly field arithmetic on aarch64 (#23)

NU7 support (zcash_protocol 0.11, branch ID 0x77190AD9) came through upstream merges into the fork (commit).

How it’s built

A C# library over a Rust FFI layer built on the fork’s nerdbank branch, a submodule that merges upstream regularly and is never rebased. Changes ship through reviewed PRs with CI and mainnet benchmarks.

Proof

Budget

$16,000 total: 40 hours of Nerdbank.Cryptocurrencies upkeep ($8,000) and 40 hours of librustzcash fork improvements ($8,000), at $200/hour. No other costs claimed.

Scope and disclosures

  • Not claimed here: fork commits from Dec 29, 2023 to Feb 17, 2024, which fall under the prior grant, and the zcash-payment-service scanner work, which is its own proposal (Retroactive Grant Application - zcash-payment-service).
  • Conflict of interest: I own MoneyStream, a paid app that depends on the nerdcash/librustzcash fork, so the fork improvements also benefit that commercial app. MoneyStream does not use Nerdbank.Cryptocurrencies. The improvements are public and open source, and MoneyStream is not a funded deliverable.
  • Previous funding: none from the Coinholder program. For transparency, two Zcash Foundation Minor Grants for this library: $750 (April 2023, Unified Address library) and $18,000 (October 2023 to February 19, 2024, full lightwallet for .NET). This proposal covers only work after those grants were completed.

Questions and feedback are welcome, especially from anyone building .NET apps or view-only wallets on Zcash.

Thanks, Andrew

1 Like