Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsistencyProof ¶
ConsistencyProof returns SUBTREE_PROOF(start, end, D_n) for the tree of size treeSize, reading stored hashes through the provided reader, per the MTC draft section 4.4.1 Generating a Subtree Consistency Proof, detailed further in the draft's Appendix B.4. [start, end) must be a valid subtree with end <= treeSize.
func VerifyConsistency ¶
VerifyConsistency reports whether proof shows that the subtree [start, end), whose hash is nodeHash, sits at those positions in the tree of size n with root rootHash. It follows the procedure in MTC draft section 4.4.3, detailed further in the draft's Appendix B.5.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.