Documentation ¶
Index ¶
Constants ¶
View Source
const HashSize = 32
Variables ¶
This section is empty.
Functions ¶
func CatAndHash ¶
CatAndHash concatenates all the elements in the slice together and then hashes.
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.