package
2.3.4
Repository: https://github.com/btcsuite/btcd.git
Documentation: pkg.go.dev

# Functions

NewSignature instantiates a new signature given some r and s values.
ParseDERSignature parses a signature in DER format for the curve type `curve` into a Signature type.
ParseSignature parses a signature in BER format for the curve type `curve' into a Signature type, performing some basic sanity checks.
RecoverCompact verifies the compact signature "signature" of "hash" for the Koblitz curve in "curve".
Sign generates an ECDSA signature over the secp256k1 curve for the provided hash (which should be the result of hashing a larger message) using the given private key.
SignCompact produces a compact signature of the data in hash with the given private key on the given koblitz curve.

# Constants

MaxSigLen is the maximum length of a DER encoded signature and is when both R and S are 33 bytes each.
MinSigLen is the minimum length of a DER encoded signature and is when both R and S are 1 byte each.

# Type aliases

Error identifies an error related to an ECDSA signature.
ErrorKind identifies a kind of error.
Signature is a type representing an ecdsa signature.