Versions in this module Expand all Collapse all v0 v0.0.2 Feb 8, 2016 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 ErrorCode int + func (e ErrorCode) String() string + type SchnorrError struct + Description string + ErrorCode ErrorCode + func (e SchnorrError) Error() string + func (e SchnorrError) GetCode() ErrorCode + type Signature struct + R *big.Int + S *big.Int + func NewSignature(r, s *big.Int) *Signature + func ParseSignature(sigStr []byte) (*Signature, error) + func SchnorrCombineSigs(curve *secp256k1.KoblitzCurve, sigs []*Signature) (*Signature, error) + func SchnorrPartialSign(curve *secp256k1.KoblitzCurve, msg []byte, priv *secp256k1.PrivateKey, ...) (*Signature, error) + func (s Signature) GetR() *big.Int + func (s Signature) GetS() *big.Int + func (s Signature) GetType() int + func (sig Signature) Serialize() []byte