referrerpolicy=no-referrer-when-downgrade

Crate pallet_beefy_mmr

Crate pallet_beefy_mmr 

Source
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:

  1. Block number and parent block hash.
  2. Merkle Tree Root Hash of next BEEFY validator set.
  3. 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 pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

Structs§

BeefyEcdsaToEthereum
Convert BEEFY secp256k1 public keys into Ethereum addresses
DepositBeefyDigest
A BEEFY consensus digest item with MMR root hash.

Constants§

FAILED_BEEFY_TO_ETH_ADDRESS
Sentinel returned by BeefyEcdsaToEthereum when 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 (see Pallet::compute_authority_set, which counts failed conversions by matching against this value).

Traits§

BeefyMmrApi
API useful for BEEFY light clients.
WeightInfo
Weight functions needed for pallet_beefy_mmr.