How do you prove a Tachyon payment to someone else, once viewing keys are gone?
This will be my first topic on the zcash community forum. I’m Uddy and I am building sealForge, which runs sealed-bid auctions on Zcash: everyone can see the clearing price, nobody can see who bid what, and anyone can recompute the result from the chain. It’s on Zcash testnet right now, with two auctions settled (7 bids and 25 bids), and closing a 20,000-bid auction takes about 13 ms.
You see that “anyone can recompute” part of my system design has always leaned on one thing. When an auction closes, sealForge publishes its viewing key, so anyone can look at every bid that reached the escrow and add them up themselves.
Then I sat down with the Tachyon drafts, and that bit of my design just stops working as soon as the zcash system adopts that, because Tachyon takes viewing keys out of the core protocol. I don’t think I’m the only one who’ll hit this. I also believe exchanges runs into the same wall the first time an auditor says “show me this deposit arrived”, and so does any app that has to prove its totals in public.
Then I pondered and did some research on this over the weekened, which will make this topic a small proposal for Tachyon’s payment layer: payment receipts. I’ve tried hard to build it on the payment protocol Valar group is already working on. There’s a draft spec, a small Rust crate, test vectors and an off-chain demo of an auction being recounted from receipts alone. Mostly, I’m here for two things:
- For people to tell me where I’m wrong.
- Steer on where this should actually live.
What’s already there (and it’s a lot)
I want to be clear up front that Tachyon’s payment layer isn’t a blank page. The payment-protocol section of the Tachyon book lays out the protocol Valar is developing, and this proposal leans on it heavily. In short:
- Every sender gets a fresh ML-KEM address, derived from your seed. That way a future quantum attacker can’t break one key and suddenly see every payment you’ve ever received.
- The memo can ride along in the transaction itself, as an opaque data blob committed to the txid (#182). So delivery stays on chain, and you can still recover a wallet from just the mnemonic.
- Tags tell you which memos are yours. The first payment from a new sender uses
tag_0 = H(ek), and every one after that usestag_i = H(K, i), so your wallet looks its notes up with PIR queries instead of trial-decrypting every block. - PIR databases cover memos, first-contact memos, tachygrams and an address registry. Valar already runs PIR in production for today’s Ironwood wallets (wallet-pir), so this isn’t theoretical.
So finding your own payment is handled, and handled well. What I couldn’t find anywhere is how you prove one to somebody else.
The gap: proving a payment to someone else
Right now, if you need to show someone a shielded payment, you mostly hand them a viewing key and let them look. ZIP 311 drafted payment disclosures for the earlier pools as a narrower way to do it. With Tachyon there’s no viewing key to hand over in the first place. Your ability to see a payment lives per channel, as (tag, dk), and as far as I can tell nothing in the drafts yet says how you’d prove a single payment to a third party.
That matters to more people than auction usecases like mine:
- Exchanges and custodians. Sooner or later an auditor or a support ticket asks “did this deposit actually arrive?” Handing over a channel’s keys to answer that would expose every other payment on the same channel, which nobody wants.
- Apps that show totals in public, like sealForge, payroll or crowdfunding. The whole point is that anyone can check the sum without trusting whoever runs the app.
- Everyday payers and merchants. “I paid invoice 1042” should come with something the merchant can check for themselves, rather than taking the payer’s word for it.
The idea: payment receipts
The core of it is pretty simple. A receipt says “this note, worth this much, paid to this payment key, was created by this bundle”, and gives you what you need to check that yourself. Either side can make one, since the sender and the recipient both know how the note was opened.
A receipt carries:
- a small header with a version and the network
- the bundle’s digest (the effecting-data commitment that feeds the txid) and the block height
- the note commitment
cm, as it shows up among that bundle’s tachygrams - the note opening itself,
(pk, v, ψ, rcm) - a short context label, like
audit:deposit-1042, so you know what it was issued for
Checking one is just as boring, which is the point:
- Get the bundle from any node you trust, your own if you run one, and check its block is final at that height.
- Recompute
cmfrom the opening withzcash_tachyon’s ownNote::commitment(), so nothing is reimplemented. - Make sure the bundle’s digest matches, and that
cmreally is one of its tachygrams. - If you’re expecting a particular payment key or context, check those too.
If you’ve got a pile of them, a batch is just the list plus the total, and it refuses the same note twice. That’s literally what a sealForge recount becomes: one batch, checked against the auction’s escrow key.
“Isn’t it risky to reveal the opening?” That was my first worry too. The book’s “Note Privacy (OOB)” argument covers it, as far as I can tell. The sender already knows pk, v, ψ, rcm, but never nk, and every nullifier hangs off mk = Poseidon(nk, ψ). So someone checking a receipt learns exactly what the sender already knew, and still can’t link the recipient’s later spends. If I’ve got that wrong, please tell me, because the whole design rests on it.
NOTE: v0 proves “value v went to payment key pk in this bundle”. It doesn’t prove “and I’m the one who controls pk”, and it’s a bearer disclosure: once you’ve shown it, anyone who saw it can reuse the opening, so the context label is a label, not replay protection. Fixing both needs a zero-knowledge receipt. That’s the plan for v1, using Ragu, which would also let a receipt hide ψ and rcm and say things like “at least x” instead of an exact amount.
Two smaller ideas, still rough
These two are sketches, not drafts. If Valar already has either covered, I’ll love to know as well, probably contribute a thing or two there.
An introduction service. The book mentions this in a footnote: something always online that hands out fresh addresses for you while you’re offline. The way I picture it, your wallet pre-derives a batch of encapsulation keys from your seed, signs the batch with an identity key that’s pinned in your payment URI, and the service hands out one unused key to each new payer. The service never sees dk, and the payer’s wallet checks your signature before paying, so even a hacked service can’t quietly redirect money to someone else. For exchanges there’s a nice side effect: give ek_j to customer j, and the first-contact tag H(ek_j), plus every tag after it on that channel, belongs to that customer. Deposit attribution basically comes for free.
Checking that a PIR server didn’t leave anything out. This one is borrowed from Bitcoin Silent Payments, where people learned it the hard way: a light client can’t tell whether an index server skipped one of its payments, and a server that leaves out a single tweak quietly costs the receiver real money (bitcoin-dev thread). Tachyon’s memo and tachygram databases are rebuilt from chain data, so anyone with a full node can recompute them. If operators published a root per epoch, and each PIR record carried an inclusion path, a client could check what it got back and compare roots across operators. The tricky bit is proving that something isn’t there under bucketed keyword PIR, and I’d want real benchmarks before pushing this any further.
Where it’s at, and what I’d love help with
Everything is in one repo, so you can poke at it instead of taking my word for it: tachyon-receipts.
- The draft spec is SPEC.md, pinned to
tachyonat8919018, because the book moves fast and I didn’t want to be arguing with an older version of it. - Test vectors are in vectors/receipts-v0.json, generated from a fixed seed, plus a few that must fail to decode or verify.
- The crate builds and verifies receipts with the
tachyoncrate’s own note and bundle types, so none of the cryptography is reimplemented. - There’s a small demo,
cargo run --example auction_recount, that pays seven auction bids to an escrow and recounts them from receipts alone:
receipts 7 (211 bytes each)
recount 7 bids, 1.23000000 ZEC ok
tampered bid inflated by 1 ZEC: refused, receipt 3: the opening does not commit to cm
tampered one bid counted twice: refused, receipt 7: two receipts disclose the same note
tampered receipt for a payment that isn't on chain: refused, receipt 7: cm is not among the bundle's tachygrams
NOTE: since there’s no Tachyon network to run against yet, the demo is off chain. The notes and commitments are real zcash_tachyon values, but each bundle is stood in for by its digest and tachygram pairs, which is exactly what the crate reads from a real bundle. I’ll move sealForge itself onto receipts once the alpha testnet is up.
A few things I’m genuinely unsure about, and I’d rather hear them now than after more code:
- Whether a receipt should point at the txid instead of the bundle digest, once the Tachyon ZIP 244 update settles the txid tree.
- Whether ownership and replay protection (the v1 zero-knowledge receipt) belong in the receipt itself, or in a separate statement wallets produce on request.
- Whether a receipt should carry the memo plaintext and its tag, so a verifier can match the in-band data too.
And a few specific asks, if you have a minute:
- Valar folks: does this fit the payment protocol you’re building, and where would you want it to live? I’m happy to fold it into whatever you already have.
- Tachyon team: am I reading the Note Privacy (OOB) argument right, that revealing an opening gives a verifier nothing the sender didn’t already have?
- Anyone running an exchange, custody desk or wallet: when your auditor or support team asks “did this payment arrive?”, what do they actually need to see?
It’s all open source under MIT or Apache-2.0, and unaudited, so please don’t point it at real funds.
Thanks for reading this far. I’ll keep this topic updated as the draft changes.