Expand description
A BEEFY+MMR pallet combo.
While both BEEFY and Merkle Mountain Range (MMR) can be used separately, these tools were designed to work together in unison.
The pallet provides a standardized MMR Leaf format that can be used to bridge BEEFY+MMR-based networks (both standalone and Polkadot-like).
The MMR leaf contains:
- Block number and parent block hash.
- Merkle Tree Root Hash of next BEEFY validator set.
- Arbitrary extra leaf data to be used by downstream pallets to include custom data.
and thanks to versioning can be easily updated in the future.
Re-exports§
pub use pallet::*;
Modules§
- pallet
- The
palletmodule in each FRAME pallet hosts the most important items needed to construct this pallet.
Structs§
- Beefy
Ecdsa ToEthereum - Convert BEEFY secp256k1 public keys into Ethereum addresses
- Deposit
Beefy Digest - A BEEFY consensus digest item with MMR root hash.
Constants§
- FAILED_
BEEFY_ TO_ ETH_ ADDRESS - Sentinel returned by
BeefyEcdsaToEthereumwhen an ECDSA public key cannot be converted to an Ethereum address. Both producer and consumer must reference this constant so the two ends of the conversion can never drift to different sentinels (seePallet::compute_authority_set, which counts failed conversions by matching against this value).
Traits§
- Beefy
MmrApi - API useful for BEEFY light clients.
- Weight
Info - Weight functions needed for
pallet_beefy_mmr.