View Source Bitcoinex.Secp256k1.Schnorr (bitcoinex v0.1.8)

Schnorr-specific secp256k1 operations

Link to this section Summary

Functions

verify whether the schnorr signature is valid for the given message hash and public key

Link to this section Functions

Link to this function

verify_signature(pubkey, z, signature)

View Source
@spec verify_signature(
  Bitcoinex.Secp256k1.Point.t(),
  non_neg_integer(),
  Bitcoinex.Secp256k1.Signature.t()
) :: boolean() | {:error, String.t()}

verify whether the schnorr signature is valid for the given message hash and public key