referrerpolicy=no-referrer-when-downgrade

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.

Modules§

v0
Legacy ParachainInherentData that is kept around for backward compatibility. Can be removed once we can safely assume that parachain nodes provide the relay_parent_descendants and collator_peer_id fields.

Structs§

HashedMessage
An inbound message whose content was hashed.
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
PARACHAIN_INHERENT_IDENTIFIER_V0
The identifier for the parachain inherent.