Versions in this module Expand all Collapse all v6 v6.4.0 May 18, 2020 Changes in this version + const ID + const Name + const SM2PrivateKeyLength + const SM2PublicKeyLength + func Deserialize(sigStr []byte) (*big.Int, *big.Int, error) + func IsLowS(s *big.Int) bool + func Serialize(r, s *big.Int) []byte + func SerializePrivateKey(p *sm2.PrivateKey) []byte + func SerializePublicKey(p *sm2.PublicKey) []byte + func ToLowS(k *sm2.PublicKey, s *big.Int) *big.Int + 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) + type PrivKeySM2 [SM2PrivateKeyLength]byte + func (privKey PrivKeySM2) Bytes() []byte + func (privKey PrivKeySM2) Equals(other crypto.PrivKey) bool + func (privKey PrivKeySM2) PubKey() crypto.PubKey + func (privKey PrivKeySM2) Sign(msg []byte) crypto.Signature + func (privKey PrivKeySM2) String() string + type PubKeySM2 [SM2PublicKeyLength]byte + func (pubKey PubKeySM2) Bytes() []byte + func (pubKey PubKeySM2) Equals(other crypto.PubKey) bool + func (pubKey PubKeySM2) KeyString() string + func (pubKey PubKeySM2) String() string + func (pubKey PubKeySM2) VerifyBytes(msg []byte, sig crypto.Signature) bool + type Signature struct + R *big.Int + S *big.Int + type SignatureS struct + type SignatureSM2 []byte + func (sig SignatureSM2) Bytes() []byte + func (sig SignatureSM2) Equals(other crypto.Signature) bool + func (sig SignatureSM2) IsZero() bool + func (sig SignatureSM2) String() string Other modules containing this package github.com/33cn/chain33