Versions in this module Expand all Collapse all v8 v8.0.0 Jun 13, 2022 Changes in this version + const ErrBadInputSize + const ErrBadNonce + const ErrBadSigRNotOnCurve + const ErrBadSigRYValue + const ErrInputValue + const ErrNonmatchingR + const ErrPointNotOnCurve + const ErrPubKeyOffCurve + const ErrRegenSig + const ErrRegenerateRPoint + const ErrSchnorrHashValue + const ErrUnequalRValues + const ErrZeroSigS + const PubKeyBytesLen + const SignatureSize + var BlakeVersionStringRFC6979 = []byte("Schnorr+BLAKE256") + var Sha256VersionStringRFC6979 = []byte("Schnorr+SHA256 ") + func GenerateKey(rand io.Reader) (priv []byte, x, y *big.Int, err error) + func ParsePubKey(pubKeyStr []byte) (key *secp256k1.PublicKey, err error) + func RecoverPubkey(sig, msg []byte) (*secp256k1.PublicKey, bool, error) + func Sign(priv *secp256k1.PrivateKey, hash []byte) (r, s *big.Int, err error) + func Verify(pubkey *secp256k1.PublicKey, msg []byte, r *big.Int, s *big.Int) bool + type Error struct + Description string + ErrorCode ErrorCode + func (e Error) Error() string + func (e Error) GetCode() ErrorCode + type ErrorCode int + func (e ErrorCode) String() string + type Signature struct + R *big.Int + S *big.Int + func NewSignature(r, s *big.Int) *Signature + func ParseSignature(sigStr []byte) (*Signature, error) + func (sig Signature) GetR() *big.Int + func (sig Signature) GetS() *big.Int + func (sig Signature) GetType() int + func (sig Signature) IsEqual(otherSig *Signature) bool + func (sig Signature) Serialize() []byte + func (sig Signature) Verify(msg []byte, pubkey *secp256k1.PublicKey) bool Other modules containing this package github.com/Decred-Next/dcrnd