Versions in this module Expand all Collapse all v3 deprecated v3.0.1 Jun 10, 2023 v3.0.0 Jul 14, 2020 Changes in this version + func RecoverCompact(signature, hash []byte) (*secp256k1.PublicKey, bool, error) + func SignCompact(key *secp256k1.PrivateKey, hash []byte, isCompressedKey bool) []byte + type Error struct + Description string + ErrorCode ErrorCode + func (e Error) Error() string + func (e Error) Is(target error) bool + func (e Error) Unwrap() error + type ErrorCode int + const ErrSigInvalidDataLen + const ErrSigInvalidRIntID + const ErrSigInvalidSIntID + const ErrSigInvalidSLen + const ErrSigInvalidSeqID + const ErrSigMissingSLen + const ErrSigMissingSTypeID + const ErrSigNegativeR + const ErrSigNegativeS + const ErrSigRIsZero + const ErrSigRTooBig + const ErrSigSIsZero + const ErrSigSTooBig + const ErrSigTooLong + const ErrSigTooMuchRPadding + const ErrSigTooMuchSPadding + const ErrSigTooShort + const ErrSigZeroRLen + const ErrSigZeroSLen + func (e ErrorCode) Error() string + func (e ErrorCode) Is(target error) bool + func (e ErrorCode) String() string + type Signature struct + func NewSignature(r, s *secp256k1.ModNScalar) *Signature + func ParseDERSignature(sig []byte) (*Signature, error) + func Sign(key *secp256k1.PrivateKey, hash []byte) *Signature + func (sig *Signature) IsEqual(otherSig *Signature) bool + func (sig *Signature) Serialize() []byte + func (sig *Signature) Verify(hash []byte, pubKey *secp256k1.PublicKey) bool Other modules containing this package github.com/decred/dcrd/dcrec/secp256k1/v4