Versions in this module Expand all Collapse all v1 v1.0.0 Apr 25, 2022 Changes in this version + const SHA3256LEN + func CalculateDigest(pre *protos.PreOrder) (string, error) + func CheckDigest(pre *protos.PreOrder) error + func HashToID(hash []byte) types.Identifier + func IDToByte(id types.Identifier) []byte + func MakeID(payload []byte) types.Identifier + func PrivSign(hash types.Hash, nodeID int) (*protos.Certification, error) + func PubVerify(cert *protos.Certification, hash types.Hash, nodeID int) error + func SetKeys() error + func VerifyProofCerts(digest types.Hash, pc *protos.QuorumCert, quorum int) error + type Hasher interface + ComputeHash func([]byte) types.Hash + func NewSHA3256() Hasher + type PrivateKey interface + Algorithm func() string + PublicKey func() PublicKey + Sign func(types.Hash) (*protos.Certification, error) + type PublicKey interface + Algorithm func() string + Verify func(*protos.Certification, types.Hash) error + type StaticRand struct + func (sr *StaticRand) Read(x []byte) (int, error)