Expand description
Bizinikiwi GRANDPA Pezpallet
This pezpallet is an on-chain GRANDPA light client for Bizinikiwi based chains.
This pezpallet achieves this by trustlessly verifying GRANDPA finality proofs on-chain. Once verified, finalized headers are stored in the pezpallet, thereby creating a sparse header chain. This sparse header chain can be used as a source of truth for other higher-level applications.
The pezpallet is responsible for tracking GRANDPA validator set hand-offs. We only import
headers with justifications signed by the current validator set we know of. The header is
inspected for a ScheduledChanges digest item, which is then used to update to next validator
set.
Since this pezpallet only tracks finalized headers it does not deal with forks. Forks can only occur if the GRANDPA validator set on the bridged chain is either colluding or there is a severe bug causing resulting in an equivocation. Such events are outside the scope of this pezpallet. Shall the fork occur on the bridged chain governance intervention will be required to re-initialize the bridge and track the right fork.
Re-exports§
pub use weights::WeightInfo;pub use weights_ext::WeightInfoExt;pub use pezpallet::*;
Modules§
- pezpallet
- The
pezpalletmodule in each FRAME pezpallet hosts the most important items needed to construct this pezpallet. - weights
- Module, containing weights for this pezpallet. Autogenerated weights for pezpallet_bridge_grandpa
- weights_
ext - Weight-related utilities.
Structs§
- Stored
Authority Set - A bounded GRANDPA Authority List and ID.
- Submit
Finality Proof Helper - Helper struct that provides methods for working with the
SubmitFinalityProofcall. - Verified
Submit Finality Proof Info - Verified
SubmitFinalityProofInfo<N>.
Constants§
- LOG_
TARGET - The target that will be used when publishing logs related to this pezpallet.
Traits§
- Call
SubType - Trait representing a call that is a sub type of this pezpallet’s call.
Type Aliases§
- Bridged
Block Hash - Block hash of the bridged chain.
- Bridged
Block Hasher - Hasher of the bridged chain.
- Bridged
Block Id - Block id of the bridged chain.
- Bridged
Block Number - Block number of the bridged chain.
- Bridged
Chain - Bridged chain from the pezpallet configuration.
- Bridged
Header - Header of the bridged chain.
- Bridged
Stored Header Data - Header data of the bridged chain that is stored at this chain by this pezpallet.
- Grandpa
Chain Headers - Bridge GRANDPA pezpallet as header chain.