Grant Application – zreceipt: payment disclosures for shielded Zcash (ZIP 311)

Update Oct 26: revised to a $15,000 phase 1 (ZIP 311 specification only). See post #13 and the updated application.

Hi everyone,

I’ve submitted a grant application for zreceipt: Grant Application - zreceipt: payment disclosures for shielded Zcash (ZIP 311) · Issue #502 · ZcashCommunityGrants/zcashcommunitygrants · GitHub

zreceipt lets a shielded Zcash user prove one payment to an auditor, bank or tax office with a link, without revealing their balance, other transactions or address. The verifier’s own browser re-derives the note commitment from the receipt and checks it against the transaction, so the receipt cannot claim a payment the transaction does not contain.

It works today, with a live Ironwood receipt on Zcash mainnet:

It implements the output-recovery step of draft ZIP 311 for Sapling and applies the same step to Orchard and Ironwood, which ZIP 311 does not yet cover. The spend-authority proof that ZIP 311 requires for a complete disclosure is not implemented yet; it is the main work of this grant (Milestones 2 and 3).

Why I’m building it: I work on crypto products at a bank in Kyrgyzstan. Since June 2026 our team has received 256 requests from clients who want to be paid in crypto without making it public. When those funds reach a bank, they have to prove where the money came from, and today they can only do that by exposing their entire history.

The grant ($40,000: startup funding plus five milestones, ending April 30, 2027) funds:

  1. A design for Orchard and Ironwood spend authority, posted here for review, plus verification through lightwalletd and a verifier that runs without the zreceipt website
  2. ZIP 311 payment disclosures with spend authority for Sapling in librustzcash, following the draft ZIP, with test vectors
  3. The same for Orchard and Ironwood, using the reviewed design, with proposed ZIP 311 text (draft PR zcash/zips#1406)
  4. A “Share receipt” feature in an open-source Zcash wallet, so the payer creates disclosures with their own keys
  5. A pilot with compliance teams at a bank, an exchange and a law firm, with a public report

Disclosure: I’m employed by Kompanion Bank. zreceipt is my independent open-source project; the bank is one of three pilot partners and receives no grant funds.

I’d especially value feedback from wallet developers and anyone involved with ZIP 311. Happy to answer any questions.

1 Like

A note for reviewers: I’m aware of the earlier Selected-Payment Receipts SDK proposal and the committee’s feedback on it, that receipts are useful but should follow ZIP 311, come to Ironwood, and be built with the protocol engineers rather than as a standalone tool.

That is the direction zreceipt takes:

  • It uses the ZIP 311 output-disclosure method (recovering one output from its outgoing cipher key and checking the note commitment), in its own versioned receipt format, because ZIP 311 does not yet define an encoding.
  • It already works on Ironwood mainnet; a real receipt is linked in the README.
  • The goal is to strengthen ZIP 311 itself: contribute test vectors and Orchard/Ironwood text to the ZIP, and propose the helpers upstream to librustzcash rather than maintain a separate stack.

I’d welcome guidance from the protocol engineers on how they’d prefer this to land, whether as a librustzcash contribution, a ZIP update, or both, and I’m happy to adjust the milestones to fit.

ZIP 311 is currently in draft and marks a TODO on Orchard/Ironwood.

How does zreceipt’s payment disclosure work on Orchard/Ironwood?

1 Like

Right, ZIP 311 only specifies Sapling. For Orchard and Ironwood I applied the same output-recovery step, but it isn’t in the spec yet.

For an Orchard action the ock is PRF^ock(ovk, cv_net, cmx, epk), the same as Sapling with cv/cmu/epk. zreceipt derives it from the sender’s viewing key (external and internal ovk) and puts that one ock in the receipt with the txid and action index. The verifier gets the raw tx, checks the txid, decrypts out_ciphertext to get pk_d and esk, then decrypts the note and checks cmx. It only opens that one action.

Ironwood is the same flow with the v3 note plaintext. Code: recover_actions, open_action

Tested: builder round trips for all three pools and a serialized v6 tx, and one real Ironwood payment verifies on mainnet. Not done yet: spend authority.

Since Orchard is a TODO in the ZIP, I’d like to write that section with test vectors as part of the grant. Does that make sense, or would you approach it differently?

I’m confused…Isn’t this vanilla trial decryption of an Ironwood note?

All you’re suggesting here is handing the ‘verifier’ the encryption key to decrypt an individual output in a transaction bundle

Since the goal is simply to ‘verify’ the disclosed note against its on-chain commitment, why not just provide the plaintext and let the ‘verifier’ recompute cmx?

Is the Orchard/Ironwood payment disclosure spec (revealing/proving who sent the payment) currently a TODO on your grant alongside ZIP311 until a specific Milestone target?

Since Zcash development is decentralized, why not propose the Orchard/Ironwood extensions to ZIP 311 alongside the grant application?

This would allow the community, including protocol engineers, to review the proposed specification and assess whether it is technically sound and provides the intended disclosure guarantees.

Close. It’s outgoing-key recovery rather than trial decryption with the ivk. The receipt hands over a single ock, the verifier runs the same recovery a wallet runs on its own sent notes, and then it checks the note commitment. That’s deliberate: it’s the construction ZIP 311 already specifies for Sapling outputs. There’s nothing new on the cryptography side, and there shouldn’t be.

What doesn’t exist yet is the rest of what ZIP 311 needs. That means an agreed encoding and the spend-authority proof (without it, a receipt shows the payment exists, but not who made it). It also means the Orchard/Ironwood text, and one implementation in librustzcash instead of each wallet writing its own. That’s the part the grant would fund.

Agreed on the ZIP. I’ll write up the Orchard/Ironwood output-disclosure section as a PR to zcash/zips so it can be reviewed alongside the application, and post the link here.

(I shortened my previous post while you were writing, so the text you quoted is the earlier version. Same content.)

Here’s the PR: ZIP 311: add Orchard and Ironwood output disclosures by Cosmiq2025 · Pull Request #1406 · zcash/zips · GitHub

It covers Orchard and Ironwood output disclosures only; spend authority for those pools is left as a TODO.

I think you missed my point, would you mind if I asked a few questions to ensure we’re on the same page

Since the aim here is ‘verification’ of an on-chain transaction’s contents - iIs there any functional difference between handing out the ‘ock’ to several actions in the transaction and sharing the on-chain transaction identifier (TxId) along with the note’s plaintext, value, other pieces of information that comes with decrypting the transaction bundle to allow the verifier to recompute on-chain ‘cmx’ for ‘output disclosure’

Secondly, if the verifier were also the recipient - would there be any requirement to hand across the ‘ock’ of the actions in need of ‘verification’

  1. No, functionally they’re the same. With the txid and the note plaintext (including rseed), a verifier can recompute cmx, and can derive esk to check the memo as well. The ock is just a 32-byte way to let the verifier get that plaintext from the chain data itself, and it’s the form ZIP 311 already uses for Sapling. It’s also one ock per action, not one for several.

  2. No. The recipient can already decrypt the note with their own viewing key, so an output disclosure tells them nothing new. What the chain can’t tell them is who paid, which is the spend-authority part. Output disclosure on its own only helps a third party who isn’t the recipient, such as an auditor.

If your point is that spend authority is where the real value is, I agree. I’m open to reshaping the milestones around it.

1 Like

I think you’re confusing ‘Output disclosure’ (a term used in this PR) with ‘Payment disclosure’ (a term specified in the ZIP)

'Output disclosure" does not prove to the ‘verifier’ who sent the payment, and hence isn’t 'Payment disclosure"

A payment disclosure would require proving spend authority over a transaction

Unless the PR mentions a spec for spend authority over Orchard/Ironwood transactions, I would believe it does not belong in ZIP311 since the ZIP concerns with ‘Payment disclosures’

You’re right, and the terminology confusion is on me. In ZIP 311 an output disclosure is one component of a payment disclosure, and verification fails unless at least one Sapling spend or transparent input proves spend authority. For a payment funded from Orchard or Ironwood, which is the usual case now, this PR on its own can’t produce a valid payment disclosure.

I’ve moved the PR to draft. It will stay there until it includes spend authority for Orchard and Ironwood, and I’ll post the design approach here for feedback before writing it up.

As promised, here is the design approach for Orchard and Ironwood spend authority, for feedback before any ZIP text is written.

Context

ZIP 311 defines how a payment disclosure proves Sapling spend authority: a fresh Sapling spend proof for the spent note against the transaction’s own anchor, plus a spendAuthSig under the new rk over a ZIP 311 digest. For Orchard the draft only says “TODO: Add support for Orchard”, and NU6.3 adds the Ironwood pool, which reuses the Orchard Action encoding and circuit (ZIP 229). This note proposes an Orchard-protocol construction that follows the Sapling one as closely as possible. Disclosing Orchard/Ironwood outputs and an Orchard analogue of the optional address proof are out of scope here.

Proposed construction

A disclosure gets two new sequences, orchardSpends and ironwoodSpends, mirroring vActionsOrchard and vActionsIronwood. Each entry contains:

  • index: an index into the corresponding vActions sequence;
  • cv_net', rk', cmx': the public inputs that the disclosure supplies;
  • proof': a Halo 2 proof of the Action statement for one Action;
  • spendAuthSig.

The anchor and the nullifier are not carried. They come from the transaction: rt is anchorOrchard or anchorIronwood (by pool), and nf is vActions<pool>[index].nf. The flags are fixed by this proposal, not chosen by the prover: enableSpends = 1, enableOutputs = 0, enableCrossAddress = 0 (so disableCrossAddress = 1).

To create an entry, the wallet uses the spent note n, its full viewing key (ak, nk, rivk), ask, and a Merkle path from cmx(n) to rt:

  1. Check that the nullifier of n equals vActions<pool>[index].nf.
  2. Sample fresh α' and rcv'.
  3. Build a dummy output note n' with value 0, ρ = nf, a fresh rseed, and the same address as n (needed because disableCrossAddress = 1; see Pool and circuit details).
  4. Set cv_net' = ValueCommit_rcv'(v(n) - 0), rk' = SpendAuthSig.RandomizePublic(α', ak), and cmx' = ExtractP(NoteCommit(n')).
  5. Prove the Action statement with the primary input (rt, cv_net', nf, rk', cmx', 1, 0) plus disableCrossAddress = 1.
  6. After the unsigned disclosure is assembled, set spendAuthSig = SpendAuthSig.Sign(RandomizePrivate(α', ask), digest), where digest is the existing ZIP 311 digest BLAKE2b-256("ZIP311Signed" || coinType, unsignedPaymentDisclosure).

Why nf binds the proof to the transaction’s spend. nf is committed in the txid in both v5 and v6. By “Nullifier integrity”, the fresh proof shows knowledge of a note n* with DeriveNullifier_nk(ρ, ψ, cm) = nf. Unless two distinct Orchard-protocol notes share a nullifier (ZIP 2005 notes this depends on the collision resistance of the hash underlying DeriveNullifier), n* is the note the transaction spent.

“Old note commitment integrity” then fixes v_old, so the fresh proof skips the Merkle check only if the original Action spent a zero-valued note. “Diversified address integrity”, together with the binding of Commit^ivk, ties the prover’s ak and nk to that note’s address. The argument does not rely on the original Action proof or on rt. ZIP 311’s Sapling check has the same shape, though it does not spell out the argument.

Why fresh randomization does not add linkage. The specification requires RandomizePrivate(α, sk) with random α to be distributed like a fresh key, so rk' is unlinkable to ak, to the transaction’s rk, and to other disclosures. cv_net' and cmx' use fresh randomness, and the specification states that ValueCommit and NoteCommit are unconditionally hiding (NoteCommit provided no ⊥ is observed). rt and nf are already public.

Rust API. A prototype built only on the public orchard 0.15.5 API passes these tests in both pools (Orchard with v2 note plaintexts, Ironwood with v3):

  • an honest entry verifies, with a 4992-byte proof;
  • a wrong nullifier or a wrong anchor fails the proof, and a different digest fails the signature;
  • an entry for the prover’s own note does not verify against another spend’s anchor and nullifier;
  • a dummy output to a different address fails verification.

The tests use synthetic Merkle paths, not mainnet data. The code is in tests/orchard_spend_authority.rs. Two helpers are crate-private, ValueCommitTrapdoor::random and Rho::from_nf_old, so the prototype uses ValueCommitTrapdoor::from_bytes and Rho::from_bytes on the nullifier’s bytes instead. The other calls are SpendInfo::new, Note::from_parts, RandomSeed::from_bytes, ValueCommitment::derive, SpendValidatingKey::randomize, MerklePath::from_parts, Circuit::from_action_context, Instance::from_parts, Flags::from_byte(0x01, …) with BundleVersion::orchard_v3() or ironwood_v3(), ProvingKey/VerifyingKey::build(OrchardCircuitVersion::PostNu6_3), Proof::create/verify, and SpendAuthorizingKey::randomize then sign.

Verification

This extends the ZIP 311 verification procedure:

  • Structural checks. Each new sequence must be no longer than its vActions, and each index must be unique and in range. The “at least one spend” rule counts the new sequences too.
  • Per entry:
    1. Reject non-canonical encodings and an identity rk'. Identity rk is a consensus rejection for Actions, and Instance::from_parts refuses it.
    2. Check SpendAuthSig.Verify(rk', digest, spendAuthSig).
    3. Get a trustworthy rt for the pool (see below), and take nf from the transaction.
    4. Verify proof' under the PostNu6_3 verifying key with the primary input (rt, cv_net', nf, rk', cmx', 1, 0) and disableCrossAddress = 1.

Getting the anchor. The procedure depends on the transaction version, not the block height. ZIP 229 leaves the v5 digest algorithm unchanged.

  • v5: anchorOrchard is committed in the txid (ZIP 244, T.4f). Given pd.txid = tx.txid() and a mined transaction, rt is the value that consensus checked: it “MUST refer to some earlier block’s final treestate”.

  • v6: ZIP 229, “Anchor commitment (version 6)”, leaves anchorOrchard and anchorIronwood out of the txid digest and commits them in the auth digest instead. This is so that a transaction can be re-anchored without changing its txid. In that case pd.txid = tx.txid() does not authenticate the anchor. The verifier must also do one of the following:

    • (a) check that the presented transaction’s auth digest is the one committed by the mined block’s hashAuthDataRoot;
    • (b) check independently that rt is the root of the final treestate of some block earlier than the one containing tx, for that pool, for example against hashLatestOrchardRoot/hashLatestIronwoodRoot (ZIP 221, extended by ZIP 258) or a full node.

    Soundness does not depend on this check, because nf binds the note (see above); it keeps the Merkle-path condition about the real tree.

Pool and circuit details

  • Verifying key. Use PostNu6_3 for every disclosure, whatever the transaction’s height; the proof is new, so it need not match the original Action’s key. InsecurePreNu6_2 (documented in the crate as never for proving or current verification) must never be accepted.
  • Pools. Orchard and Ironwood share the circuit and encoding (ZIP 229) and differ only in where rt and nf come from, so the pool must be covered by the digest; pool-specific sequences do that.
  • Dummy output address. In the crate’s PostNu6_3 circuit, a nonzero disableCrossAddress forces the output’s g_d and pk_d coordinates to equal those of the spent note, regardless of value. That is why step 3 reuses the spent note’s address. n' is never published, so this reveals nothing.
  • Fixed flags. enableOutputs = 0 forces the output value to 0, so cv_net' commits to exactly v(n). enableSpends = 1 is required whenever v(n) > 0.

What it does and does not prove

A valid entry shows that the signer holds the spend authority (ask, together with nk and rivk) for the note behind that Action’s nf. It does not identify an address: as ZIP 311’s rationale says for Sapling, one spend authority covers many diversified addresses.

Covering some Actions says nothing about the others (“one, but not all, spenders”), which matters more for Orchard because Actions often contain dummy spends. When v_old = 0 the statement does not check Merkle path validity, so an entry can be made for a dummy spend whose key the prover kept, and since cv_net' hides the value, a verifier cannot tell it from a real spend.

The digest covers txid, msg and every entry, proofs included. So each signature commits to the whole disclosure, and an entry cannot be added, removed or changed without invalidating every spendAuthSig (ZIP 311’s transparent BIP 322 signatures cover only msg). Because rk' is a primary input, replacing it requires a new proof. Putting a challenge in msg makes the disclosure interactive, as in ZIP 311. The transaction’s own spendAuthSig is made under a different key (rk), over the SIGHASH.

Witness requirement

As in ZIP 311’s Security and Privacy Considerations, the prover needs a witness for the spent note against the transaction’s anchor, which a wallet can cache when it creates the transaction’s proofs (in v6 the anchor may be chosen after signing). Otherwise, since the anchor is some block’s final treestate root, the wallet can locate that block (own records, ZIP 221 history tree leaves, or a node) and rebuild the path from the public cmx values up to it. α' and rcv' are fresh, so ZIP 311’s “no ephemeral data” requirement holds.

Open questions for reviewers

  1. Flags. Is enableCrossAddress = 0 with a same-address dummy the right choice? The alternative is enableCrossAddress = 1 with an unconstrained dummy address. Either works under PostNu6_3; the point is to fix one.
  2. Statement. The NU6.3 Action statement is not fully written down. ZIP 2006 is still Reserved. The specification’s Action description lists disableCrossAddress in the primary input, but the consensus rule and the Action statement both list seven inputs (nine field elements). Should the ZIP cite the crate’s PostNu6_3 circuit until the specification is updated?
  3. Circuit version. Should the ZIP pin the circuit version to PostNu6_3 explicitly, rather than “the current consensus key”?
  4. v6 anchors. Should verifiers be required to use check (a), check (b), or either?
  5. Own anchor in v6. Since v6 anchors are authorizing data, could a disclosure carry its own valid anchor so that wallets need not keep witnesses for spent notes? ZIP 311 argues a newer anchor brings no privacy benefit. Does it bring any cost?
  6. Binding assumption. Is nullifier collision resistance (plus the binding of NoteCommit and Commit^ivk) the right assumption to state, given it does not hold against a discrete-log-breaking adversary?
  7. Value opening. Should an entry be able to reveal (v_old, rcv'), so that the verifier can see that the spent note was not zero-valued (this reveals the spent note’s value)?
  8. Encoding. Should there be one proof per entry (2720 + 2272 = 4992 bytes, by ZIP 229’s sizeProofs formula), or one aggregated proof per pool?
  9. Hardware and FROST signers. Can these sign an arbitrary 32-byte digest with a randomized key, or do they need firmware changes?

Scope

This is a proposal for discussion before any ZIP text is written. It changes no consensus rules and needs no new trusted setup.

Thanks to the committee for the discussion on October 23. I’ve revised the application to address the points raised.

The grant is now phase 1 only: the ZIP 311 specification work for Orchard and Ironwood. It covers spend authority, the v5 and v6 anchor checks (including Sapling in v6), the encodings and versioning ZIP 311 leaves as TODO, test vectors for the Sapling, Orchard and Ironwood pools, and an independent design review. All of it goes through the ZIP editors’ review in zcash/zips#1406, and I do the work myself, so no hire is needed.

The amount is now $15,000 ($1,500 at approval, then three milestones), down from $40,000. Implementation in librustzcash, wallet integration and the institution pilot move to a phase 2 application once the ZIP text has been reviewed.

Following Hanh’s suggestion, I’ve asked str4d to review the construction on the pull request: ZIP 311: add Orchard and Ironwood output disclosures by Cosmiq2025 · Pull Request #1406 · zcash/zips · GitHub

Updated application: Grant Application - zreceipt: payment disclosures for shielded Zcash (ZIP 311) · Issue #502 · ZcashCommunityGrants/zcashcommunitygrants · GitHub
Design note: Grant Application – zreceipt: payment disclosures for shielded Zcash (ZIP 311) - #12 by Amantur

Feedback on the nine open questions in the design note is welcome here.

1 Like

Since this proposal has been open for over two weeks and the applicant has amended his grant specifications, I have a few questions for @Amantur

Have you looked into str4d’s comments on the proof size for Orchard/Ironwood payment disclosures?

Moreover, several questions you’ve left ‘Open for Reviewers’ also appear to revisit choices already made in the ‘Proposed Circuit Construction’ section.

@ZCG Although I’m not a veteran cryptographer, it appears as though the applicant has not conducted sufficient research on this grant’s problem-space

@craftsoldier Thanks, this is useful.

I hadn’t taken str4d’s January comment on zips#1154 into account, and I should have. For Orchard address signatures he wrote that the plan is not to reuse the Action circuit with fixed inputs, but to extract the relevant subset of the Orchard circuit into a dedicated circuit, which, unlike Sapling, needs no new parameter ceremony and gives smaller (though still not small) proofs, and that this was waiting on the OrchardZSA changes being merged. My design note also reuses the full Action circuit, which is the part of that approach he set aside.

So the Orchard and Ironwood spend-authority proof in ZIP 311 should probably go the same way, with the current Action-circuit prototype kept only as a working reference until the dedicated circuit exists. I’ve asked str4d on zips#1406 whether he sees payment disclosures going the same way, and how ZIP 311 should handle the interim until the OrchardZSA changes are merged.

On the open questions, you’re right that several of them (the flags, the circuit version, the v6 anchor check, one proof per entry) restate choices the construction already makes. I’ll restate them as decisions with reasons.

I’ll wait for str4d’s answer before changing the application, since it decides how the spec and test vectors should be scoped.

1 Like

Thank you for your proposal. After review by ZCG and a period for community input on the forum, the committee has decided not to fund this submission. We’re grateful for the effort you put into your application and hope you’ll remain an active part of the Zcash community.

Meeting minutes: Zcash Community Grants Meeting Minutes 11/9/2026

Thank you for reviewing the application and for explaining the decision in the minutes. That makes sense to me: without interest from the ZIP 311 owner, it’s hard to justify funding spec work from outside.

I’ll leave zips#1406 open, and zreceipt stays live. If str4d or the protocol team signal interest later, I’d be glad to come back with a proposal built on that.