Documentation ¶
Index ¶
Constants ¶
View Source
const HashSize = 32
Variables ¶
This section is empty.
Functions ¶
func HashFunc ¶
HashFunc is a modified version of the blake2s hash function which sets the first three bits of the output to zero. This is needed for use inside a lurk program which has a max field element value less than the maximum value of the blake2s hash.
func HashMerkleBranches ¶
HashMerkleBranches takes two hashes, treated as the left and right tree nodes, and returns the hash of their concatenation. This is a helper function used to aid in the generation of a merkle tree.
func HashWithIndex ¶
HashWithIndex prepends the index to data before hashing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.