All projects

Top 5 · Zcash India “Build on Zcash” bounty

ZecHeir

Private inheritance for shielded Zcash. Your ZEC reaches your family, even if you can't.

Nov 2026

  • Next.js
  • Zcash
  • FROST
  • Rust
  • Hono
CloseZecHeir cover

The problem

Shielded Zcash hides balances, senders, receivers and amounts. That's the point. But if you die or lose access, your family can't even see that the money exists. There's no public balance to find and nothing to point a lawyer at.

The usual fixes don't work here. A seed phrase on paper lets whoever finds it take everything today, not after you're gone. Other chains use smart-contract timelocks or on-chain multisig; shielded Zcash has neither. So the safety net had to come from cryptography, not a contract.

CloseWhy the usual inheritance fixes fail on shielded Zcash

One key, split three ways

ZecHeir puts your shielded ZEC in a 2-of-3 FROST vault. FROST is threshold signing: one spending key, split into shares, and any two shares can sign together. Nobody ever holds the whole key.

  • Owner: you, with everyday control. One tap checks in and resets the switch.
  • Guardian: someone you trust. They approve the release, but only after the grace period.
  • Check-in switch: an automated share that only ever co-signs one pre-agreed payment.
  • Miss 3 check-ins and a grace period starts. When it ends, the guardian approves, guardian + switch sign, and everything goes to the heir with your note inside the encrypted memo.
CloseThe 2-of-3 FROST key shares: owner, guardian and check-in switch

Safe and private

  • Neither the switch nor the guardian can move funds alone; each needs a second share.
  • The switch builds the release transaction itself and refuses to sign anything else, so a compromised guardian can't trick it into a different payment.
  • Releasing before the grace period ends is refused by the server.
  • The vault is a shielded address and a FROST signature looks like any other, so nobody can tell the vault is shared or that the payment is an inheritance.
  • The switch holds only a viewing key: it can see the balance, never spend alone.

The release, start to finish

Behind one Approve button the server builds a PCZT that sends everything to the heir, computes the sighash, runs two FROST rounds between the guardian and switch shares through frostd, generates the Halo 2 zero-knowledge proofs, combines everything and broadcasts it to testnet. The app shows each step live.

It's an installable PWA for the owner, the guardian and the heir. If the signing server is offline, the app shows a clearly labelled recording of the real release, so nobody lands on a broken page.

CloseFour app screens: owner's vault, guardian approves, FROST signs, heir receives

The hardest part

Zcash testnet had just activated NU7, with the new Ironwood pool and v6 transactions. The Zcash Foundation's FROST demo signer is pinned to older libraries, and on a real release it failed with UnknownConsensusBranchId.

With no upstream fix and the deadline close, I ported its signing logic into zcash-devtool as a new pczt frost-sign command on the current librustzcash. It signs Orchard and Ironwood spends, and that one patch unblocked the whole release.

CloseThe NU7 UnknownConsensusBranchId error and the zcash-devtool patch

It works on-chain

A vault held by a 2-of-3 FROST key sent 0.0999 TAZ to the heir on Zcash testnet (block 4,666,761). Only the guardian and switch shares signed, and the memo, “The house papers are with Anjali. Love, Dad.”, was readable only by the heir's wallet.

CloseThe heir received 0.0999 TAZ in a real testnet transaction

Stack

  • Zcash Foundation frost-tools (frostd and frost-client) for signing
  • zcash-devtool for the view-only wallet and every PCZT step, plus my frost-sign patch
  • Next.js 16 PWA with React 19 and Tailwind CSS 4
  • Bun + Hono signing service and a grammY Telegram bot
  • Vercel for the app, a VPS behind a Cloudflare tunnel for signing
CloseThe ZecHeir stack

What's next

It's a testnet MVP and not audited; today one server creates all three key shares. Next up: distributed key generation so each person makes their own share on their own device, guardian signing in the browser, and multiple heirs with percentage splits.

Read more

“Every move counts — on the board and in the codebase.”
Builder · Chess player