#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. (polkadot v1.10.0)

13 releases (breaking)

new 0.11.0 Apr 8, 2024
0.10.0 Mar 18, 2024
0.9.0 Feb 26, 2024
0.6.0 Dec 13, 2023
0.0.0 Nov 21, 2022

#1906 in Magic Beans

Download history 121/week @ 2023-12-22 594/week @ 2023-12-29 850/week @ 2024-01-05 626/week @ 2024-01-12 524/week @ 2024-01-19 476/week @ 2024-01-26 423/week @ 2024-02-02 920/week @ 2024-02-09 1655/week @ 2024-02-16 1779/week @ 2024-02-23 708/week @ 2024-03-01 475/week @ 2024-03-08 978/week @ 2024-03-15 1045/week @ 2024-03-22 1038/week @ 2024-03-29 808/week @ 2024-04-05

3,934 downloads per month
Used in 39 crates (8 directly)

Apache-2.0 and GPL-3.0-only

11KB
60 lines

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

~19–31MB
~508K SLoC