Versions in this module Expand all Collapse all v0 v0.1.0 Jan 19, 2024 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