Versions in this module Expand all Collapse all v6 v6.4.0 May 18, 2020 Changes in this version + const SignNameED25519 + func CRandBytes(numBytes int) []byte + func CRandHex(numDigits int) string + func CReader() io.Reader + func GetName(ty int) string + func GetType(name string) int + func MixEntropy(seedBytes []byte) + func Register(name string, driver Crypto) + func RegisterType(name string, ty int) + func Ripemd160(bytes []byte) []byte + func Sha256(bytes []byte) []byte + func Sm3Hash(msg []byte) []byte + type CertSignature struct + Cert []byte + Signature []byte + type Crypto interface + GenKey func() (PrivKey, error) + PrivKeyFromBytes func([]byte) (PrivKey, error) + PubKeyFromBytes func([]byte) (PubKey, error) + SignatureFromBytes func([]byte) (Signature, error) + func New(name string) (c Crypto, err error) + type PrivKey interface + Bytes func() []byte + Equals func(PrivKey) bool + PubKey func() PubKey + Sign func(msg []byte) Signature + type PubKey interface + Bytes func() []byte + Equals func(PubKey) bool + KeyString func() string + VerifyBytes func(msg []byte, sig Signature) bool + type Signature interface + Bytes func() []byte + Equals func(Signature) bool + IsZero func() bool + String func() string Other modules containing this package github.com/33cn/chain33