#parachain #cumulus #blockchain #inherent #polkadot

no-std cumulus-primitives-parachain-inherent

Inherent that needs to be present in every parachain block. Contains messages and a relay chain storage-proof.

17 breaking releases

0.18.1 Apr 3, 2025
0.18.0 Jan 22, 2025
0.17.0 Jan 13, 2025
0.16.0 Sep 25, 2024
0.0.0 Nov 21, 2022

#7 in #parachain

Download history 30285/week @ 2025-02-04 37065/week @ 2025-02-11 32723/week @ 2025-02-18 7643/week @ 2025-02-25 5163/week @ 2025-03-04 7233/week @ 2025-03-11 4968/week @ 2025-03-18 6405/week @ 2025-03-25 5711/week @ 2025-04-01 5728/week @ 2025-04-08 4745/week @ 2025-04-15 7564/week @ 2025-04-22 5836/week @ 2025-04-29 4878/week @ 2025-05-06 4473/week @ 2025-05-13 3593/week @ 2025-05-20

20,131 downloads per month
Used in 93 crates (10 directly)

Apache-2.0 and GPL-3.0-only

515KB
11K SLoC

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.

Dependencies

~23–37MB
~631K SLoC