Expand description
BEEFY + MMR utilities.
While BEEFY can be used completely independently as an additional consensus gadget, it is designed around a main use case of bridging standalone networks together. For that use case it’s common to use some aggregated data structure (like MMR) to be used in conjunction with BEEFY, to be able to efficiently prove any past blockchain data.
This module contains primitives used by Polkadot implementation of the BEEFY+MMR bridge, but we imagine they will be useful for other chains that either want to bridge with Polkadot or are completely standalone, but heavily inspired by Polkadot.
Structs§
- Beefy
Authority Set - Details of a BEEFY authority set.
- MmrLeaf
- A standard leaf that gets added every block to the MMR constructed by Substrate’s
pallet_mmr
. - MmrLeaf
Version - An MMR leaf versioning scheme.
- MmrRoot
Provider - A
crate::Payload
provider where payload is Merkle Mountain Range root hash.
Traits§
- Beefy
Data Provider - A provider for extra data that gets added to the Mmr leaf
Functions§
- find_
mmr_ root_ digest - Extract the MMR root hash from a digest in the given header, if it exists.
Type Aliases§
- Beefy
Next Authority Set - Details of the next BEEFY authority set.