Versions in this module Expand all Collapse all v1 v1.1.21 Jul 5, 2021 Changes in this version + const ID + const Name + func IsLowS(s *big.Int) bool + func MarshalECDSASignature(r, s *big.Int) ([]byte, error) + func SerializePrivateKey(p *ecdsa.PrivateKey) []byte + func SerializePublicKeyCompressed(p *ecdsa.PublicKey) []byte + func ToLowS(k *ecdsa.PublicKey, s *big.Int) *big.Int + func UnmarshalECDSASignature(raw []byte) (*big.Int, *big.Int, error) + type Driver struct + func (d Driver) GenKey() (crypto.PrivKey, error) + func (d Driver) PrivKeyFromBytes(b []byte) (privKey crypto.PrivKey, err error) + func (d Driver) PubKeyFromBytes(b []byte) (pubKey crypto.PubKey, err error) + func (d Driver) SignatureFromBytes(b []byte) (sig crypto.Signature, err error) + func (d Driver) Validate(msg, pub, sig []byte) error + type PrivKeyECDSA [privateKeyECDSALength]byte + func (privKey PrivKeyECDSA) Bytes() []byte + func (privKey PrivKeyECDSA) Equals(other crypto.PrivKey) bool + func (privKey PrivKeyECDSA) PubKey() crypto.PubKey + func (privKey PrivKeyECDSA) Sign(msg []byte) crypto.Signature + func (privKey PrivKeyECDSA) String() string + type PubKeyECDSA [publicKeyECDSALengthCompressed]byte + func (pubKey PubKeyECDSA) Bytes() []byte + func (pubKey PubKeyECDSA) Equals(other crypto.PubKey) bool + func (pubKey PubKeyECDSA) KeyString() string + func (pubKey PubKeyECDSA) String() string + func (pubKey PubKeyECDSA) VerifyBytes(msg []byte, sig crypto.Signature) bool + type SignatureECDSA []byte + func (sig SignatureECDSA) Bytes() []byte + func (sig SignatureECDSA) Equals(other crypto.Signature) bool + func (sig SignatureECDSA) IsZero() bool + func (sig SignatureECDSA) String() string + type SignatureS struct