Crate cumulus_primitives_parachain_inherent

Crate cumulus_primitives_parachain_inherent 

Source
Expand description

Cumulus parachain inherent

The ParachainInherentData is the data that is passed by the collator to the parachain runtime. The runtime will use this data to execute messages from other parachains/the relay chain or to read data from the relay chain state. When the parachain is validated by a parachain validator on the relay chain, this data is checked for correctness. If the data passed by the collator to the runtime isn’t correct, the parachain candidate is considered invalid.

To create a ParachainInherentData for a specific relay chain block, there exists the ParachainInherentDataExt trait in cumulus-client-parachain-inherent that helps with this.

Structs§

MessageQueueChain
This struct provides ability to extend a message queue chain (MQC) and compute a new head.
ParachainInherentData
The inherent data that is passed by the collator to the parachain runtime.

Constants§

INHERENT_IDENTIFIER
The identifier for the parachain inherent.