Documentation
¶
Index ¶
- func ComputeConstantDepthRoot(blobs [][]byte, hashFunc func([]byte) crypto.Hash) crypto.Hash
- func ComputeNode(blobs [][]byte, hashFunc func([]byte) crypto.Hash) []byte
- func ComputeTrace(blobs [][]byte, index int, hashFunc func([]byte) crypto.Hash) [][]byte
- func ComputeWellBalancedRoot(blobs [][]byte, hashFunc func([]byte) crypto.Hash) crypto.Hash
- func GeneratePageProof(blobs [][]byte, pageIndex, x int, hashFunc func([]byte) crypto.Hash) []crypto.Hash
- func GetLeafPage(blobs [][]byte, pageIndex, x int, hashFunc func([]byte) crypto.Hash) []crypto.Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeConstantDepthRoot ¶
ComputeConstantDepthRoot computes the root hash of a constant-depth Binary Merkle tree. Preprocesses data with leaf prefix and pads to power of 2 size, making it suitable for larger data items and constant-size proofs. Graypaper 0.5.4
func ComputeNode ¶
ComputeNode Computes the Merkle node for a given sequence of blobs.
func ComputeTrace ¶
func ComputeWellBalancedRoot ¶
ComputeWellBalancedRoot computes the root hash of a well-balanced Binary Merkle tree. Suitable for data not much greater than 32 octets in length as it avoids hashing each item in the sequence.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.