schnorr_verify

Function schnorr_verify 

Source
pub fn schnorr_verify(
    public_key: &Point,
    message: &Fr,
    signature: &SchnorrSignature,
) -> bool
Expand description

Verify a Schnorr signature against a public key and message hash.

The verification algorithm matches the Noir schnorr library:

  1. R' = s * G + e * public_key
  2. e' = Blake2s(pedersen_hash([R'.x, public_key.x, public_key.y]) || message)
  3. Accept if e == e'