Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 430 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 430 Bytes

Schnorr signature over bn256 curve

License: MIT

PubKey is rG. Signing:

  • k = rand()
  • R = kG
  • s = k + Hash(msg|P|R)*r Sig = <s, R>

Verification:

  • Check that sG equal to R + Hash(msg|P|R)*P

Description: s = k + hash*prv, so sG = G(k + hash*prv) R = kG, so R + hash*P = kG + hash*prv*G = G (k + hash*prv)