# Schnorr signature

Digital signature scheme

In cryptography, a Schnorr signature is a digital signature produced by the Schnorr signature algorithm that was described by Claus Schnorr. It is a digital signature scheme known for its simplicity,[1] among the first whose security is based on the intractability of certain discrete logarithm problems.[1] It is efficient and generates short signatures.[1] It was covered by U.S. Patent 4,995,082 which expired in February 2008.

### Algorithm

#### Choosing parameters

• All users of the signature scheme agree on a group, ${\displaystyle G}$, of prime order, ${\displaystyle q}$, with generator, ${\displaystyle g}$, in which the discrete log problem is assumed to be hard. Typically a Schnorr group is used.
• All users agree on a cryptographic hash function ${\displaystyle H:\{0,1\}^{*}\rightarrow \mathbb {Z} _{q}}$.

#### Notation

In the following,

• Exponentiation stands for repeated application of the group operation
• Juxtaposition stands for multiplication on the set of congruence classes or application of the group operation (as applicable)
• Subtraction stands for subtraction on set of equivalence groups
• ${\displaystyle M\in \{0,1\}^{*}}$, the set of finite bit strings
• ${\displaystyle s,e,e_{v}\in \mathbb {Z} _{q}}$, the set of congruence classes modulo ${\displaystyle q}$
• ${\displaystyle x,k\in \mathbb {Z} _{q}^{\times }}$, the multiplicative group of integers modulo ${\displaystyle q}$ (for prime ${\displaystyle q}$, ${\displaystyle \mathbb {Z} _{q}^{\times }=\mathbb {Z} _{q}\setminus {\overline {0}}_{q}}$)
• ${\displaystyle y,r,r_{v}\in G}$.

#### Key generation

• Choose a private signing key, ${\displaystyle x}$, from the allowed set.
• The public verification key is ${\displaystyle y=g^{x}}$.

#### Signing

To sign a message, ${\displaystyle M}$:

• Choose a random ${\displaystyle k}$ from the allowed set.
• Let ${\displaystyle r=g^{k}}$.
• Let ${\displaystyle e=H(r\parallel M)}$, where ${\displaystyle \parallel }$ denotes concatenation and ${\displaystyle r}$ is represented as a bit string.
• Let ${\displaystyle s=k-xe}$.

The signature is the pair, ${\displaystyle (s,e)}$.

Note that ${\displaystyle s,e\in \mathbb {Z} _{q}}$; if ${\displaystyle q<2^{160}}$, then the signature representation can fit into 40 bytes.

#### Verifying

• Let ${\displaystyle r_{v}=g^{s}y^{e}}$
• Let ${\displaystyle e_{v}=H(r_{v}\parallel M)}$

If ${\displaystyle e_{v}=e}$ then the signature is verified.

#### Proof of correctness

It is relatively easy to see that ${\displaystyle e_{v}=e}$ if the signed message equals the verified message:

${\displaystyle r_{v}=g^{s}y^{e}=g^{k-xe}g^{xe}=g^{k}=r}$, and hence ${\displaystyle e_{v}=H(r_{v}\parallel M)=H(r\parallel M)=e}$.

Public elements: ${\displaystyle G}$, ${\displaystyle g}$, ${\displaystyle q}$, ${\displaystyle y}$, ${\displaystyle s}$, ${\displaystyle e}$, ${\displaystyle r}$. Private elements: ${\displaystyle k}$, ${\displaystyle x}$.

This shows only that a correctly signed message will verify correctly; many other properties are required for a secure signature algorithm.

#### Key leakage from nonce reuse

Just as with the closely related signature algorithms DSA, ECDSA, and ElGamal, reusing the secret nonce value ${\displaystyle k}$ on two Schnorr signatures of different messages will allow observers to recover the private key.[2] In the case of Schnorr signatures, this simply requires subtracting ${\displaystyle s}$ values:

${\displaystyle s'-s=(k'-k)-x(e'-e)}$.

If ${\displaystyle k'=k}$ but ${\displaystyle e'\neq e}$ then ${\displaystyle x}$ can be simply isolated. In fact, even slight biases in the value ${\displaystyle k}$ or partial leakage of ${\displaystyle k}$ can reveal the private key, after collecting sufficiently many signatures and solving the hidden number problem.[2]

#### Security argument

The signature scheme was constructed by applying the Fiat–Shamir transformation[3] to Schnorr's identification protocol.[4] Therefore, (as per Fiat and Shamir's arguments), it is secure if ${\displaystyle H}$ is modeled as a random oracle.

Its security can also be argued in the generic group model, under the assumption that ${\displaystyle H}$ is "random-prefix preimage resistant" and "random-prefix second-preimage resistant".[5] In particular, ${\displaystyle H}$ does not need to be collision resistant.

In 2012, Seurin[1] provided an exact proof of the Schnorr signature scheme. In particular, Seurin shows that the security proof using the forking lemma is the best possible result for any signature schemes based on one-way group homomorphisms including Schnorr-type signatures and the Guillou–Quisquater signature schemes. Namely, under the ROMDL assumption, any algebraic reduction must lose a factor ${\displaystyle f({\epsilon }_{F})q_{h}}$ in its time-to-success ratio, where ${\displaystyle f\leq 1}$ is a function that remains close to 1 as long as "${\displaystyle {\epsilon }_{F}}$ is noticeably smaller than 1", where ${\displaystyle {\epsilon }_{F}}$ is the probability of forging an error making at most ${\displaystyle q_{h}}$ queries to the random oracle.

### Short Schnorr signatures

The aforementioned process achieves a t-bit security level with 4t-bit signatures. For example, a 128-bit security level would require 512-bit (64-byte) signatures. The security is limited by discrete logarithm attacks on the group, which have a complexity of the square-root of the group size.

In Schnorr's original 1991 paper, it was suggested that since collision resistance in the hash is not required, then therefore shorter hash functions may be just as secure, and indeed recent developments suggest that a t-bit security level can be achieved with 3t-bit signatures.[5] Then, a 128-bit security level would require only 384-bit (48-byte) signatures, and this could be achieved by truncating the size of e until it is half the length of the s bitfield.

### Notes

1. ^ a b c d Seurin, Yannick (2012-01-12). "On the Exact Security of Schnorr-Type Signatures in the Random Oracle Model" (PDF). Cryptology ePrint Archive. International Association for Cryptologic Research. Retrieved 2014-08-11.
2. ^ a b https://ecc2017.cs.ru.nl/slides/ecc2017-tibouchi.pdf
3. ^ Fiat; Shamir (1986). "How To Prove Yourself: Practical Solutions to Identification and Signature Problems" (PDF). Proceedings of CRYPTO '86. Lecture Notes in Computer Science. 263: 186–194. doi:10.1007/3-540-47721-7_12. ISBN 978-3-540-18047-0. S2CID 4838652.
4. ^ Schnorr (1989). "Efficient Identification and Signatures for Smart Cards" (PDF). Proceedings of CRYPTO '89. Lecture Notes in Computer Science. 435: 239–252. doi:10.1007/0-387-34805-0_22. ISBN 978-0-387-97317-3. S2CID 5526090.
5. ^ a b Neven, Smart, Warinschi. "Hash Function Requirements for Schnorr Signatures". IBM Research. Retrieved 19 July 2012.CS1 maint: multiple names: authors list (link)

### References

• Menezes, Alfred J. et al. (1996), Handbook of Applied Cryptography, CRC Press.
• C.P. Schnorr (1990), "Efficient identification and signatures for smart cards", in G. Brassard, ed. Advances in Cryptology—Crypto '89, 239-252, Springer-Verlag. Lecture Notes in Computer Science, nr 435
• Claus-Peter Schnorr (1991), "Efficient Signature Generation by Smart Cards", Journal of Cryptology 4(3), 161–174 (PS) (PDF).
Original content from Wikipedia, shared with licence Creative Commons By-Sa - Schnorr signature