Versions in this module Expand all Collapse all v0 v0.7.0 Jun 13, 2022 Changes in this version + const DigestLengthBytes + type BytesWithDomain struct + Bytes []byte + TheDomain string + func (b BytesWithDomain) Domain() string + func (b BytesWithDomain) WriteTo(w io.Writer) (int64, error) + type Commitment []byte + func (Commitment) Domain() string + func (c Commitment) Validate() error + func (c Commitment) WriteTo(w io.Writer) (int64, error) + type Decommitment []byte + func (Decommitment) Domain() string + func (d Decommitment) Validate() error + func (d Decommitment) WriteTo(w io.Writer) (int64, error) + type Hash struct + func New(initialData ...WriterToWithDomain) *Hash + func (hash *Hash) Clone() *Hash + func (hash *Hash) Commit(data ...interface{}) (Commitment, Decommitment, error) + func (hash *Hash) Decommit(c Commitment, d Decommitment, data ...interface{}) bool + func (hash *Hash) Digest() io.Reader + func (hash *Hash) Fork(data ...interface{}) *Hash + func (hash *Hash) Sum() []byte + func (hash *Hash) WriteAny(data ...interface{}) error + type WriterToWithDomain interface + Domain func() string