Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyInclusionProof ¶
func VerifyInclusionProof(treeID int64, leaf *trillian.MapLeaf, expectedRoot []byte, proof [][]byte, h hashers.MapHasher) error
VerifyInclusionProof verifies that the passed in expectedRoot can be reconstructed correctly given the other parameters.
The process is essentially the same as the inclusion proof checking for append-only logs, but adds support for nil/"default" proof nodes.
Returns nil on a successful verification, and an error otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.