Lably
Skip to content

Schnorr signature

Digital signature scheme

  • 3 min read
  • 3 chapters

Related on Lably

Through Digital signature, Group (mathematics) and Modular arithmetic

Algorithm

Choosing parameters

  • All users of the signature scheme agree on a group G of prime order q with generator 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 H:{0,1}∗→Z/qZ.

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 the set of congruence classes
  • M∈{0,1}∗, the set of finite bit strings
  • s,e,ev,x,k∈Z/qZ, the set of congruence classes modulo q
  • y,r,rv∈G.

Key generation

  • Choose a private signing key x from the allowed set.
  • The public verification key is y=g−x.

Signing

To sign a message M:

  • Choose a random k from the allowed set.
  • Let r=gk.
  • Let e=H(r∥M), where ∥ denotes concatenation and r is represented as a bit string.
  • Let s=k+xe.

The signature is the pair, (s,e).

Note that s,e∈Z/qZ; if q<2256, then the signature representation can fit into 64 bytes.

Verifying

  • Let rv=gsye
  • Let ev=H(rv∥M)

If ev=e then the signature is verified.

Proof of correctness

It is relatively easy to see that ev=e if the signed message equals the verified message:

rv=gsye=gk+xeg−xe=gk=r, and hence ev=H(rv∥M)=H(r∥M)=e.

Public elements: G, g, y, s, e, r. Private elements: k, 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 k on two Schnorr signatures of different messages will allow observers to recover the private key. In the case of Schnorr signatures, this simply requires subtracting s values:

s′−s=(k′−k)+x(e′−e).

If k′=k but e′≠e then x can be simply isolated. In fact, even slight biases in the value k or partial leakage of k can reveal the private key, after collecting sufficiently many signatures and solving the hidden number problem.

Security argument

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

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

In 2012, Seurin 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 f(ϵF)qh in its time-to-success ratio, where f≤1 is a function that remains close to 1 as long as "ϵF is noticeably smaller than 1", where ϵF is the probability of forging an error making at most qh queries to the random oracle.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication