Binance Hack
Altcoins

Zcash proposes Bonsai post-quantum signature scheme

Zakura's Bonsai proposal gives Zcash transparent addresses a 7,812-byte post-quantum signature that a Ledger can produce in about 24 seconds.

· · 3 min read · Edited by Nihatcan Yanik

Source: Zcash on X, 10:24 UTC · Published: 11:34 UTC

Zcash proposes Bonsai post-quantum signature scheme

In brief

  • Bonsai signatures are 7,812 bytes, about half the size of the comparable NIST setting.
  • A regular key keeps 160-bit security for about 2.9 million signatures.
  • The busiest Zcash key not tied to a known organization signed 467,719 times.

Why it matters

Most post-quantum signatures are too large or too slow for the hardware wallets that hold many users' keys. Bonsai sets its key limits from measured Zcash usage so a Ledger can still sign in under half a minute.

Zakura, the Zcash full node team led by Zcash cofounder Sean Bowe and Dev Ojha, has published Bonsai, a proposed post-quantum signature scheme for Zcash's transparent pool, which Zcash's official account highlighted on X on December 3.

Bonsai is a variant of SPHINCS, the hash-based design behind NIST's SLH-DSA standard, set at 160-bit security. Its signatures are 7,812 bytes, roughly half the 16,224 bytes of the closest NIST setting, SHA2-192s, and the authors say verifiers do about a quarter of the work.

Built around hardware wallets

The authors argue the NIST parameter sets do not suit blockchains: the 128-bit options rely on hashes that are too short, while the 192-bit ones are too slow on a device or too large. On a Ledger Nano S Plus, Bonsai signed in about 24 seconds at the 90th percentile, against about 652 seconds for SHA2-192s.

To get there it uses two profiles. A regular profile for hardware wallets and phones builds only part of the key tree, which speeds up signing but caps a key at about 2.9 million signatures before security drops below 160 bits. A high-volume profile for exchanges and mining pools builds the full tree, lasts for about 462 million signatures and signs on a server in 0.14 seconds.

Why the limits are enough

A scan of Zcash mainnet up to November 27, covering 9,306,377 public keys, found that the median transparent key signed once and 99% signed no more than 321 times. The busiest key not tied to a known organization signed 467,719 times, about six times under the regular limit. Only labelled keys, such as the development fund's, go past it.

The scheme uses SHA-2, which Zcash already uses for block hashes and transparent addresses. The authors say SHA-2 is believed to be faster than SHA-3 inside zero-knowledge proofs, which matters because Bonsai is meant to be cheap enough to verify inside a SNARK.

By the numbers - 7,812 bytes: Bonsai signature size - 24 seconds: 90th-percentile signing time on a Ledger Nano S Plus - 321: most signatures made by 99% of Zcash transparent keys - 2.9 million: signature limit for a regular key

What we know

  • The code is on GitHub under the Apache 2.0 license, and the repository calls Bonsai experimental.
  • The design makes one change to SLH-DSA, a fixed digit sum known as WOTS+C, which is not part of the FIPS 205 standard.

What we don't know

  • When, or whether, Bonsai would reach Zcash through a network upgrade; the proposal gives no timeline.
  • Whether wallets and exchanges will support both profiles.

What this means

Hash-based signatures are well studied but bulky and slow on small devices, a problem every chain moving to post-quantum keys has to solve. Zakura's answer is to size key limits to how Zcash keys are actually used, in the same week Solana set out its own post-quantum plan.

@zcash Official

Bonsai: A proposed post-quantum signature scheme for the Zcash transparent pool! Optimized for Zcash, it balances compact signature sizes, efficient verification and practical hardware wallet support.

View on X

Related projects: Zcash