Recovery from Ironwood
ZIP 2005 makes Ironwood-pool notes quantum-recoverable in the sense of this section’s definition [ZIP-2005]. Each note’s keys commit to a quantum key , the quantum spending key derived from the spending key and in no viewing key. A Recovery Statement, to be introduced in a later upgrade, spends such a note without discrete logarithms. The statement needs two authorizations of a recovery spend. One is a RedDSA signature under the randomized key, which FROST makes -of-. The other is : a signature of knowledge of on the transaction’s SigHash, with , which is the hash preimage method made as a signature. With the rest of the statement is proved from viewing-key material, the path a hardware wallet is meant to optimize. The other path, , has the statement prove the key derivations from the spending key itself. The recovery circuit the frontier page prices takes either value, as ZIP 2005’s statement does, the two paths’ derivations multiplexed over the same three BLAKE2b compressions; this section’s hardware-wallet analysis follows the path. In a Zoodles transaction the recovery spends also reveal their total, for the pool accounting that the Zoodles page sets out.
With FROST, ZIP 2005 has the participants agree privately on the value from which , , and are derived, while is the output of the distributed key generation. Every wallet then holds the same . So against an adversary who breaks discrete logarithms the recovery spend’s unforgeability is that of as a signature scheme with key , 1-of-, while a pre-quantum adversary corrupting up to wallets is bounded by re-randomized FROST; Hardware wallets sets out that model. The frontier page prices the recovery circuit as an application: in Kishu with zero knowledge it takes 0.0860 s on one core in a step of digits.
The signature method as an arm of the Recovery Statement
What a leanSPHINCS route asks of ZIP 2005 is less than it first seems. Its hashes the secret, and a hash-based signature needs to commit to the signature’s public key instead. Deriving that key from the seed inside the Recovery Statement would cost the top layer’s key generation, out of the question. But the derivation is domain-separated. A signature route would define its own derivation of from the public key under another context, and the Recovery Statement, which is not yet specified, would accept it as one more arm of its tagged union beside the preimage proof and . The arms cannot satisfy each other’s rule, since that would be a collision across two domain-separated hashes. So nothing has to be decided before the scheme is known. The one consequence is that a key derived before the signature route exists is a preimage-route key. A wallet that wants the signature route later needs a new key, which means new addresses and moved funds.
A static cap for the Merkle path
The Ironwood note commitment tree is frozen once the pool’s pre-quantum protocol is turned off. A deployment can leave time between that and turning the Recovery Statement on, for nodes and wallets to compute the static tree. The nodes at a chosen depth are then a fixed public table, the cap, and the circuit need not hash the levels above it. It selects the cap’s entry by the top bits of the note’s position, as a Sinsemilla chunk selects a generator, and compares it with the node that the lower levels hash to. The position’s bits stay private. The circuit is written generically: the cap enters only as the coefficients of the selection’s constraints, filled in when the tree is frozen. The idea came from a discussion between Daira-Emma Hopwood and Jack Grigg at Zcon3, where it was suggested for Sprout.
In Kishu the index bits are split into two halves. The subset products within a half are committed, and each product across the halves is a term of a constraint. A node is compared as 4 limbs of 64 bits, a constraint each. The comparison is in , so it is sound when every limb of the cap is at least 59 and below . A limb falls outside that range with negligible probability. If one does, the tree, which ZIP 2005 has rehashed in any case, is rehashed under another BLAKE3 personalization.
The frozen tree is rehashed, so it need be no deeper than its commitments fill. The rehash keys each node’s hash by the node’s position in the tree, which costs nothing with BLAKE3 and leaves an attacker no choice among many targets; the tree’s hash still has to be collision-resistant. It is taken to have 27 levels at the freeze. Each arithmetization’s configurations on the frontier page take the cap at the depth that costs them least. For Kishu that is 13 levels: 8,192 nodes, or 262 kbytes, for each node and wallet to hold, and a selection of 32,004 terms. The path is then the leaf’s hash and the levels below the cap, 15 compressions. With zero knowledge the cap saves 42% of what a path hashed all the way would cost, which is 1.7% of the recovery transaction. Over Pasta, where a selection is the subset products of the index bits, the best cap is 9 levels under a Poseidon path and 14 under a BLAKE3 one.
Several notes under one key
A recovery transaction may spend several notes that have the same incoming viewing key . The Recovery Statement’s authorization, up to and including , is then the same for each of them, and need be proved only once. A node proves it and passes in its header to the nodes that prove the notes, so the link between them costs nothing more.
The part that is proved once is the key’s:
- the BLAKE2b compressions of the key derivations and of the internal , four of the circuit’s seven;
- the BLAKE3 compression of the quantum key, in its signature of knowledge;
- , which is 51 of the circuit’s 160 Sinsemilla chunks; and
- two of its five fixed-base multiplications, and .
Each note still has its own note commitment, its nullifier, the variable-base multiplication , and its Merkle path.
In Kishu the key’s part is 0.469 million digits, 21 percent of the circuit, and 23 percent of its doodads with zero knowledge. So a zero-knowledge recovery transaction of four notes under one key takes 0.199 s, where four notes each with its own authorization take 0.228 s: 13 percent less. For two notes it is 0.126 s against 0.134 s, 6 percent less. The saving approaches the key’s share as the notes grow in number.
Notes that were sent to the same diversified address also share , the circuit’s one variable-base multiplication. That further saving is not counted here.
The sharing is modelled in every arithmetization, with the same division of the circuit. The frontier page has it as an application, for two notes and for four, and its migration of four Ironwood inputs takes them to be under one key. For four notes under one key:
| Scheme | Each note with its own authorization | The key’s part proved once | Saving |
|---|---|---|---|
| Kishu, zero knowledge | 0.228 s | 0.199 s | 13% |
| Flock with ARC | 351 s | 314 s | 11% |
| BitZ with ARC, zero knowledge | 1.25 s | 1.25 s | 0% |
References
- [ZIP-2005] Daira-Emma Hopwood, Jack Grigg. ZIP 2005: Ironwood Quantum Recoverability. https://zips.z.cash/zip-2005