Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Zero256 = make([]byte, sha256.Size)
Functions ¶
Types ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
func New ¶
New creates "hash calculator" using given hash function. Values written to the hash are encoded as CBOR before hashing.
func (Hash) Sum ¶
Sum returns the hash value calculated and first error (if any) that happened during the hashing (in case of non-nil error the hash value is not valid).
Click to show internal directories.
Click to hide internal directories.