Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UseSimd bool
Functions ¶
func MerkleTreeChildren ¶
func MerkleTreeChildren(m MerkleTree, idx int) (left int, right int)
func MerkleTreeHash ¶
func MerkleTreeHash(m MerkleTree) *[]byte
Types ¶
type HashBlock ¶
func MerkleTreeAt ¶
func MerkleTreeAt(m MerkleTree, idx int) (block HashBlock, length uint32)
func MerkleTreeRoot ¶
func MerkleTreeRoot(m MerkleTree) (HashBlock, int)
type MerkleTree ¶
func MerkleTreeFromFile ¶
func MerkleTreeFromFile(name string, splitBits uint) (MerkleTree, error)
func MerkleTreeFromReader ¶
func MerkleTreeFromReader(r io.Reader, splitBits uint) (MerkleTree, error)
Click to show internal directories.
Click to hide internal directories.