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
Download history 956/week @ 2024-07-29 831/week @ 2024-08-05 1218/week @ 2024-08-12 1358/week @ 2024-08-19 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

26,706 downloads per month
Used in 52 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

~19–32MB
~533K SLoC