Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 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 = bytes.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