Versions in this module Expand all Collapse all v0 v0.31.12 Oct 9, 2022 v0.31.11 Oct 29, 2019 Changes in this version + const AddressSize + const Version + func CRandBytes(numBytes int) []byte + func CRandHex(numDigits int) string + func CReader() io.Reader + func Sha256(bytes []byte) []byte + type Address = cmn.HexBytes + func AddressHash(bz []byte) Address + type PrivKey interface + Bytes func() []byte + Equals func(PrivKey) bool + PubKey func() PubKey + Sign func(msg []byte) ([]byte, error) + type PubKey interface + Address func() Address + Bytes func() []byte + Equals func(PubKey) bool + VerifyBytes func(msg []byte, sig []byte) bool + type Symmetric interface + Decrypt func(ciphertext []byte, secret []byte) (plaintext []byte, err error) + Encrypt func(plaintext []byte, secret []byte) (ciphertext []byte) + Keygen func() []byte