Fragile Nonce Selection and ZKPs as a Solution
Andrew Poelstra (Blockstream)
Showcase talk presented at ZKProof 2 in Berkeley, Wednesday, April 10, 2019, 12:00 PM (PT).
About this talk
Elliptic-curve-based signature schemes such as Schnorr and ECDSA require fresh uniform randomness for every signature. Deviations from uniform, even by fractions of a bit, can be exploited by lattice-based attacks to extract secret key material. On the other hand, uniform randomness is difficult to reliably obtain in many constrained environments, such as virtual machines or cheap hardware devices.
The traditional solution to this, for signatures, is to derive randomness deterministically by hashing a secret key and message to be signed (i.e. using RFC6979). The message and nonce determine the Fiat-Shamir challenge, ensuring that distinct signatures will always have independently uniform randomness.
However, in the multiparty setting, the Fiat-Shamir challenge is now determined by input from all participants. This means that individual participants can no longer ensure unique randomness by hashing data known at nonce-generation time. Safe nonce generation requires some unique input, such as a monotonic counter, or direct access to uniform randomness; neither of which are simple to obtain in a robust manner.
If all parties were guaranteed to generate their nonces deterministically, we would again have the simple situation where the message and signing keys completely determined the Fiat-Shamir challenge, again allowing the simple solution of hashing the message with some secret. Such a guarantee is hard to obtain directly, but easy (in principle) to obtain by modifying the signing protocol to require all signers provide zero-knowledge proofs of their nonce generation.
We discuss challenges in such an approach, including the difficulties with provable security and the limitations of using popular zero-knowledge proof schemes in resource-constrained environment such as hardware signing keys.
More ZKProof 2 talks on this topic
Day 1: Research & Industry Showcase (April 10)
ZKP for Audits of Unsolicited Consumer Communication
Hitarshi Buch and Joshua Satten (Wipro)
- Video
Applications of Zero Knowledge Proofs in the Banking Industry
Eduardo Moraes (ING)
- Video
Bringing ZKP to Traditional Industries, Physical World Use-cases
Shiri Lemel (QEDIT)
- Video
Privacy Pass: a Lightweight Zero Knowledge Protocol Designed for the Web
Nick Sullivan (Cloudflare)
- Video
Tooling Infrastructure for Zero-Knowledge Proofs
Henry de Valence (Zcash Foundation)
- Video
