Module schnorr

Module schnorr 

Source
Expand description

Schnorr signature scheme on the Grumpkin curve.

Implements the same Schnorr construction used by the Noir schnorr library:

  • Pedersen hash for binding the nonce point R to the public key
  • Blake2s-256 for the final challenge hash
  • Deterministic nonce via Blake2s(private_key || message)
  • Signature = (s, e) where s and e are 32-byte scalars

Structs§

SchnorrSignature
A Schnorr signature (s, e) on the Grumpkin curve.

Functions§

schnorr_sign
Sign a message with a Grumpkin private key using Schnorr.
schnorr_verify
Verify a Schnorr signature against a public key and message hash.