Documentation ¶
Overview ¶
Package verification contains verifiers for clients of the map to confirm entries are committed to.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapVerifier ¶
type MapVerifier struct {
// contains filtered or unexported fields
}
MapVerifier verifies inclusion of key/values in a map.
func NewMapVerifier ¶
func NewMapVerifier(tileFetch TileFetch, prefixStrata int, treeID int64, hash crypto.Hash) *MapVerifier
NewMapVerifier returns a MapVerifier for the map at the given location and with the configuration provided.
func (*MapVerifier) CheckInclusion ¶
CheckInclusion confirms that the key & value are committed to by the map in the given directory, and returns the computed and confirmed root hash that commits to this.
type TileFetch ¶
TileFetch gets the tile at the specified path in the given map revision. There is currently an assumption that this is very fast and thus it looks up tiles one at a time. This can be replaced with a batch version if that assumption is invalidated (e.g. this method triggers network operations).