Zoodles
Zoodles is a post-quantum shielded protocol based on Tachyon, with its own shielded pool. It uses a new lattice-based proof system, Kishu. It is designed to be deployed as a follow-on to Tachyon. Zoodles is named after (pasta-free) zucchini noodles.
Apart from using Kishu as the proof system, the changes from Tachyon to Zoodles are pretty straightforward. They just drop all uses of Pasta outside the Ironwood/Tachyon recovery circuit:
- The value commitments are replaced by a balance check in PCD. The binding signature is dropped; it is not needed for either non-malleability or balance.
- Note commitments and nullifiers are derived using BLAKE3.
- Spends are authenticated either by proving knowledge of , or via a leanSPHINCS signature verified in zk. The latter requires many PCD steps to verify, but the overall performance is entirely practical both on a hardware wallet and on the host wallet. Multisignatures are also feasible.
- The epoch tachygram set accumulators are replaced by sorted Merkle trees rather than by set polynomials in Kishu’s PCS (Akita). That page compares the two, and a bucketed table.
- The PCD step size is reoptimized for Kishu. It ends up committing between a quarter and the same step circuit witness size as Ragu, but as bits rather than Pallas field elements.
The rest of this page expands on each of these, as the PCS frontier page prices them.
What stays from Tachyon
Tachyon’s architecture is kept: the same spend, output, merge, and fee circuits for a transaction, and the same background lineage. A note’s membership and unspentness are attested by that lineage over the chain’s anchors rather than by a Merkle path in the spend. The published tachygrams are what the merges combine: a spend’s two epoch nullifiers, an output’s commitment and its padding, and the fee circuit’s change commitment. The fee circuit fixes the fee last and hashes the change note, the maximum-fee note’s value less the fee, as Tachyon’s does.
What changes in the tree is the packing: Tachyon gives each circuit a step of its own, whereas a Kishu step, one committed witness of a chosen length in digits, holds its own merge, the fee circuit, 28,853 digits, and with them as many spends and outputs as fit. A spend uses 37,301 digits and an output 48,637 digits, each with its merge of 9,094 digits (for more on the cost model of Kishu, see What Kishu Is Made Of). Therefore, 11 actions, each a spend or an output, fit beside the merge in a step of digits, 50 in one of , and 131 in one of . A transaction’s first step holds no merge, so it has that much more room. A transaction of two inputs and two outputs is four actions, and in a step of digits it fits in 1 step. Tachyon’s tree proves the same transaction in 12 steps, two for each spend or output, three merges, and the fee, and then rerandomizes. An authorization by leanSPHINCS with BLAKE3 is 3.39 million digits, far more than the rest of the transaction. It is a node of its own, made once for each spending key and not once a spend.
The arithmetic inside the nodes also changes. In Tachyon the set polynomials are Pedersen vector commitments and the bridge hash is a Pedersen hash onto Pallas. In Zoodles the set polynomials are the proof system’s own committed vectors with evaluation claims. A root then costs one multiplication in a 256-bit extension of the checking field, and an opening one more evaluation claim, absorbed by the merge above. The bridge hash is a BLAKE3 hash of the commitment, computed natively. The tree’s nodes hash 16 BLAKE3 compressions in all, with 12 roots and 15 openings. The curve goes.
Balance in the headers
Amounts are range-checked to and summed in the PCD headers in place of value commitments and the binding signature. A spend’s bind step range-checks its amount, a merge sums its children’s amounts, and the fee step range-checks the slack, the fee, and the change. The binding signature is not needed for non-malleability either, since every spend’s authorization is proved inside the tree that the headers bind together.
Pool accounting
A Zoodles bundle (e.g. in a ZIP 248 transaction [ZIP-248]) can spend from three pools: its own, Ironwood’s through the Recovery Statement of Recovery from Ironwood, and Tachyon’s through the recovery spend of Recovery from Tachyon. Consensus tracks each pool’s balance, and ZIP 209 [ZIP-209] rejects a transaction that would take any pool’s balance out of range. So the Zoodles bundle reveals the total it spends from Ironwood, the total it spends from Tachyon, and its Zoodles balance, the net value leaving the Zoodles pool, which is negative when value enters it.
The headers carry the sums: a recovery spend’s step adds its amount to its pool’s sum and a native spend’s to the Zoodles sum, a merge adds its children’s sums, and the fee step publishes the two recovery totals and the Zoodles balance. A transaction with no recovery inputs publishes two zero totals. The recovery totals are public, as a turnstile’s flows are.
Unlike earlier turnstile crossings, where each pool’s bundle carried its own proof and the transparent value pool bridged them, the whole transaction is one Kishu proof; the recovery spends are steps of its tree. This is necessary because both Halo 2 and Ragu proofs will have to be disabled before Q-day.
Spend authorization
Spend authorization is chosen for each spending key, usually the same for all, and is proved once for each key that a transaction spends from, not once an input. The Spend authorization section motivates the two methods and has a page on each: the hash preimage, the check of ZIP 2005 [ZIP-2005] with committed in the note’s payment key, which the spend step opens; and a leanSPHINCS signature over a digest of the transaction, verified inside the proof with the public key as a witness. The section also covers recovery from Ironwood and from Tachyon, and hardware wallets.
Binding a note to its action
Tachyon binds a note to its action through the randomized key: the randomizer ties , which the action publishes and the signature verifies under, to the note’s commitment inside the proof. Tachyon’s book notes that with gone the binding has to be re-established as a constraint of the proof statement. In Zoodles it is. Every value an action publishes is derived in the step that opens the note. A spend’s step opens to the payment key, the value, , and , derives the nullifiers from and , and takes the amount from the value. An output’s step hashes the commitment it publishes from the note it creates. The lineage’s attestation of reaches the spend step as a PCD header, which the step checks against the commitment it opens. The proof tree then carries the published values to the root in its headers. So a preimage proof, in its authorization node, is bound to the whole transaction by the proof’s graph and, as a signature of knowledge, by the transaction’s digest in its transcript; and a leanSPHINCS signature by the digest of those values. No randomizer is needed.
The lineage
A Zoodles note’s lineage runs in the background, as Tachyon’s does, and is not part of any transaction. Once an epoch, 4,096 blocks or 1.2 days at 25-second blocks, a step advances the note past the epoch’s published tachygrams, proving that its nullifier is not among them.
Tachyon does this with set polynomials. The epoch’s tachygrams are split into buckets by a quadratic-residue profile, each bucket a polynomial opened at the nullifier, and the step folds the bucket’s contents. Over Kishu’s digits a bucket of 8,192 tachygrams is 2.10 million digits to fold for every note in every epoch, most of them the builder’s work rather than the wallet’s. The frontier page prices the alternative: a sorted Merkle tree over the epoch’s 1,048,576 tachygrams, 256 a block. The exclusion proof is the nullifier’s two neighbours as one leaf with its path of 22 hashes, two 256-bit comparisons, and the epoch range check: 250,000 Kishu digits. That takes 0.00203 s a note an epoch in a step of digits on one core, without zero knowledge, since the lineage never leaves the wallet. On that count the tree is well ahead. The bucket route as Tachyon folds it, at a capacity chosen for digits, is still to be priced beside it, and The epoch’s tachygram set compares the representations.
Cost
On one core, in Kishu, for two inputs and two outputs: a transaction authorized by preimage is 239,355 committed digits and takes 0.0339 s with zero knowledge in a step of digits, or 0.00194 s without. One authorized by leanSPHINCS with BLAKE3 is 3.67 million digits and 0.104 s with zero knowledge in a step of digits, in 2 steps; the frontier page has the BLAKE2s and Keccak variants. Tachyon’s own four tachyactions in Kishu with zero knowledge take 0.0863 s, so Zoodles by preimage is 39 percent of them; on Pedersen-IPA they take 5.91 s. At these step ranks a step commits bits, between a quarter and the whole of Ragu’s Pallas coefficients in bits, which is the fifth bullet above. The frontier page gives the same transactions under every scheme it prices.
Status
- Whether Zoodles needs Tachyon’s PCD header of nine elements, or fits the recovery circuit’s six or seven, is not settled; the frontier page prices it at nine. The pool sums of Pool accounting are part of the count.
- The lineage is priced by the sorted tree alone; the bucket route is to be priced beside it.
- The bind, lift, and fuse steps that close a lineage segment at a spend are not counted.
- The key chain is open. Zoodles mirrors Tachyon’s with the least change that gives the same quantum recoverability, so a spend opens and proves . The payment key’s hash is needed in some form, since a sender who knew the nullifier key could watch for the note’s spend. A chain with as the nullifier key would drop , keep the two compressions, and leave the host, which holds for scanning, unable to spend.
- Faerie gold is open. Tachyon pushes its detection to the wallet, which rejects a received note whose nullifier collides with one it holds; that does not survive a roadblock, since a sender can send two notes with the same and the wallet cannot tell the payment from the roadblock, so a received note’s spendability cannot be established, which is why Sprout, Sapling, and Orchard derive uniquely instead. Tachyon has no incoming viewing keys, so note secrecy might be assumed against everyone but the sender, but the definition of spendability would still have to allow all but one note from a sender to be rejected. Zoodles needs a unique for each output; how to supply it without Orchard’s pairing of a spend with every output is for the statements to settle.
- The packed step’s interface is not charged. One step circuit carrying several nodes’ headers and set products, with the fee logic beside the spends and outputs it fuses, is circuit layout that Tachyon’s one-circuit-per-step design does not have.
- The set polynomials over a 64-bit field need a quartic extension, or four polynomials, for 256-bit tachygrams, and an opening is priced as one more evaluation claim. A committed online vector per step would add a group to the fold.
Acknowledgements
Zoodles is mostly just the obvious adaptation of Tachyon. Thank you to the Tachyon team, Sean Bowe, Tal Derei, Connor O’Hara, Alex Xiong, L Winslow, and Samuel Akinosho, for their work. The adaptation, its name, and its modelling are Daira-Emma Hopwood’s.
References
- [ZIP-209] Sean Bowe. ZIP 209: Prohibit Out-of-Range Chain Value Pool Balances. https://zips.z.cash/zip-0209
- [ZIP-248] Jack Grigg, Kris Nuttycombe, Daira-Emma Hopwood, Schell Scivally. ZIP 248: Extensible Transaction Format. Draft. https://zips.z.cash/zip-0248
- [ZIP-2005] Daira-Emma Hopwood, Jack Grigg. ZIP 2005: Ironwood Quantum Recoverability. https://zips.z.cash/zip-2005