Module pallet_merkle::pallet[][src]

Implementation of Merkle pallet

Structs

Pallet
_GeneratedPrefixForStorageCachedRoots
_GeneratedPrefixForStorageGroups
_GeneratedPrefixForStorageHighestCachedBlock
_GeneratedPrefixForStorageLowestCachedBlock
_GeneratedPrefixForStorageManagers
_GeneratedPrefixForStorageNextGroupId
_GeneratedPrefixForStorageStopped
_GeneratedPrefixForStorageUsedNullifiers

Enums

Call
Error
Event

Traits

Config

The pallet’s configuration trait.

Type Definitions

CachedRoots

Map of cached/past Merkle roots at each block number and group. There can be more than one root update in a single block. Allows for easy pruning since we can remove all keys of the first map past a certain point.

Groups

The map of groups to their metadata

HighestCachedBlock

Block number of the newest set of roots that we are caching

LowestCachedBlock

Block number of the oldest set of roots that we are caching

Managers

Maps tree id to the manager of the tree

Module

Type alias to Pallet, to be used by construct_runtime.

NextGroupId

Old name generated by decl_event. The next group identifier up for grabs

Stopped

Indicates whether the group tree is stopped or not

UsedNullifiers

Map of used nullifiers for each tree.