package mapverifier
import "github.com/google/trillian/merkle/mapverifier"
Index ¶
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.
Source Files ¶
- Version
- v1.3.12
- Published
- Feb 16, 2021
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 days ago –
Tools for package owners.