# Functions
CustomNonce allows users to pass in a custom set of auxData that's used as input randomness to generate the nonce used during signing.
FastSign forces signing to skip the extra verification step at the end.
NewSignature instantiates a new signature given some r and s values.
ParsePubKey parses a public key for a koblitz curve from a bytestring into a btcec.Publickey, verifying that it is valid.
ParseSignature parses a signature according to the BIP-340 specification and enforces the following additional restrictions specific to secp256k1:
- The r component must be in the valid range for secp256k1 field elements - The s component must be in the valid range for secp256k1 scalars.
SerializePubKey serializes a public key as specified by BIP 340.
Sign generates an BIP-340 signature over the secp256k1 curve for the provided hash (which should be the result of hashing a larger message) using the given private key.
# Constants
These constants define the lengths of serialized public keys.
SignatureSize is the size of an encoded Schnorr signature.
# Type aliases
Error identifies an error related to a schnorr signature.
ErrorKind identifies a kind of error.
SignOption is a functional option argument that allows callers to modify the way we generate BIP-340 schnorr signatures.