Retroactive Grant Application - Mirage: a linkability guard inside the Zcash send flow

GitHub application: Retroactive Grant Application - Mirage: a linkability guard inside the Zcash send flow · Issue #100 · Financial-Privacy-Foundation/ZcashCoinholderGrantsProgram · GitHub

Application Owners

GitHub: MeghVyas3132, Antxnrx

Organization or Individual Name

Mirage (Megh Vyas and Anton, independent developers)

Additional Team Members

  • Name: Anton (GitHub: Antxnrx)
  • Role: Frontend and UI/UX
  • Background: Frontend engineer and designer. Built Floor (ETHGlobal Mumbai 2026) with Megh.
  • Responsibilities: Mirage web app, the check / plan / report screens, demo video and visuals.

How did you learn about the Lockbox: Coinholder Retroactive Grants Program?

The Zcash Community Forum, through the Q4 2026 call for proposals.

Requested Grant Amount (USD)

$2,880

Category

Wallets

Project Summary

Mirage is a send guard for Zcash wallets: before ZEC leaves the shielded pool, it scores how easy that exit is to link to an earlier entry, sends shielded when it can, and otherwise splits the amount inside the pool and lets the pieces out on a schedule, re-checking each one. The scoring and planning ship as mirage-core, a dependency-free npm library any wallet can call.

Project Description

Inside the shielded pool nothing is visible, but the value and time of every crossing into or out of the pool are public. If an exit amount matches a recent entry, an observer can pair them. Amount-and-timing matching linked 31.5% of coins sent to shielded addresses (Quesnelle 2017), and Arkham reported labelling over half of ZEC transactions without breaking any cryptography (crypto.news). Wallets warn that a send is “public” but do not say whether this exit is linkable.

Existing linkability checkers (zcrowd, am-i-linkable, CipherScan’s privacy risk detection) run separately, before you send; zcrowd lists the wallet hook as roadmap. Mirage is that hook: the check lives inside the send and acts on the result.

  • Shielded destination: a fully shielded send with an encrypted memo.
  • Transparent destination (e.g. an exchange deposit): scored against an index of every public shield and deshield. A crowd of similar crossings → sent. Few or none → held, and a guarded exit is proposed: one fully shielded self-send splits the amount into common denominations inside the pool; each piece then leaves separately on a schedule and is re-checked right before it goes.
  • “Check only” runs entirely in the browser: the page downloads the public index and scores locally, so the amount never reaches a server.
  • Privacy report card: every past exit from the wallet, re-scored as it looked at the time (own crossing excluded), 0–100.

Custody model (clarified after FPF review): Mirage itself holds no keys and runs no coordinator; it never pools or touches other users’ funds. The spending keys live in the wallet engine Mirage drives (zkool_graphql), and that engine signs each scheduled piece automatically when it is due, so the user does not need to be online. Whoever runs the wallet engine therefore holds the keys:

  • Self-hosted (docker compose up, the intended setup): the engine runs on the user’s own machine, so the user keeps custody. The machine has to stay online for scheduled pieces to go out.
  • Our hosted testnet demo: the two demo wallets are held by us, the operators. That is acceptable for testnet TAZ only, and the README says so.

Also disclosed: a piece that still scores red is held and re-checked up to 6 times (2 hours apart), then sent anyway so funds are never stuck (MAX_HOLDS in server/src/jobs.ts).

Built on 4 Nov 2026 at the Free Society Hackathon (Mumbai, Devcon week, privacy track), then documented and deployed.

Technical Approach (how you did it)

  • Indexer (server/src/indexer.ts): reads lightwalletd compact blocks (LightWalletD v0.6.1 at testnet.zec.rocks) and classifies every transaction as a shield or deshield across Sapling, Orchard and Ironwood, resolving older transparent inputs on demand.
  • Scoring and planning (packages/core, published as mirage-core 0.1.0 on 4 Nov 2026): assess(index, {zats, time}) returns the crowd size and candidate entries; planExit(zats) splits into common denominations. No dependencies, 8 tests. Browser and server run the same code; the browser-local check matches the server on 18/18 test amounts against the live index.
  • Guard (server/src/api.ts, /api/send and /api/guarded-exit) and scheduler (server/src/jobs.ts): hold linkable sends and re-check each piece before release.
  • Wallet engine: zkool_graphql v6.36.0 (hhanh00/zkool2) on a private network.
  • Stack: Node 22, TypeScript 5, Hono 4, @grpc/grpc-js, lightwallet-protocol protos (vendored, MIT), Docker (docker compose up).
  • Licence: MIT. Contributing guide: CONTRIBUTING.md.

Time Period of Work Completion

4 Nov 2026 – 9 Nov 2026

Total Budget (USD)

$2,880

Budget Breakdown

Compensation: $2,880
Justification: Megh Vyas, ~28 h (indexer, mirage-core scoring and planning, guard, scheduler, zkool integration, deployment, docs) and Anton, ~20 h (web app, check / plan / report screens, demo video), at $60/h.

Technology/Software: $0
Justification: Open-source stack only (zkool, lightwalletd, lightwallet-protocol).

Infrastructure/Hosting: $0
Justification: None claimed (future hosting is not eligible for a retroactive grant; removed after FPF review on 10 Nov 2026).

Services/Contractors: $0
Justification: None.

Other: $0
Justification: None.

Total: $2,880

Previous Funding

No

Other Funding Sources

Yes

Other Funding Sources Details

Mirage was entered in the Free Society Hackathon privacy track (4 Nov 2026). Results had not been announced as of 10 Nov 2026. If a prize is awarded before voting opens, we will withdraw this application so the same work is not paid twice. We may separately apply to Zcash Community Grants for new, forward-looking milestones (a mainnet index and a wallet integration); none of the completed work in this application would be part of that request.

Success Metrics

  • Shipped: a live app, a published library (mirage-core on npm), and an end-to-end guarded exit on testnet with public txids.
  • Correctness: browser-local scores match server scores on 18/18 test amounts; mirage-core has 8 unit tests.
  • Reuse: any wallet can call assess() / planExit() with no dependencies.
  • Wallet-team review: requested from the zkool maintainer (Mirage is built on zkool_graphql): Review request: Mirage, a pre-deshield linkability check built on zkool_graphql · Issue #1638 · hhanh00/zkool2 · GitHub. If no wallet maintainer has reviewed it by 13 Nov 2026, we will withdraw and resubmit in a later quarter.

Proof of completion

Conflict of Interest Disclosure

None. Neither applicant is affiliated with a Keyholder Organization or the Financial Privacy Foundation.

1 Like

Update: Mirage won 2nd prize in the Free Society Hackathon privacy track (300 USDC): Stadium

As committed on the GitHub application (Retroactive Grant Application - Mirage: a linkability guard inside the Zcash send flow · Issue #100 · Financial-Privacy-Foundation/ZcashCoinholderGrantsProgram · GitHub), we’ve withdrawn this retro request so the same work isn’t paid twice.
Next: a Zcash Community Grants proposal to bring the check into a real wallet’s send flow. We’ve asked zkool, Zodl and Zingo what interface they’d accept:

Feedback from wallet developers here is very welcome before we file.