Versions in this module Expand all Collapse all v0 v0.9.3-Beta Dec 19, 2017 v0.9.0 Oct 29, 2017 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 BigIntToEncodedBytes(a *big.Int) *[32]byte + func CombinePubkeys(curve *secp256k1.KoblitzCurve, pks []*secp256k1.PublicKey) *secp256k1.PublicKey + func EncodedBytesToBigInt(s *[32]byte) *big.Int + func GenerateNoncePair(curve *secp256k1.KoblitzCurve, msg []byte, privkey *secp256k1.PrivateKey, ...) (*secp256k1.PrivateKey, *secp256k1.PublicKey, error) + func ParsePubKey(curve *secp256k1.KoblitzCurve, pubKeyStr []byte) (key *secp256k1.PublicKey, err error) + func RecoverPubkey(curve *secp256k1.KoblitzCurve, sig, msg []byte) (*secp256k1.PublicKey, bool, error) + func Sign(curve *secp256k1.KoblitzCurve, priv *secp256k1.PrivateKey, hash []byte) (r, s *big.Int, err error) + func Verify(curve *secp256k1.KoblitzCurve, pubkey *secp256k1.PublicKey, msg []byte, ...) 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 CombineSigs(curve *secp256k1.KoblitzCurve, sigs []*Signature) (*Signature, error) + func NewSignature(r, s *big.Int) *Signature + func ParseSignature(sigStr []byte) (*Signature, error) + func PartialSign(curve *secp256k1.KoblitzCurve, msg []byte, priv *secp256k1.PrivateKey, ...) (*Signature, error) + func (sig Signature) GetR() *big.Int + func (sig Signature) GetS() *big.Int + func (sig Signature) GetType() int + func (sig Signature) Serialize() []byte