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
@spec sign(Bitcoinex.Secp256k1.PrivateKey.t(), non_neg_integer(), non_neg_integer()) :: {:ok, Bitcoinex.Secp256k1.Signature.t()} | {:error, String.t()}
@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