Grant Application - Post-quantum readiness inventory for the Zcash stack

Submitted as issue #515.

What this is

Zcash has said publicly it wants post-quantum signatures around 2027. Before cryptography can be migrated, it has
to be located. I am proposing to produce, for the Zcash repositories in scope, a machine-readable cryptographic
inventory (CycloneDX CBOM) and a post-quantum migration map that says, per algorithm and per role, what it is used
for, whether Shor or Grover applies, and what has to change.

$12,000, three two-week milestones, one person.

I have now done the whole stack, unpaid, before any decision

The application cited one repository. While it sits, I did the other five, so you can judge the work rather than
the pitch. Every one is a signed bundle that verifies in one command with the public key it contains — no trust in
me required.

Repository Files Inventory Shor-vulnerable Findings High Medium
librustzcash @ 8672a4b2 333 46 19 51 2 10
zebra @ 147a6a8b 439 27 14 19 2 2
lightwalletd @ 4abfe9cd 34 8 3 14 0 0
zcash-android-wallet-sdk @ a95780ac 350 14 2 33 0 6
zcash-swift-wallet-sdk @ 4895ee05 205 12 2 32 0 7
zodl-android @ 229dd3bf 1,609 5 0 2 0 0
Total 2,970 112 40 151 4 25

One thing to read correctly in that table: severity depends on a risk profile, and the profile is not the same for
every row. librustzcash and the wallet trees are rated as code that handles spending keys; zebra and
lightwalletd are rated as a consensus node and a lightwallet server, which custody nothing. The file, inventory
and Shor-vulnerable columns are profile-independent and are the ones I would compare across repositories.

verify-bundle --public-key public_key.pem .
→ OK bundle signature valid: 12 files, signed … by key 5b3cf9c9bd0fa544

Bundles go to any committee member who asks. Nothing is held back pending funding.

The Swift SDK is the one place where “nothing found” changed meaning while I was writing this. Its
Package.resolved pins twenty-one Swift packages, and my tooling had never read that format — it parsed the
Cargo.lock beside it and reported two manifests, so the Swift half of a wallet SDK was unexamined while the
report looked complete. The format is now read, OSV is queried under the SwiftURL ecosystem, and the answer is
that none of the twenty-one carries a published advisory. Same number as before, entirely different claim:
it has gone from unexamined to checked.

The result that makes the case better than I could

Auditing one repository tells you about one repository. Auditing all six together showed something none of
them can show alone: 27 advisories recur across more than one Zcash repository, and seventeen of them
appear in three or more. Counted one entry per advisory, collapsing each one’s aliases to the primary
identifier the finding names.

Advisory Repositories affected
GHSA-qwgh-2vcv-g2f7 librustzcash, zebra, zcash-android-wallet-sdk, zcash-swift-wallet-sdk
RUSTSEC-2026-0386 librustzcash, zebra, zcash-android-wallet-sdk, zcash-swift-wallet-sdk
GHSA-2mjx-qc3c-rqvc, GHSA-c8m5-c952-6cm4, GHSA-h2v8-394m-p7vv, GHSA-w44r-93j7-qv28 librustzcash, zcash-android-wallet-sdk, zcash-swift-wallet-sdk
RUSTSEC-2026-0387, -0395, -0397, -0399 … -0410 (11 in all) librustzcash, zcash-android-wallet-sdk, zcash-swift-wallet-sdk
ten further advisories two of the six each

Every identifier here is the primary one the finding names; the full list with versions and aliases is in the
signed bundles, so none of it has to be taken on trust.

Nobody fixes these once, because nobody sees them as one problem. That is the entire argument for a
cross-repository inventory, and I would rather show it than assert it.

The four high-severity findings

  • zebra: quinn-proto 0.11.16 matches two separate advisories, RUSTSEC-2026-0340 and RUSTSEC-2026-0341.
  • librustzcash: rustls-webpki is pinned at both 0.101.7 and 0.103.3, and both match
    GHSA-82j2-j2ch-gfr8 / CVE-2026-93599 / RUSTSEC-2026-0104.

One finding worth stating carefully

zcash-android-wallet-sdk’s SaplingParamTool downloads the Sapling spend and output parameters from
download.z.cash and verifies them against two hard-coded SHA-1 digests.

Stated precisely, because the loose version of this claim would be wrong: the property relied on here is
second-preimage resistance, which SHA-1 still has. Only collision resistance is broken, and this check does not
depend on it. So this is not exploitable as it stands, and I am not reporting it as a vulnerability. It is the
wrong primitive for an integrity check on security-critical cryptographic material, and it is squarely on topic for
this grant: Grover halves preimage security, taking SHA-1 from 160 bits to about 80 — below any acceptable margin
for parameters with this lifetime. SHA-256 is the replacement.

I also found a committed private key in lightwalletd (docker/cert.key) and marked it not applicable after
checking: gen_cert.sh sits beside it and generates exactly that file with CN=lightwalletd.testnet.local and
SANs covering only localhost and 127.0.0.1. Real key material, no real domain, not a production credential —
hygiene for the maintainers, not a security report. Both decisions are recorded in the signed bundles, with their
reasoning, so you can disagree with them specifically.

Two things I got to answer myself

  • zcash/zcash is archived (last push 2026-07-19), so zcashd is out of scope. My application asked you to
    correct my scope guess; this part corrected itself.
  • Zashi is now zodl-inc/zodl-android. I will use the current name.

Both are now done, so the scope question becomes: is anything missing from that list of six?

The wallet result, and why I am telling you how I nearly got it wrong

zodl-android reports no shipping dependency carrying a published advisory. Getting to that number took
three passes, and the two wrong ones are worth more to you than the right one.

First pass: zero findings. Which looked clean and was not. My tooling parses pom.xml but had never heard of
Gradle, so a project with no pom.xml got no dependency coverage at all. “Nothing found” meant “never looked” —
the worst possible failure for an audit, because it is indistinguishable from good news.

Second pass, after I added Gradle lock file support: three critical and twenty high. In a wallet. The
temptation to publish that was considerable. Instead I read them: io.netty, org.freemarker,
org.bouncycastle — server-side Java libraries, in an Android app. They arrive through Gradle plugins and never
reach the APK. Reporting them as wallet vulnerabilities would have been alarmist nonsense, and you would have
been right to stop reading there.

Third pass. A convention-plugin module names its configurations compileClasspath and runtimeClasspath
like any other, because from its point of view they are. Neither the file name nor the configurations settle it.
The content does: a module that resolves the Android Gradle Plugin is the thing that builds the app, so it
ships nothing. With that rule they collapse into one informational “non-runtime dependencies” entry — in today’s
bundle, 52 advisories across 16 build-only packages — which is the truth.

I am telling you this because precision is the only thing that makes an inventory worth having, and the only
honest way to demonstrate it is to show where it failed. All three passes are reproducible from the published
methodology; the fix is pinned by tests in both directions.

Why the numbers moved, and what moved them

The application cites 36 findings for librustzcash on 2026-10-21. Two days later the same commit gave
38. Re-run on 2026-10-27, still the same commit, it gives 51. Nothing in the code changed — every audit is
pinned to a commit precisely so this is visible rather than hidden.

I re-audited all six and attributed the difference finding by finding. Of the 50 new findings across the six,
49 are the advisory databases moving
— OSV publishing or re-rating entries against dependency versions that did
not change — and 1 is my engine (the Gradle non-runtime entry described above).
zcash-android-wallet-sdk +18, zcash-swift-wallet-sdk +16, librustzcash +13, lightwalletd +2, zebra +1.
No new high-severity finding appeared in any of the six; the four highs are the same four. Across my whole
34-audit portfolio the split on one such re-run was +150 from the databases against −6 from the engine, on
identical pinned code.

That is the argument for funding a re-runnable process rather than a PDF: an audit delivered as a document is
measurably stale within a week of signing, and the figure above is the measurement. I did not plan it — it fell
out of checking my own published numbers.

What I would rather you hear from me

  • Post-quantum work is not on ZCG’s “What We’re Ready To Fund” list. The closest listed item is “Audits for
    updated Zcash software”
    under Core, and that is honestly what this is. Weigh it as the unrequested proposal it is.
  • An advisory match is not a demonstrated exploit. It means a pinned version matches a published advisory.
    Whether the affected path is reachable is separate work I do not claim. The tooling records these as known
    vulnerable component
    , deliberately distinct from confirmed vulnerability.
  • This is not a cryptographic review. Halo 2, the circuits and the protocol are out of scope; hire a
    cryptographer for that, who will work faster with the inventory in hand.
  • The scanner was built with substantial AI assistance and its rules have produced false positives. I find them
    by reading findings against real source. In these six, exactly one was a detector error: zebra’s
    book/mermaid.min.js, where the Math.random calls belong to a vendored documentation library that never runs
    in the node. It is recorded in the bundle as dismissed, with that reasoning, rather than quietly dropped.
    Outside this scope, re-reading every hard-coded-secret finding in my portfolio against the audited bytes on
    2026-10-27 split 11 flagged values into 6 detector errors, 3 credentials published on purpose, and 2 genuine;
    the six no longer fire and the fix is pinned by tests in both directions. Every inventory row also carries a
    confidence, so weak evidence reads as weak.

What the money is actually for

The scanning is automated and takes minutes; all six repositories cost me an afternoon and I am giving them away.
What I am asking to be funded is the part that does not automate: triage, the consolidated post-quantum migration
map across the whole stack, and a written methodology precise enough that someone who is not me can reproduce it.

Happy to answer anything here.

A note for reviewers, on Epoch and Tachyon

Shielded Labs announced Epoch
on 1 October — production-ready, high-assurance post-quantum cryptography for Zcash, with formal verification,
working closely with Daira-Emma Hopwood and Dev Ojha and with Sean Bowe, Tal Derei and the rest of the Project
Tachyon team, and targeting a production-ready cryptographic implementation by the end of 2027. Zcash also has a
staged plan already moving: ZIP 2005 quantum recoverability on testnet, ML-KEM alongside Tachyon, then a fully
post-quantum pool.
“Epoch is already doing this” is the first reasonable objection to this application, so I would rather answer it
myself than have a reviewer raise it.

Epoch and Tachyon build the new cryptography. This proposal inventories the classical cryptography that is
deployed in the repositories today and will have to be migrated to it. Those are different objects. Of the 112
inventory rows across the six published audits, 40 are Shor-breakable:

Repository Shor-breakable rows What they are
librustzcash 19 15 × ECDSA secp256k1 (transparent addresses), 4 × BLS12-381
zebra 14 5 × Ed25519, 4 × X25519, 2 × BLS12-381, 2 × Groth16, 1 × ECDSA secp256k1
lightwalletd 3 RSA-2048 — certificate generation in common/generatecerts.go and the self-signed docker/cert.pem
zcash-android-wallet-sdk 2 RSA-2048 quoted in responsible_disclosure.md
zcash-swift-wallet-sdk 2 RSA-2048 quoted in responsible_disclosure.md

Two things in that table I would rather point out than be asked about. The last four rows are a PGP key quoted in
a disclosure policy: that is inventory, not exposure, and I do not count it as risk. And the two Groth16 rows in
zebra are the one place where “Epoch is already doing this” is literally true — replacing the proving system is
Epoch’s and Tachyon’s work, not mine. What remains after both caveats is transparent-address and transport
cryptography: ECDSA secp256k1, Ed25519, X25519, RSA certificate keys, spread across call sites in five
repositories. A new signature scheme does not find those call sites. Somebody has to, once, and then keep the list
current as the code moves.

It has already been pointed out in Is Zcash Post-Quantum?
that most of Zcash’s cryptography is symmetric hashing, which Grover weakens rather than Shor breaking. The point
of an inventory is to settle that by counting rather than arguing, so here is the count for these six
repositories. Of the 112 rows, 52 are crypto libraries declared in manifests and lock files — secp256k1,
rsa, ecdsa, p256, p384, ring, rustls, the dalek curves, Bouncy Castle — which I record as inventory
and deliberately do not score, because the audits do not establish that each one is reachable. That leaves 60 rows
of actual algorithm use, and the split is 40 Shor-breakable against 20 that are a Grover question (12 × SHA-2,
2 × BLAKE2, 1 × Keccak-256, 2 × ChaCha20-Poly1305) or a classical weakness (2 × RIPEMD-160, 1 × SHA-1). Two
thirds, not a minority — and per row, with the file and line.

One of those twenty is worth a look on its own, as an example of what the inventory is for.
zcash-android-wallet-sdk validates the Sapling parameters it downloads against two hard-coded SHA-1 digests,
SPEND_PARAM_FILE_SHA1_HASH and OUTPUT_PARAM_FILE_SHA1_HASH in sdk-lib/.../SaplingParamTool.kt:66,71, and the
comment at line 273 says plainly that the check is there because the file may arrive “from a malicious server”.
This is not exploitable: it rests on second-preimage resistance, which SHA-1 still has. But Grover takes that
from 160 bits to roughly 80, which is below any margin I would accept for parameters with that lifetime. Note also
what my tooling did and did not do: it flagged the SHA-1 call in backend-lib/.../FileExt.kt:50, which is where
the algorithm is — not SaplingParamTool.kt, which is where the two digests and the threat model are. The scanner
produces the row; connecting it to the threat model is my work, and the report distinguishes the two.

So I am not proposing an alternative to Epoch. I am proposing the input that Epoch and the wallet teams would
otherwise have to produce for themselves, and I would rather be weighed on that basis than on the broader
post-quantum framing. If the committee’s view is that this belongs inside Epoch or ECC rather than as an
independent grant, I think that is a fair conclusion — the work is the same either way, and the six audits already
published are free to whoever wants them.

Thank you for submitting your proposal. Following a thorough review by ZCG and a period for community feedback on the forum, the committee has decided not to move forward with this proposal. We sincerely appreciate the time and effort you invested and encourage you to stay involved in the Zcash community.

The committee’s comments can be found here: Zcash Community Grants Meeting Minutes 11/9/2026