#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.

15 breaking releases

0.16.0 Sep 25, 2024
0.15.0 Jul 18, 2024
0.14.0 Jun 21, 2024
0.10.0 Mar 18, 2024
0.0.0 Nov 21, 2022

#3 in #inherent

Download history 1048/week @ 2024-08-26 601/week @ 2024-09-02 1058/week @ 2024-09-09 806/week @ 2024-09-16 1272/week @ 2024-09-23 1302/week @ 2024-09-30 1221/week @ 2024-10-07 1701/week @ 2024-10-14 1967/week @ 2024-10-21 1619/week @ 2024-10-28 1762/week @ 2024-11-04 21180/week @ 2024-11-11 26036/week @ 2024-11-18 28865/week @ 2024-11-25 23472/week @ 2024-12-02 28850/week @ 2024-12-09

108,516 downloads per month
Used in 53 crates (10 directly)

Apache-2.0 and GPL-3.0-only

10KB
61 lines

Release

Polkadot SDK stable2409


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

~18–31MB
~509K SLoC