#relay #chain #parachain #inherent #messages #block #data

no-std cumulus-primitives-parachain-inherent

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

16 breaking releases

new 0.17.0 Jan 13, 2025
0.16.0 Sep 25, 2024
0.15.0 Jul 18, 2024
0.10.0 Mar 18, 2024
0.0.0 Nov 21, 2022

#359 in Magic Beans

Download history 1347/week @ 2024-09-24 1262/week @ 2024-10-01 1366/week @ 2024-10-08 1744/week @ 2024-10-15 1872/week @ 2024-10-22 1734/week @ 2024-10-29 2042/week @ 2024-11-05 25620/week @ 2024-11-12 26897/week @ 2024-11-19 26691/week @ 2024-11-26 26090/week @ 2024-12-03 25685/week @ 2024-12-10 21995/week @ 2024-12-17 7297/week @ 2024-12-24 14113/week @ 2024-12-31 23458/week @ 2025-01-07

70,176 downloads per month
Used in 64 crates (9 directly)

Apache-2.0 and GPL-3.0-only

10KB
61 lines

Release

Polkadot SDK Stable 2412


lib.rs:

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
~623K SLoC