# Applied Zcash > Patterns for Zcash developers: build apps from shielded notes, memos and keys. Each pattern is possible with the consensus rules of today. Each pattern has a live demo. This file has a short version of each page: the summary, the problem, the use cases, the costs and the limits. The mechanism, the spec and the demo of each page are in llms-full.txt. --- Page: https://appliedzcash.com/basics/ # Basics The parts of a usual shielded payment, and how a shop or an app receives one. The patterns are made from these parts. The basics pages have reading guides, building blocks and demos. ## Start - Start here A reading order for a new builder, from smart contracts to your first pattern. - Smart contracts on Zcash Zcash has no smart contracts. Find the Zcash pattern for each task of a contract. - Concepts Notes, pools, actions, memos, keys, addresses and trial decryption, in a few lines each. ## Receive payments - Payment links Ask a wallet for a payment with a ZIP 321 URI and its QR code. - Address per customer Make many addresses from one key. Each address is for one customer or one order. - Watch-only keys Give a server a viewing key. It sees the payments, and the spending key stays offline. ## Transactions - Transaction IDs For a v5 or v6 transaction, the txid is a digest of the effecting data. A light client checks its inclusion with the headers and a Merkle path. --- Page: https://appliedzcash.com/basics/start-here/ # Start here This page is a reading order for a new builder. Each step has links to the pages to read. Most pages have a live demo in the browser. ## Before you start You need basic programming skills. The terms of Zcash are on the Concepts page. A mobile or light wallet for Testnet is useful for the demos. ## Network status, November 2026 - Ironwood is a shielded pool. It is live on Mainnet (since July 2026). Use it for new apps. - The NU7 upgrade is live on Mainnet (since November 2026). The target block time is 25 seconds. - zcashd is end-of-life (July 2026). Use Zebra or Zakura in place of the zcashd node. Use Zallet in place of the zcashd wallet. - A tutorial with 75-second blocks or zcashd commands is out of date. This list is true in November 2026. The status of each ZIP is on zips.z.cash. ## The path - Read Smart contracts on Zcash. It has a table with the Zcash pattern for each task of a smart contract. - Read Concepts. Build a unified address in the demo. - Read Payment links. Get test coins (TAZ) with the faucet command on that page. A faucet on the ZecHub faucet list is an alternative. Then make a payment link. Pay it from a wallet on Testnet. - Read Address per customer and Watch-only keys. A shop uses them to find the payment of each customer. - Choose one pattern for your task. The patterns are in the table of tasks on Smart contracts. The Wishlist has designs that need new software, for example Signature login. ## Tools This list has developer tools for Zcash. The first items are the core software of most apps: nodes, a server wallet, a light client server and libraries. The faucet of the demos on this site is also on the list. The maintainer of each other tool adds its item. All items have the same rules. - librustzcash: Rust crates for Zcash apps and wallets: keys, addresses, transactions and a light client backend. - lightwalletd: a light client server that gets blocks from a Zebra or Zakura node and sends compact blocks to wallets. - Zakura: a full node for Zcash. - Zallet: a wallet for servers, in place of the zcashd wallet. - zcash-faucet: a command that gets test coins (TAZ) for a Testnet address. - Zebra: a full node for Zcash, from the Zcash Foundation. - zingolib: a Rust library for light client wallets, with a command line wallet (zingo-cli). Do you maintain a tool? Add one line with the name, the link and what the tool does. The tool must be open source and usable with Zcash after NU7, on Mainnet or Testnet. The steps are in issue 94. ## Get help The Zcash Community Forum and ZecHub also have help for builders. To add a pattern or to correct a pattern, read the contribution guide. --- Page: https://appliedzcash.com/basics/smart-contracts/ # Smart contracts on Zcash Zcash has no smart contracts. An app on Zcash uses the parts of a shielded payment: notes, memos and keys. With these parts, an app can do many tasks of a smart contract. ## Does Zcash have smart contracts? No. Zcash has no virtual machine, and nodes run no app code. Nodes check one fixed set of rules for each transaction. The values and the addresses in the shielded pools are secret. Nodes see note commitments, nullifiers, encrypted notes and proofs. With each proof, the wallet shows that the transaction obeys the rules of the circuit. Thus, nodes check only the rules of the protocol. An app must check its own rules. The transparent pool has a small script language, as in Bitcoin. All its values and addresses are public. Use the shielded pools for new apps. ## Smart contract tasks on Zcash Each row has a task of a smart contract on Ethereum, and the Zcash pattern for the same task. | Task | On Ethereum | On Zcash | | Keep a record with one history | Contract storage | Bound notes | | Receive orders from users | A call to a contract function | Wallet-native orders | | Share control of funds | A multisig contract | Threshold keys | | Log in with a wallet | Sign-In with Ethereum (ERC-4361) | Log in with Zcash | | Keep a record of an address check | An attestation (Ethereum Attestation Service) | Verified address | | Ask for a payment | A payment URI (ERC-681) | Payment links | | Find the customer for a deposit | A new account for each user | Address per customer | | See payments on a server | Contract events | Watch-only keys | | Pay for the work of the network | Gas | A fee for each action (ZIP 317). From block 3,590,000, the fee rule for wallets is in ZIP 2009. A wallet with the older rule pays a higher fee. Keep the scan work of wallets small with polite actions. | Bound notes and threshold keys also use canonical action pairing. With it, each build of the same transaction has the same note commitments. ## Who checks the rules On Ethereum, each node runs the code of a contract. Thus, nodes check all the rules of the contract. On Zcash, three parties check the rules of an app: - Nodes Nodes accept each nullifier one time only. Nodes check the signature of each spend. - Anyone with the data A verifier calculates the note commitment from the record, recipient address, value, plaintext lead byte and action nullifier. The verifier checks that its x-coordinate is equal to the `cmx` on the chain. The verifier checks that each successor is in the action in which its predecessor is spent. The verifier also checks the block order of the records. Thus, each verified record has one next record at most. - The app The app checks all other rules, for example the price of an order. Users must trust the app for these rules. ## Tasks that need new software Some tasks of a smart contract need a ZIP and a network upgrade. Each ZIP in this table has the status Draft (November 2026). | Task | Change | | Make a new token | Zcash Shielded Assets: ZIP 227 (issuance) and ZIP 226 (transfer and burn) | | Swap two assets | ZIP 228 (asset swaps) | | Use relative lock-time for transparent inputs | ZIP 68 (relative lock-time) | | Send a memo of more than 512 bytes | ZIP 231 (memo bundles) | Some designs need a new wallet function only. These designs are on the Wishlist, for example Signature login. ## Where to start The next steps are on the Start here page. Then read the pattern for your task. --- Page: https://appliedzcash.com/basics/concepts/ # Concepts A shielded payment has a small set of parts: notes, actions, memos, keys and addresses. ## Notes A note contains value. Each note has a recipient, a value and a random seed `rseed`. A commitment to the note, `cmx`, is on the chain. The recipient and the value stay secret. A wallet spends a note with its nullifier. Nodes accept each nullifier one time only. Thus, each note can be spent one time only. ## Pools A pool is a set of notes with one protocol. Two pools are important for new apps: - Ironwood The newest shielded pool. Its protocol is Orchard. Use it for new apps. - Transparent A public pool. All values and addresses are visible, as in Bitcoin. Zcash also has two older shielded pools: Sapling and Orchard. Orchard is the first pool of the Orchard protocol. ### The Orchard pool and the turnstile Before NU6.2, the Orchard circuit had a soundness vulnerability. With it, an attacker could have made value in the Orchard pool. Since NU6.3 (Mainnet block 3,428,143), one corrected circuit is in use for both pools. The Orchard pool also has two more consensus rules (ZIP 2006): - Nodes accept no new value in the Orchard pool. - In each Orchard-pool action, the output and the spent note must have the same receiver. Thus, a holder cannot send value to a different address in the Orchard pool. This rule includes the other addresses of the same wallet. Without these rules, people could still pay each other in the Orchard pool. Nodes would then never check value from the vulnerability at the turnstile. Nodes check each move out of the Orchard pool at the turnstile. If the balance of a pool becomes negative with a block, nodes reject the block (ZIP 209). A holder can move Orchard notes to the Ironwood pool. A holder can also change the values of their own Orchard notes. The chain value pool balances are public. Thus, the amount of each move to the Ironwood pool is public. The migration practice for wallets is in ZIP 318 (draft): notes of fixed values, sent over time. ## Actions and bundles An action contains one spend and one output. A bundle contains the actions of one transaction in one pool. With its default settings, the `orchard` builder makes a bundle with two actions or more. The builder adds dummy spends and dummy outputs to fill the actions. With the `BundleType::UNPADDED` setting, the builder can make a bundle with one action. Outsiders see the number of actions. The real spends and outputs stay secret. ## Memos Each output has a memo of 512 bytes. The memo is in the note ciphertext. The recipient can read the memo. The sender can read it with the outgoing viewing key. The format is in ZIP 302. A text memo is UTF-8 text. A payment to a transparent address has no memo. ## Keys All the keys of a wallet are made from one seed. Each key in this table is made from the key above it, and has less power. | Key | Spend | See payments in | See payments out | Make addresses | | Spending key | Yes | Yes | Yes | Yes | | Full viewing key | No | Yes | Yes | Yes | | Incoming viewing key | No | Yes | No | Yes | See Watch-only keys. ## Addresses Different address types for different use cases. ### TEX addresses A TEX address (Transparent-Source-Only Address, ZIP 320) is a transparent address. It is for a recipient that accepts transparent inputs only, such as an exchange. A wallet pays a TEX address in two steps: - Move shielded funds to an ephemeral transparent address. - Send the funds from that ephemeral transparent address to the TEX address. The intermediate payment is public on the chain. Both its address and amount are visible. A TEX address has the prefix `tex1` on Mainnet (`textest1` on Testnet). Thus, a wallet can recognize this address type. **Note:** Always check the recipient's requirements before sending. A wallet sends a note to an address. A unified address (ZIP 316) contains one receiver for each pool that the recipient accepts. The wallet of the sender selects the best receiver. A wallet can make many addresses from one key. Only the holder of a viewing key can link these addresses. See Address per customer. ## Trial decryption The recipient of each note is secret. Thus, a wallet must try to decrypt each action with its incoming viewing key. This is trial decryption. Each wallet does this work for each action on the chain. See Polite actions. ## Payment requests A payment request is a URI (ZIP 321). The URI contains the address, the amount and the memo. A wallet reads the URI from a link or a QR code. See Payment links. Not in this short version: Demo: build a unified address. The full page is at its URL. --- Page: https://appliedzcash.com/basics/payment-links/ # Payment links A payment link is a request for a payment. The format is in ZIP 321. The link contains the address, the amount and a memo. A phone wallet can read the link from a QR code. ## Use - a checkout page of a shop; - an invoice; - a donation button. Put the order number in the memo. When the shop receives the payment, it reads the memo and finds the order. ## Limits - **Amounts.** The amount is a request. Some wallets let the payer change it. The shop must compare the value of the note with the order. - **Memos.** Some wallets change binary memos and control characters. Use one line of printable ASCII. - **Many payments.** Some wallets refuse a request with a second payment or a zero amount. Other wallets pay the first payment only and show no error. See Batch payouts for wallet support. - **Privacy.** The URI is plain text. A person who sees the link or the QR code sees the address, the amount and the memo. - **Phishing.** Anyone can make a link to a different address. Show links only on pages that you control. In Wallet-native orders, a participant sends app orders with payment links. Not in this short version: Mechanism, Demo: a shop link. The full page is at its URL. --- Page: https://appliedzcash.com/basics/address-per-customer/ # Address per customer A shop can make many addresses from one key. Give each customer or each order its own address. The shop knows the address of each payment. Outsiders see unrelated addresses. ## Use - a deposit address for each user of an exchange or a game; - an address for each invoice; - an address for each place where you publish a donation link. With an address for each order, the payer can send a payment with no memo. The shop finds the order from the address. ## Limits - **Transparent receivers.** With a transparent receiver in a unified address, that receiver is visible on the chain. Use addresses with shielded receivers only. - **Viewing keys.** A holder of the incoming viewing key can link all the addresses. Keep the key secret. - **Wallet support.** Wallet apps make a new address on request and select the index themselves. A server selects the index with a library such as `orchard` or `zcash_keys`. Not in this short version: Mechanism, Demo: a demo shop. The full page is at its URL. --- Page: https://appliedzcash.com/basics/watch-only-keys/ # Watch-only keys A server that receives payments needs a viewing key only. With the viewing key, the server sees the payments and makes new addresses. The spending key stays offline. ## Use - a shop server that marks orders as paid; - an accountant or an auditor who reads the payments of an account; - a public dashboard of the donations to a project. ## Outgoing viewing key A sender uses the outgoing viewing key (OVK) to decrypt the outputs that it sent. With the OVK, the sender sees: - the recipient of the payment - the amount sent - the memo field (if any) The OVK is made from the full viewing key. The OVK is a viewing key. Its scope is the payments out of the account only. A unified key (ZIP 316) is the encoding of a viewing key, like a unified address. The prefix of a UFVK is `uview1`. The prefix of a UIVK is `uivk1`. The OVK is in the UFVK: a wallet makes the OVK from the Sapling or Orchard part of the UFVK. On Testnet, the prefixes are `uviewtest1` and `uivktest1`. Select the smallest key for each task: - Keep the seed and the spending key in an offline wallet or a hardware wallet. - Give the shop server the UIVK. The server makes addresses and finds payments. - Give an auditor the UFVK. The auditor also sees the payments out of the account. - Give the OVK to a server that keeps records of the payments out of the account. The server sees the recipient, the amount and the memo. ## Limits - **All or nothing.** The holder of a viewing key sees all the past and future payments of the account. To show one payment only, use a payment disclosure (ZIP 311, draft). - **Permanent access.** A key that you give out stays valid. To stop new access, move the funds to a new account. The old payments stay visible with the old key. - **Balances.** A server with the UIVK sees each note in. A server with the full viewing key also sees each spend. The full viewing key is necessary for a balance. - **Spendable balance.** A balance can contain notes that a wallet cannot spend yet. The recommendation of ZIP 315 (draft) is 10 confirmations for an untrusted note. For a trusted note, such as a note from a transaction that the wallet made, the recommendation is 3. With 25-second blocks, 10 confirmations are about 4 minutes. Three confirmations are about 75 seconds. Show the spendable balance next to the balance. Thus, a person sees which funds are spendable now. - **Wallet birthday.** A server with a viewing key should also keep the birthday height of the account. The birthday height is the minimum block height that a wallet scans for the account. A wallet can rebuild the account with a later birthday height, for example the current height. Thus, the wallet misses notes that were sent to the account before that height. The balance is too low, and can be zero. Each account in the wallet library `zcash_client_backend` has a birthday height (AccountBirthday). An optional birthday height in a viewing key is in ZIP 316 (revision 2, draft). Without a birthday height in the viewing key, a wallet must ask for one or scan from a conservative default. Keep the birthday height with the key in each backup. Not in this short version: Mechanism, Demo: one seed, three keys. The full page is at its URL. --- Page: https://appliedzcash.com/basics/transaction-ids/ # Transaction IDs A receipt contains the ID of a transaction, the txid. For a v5 or v6 transaction, the txid is a digest of the effecting data. The authorizing data is in a separate digest. ## Use - a verifier who checks a receipt of Memo stones, Verified address or Bound notes: the receipt contains a txid; - a wallet that finds its own transaction by its txid, also after a new signature; - a light client that checks that a transaction is in a block, with the block headers and a Merkle path. ## Limits - **Version 4 and older.** For a v4 transaction, the txid is a double SHA-256 hash of the full encoding (ZIP 244). Thus, a person who changes a signature also changes the txid. A v4 txid is reliable only after the transaction is in a block. - **Signatures.** A wallet signs a signature digest for each transparent input, each Sapling spend and each Orchard action (ZIP 244). For a transaction with transparent inputs, each signature digest also has the amounts and the scripts of the spent coins. For a transaction without transparent inputs, the signature digest is the txid. - **One network upgrade.** The MMR of a header has the blocks since the last network upgrade only (ZIP 221). - **FlyClient.** For a chain with fast difficulty changes, such as Zcash, the security of FlyClient is only heuristic. A deeper security analysis is necessary before light clients depend on FlyClient (ZIP 221). Not in this short version: Mechanism, Demo: the digests of a v5 transaction. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/ # Patterns With an app pattern, an app binds data and rules to shielded notes, memos and keys. Each pattern is possible with the consensus rules of today. Each pattern page has the problem, the use cases, the mechanism and the cost. It also has the spec, a demo and a toy example. ## Records Keep a record that a verifier can find on the chain later. - Bound notes Put a hash of app data in the `rseed` of a zero-value note. Standard wallets can decrypt the note. - Verified address Experimental Write a record of an address check in a bound note. A verifier with the receipt examines the record. - Memo stones Experimental Put one hash for many shielded memos in a public record. The author of a memo keeps a receipt. ## Payments and orders Receive an order, or pay many recipients. - Wallet-native orders Put an order in the memo of a ZIP 321 payment URI. - Batch payouts Experimental Pay many recipients in one shielded transaction. Each recipient receives its own amount and memo. ## Login and roles Find who controls an address, or share one role among many people. - Log in with Zcash Send a one-time code in a memo to the address of a user. The user types the code to log in. - Threshold keys Experimental Give each app role one FROST group key. Any t of n members can sign for the role. ## Transaction shape Make transactions with fewer actions and a fixed order of actions. - Polite actions Each wallet must try to decrypt each action. Thus, an app must use a small number of actions. - Canonical action pairing Use a keyed sort to put the spends and the outputs of a bundle in order. The pairs are the result of the order. ## Status A pattern with the Experimental tag has an open item: a review, an implementation or support in wallets. The open item is in the warning at the top of its page. The condition for the removal of the tag is also in the warning. Read the warning before you use the pattern on Mainnet. --- Page: https://appliedzcash.com/patterns/bound-notes/ # Bound notes Zcash keeps money in sealed notes. Each note has a seal that only its contents can make. A bound note puts an app's data into that seal. If someone changes the data, the seal stops matching. Everyone can see the change. Each new note also includes the seal of the note before it. To make the new note, the app must use up the old one. Zcash lets a note be used one time only. So the app's record is a single chain. Each link is sealed, and each link can come only once. Anyone with the data can check the whole chain. In technical terms, the seal is the note commitment `cmx`. An app puts a hash of its data in the `rseed` of a note. ψ and rcm are calculated from `rseed` (ZIP 212). Thus, `cmx` is a commitment to the data. Standard wallets can decrypt a bound note. Anyone with the data can calculate `cmx` again and compare it with the chain. The pattern is possible with the consensus rules of today. ## Problem Many apps must keep a public record on the chain. Anyone must be able to examine the record. Examples are a name registry, a decision market and a timestamp service. A memo is a weak place for a record. The memo is in the note ciphertext, outside the note commitment. To read a memo, a verifier needs a viewing key. Compact blocks contain only the first part of each ciphertext. The note commitment is a strong place for a record. Nodes add each note commitment to the note commitment tree. Nodes accept each nullifier one time only, so each note can be spent one time only. A record in the note commitment has these two properties. ## Use cases - **Timestamp registry.** The app puts a hash of each document in the fields of one stamp. Anyone with the document can then show that it existed at the block height of the stamp. The demo below is a timestamp registry. The transaction builder must accept an `rseed` from the app. See Cost. - **Name registry.** The app writes each registration as one record in a chain of bound notes. Each tip has one successor at most. Thus, the registry is an append-only record. The app pins a genesis note. Only the descendants of that note are part of the record. See Authority. - **Decision market.** The app writes the public record of a market as one record, for example its result. Anyone with the data can examine the whole chain. Each wallet tries to decrypt each action on the chain. Thus, the app keeps the number of records small. See Cost. ## Cost - **Fee** In a usual record transaction, the tip and one funding note are spent. The outputs are the new note and a change note. That is two actions. From block 3,590,000, the fee rule for wallets is in ZIP 2009. With that rule, the fee for two actions is 2,000 zatoshis (0.00002 ZEC). A wallet with the older rule of ZIP 317 pays 10,000 zatoshis. - **Wallets** Each wallet tries to decrypt each action on the chain. Keep the number of records small. See Polite actions. - **Verifiers** One BLAKE2b hash and one Sinsemilla commitment for each note. The demo below does this work in your browser. - **Builders** The transaction builder must accept an `rseed` from its caller. It must also let the caller put the successor in the action in which the predecessor is spent. The `orchard` crate samples `rseed` at random. `add_output_with_rseed` is in a patch. The patch is pending upstream. In a PCZT (ZIP 374), the usual `rseed` field is sufficient for a bound output. Not in this short version: Mechanism, Spec, Demo: a timestamp registry. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/polite-actions/ # Polite actions Each shielded wallet must try to decrypt each action on the chain. Thus, each action that an app adds is more scan work for all wallets. An app must keep its number of actions small. ## Problem An app that keeps state on the chain often uses one note for each user. When a user changes, the app spends the old note and makes a new note. That is one action for each changed user. A busy app makes thousands of actions each day. The app pays only the fee for these actions. All other wallets pay with scan time and bandwidth. The cost increases with each user of the app. ## Use cases - **Game scoreboard.** The app puts the score of each player in a leaf of a Merkle tree. The app binds the root in one bound note for each epoch. In the example results, with 20 changed players in each block, the app makes 6,912 actions each day. With one note for each player, the app makes 76,032 actions each day. Each player gets a leaf proof from the app. If the app holds back a proof, the player can see the delay. See Cost. - **Membership lists.** The app puts the state of each member in a leaf. With one note for each member, outsiders see how many members changed in each epoch. With leaves, the action count stays the same. Each payment to a member is still one action. See Cost. - **Public epoch records.** The app puts the public record of each epoch in the memo of the root note. Only the wallets that read the record pay for its memo bytes. For a long record, the app adds chunk notes to the same transaction. Each chunk note is one more action. See Techniques. ## Cost - **Proof delivery** Each user must get leaf proofs from the app. A leaf proof is about 32 × log₂(N) bytes for N users. If the app holds back a proof, the user must wait. The user can see the delay. - **Privacy** The result is better privacy. With one note for each user, outsiders see from the action count how many users changed in each epoch. With leaves, the action count stays the same. - **Payouts** A payment to a user wallet is one action for each payment. The user must receive a usual note, so this cost stays. - **Proving** A transaction with fewer actions is faster to build. - **Block limit** Under NU7 (ZIP 218), one block has at most 330 Orchard and Ironwood actions, across all of its transactions. Thus, a block with many actions from one app has less space for other shielded transactions. Not in this short version: Mechanism, Spec, Demo: the cost of a scoreboard. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/wallet-native-orders/ # Wallet-native orders A participant sends app orders from a usual Zcash wallet. Each order is a ZIP 321 payment with a memo. The wallet shows the memo before the participant approves the payment. The operator identifies the participant by a MAC under a session key. The keys for the funds of the participant stay in the wallet. ## Problem An app must know which participant sent each order. The sender of a shielded payment is secret. Wallets sign messages with transparent keys at most. ZIP 304 is for Sapling keys only. Thus, many apps ask for a seed phrase, or keep a secret key in the browser. Participants with real funds refuse to put a seed phrase in a web page. Wallets already send ZIP 321 payments with memos. A wallet shows the memo before it sends the payment. These two functions are the base of this pattern. A survey of wallets in November 2026 had these results: - wallets send a memo of one line of printable ASCII unchanged; - some wallets refuse or change binary memos and control characters; - some wallets refuse a request with a second payment or a zero amount; - some wallets pay the first payment only and show no error (Batch payouts). ## Use cases - **Polls.** A participant sends each answer as a command in an order memo, for example `q1 YES`. In the demo scheme, one memo can contain 9 answers or fewer. The operator knows each session key. Thus, the operator can make a false order. Use this pattern only for polls with small stakes. See Limits. - **Credit rounds.** An operator runs a round with small stakes, for example credits. The welcome to the payout address can contain funds for the first orders. After the round, the operator pays the final balance of each participant to that address. A holder of the incoming viewing key of the payout address can get the session key of the participant. Thus, each participant joins with a payout address with a private viewing key. See Limits. ## Cost - **Each order** The order amount and the network fee. A usual shielded payment with change has two actions. From block 3,590,000, the fee rule for wallets is in ZIP 2009. With that rule, the fee for two actions is 2,000 zatoshis. A wallet with the older rule of ZIP 317 pays 10,000 zatoshis. - **Wallets** Each order is one transaction on the chain. Put several commands in one memo. See Polite actions. - **Sign-in on a new device** One code request. Its amount is the cost of the code note and its part of the epoch transaction. - **Wallet support** ZIP 321 with memos. The wallet must send the memo bytes unchanged. ## Limits Warning The operator knows `k_i`. Thus, the operator can make a false order. Use this pattern only for apps with small stakes, for example credits. Apps with real stakes need signatures from the wallet of the participant. - **False orders.** The participant can find a false order with the viewing key of the wallet and the memo log of the page. Other persons see only the word of the participant against the word of the operator. - **Copies.** A copy of a memo or a QR code is a finished order. With the nonce rule, it is counted one time only. A copy stays valid until the expiry. - **Leaked keys.** A person with `k_i` can make orders for participant `i` and pay for them from a different wallet. The key `k_i` is valid until the end of the round. Thus, the operator counts these orders until then. Malware or a browser extension can read `k_i` from the page. A holder of the incoming viewing key of the payout address can get a code, and then `k_i`. Use a payout address with a private viewing key, for example a new account. - **Phishing.** Anyone can send a memo that looks like a code or a payout. The operator refuses a false code at sign-in. A clone page can still ask the participant for a real code. Wallets and pages must show the host of each link. - **Privacy.** Outsiders see a usual Ironwood-pool transaction. The number of orders in each window is visible in the leaf list. The operator knows the payout address and the time of each order. Not in this short version: Mechanism, Spec, Demo: a toy poll. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/action-pairing/ # Canonical action pairing A builder uses a keyed sort to put the spends and the outputs of a bundle in order. The pairs of spends and outputs are the result of the sort. Thus, each build of the same transaction has the same note commitments. ## Problem Each action of an Orchard-protocol bundle contains one spend and one output. The ρ of the output is the nullifier of the spend in the same action. ψ, rcm and the note commitment of the output are calculated from ρ. Thus, the note commitment of an output changes when its pair changes. A standard builder pairs spends and outputs at random. It also makes new dummy notes on each build. Thus, each output has a different note commitment in two builds of the same transaction. The same note commitments are necessary on each build in three cases: - **Rebuild after a reorg.** In a chain of bound notes, the `cmx` of each predecessor is bound in its successor. After a reorg, a transaction can be gone from the chain. After a rebuild with new commitments, each later note with an old `cmx` is invalid. - **Several signers.** With FROST over a PCZT, each signer must examine the bundle before it signs. To calculate the expected bundle, a signer needs the dummy notes and the pairs of the coordinator. - **Receipts before mining.** An app can tell a user the note commitment of a note before the transaction is mined. That commitment must stay the same after a rebuild. ## Use cases - **Chains of bound notes.** After a reorg, a builder makes a transaction of the chain again. With the same inputs, each output has the same `cmx`. Thus, each later note of the chain stays valid. The builder must accept a pairing key and a context. See Cost. - **Treasuries with several signers.** With FROST over a PCZT, the coordinator makes the canonical build as the Constructor. Each signer with the pairing key makes the bundle again before it signs. The signer compares `nf`, `cmx` and `epk` of each action. Each signer keeps the pairing key as secret as a viewing key. See Limits. - **Receipts before mining.** An app gives a user the note commitment of a note before the transaction is mined. When a builder makes the transaction again with the same inputs, the note commitment stays the same. With a different fee input, the note commitments are different. See Limits. ## Cost - **Chain** Zero. A canonical bundle has the same size and the same fee as a standard bundle. - **Build** A small number of BLAKE2b hashes for each action, and one sort. - **Builders** The builder must accept a pairing key and a context. The `orchard` crate pairs at random. This pattern is implemented in a fork of the crate, and an upstream PR is pending. - **PCZT** The Constructor role makes the canonical build. A signer with `k` can build the bundle again and compare `nf`, `cmx` and `epk` of each action before it signs. ## Limits - **Privacy.** All derived values are calculated from `k`. Only a holder of `k` can identify each dummy note. To all other parties, the dummy notes and the order of actions look random. Thus, keep `k` as secret as a viewing key. - **Reused seeds.** A dummy nullifier is the same when `d` is the same. The real nullifiers are bound in the seed, so the same notes are spent in two bundles with the same `d`. Only one of them can be mined. A unique `ctx` is necessary for a bundle with zero real spends. - **Rebuild scope.** A rebuild has the same commitments only with the same inputs. With a different fee input, `d` changes, and then all pairs change. Not in this short version: Mechanism, Spec, Demo: rebuild a bundle. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/threshold-keys/ # Threshold keys Give each app role one FROST group key. Any `t` of `n` members can sign for the role. Nodes see one usual spend signature. Warning FROST on the Ironwood pool is unaudited, and ZIP 312 is a draft. Review by a cryptographer is necessary for the nested construction on this page. Use it on Testnet only. The Experimental tag stays until a cryptographer reviews the nested construction. See Status. Test coins You must have test coins (TAZ) to use a wallet on Testnet. To get TAZ, you must have Node.js 24.7 or later. Run this command with an address of your Testnet wallet: ``` npx zcash-faucet@1.2.1 utest1your_testnet_address ``` Your computer calculates a short proof of work. Then the faucet server sends 0.1 TAZ to the address. No account is necessary. The command has a fixed version. Thus, a later release cannot change the code that you run. The options are in the zcash-faucet repository. ## Problem An Orchard-protocol spend has one signature under one key `ak`. Thus, shared control of a note must be inside the key. An app often has roles: a treasury, a registry or a guard. One person with one key is a weak point for each role. The person can lose the key, a thief can take it, or the person can be away when the app must sign. `nLockTime` is in effect only for transactions with transparent inputs. Thus, for a shielded note, the structure of the signers is the only path to liveness. ## Use cases - **Group treasuries.** The members of a treasury make one FROST group key with a DKG. Any `t` of `n` members can sign a spend. Thus, `t` members can sign while the other members are away. Nodes see one usual spend signature. FROST on the Ironwood pool is unaudited. See Limits. - **Registry and guard roles.** An app gives one group key to each of its roles, for example a registry or a guard. Any `t` of the `n` members of a role can sign for the role. A group is one unit of trust. Thus, `t` bad members are a bad role. See Limits. - **Deeds and titles.** Each deed has its own key from a public tweak of the group key. The owner and a guard group sign each move together. The guard members examine each move for the rules of the app. If all guard members refuse, the deed stays frozen. Review of the nested construction by a cryptographer is necessary. See Limits. The demo below is a deed with a guard group. ## Cost - **Chain** Zero. The spend has one usual RedPallas signature. To outsiders, it looks like a spend with one key. - **Rounds** Two FROST rounds. Members can send commitments ahead of time. Thus, each member sends its signature share in one round for each spend. A nested group has one hash round before the commitments. - **Liveness** `t` members must approve each spend. In round one, each member uses only its share (RFC 9591). Thus, members can send commitments ahead of time (FROST paper, section 5.2). Then each member signs when it approves, and the members can sign at different times. Each signature share is for one set of at least `t` members. The coordinator chooses this set before the first member signs. Each chosen member must sign before the expiry height. This is for the plain group key of section 1. Review of the nested group of section 3 with stored commitments is necessary. - **Keygen** One DKG for each role. A new object has a public tweak, with zero keygen. ## Limits - **Audit.** FROST on the Ironwood pool is unaudited. ZIP 312 is a draft. The nested construction is from the recipe of the `frostito` crate, and review is necessary. - **Trust.** A group is one unit of trust. `t` bad members are a bad role. - **Refusal.** If all members refuse, the object stays frozen. The remedy is outside the chain, for example in law. - **Coordinator.** Each member must examine the request on its own. Each member must also sign the set of commitments that it saw, so that the coordinator shows the same set to each member. The coordinator must send the randomizer, the message and the commitments over a confidential and authenticated channel (ZIP 312). - **Message.** The member software calculates the signature share over the message in the signing package. It compares that message with its own sighash. Do this comparison in the function that signs, before the software calculates the signature share. Software that compares in a different step can examine one value and sign a different value. - **Approval.** With the sighash, a member knows that it has the same transaction as the coordinator. Each member also compares the transaction with a record that the member keeps, for example the proposal that it approved. A member that uses only data from the coordinator can sign a move that is different from the approved move. - **Nonces.** Each member uses each nonce for one signature share only. After a member calculates a signature share, it deletes the nonces (RFC 9591). In the two-round flow, each spend has its own signing session. Each member makes new nonces in round one of each session. Keep these nonces in memory only. After a reload, the members start a new session. Each member uses only the commitments and the signing package of the current session. - **Stored nonces.** Members can send commitments ahead of time. For this flow, each member must put its nonces on its device. This is a cost in state. Each member keeps its stored nonces secret, with the same care as its share. The coordinator puts each commitment in one signing package only. A member uses each of its commitments with one signing package only. The member must have zero copies of the nonce before it sends the signature share. Backups must not contain nonces. This includes system backups and transfers to a new device. After a member receives its share from a backup or a copy, it cancels each commitment that it sent before. The coordinator then removes these commitments. Member software can use a nonce two times if it receives that nonce from a backup or a copy. - **Backup.** Each member must keep a backup of its share. A member that has `sk` must also keep a backup of `sk`. A draft format for this backup is in zcash/zips#1432. The draft is for the plain group key of section 1. Also see Backing Up Key Shares in the FROST book. That section is older than ZIP 2005. With ZIP 2005, the backup must contain `sk`, because `qsk` is calculated from `sk` only. - **Quantum.** With the ZIP 2005 rules, each member of a role has `qsk`. In the design of section 4, only the owner has `qsk`. An attacker that can find discrete logarithms can possibly steal the funds with `qsk` only (ZIP 2005). Thus, when a post-quantum pool with threshold signatures is available, move the funds of each role to that pool. Not in this short version: Mechanism, Comparison with transparent multisig, Spec, Demo: a deed with a guard group. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/log-in-with-zcash/ # Log in with Zcash A user logs in to an app with a Zcash address. The user pays a small amount from a wallet. A server wallet then sends a one-time code in a memo to the address. The user types the code in the app. The server wallet sends the code only to that address. Thus, the address is the account of the user. This pattern is from ZcashMe. The use of a one-time code in a memo for login is the invention of Zechariah. The Zcash Verification Service is the reference implementation. ## Problem An app must know that a user controls an address. The sender of a shielded payment is secret, also to the receiver. Wallets sign messages with transparent keys at most. ZIP 304 is for Sapling keys only. Each shielded wallet sends payments with memos. Each shielded wallet also shows the memos of the payments that it receives. These two functions are the base of this pattern. ## Use cases - **Website accounts.** Each user logs in to an app with a unified address. The address is the account of the user. One wallet can make many addresses. Thus, one user can have many accounts. See Limits. - **Login through OpenID Connect.** A server can run the flow as an OpenID Connect provider, as ZcashMe does. An app sends the user there with a usual OIDC library. After the login, the app receives the unified address of the user as the `sub` claim. Apps that get the same address can link the accounts of the user. See OpenID Connect and Limits. - **Payout address check.** An app asks a user to log in with an address before the app sends funds to it. With a correct code, the app knows that the user can read the memos of that address. A holder of the incoming viewing key of the address can also read the code. A correct code is a claim about one receiver of the address only. See Limits. ## Cost - **Each login** The login amount and the network fee. The minimum login amount at ZcashMe is 0.002 ZEC. A usual shielded payment with change has two actions. From block 3,590,000, the fee rule for wallets is in ZIP 2009. With that rule, the fee for two actions is 2,000 zatoshis. A wallet with the older rule of ZIP 317 pays 10,000 zatoshis. The user receives the reply amount. - **The service** The reply amount and the network fee of each reply. At ZcashMe, the reply amount is 0.0005 ZEC and the fee is 2,000 zatoshis. The worker pays both from the login amounts. - **Wallets** Each login is two transactions on the chain. See Polite actions. - **Time** The worker sends the reply when the login payment is in the mempool. The wallet of the user shows the reply after its next sync. - **Wallet support** ZIP 321 with memos. The wallet must send the memo bytes unchanged, and it must show the memos of received payments. ## Limits Warning The code key is a shared secret. A person with the code key can calculate the code for each session and each address. A person with the outgoing viewing key of the worker can read each reply. Keep these keys on the servers of the app and the worker only. - **Viewing keys.** A holder of the incoming viewing key of the return address can read the code. Thus, this holder can log in as the address. - **Receivers.** A unified address can contain receivers from different wallets. The worker sends the reply to one receiver of the address. Thus, a correct code is a claim about that receiver only. - **Many addresses.** One wallet can make many addresses, and an app cannot link them. Thus, one user can have many accounts. See Address per customer. - **Guesses.** A code has 6 digits. The app must stop a session after a small number of incorrect codes. - **Lifetime.** The calculation has no time input. Thus, the code of a session stays the same. The app must give each session an expiry, and it must accept the code one time only. - **Phishing.** A clone page can show the login link of a real session and then ask for the code. The user must examine the host of the page before they type a code. - **Mempool.** A payment in the mempool can expire before it is in a block. Thus, the service can lose the reply amount and the reply fee, and receive no login amount. - **Privacy.** Outsiders see two usual shielded transactions. The service knows the return address and the time of each login. Apps that get the same address can link the accounts of the user. ## Alternative: a signature login With a new wallet function, a wallet signs a login message with a wallet key. Thus, the login is off the chain. The worker, the code key and the fees are unnecessary. Most wallets do not have this function today. The designs are on the wishlist page Signature login. Not in this short version: Mechanism, Spec, Demo: a toy login. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/verified-address/ # Verified address A service examines that a user controls a Zcash address. Then the service writes a record of the check in a bound note. A verifier with the receipt finds the record on the chain. This pattern is a combination of Log in with Zcash and Bound notes. The login is the check. The bound note is the record. Warning This pattern is a proposal of this site. It has no implementation and no review. Use it on Testnet only. The Experimental tag stays until a reviewer examines the record format and an app uses it. See Status. ## Problem A login is a fact between two parties: the user and the app. The app examines the code, and the session starts. For a login, a record on the chain is unnecessary. Some claims must stay valid for other parties, and for a long time: - a user must show that an address was verified before a deadline, for example for a vote; - a second app accepts the check of the first service; - an auditor examines the full list of a service that gives "verified" marks. A signed token from the service is sufficient while the service is honest. A dishonest service can put an old date on a new token. It can also show different lists to different persons. A record in a chain of bound notes has a place in a block. Nodes accept one successor for each note. Thus, each record has a height, and the service has one list. ## Use cases - **Vote eligibility.** A user shows a verifier that an address was verified before the deadline of a vote. The height of the block of the record is the time of the claim. One user can register many addresses. Thus, the number of users can be smaller than the number of records. See Limits. - **Checks between apps.** A second app accepts the check of a first service. The second app examines the receipt against the directory of that service. The record is the statement of the service. Thus, the second app must trust the service for the code check. See Limits. - **Audits of verified marks.** An auditor examines the full list of a service that gives "verified" marks. The service can publish only the first part of its chain. Thus, the auditor calculates the nullifier of the last listed record. That nullifier must be absent from the chain up to a checkpoint height. See Public list. ## Cost - **Each record** In a usual record transaction, the tip and one funding note are spent. The outputs are the new record and a change note. That is two actions. From block 3,590,000, the fee rule for wallets is in ZIP 2009. With that rule, the fee for two actions is 2,000 zatoshis. A wallet with the older rule of ZIP 317 pays 10,000 zatoshis. - **Wallets** Each wallet tries to decrypt each action on the chain. A service with many logins can put many claims in one record. The fields are then the Merkle root of the claims, and each receipt has a Merkle path. See Polite actions. - **Verifiers** One BLAKE2b hash for the claim. Then one BLAKE2b hash and one Sinsemilla commitment for each record of the lineage. - **Builders** The transaction builder must accept an `rseed` from its caller. See Bound notes: Cost. ## Limits - **Trust.** The record is the statement of the service. A dishonest service can write a record for an address with no login. Use a record only if you trust the service for the code check. - **Viewing keys.** A holder of the incoming viewing key of the address can log in. Thus, the record is a claim about the viewing key. The spending key can have a different holder. - **Receivers.** The service sends the login code to one receiver of the address. Thus, the record is a claim about that receiver only. See Log in with Zcash: Limits. - **Count.** One user can register many addresses, and a verifier cannot link them. Thus, the number of records is a number of addresses. The number of users can be smaller. - **Time.** The record is correct for its height. The user can lose control of the address after that height. For a new claim, the user logs in again. - **Receipts.** A receipt discloses the address to the verifier. The verifier can give the receipt to other persons. Use a different address for each claim that must stay apart. - **Salts.** A check of an address against a record is possible only with the salt. The service or the user must keep each receipt. - **Public data.** The number of records and the height of each record are public. Not in this short version: Mechanism, Spec, Demo: a toy directory. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/memo-stones/ # Memo stones An author sends a memo in a shielded payment. A server calculates one hash from all the memos of a period and puts it in a public record. The author keeps a receipt. With the receipt, anyone can find the memo in the record. The sender stays secret. The memo contains a hash of the text. Thus, the text stays secret until the author shows it. Warning This pattern is a proposal. It has no deployed service and no review. Use it on Testnet only. The Experimental tag stays until a reviewer examines the design and a service runs it on Testnet. See Status. ## Problem A service must show in public that it received a text at a time. The sender and the text must stay secret. Examples are a research result of an agent, a sealed bid, and a report from an employee. Only the recipient, the sender and the holders of their viewing keys can read the memo of a shielded payment. Thus, outsiders cannot see that the service received the memo. In a public post, all persons can read the text. One use is a retrospective grant for proof of agentic work. A lab records a claim of each result of its agents at the time of the work. Later, the lab shows the receipts to a funder as evidence. The time of each claim is in the transparent chain. The funder sees that each text existed at the time of its record. The funder does not see who did the work: a receipt has no name of an author. To show the author, the lab can put a signature of a known key in the text. ### When to use this pattern Use it in these conditions: - other parties must see, at a later time, that the service received a text at a time; - the text must stay secret until its author shows it; - many authors send texts, and one record for each period is sufficient. A different design is better in these conditions: - Only the author and the service use the fact. Then the memo is sufficient, with no record. - The text can be public. Then publish the text. - One author needs a timestamp and no service. Then the author can write a hash in a bound note. ## Use cases - **Research claims.** For each result, an agent of a lab sends the text hash of a claim in a memo. Later, the lab shows the receipts to a funder, for example for a retrospective grant. A receipt is weak evidence of who wrote the text. To show the author, the lab can put a signature of a known key in the text. See What a verifier knows from a receipt. - **Sealed bids.** Each bidder sends the text hash of a bid in a memo. Later, the bidder shows the bid, the text salt and the receipt. The service can select payments to ignore by the topic, the amount and the time. Thus, each bidder examines a receipt before the bidders show their bids. See Limits. - **Employee reports.** An employee sends the text hash of a report in a memo. With the receipt, the employee can show that the report existed at the time of the record. Each holder of the full viewing key of the employee can read the memo. Thus, the employee pays from an account with a viewing key that only the employee has. See Limits. ## Cost - **Each memo** One usual shielded payment from Ironwood notes has two actions. With the ZIP 2009 fee rule, the fee for two actions is 2,000 zatoshis. With the older rule of ZIP 317, the fee is 5,000 zatoshis for each logical action. The minimum fee is 10,000 zatoshis. Thus, a wallet with that rule pays 10,000 zatoshis for two actions. A wallet that spends Orchard notes puts the spend in an Orchard bundle and the payment in an Ironwood bundle. With the default builders, each bundle has at least two actions. Thus, a usual payment from Orchard notes has four actions. Its fee is 4,000 zatoshis. With the older rule, the fee is 20,000 zatoshis. - **Each record** One transparent transaction for all the memos of a period. Its two outputs are 88 bytes. In ZIP 317, that is three logical actions. With the ZIP 2009 fee rule, the fee is 3,000 zatoshis. With the older rule, the fee is 15,000 zatoshis. - **Wallets** A record transaction has no shielded actions. Thus, other wallets do no trial decryption for a record. See Polite actions. - **Reader** One incoming viewing key. The reader does trial decryption of each shielded action of each block, as a wallet does. It also gets the full transaction of each payment. - **Receipt** The memo and the path. A path in a record of n leaves has ⌈log₂ n⌉ hashes or fewer, of 32 bytes each. For 1,000 leaves, a path has 10 hashes or fewer. - **Relay** The `OP_RETURN` script of a record is 45 bytes. By default, Zebra nodes relay an `OP_RETURN` script of 83 bytes or fewer. They refuse a record with less than 54 zatoshis in output 1. - **Wallet support** ZIP 321 with memos. The wallet must send the memo bytes unchanged. The service address has shielded receivers only. ## Limits Warning With a text hash in the memo, the reader cannot read the text. With the text in the memo, the reader sees the text and the salt. Then the service can show each recorded text as its own. Put the text in the memo only if the service can read it safely. - **Refusal.** The service can ignore a payment and still send a valid record. After the maximum delay, the author compares each leaf list with the root of its record. If no list contains the leaf, or a list is absent, the author sees a refusal. To show the payment to other persons, the author needs a payment disclosure (ZIP 311, draft). - **Selection.** The reader sees the full memo and the amount of each payment. With a text hash in the memo, the reader cannot read the text. Thus, the reader can select payments to ignore by the topic, the amount and the time. An author can tell the service the leaf of a memo. Thus, the service can keep that leaf and ignore the others. For sealed bids, each author must use the Receipt steps to examine a receipt. The authors must do this before they show their bids. - **Author keys.** The wallet of the author can use its outgoing viewing key for each payment. Thus, each holder of the full viewing key of the author can read the memo. That holder can also calculate its leaf. Thus, that holder knows which record contains a memo of the author. Pay from an account with a viewing key that only the author has. - **Enclave.** As an option, the service can run the reader and the writer in an enclave, a trusted execution environment (TEE). Then the enclave code puts each leaf in a record. These conditions are necessary: - The enclave sends an attestation. The verifier examines the signature of the attestation. The verifier calculates the code hash from a reproducible build of the published source. The code hash must be the same as the hash in the attestation. - The enclave examines the header and all the transactions of each block. It calculates the Merkle root of the transaction IDs. Then it compares this root with the root in the header. It gets the chain tip from sources that are independent of the operator. The operator can hold back blocks or the chain tip. Thus, the enclave sends no records, and the authors see the delay. - The writer key stays in the enclave. Each writer public key that the enclave makes must be in a verified attestation. The verifier calculates the P2PKH address of each writer public key. This address must be the record address of its record 0 or recovery record 0. - The verifier then trusts the maker of the chip. An enclave decreases the risk. Attacks on enclaves are known. Thus, a payment disclosure stays necessary. - **Refunds.** The sender of a payment is secret. Thus, the service cannot send back a payment with an invalid memo. The app must examine the memo and the amount before it shows the link. - **Timing.** A record a short time after a payment is a possible link between the two. With a longer period and more leaves, the link is weaker. - **Memo download.** Compact blocks contain no memos. A reader gets each memo in a full transaction. If it gets only payment transactions from a light wallet server, that server sees each payment transaction. If it gets all transactions only from blocks with payments, that server sees those blocks. A reader can use `GetMempoolStream` to receive all full transactions in the server's mempool. Thus, the reader receives those memos without payment-specific requests. For payments absent from the stream, the reader can use `GetTransaction`. If the author wallet and the reader use the same server, that server can link the IP address of the author to a payment to the service. Use a reader with its own node. - **Leaf list.** The leaf list is off the chain. If the service holds back a list, the authors cannot complete their receipts. The authors can see the delay. - **Empty leaves.** The writer can put any hash in a record. The verifier must use paths with at most ⌈log₂ n⌉ hashes for a record with n leaves. Thus, the maximum number of real memos is two to the power of ⌈log₂ n⌉. - **Copies.** The reader drops a leaf that is equal to a leaf of the open period or of a record. Thus, the record has no second leaf for a second payment with the same memo. - **Reorganization.** The reader must wait for confirmations before it accepts a payment. - **Disclosure.** A shown receipt stays public. It contains the topic of one leaf, and the text if the author shows it. - **Truth.** A receipt is evidence that the service recorded a text at a time. It is no evidence that the text is true. - **Public data.** The number of leaves of each period and the time of each record are public. Thus, outsiders see how much the service is used. - **Transparent funds.** The fee funds of the writer are public, and so is their source. Use funds with no link to other addresses of the service. - **Writer key.** A person with the writer key can send false records or stop the record chain. See Keys. - **Chain data.** Each record stays on the chain. With a longer period, the chain has fewer records. Not in this short version: Mechanism, Spec, Demo: research claims. The full page is at its URL. --- Page: https://appliedzcash.com/patterns/batch-payouts/ # Batch payouts A sender writes one ZIP 321 payment link with many payments. One wallet makes one shielded transaction. Each recipient receives its amount and its memo. The sender signs one transaction for the whole batch. This pattern is for payrolls, bounty payouts, grant payouts and refund batches. See Payment links for the base pattern. Warning This pattern is a proposal. Some wallets do not accept a URI with more than one payment. See Wallet support. The Experimental tag stays until most of the tested wallets accept a URI with more than one payment. See Status. ## Problem An app has one sender and many recipients. Each recipient needs its own amount and its own memo. The sender wants one confirmation and one on-chain transaction. Without this pattern, the app writes one payment link for each recipient. The sender signs one transaction for each link. Thus, 20 recipients need 20 confirmations and 20 transactions. The total fee for 20 transactions is more than the fee for one. ### When to use this pattern Use it in these conditions: - the sender pays many recipients at the same time; - each recipient needs a different amount or a different memo; - the sender's wallet accepts multi-payment URIs. A different design is better in these conditions: - The sender needs one recipient only. Then use Payment links. - The sender's wallet rejects multi-payment URIs. Then the app writes one payment link for each recipient. See Wallet support. ## Use cases - **Payroll.** An employer pays each employee in one transaction. Each memo can contain one payslip line, for example the period and the amount. Each employee can estimate the size of the batch from the number of actions. See Limits. An employer splits a payroll with more actions than the block limit across two or more blocks. See Cost. - **Bounty payouts.** A project operator pays the accepted bounties of a period in one transaction. Each memo contains the name of the bounty. - **Grant payouts.** A grant operator pays milestone payments to several grantees in one transaction. Each memo contains the grant name and the milestone. The app writes a memo only for a shielded recipient. The amount to a transparent address is public. See Limits. - **Refund batches.** A shop returns funds to many buyers in one transaction. Each memo contains the order number. The sender of a shielded payment is secret. Thus, the shop asks each buyer for a refund address, for example in the memo of the order payment. ## Cost - **Each recipient.** One shielded output. After NU6.3, a wallet puts the output to an Orchard receiver in the Ironwood bundle (ZIP 326). Each such output is in one action. A Sapling recipient receives a Sapling output. - **Number of actions.** An Ironwood bundle has at least as many actions as the larger of its spends and its outputs. In an Orchard bundle, one action can contain a spend and an output only at the same expanded receiver (ZIP 2006). Under ZIP 326, a wallet SHOULD NOT put a real spend and an output with value in one action. Thus, in the Orchard bundle of a wallet, the number of actions is at least the spends plus the outputs. A sender with many small notes needs more actions than recipients. The fee is larger for each extra action. See ZIP 317. - **Fee.** From block 3,590,000, under ZIP 2009, the fee is 1,000 zatoshis per logical action. A wallet with the older rule of ZIP 317 pays 5,000 zatoshis for each action. A payout to 20 recipients from an Ironwood note has 21 actions, with one change output. The fee is 21,000 zatoshis under ZIP 2009, or 105,000 zatoshis under the older rule. With zcash_client_backend 0.25.0, the same payout from an Orchard note had 22 actions. Two actions were in an Orchard bundle, for the spend and the change. The fee was 22,000 zatoshis, or 110,000 zatoshis under the older rule. - **Compare.** The fee for 20 separate payments from Ironwood notes is 40,000 zatoshis under ZIP 2009, or 200,000 zatoshis under the older rule. Each payment has two actions. With the same library, 20 separate payments from Orchard notes had 80 actions. The total was 80,000 zatoshis under ZIP 2009, or 400,000 zatoshis under the older rule. - **Block limit.** Under NU7 (ZIP 218), one block has at most 330 Orchard and Ironwood actions, across all of its transactions. Thus, one payout transaction has at most 330 actions. With zcash_client_backend 0.25.0 and one note, a payout had at most 329 recipients, or 328 from an Orchard note. The block of a large payout has less space for other shielded transactions. - **URI limit.** A ZIP 321 index is in the range 1 to 9999. One payment can have no index. Thus, a URI can hold up to 10,000 payments by syntax alone. The block limit is smaller than this. - **Polite actions.** See Polite actions for a note on action counts. - **Wallet support.** The wallet must accept multi-payment ZIP 321 URIs. The wallet must send memo bytes unchanged. ## Wallet support The table shows the support of each wallet for multi-payment ZIP 321 URIs. The test results are from November 2026. The tester used one URI with two or three payments to unified addresses. Each payment had a different amount and a different memo. A row with "Not tested" in the Network column comes from the source code and the changelog of the wallet. Yonkoo11 found the Zodl change in issue 96. Warning With a partial payment, the wallet pays one recipient of a batch. The sender sees one confirmation, and the batch looks complete. The other recipients receive nothing. With a hidden payment, the wallet pays all recipients, but the sender sees one payment only. | Wallet | Version | Network | Result | | Zkool | 6.35.0 | Testnet | Accepts. Shows each payment with its own address, amount and memo. | | Zingo PC | 2.0.29 (206) | Testnet | Accepts. Shows each payment with its own address, amount and memo, and the total. | | Zingo mobile | 2.1.1 (323) | Testnet | Partial payment. Reads payment 1 only. Ignores the other payments. The test transaction is `3db48157…27bb`. | | Vizor | 0.0.65 | Mainnet | Partial payment. Reads payment 1 only. Ignores the other payments. | | Vizor | 0.0.67 | Not tested | Refuses a multi-payment URI. See the Vizor commit. | | Zodl Android | 3.19.0 to 3.21.2 | Not tested | Hidden payment. The wallet shows payment 1 only for review. The wallet signs and sends all payments. See the Zodl changelog for 3.22.0 (MOB-1341). | | Zodl Android | 3.22.0 | Not tested | Refuses a multi-payment URI. Shows "Multi-recipient payment requests are not supported." See the Zodl commit. | The Zcash Open Development Lab changed the name of the Zashi wallet to Zodl in February 2026. See the announcement on the Zcash community forum. To add a wallet to this list, test the multi-payment URI on the chosen network. Open a pull request with the wallet name, version, network and result. ## Limits - **Partial payment.** Some wallets ignore the extra payments and show no error. The app shows the number of payments and the total. The sender compares the two values with the confirmation screen of the wallet. See Wallet support. - **Hidden payment.** Some wallets show the first payment only, but send all payments. The sender pays more than the confirmation screen shows. The same check finds the difference: the app shows the number of payments and the total. - **Memo integrity.** Some wallets change binary or control characters in memos. Use single-line printable ASCII for each memo. - **Address format.** Transparent amounts are visible when recipients use both transparent and shielded addresses. Use shielded addresses for each recipient. - **URI length.** A long URI is too large for a scannable QR code. A file transfer or a short link is necessary for a payout with many recipients. - **Error on one row.** The wallet rejects the whole transaction when a row is malformed. The app must check each row before it writes the URI. - **Privacy.** Each recipient sees the transaction, its number of actions and its fee. Thus, a recipient can estimate the size of the batch. The block time of the transaction is public. Not in this short version: Mechanism, Spec, Demo: a small batch, Toy example. The full page is at its URL. --- Page: https://appliedzcash.com/wishlist/ # Wishlist Designs that need new software: a wallet function, a ZIP or a consensus change. Each wishlist page has the problem, the mechanism and the necessary changes. A wishlist page has no demo. ## Wallet functions Designs that need a new function in wallets only. - Signature login Sign a login message with a wallet key. The login is off the chain. Most wallets need a new function. ## Protocol changes Designs that need a new ZIP, a server protocol or a consensus change. - Static address with OMR A server finds the payments for a wallet and does not learn which they are. A tip jar can use one address. - Presigned transactions Sign a transaction now. A wallet on a different device sends it later, also after a network upgrade. The design is a draft ZIP. --- Page: https://appliedzcash.com/wishlist/signature-login/ # Signature login A wallet signs a login message with a wallet key. The app examines the signature. The login is off the chain: it has zero transactions and zero fees. Most wallets do not have this function today. This page has three designs. The viewing key signature is from Julian (craftsoldier). The app key signature is from c-node. The identity key signature is from hitch (hitchho), in the zafu wallet. zafu has a form of it today. ## Necessary changes - Improves Log in with Zcash - Wallets A new function: sign a login message with a wallet key. zafu has a form of the identity key signature today. - ZIP A new ZIP for the login message and the keys. See Parts of a spec. - Consensus No change. - Status Proposal. A spec is not written yet. ## Problem An app uses Log in with Zcash with the wallets of today. Each login is two payments. Thus, each login has two transactions, two fees and a delay. The service also needs a worker with a code key. With a signature, these costs are zero. On Ethereum, apps use ERC-4361 for this function. On Zcash, wallets sign messages with transparent keys at most. ZIP 304 is for Sapling keys only. Not in this short version: Mechanism, Comparison, What apps can find from each signature, Parts of a spec. The full page is at its URL. --- Page: https://appliedzcash.com/wishlist/omr/ # Static address with OMR A tip jar has one address for all senders. With oblivious message retrieval (OMR), a server finds the payments for the wallet. The server does not learn which payments they are. A static address already works on Zcash today. With OMR, a wallet finds its payments in a new way. The set of people who can pay the address stays the same. That change, its cost and the open parts of the design are on this page. ## Necessary changes - Improves Each wallet that syncs with a server. Each app that publishes one address, for example a tip jar. - Wallets A clue key in the address. A detection key for the server. A function that reads the digest from the server. - Senders A clue with each payment, about 1 KB for each output in the design of the Zcash Foundation. - Servers A service that scans all clues for each wallet that registers. It does homomorphic encryption work for each clue. - ZIP A new ZIP for the clue, the address and the server protocol. None exists. See Parts of a spec. - Consensus Depends on where the clue is. A new field in each output changes the transaction format. - Status Proposal. Research schemes exist. The Zcash design is an open issue in the Tachyon repository, and its author says it is not proven. ## Problem On Zcash today, a wallet finds its payments by trial decryption: it tries its incoming viewing key on each action on the chain. A light wallet gets compact blocks from a server such as lightwalletd for this. After it finds a payment, it asks the server for the full transaction. Then the server knows that this wallet, at this time, requested this transaction (Zcash Foundation, March 2023). A wallet can download all transactions in full to hide this, but the cost is almost the size of the chain. Shielded outputs to one address do not link to each other on the chain. The leak is in the sync with the server. Tachyon issue 368 shows a second problem. In the Tachyon payment protocol, a first payment has a tag `H(ek)`, which the recipient finds with private information retrieval (PIR). Each holder of the key `ek` can calculate the same tag. Thus, the Tachyon book makes a new address for each sender. There is no safe way to publish one address for everyone. After Tachyon, a static address needs a tag that only the recipient can recognize. ## Costs The papers have different message sizes, parameters and computers. Read the numbers as orders of size. | Source | Server | Wallet and network | | Liu and Tromer, 2021 | About $1 for each million messages scanned | Digest of a few bits for each message scanned. About 20 ms to decode. | | PerfOMR, 2024 | Describes prior schemes as about 0.1 s for each message. One protocol is 13.8 times faster. The other is about 40 ms for each message. | Prior schemes: about 1 KB for each message and 132 KB for the public keys. In the second protocol, the keys are about 235 times smaller and the message about 1.6 times smaller. | | UnifOMR, 2026 | About 25 s for 2¹⁹ messages of 612 bytes. SophOMR needs more than 1,250 s. | 4 MB of communication, against 260 KB for SophOMR. Two rounds between the detector and the client. | UnifOMR has a proof that an OMR scheme with strong detection-key unlinkability is at least as hard as PIR. Thus, OMR is unlikely to be much cheaper than PIR. Each payment carries a clue. The clue has about 1 KB in the Foundation design. An entry has 1,249 bytes in the Tachyon proposal. The wallet pays for the detection key and for the digest. The server pays for the scan. A server must do this for each wallet that registers. ## Limits The issue has three limits of its design. **Reactions.** A person can send fake payments to a known address and watch how the recipient reacts. After many checks, this can show the clue secret and thus which first payments are the recipient's. The attacker learns no amounts and gets no spend authority. **Dishonest servers.** A server can hide payments. It can also add fakes, which makes the reaction attack cheaper. **Wrong address.** The sender must be sure that the complete address belongs to the recipient. Not in this short version: Mechanism, Comparison, Parts of a spec. The full page is at its URL. --- Page: https://appliedzcash.com/wishlist/presigned-transactions/ # Presigned transactions A key holder signs a transaction now. A wallet on a different device completes the transaction and sends it later, also after a network upgrade. The design is in a draft ZIP by Kris Nuttycombe (nuttycom): Sighash Variant for Deferred Broadcast. The draft has no ZIP number yet. Its deployment is not scheduled. Thus, no wallet or node has this function today. On this page, a presigned transaction is a transaction that a key holder signs now. A wallet sends it later. ## Necessary changes - Improves Threshold keys, offline signing and scheduled payments. - Wallets New rules to sign, complete, keep and cancel presigned transactions. Support for the v7 transaction format. - ZIP Sighash variant 1 is in the draft, as an addition to the v7 format of ZIP 248 (Draft). Changes to the draft are in an open pull request, zcash/zips#1484. A change to the lock time of ZIP 248 is in zcash/zips#1497 (merged). - Consensus A network upgrade with the v7 format and variant 1. The v7 format is outside NU7 (ZIP 259). - Status Draft. The deployment is not scheduled. The draft has no reference implementation yet. ## Problem In v5 and v6, the consensus branch ID and the expiry height are signed (ZIP 244, ZIP 229). Both ZIPs are Final. Thus, a key holder must know both values at the time of signing. In ZIP 203, the default expiry height is 40 blocks after the current height. From NU7, the recommendation in ZIP 218 is 120 blocks (ZIP 203, Changes for NU7). If the transaction is sent later, the key holder must sign a later expiry height or no expiry. Both values are different from the values of other wallets. Thus, an observer can find the transactions with these values. The signing time can also be found from a later expiry height. A signature is valid on one consensus branch only. After a network upgrade, the signed transaction is invalid. A key holder can sign one copy for each consensus branch. This is possible only for a network upgrade with a known consensus branch ID. In ZIP 318 (Draft), a wallet should sign the Orchard to Ironwood migration transactions in advance and keep them. It sends each one at its scheduled height. The wallet must sign one copy for each consensus branch in the validity range of a transaction. The expiry height is calculated from 30-day periods. That value is still different from the default. Before v6, the anchors were part of the signed data too. In the v6 format, the anchors are authorizing data (ZIP 229). Thus, a wallet can make the proofs after the signature, with a new anchor. Not in this short version: Mechanism, Comparison, Parts of a spec. The full page is at its URL. --- Page: https://appliedzcash.com/wishlist/spending-conditions/ # Shielded spending conditions A spending condition is a rule for how a note is spent. An example: the note pays only to addresses on a list, up to a cap. Transparent Zcash has a draft for such rules. Shielded Zcash has no draft. ZIP 222 (Transparent Zcash Extensions) is a draft for transparent outputs only. This page describes what a shielded version needs and which parts are open. One design has a public forum post and no ZIP. Treat its numbers as claims. ## Necessary changes - Improves Threshold keys. There, people enforce the rules. A condition in the proof makes the rules independent of the signers. - Wallets Wallets commit to a condition when the note is made. They prove the condition at each spend. They test each way out of the note before the wallet funds it. - ZIP A new ZIP is necessary for the condition, its commitment and the proof. See Parts of a spec. - Consensus Change. The Action statement has a fixed list of facts. The author of the forum proposal says that it needs a network upgrade. - Status Proposal. A ZIP and an audit are open. ## Problem Apps need rules for funds: a list of payees, a cap for each spend, a recovery path, a time limit. Transparent Zcash can express some rules in Bitcoin script. ZIP 222 states that limits on shielded spending are even more restricted. An Orchard Action proves a fixed list of facts. The list is in the protocol specification. The old note commitment is correct and in the tree. The nullifier and the value commitment are correct. The spender has spend authority. The address and the new note commitment are correct. The enable flags are set. The owner of a note cannot add a rule to this list. One restriction of this type exists. The flag `enableCrossAddress` is in the Action statement (ZIP 2006, Final). In the Orchard pool, the flag must be 0. Thus, an Action must send its output to the same receiver as the note that it spends. Consensus sets this flag for all notes in the pool. The owner of a note cannot choose it. Today, an app can use threshold keys: any `t` of `n` members can sign a spend. The condition is then a policy of the signers. If `t` members agree, they can send the note to any address. A timelock is also unavailable: the threshold keys page states that `nLockTime` is in effect only for transactions with transparent inputs. Not in this short version: Mechanism, Comparison, Parts of a spec. The full page is at its URL.