Versions in this module Expand all Collapse all v0 v0.6.0 Mar 7, 2023 Changes in this version + const ErrBadChecksum + const ErrBadWIF + const ErrCannotUnmarshal + const ErrEmptyPrivateKey + const ErrEmptyPublicKey + const ErrInvalidSignature + const ErrWrongHashSize + const ErrWrongSignature + const PrivateKeyCompressedSize + const PublicKeyCompressedSize + const PublicKeyUncompressedSize + const RFC6979SignatureSize + const WIFLength + func LoadPrivateKey(val string) (*ecdsa.PrivateKey, error) + func MarshalPrivateKey(key *ecdsa.PrivateKey) []byte + func MarshalPublicKey(key *ecdsa.PublicKey) []byte + func Sign(key *ecdsa.PrivateKey, msg []byte) ([]byte, error) + func SignHash(key *ecdsa.PrivateKey, msgHash []byte) ([]byte, error) + func SignRFC6979(key *ecdsa.PrivateKey, msg []byte) ([]byte, error) + func SignRFC6979Hash(key *ecdsa.PrivateKey, msgHash []byte) ([]byte, error) + func UnmarshalPrivateKey(data []byte) (*ecdsa.PrivateKey, error) + func UnmarshalPublicKey(data []byte) *ecdsa.PublicKey + func Verify(pub *ecdsa.PublicKey, msg, sig []byte) error + func VerifyHash(pub *ecdsa.PublicKey, msgHash, sig []byte) error + func VerifyRFC6979(key *ecdsa.PublicKey, msg, sig []byte) error + func VerifyRFC6979Hash(key *ecdsa.PublicKey, msgHash, sig []byte) error + func WIFDecode(wif string) (*ecdsa.PrivateKey, error) + func WIFEncode(key *ecdsa.PrivateKey) (string, error)