8 releases (breaking)

0.7.0 Jan 7, 2025
0.6.0 Sep 25, 2024
0.5.0 Jul 18, 2024
0.4.0 Jul 12, 2024
0.0.0 May 22, 2024

#21 in #verifying

Download history 1159/week @ 2024-10-06 1408/week @ 2024-10-13 1936/week @ 2024-10-20 1555/week @ 2024-10-27 1821/week @ 2024-11-03 20362/week @ 2024-11-10 27011/week @ 2024-11-17 29040/week @ 2024-11-24 22873/week @ 2024-12-01 30836/week @ 2024-12-08 23804/week @ 2024-12-15 7234/week @ 2024-12-22 13161/week @ 2024-12-29 23138/week @ 2025-01-05 34212/week @ 2025-01-12 29789/week @ 2025-01-19

100,890 downloads per month
Used in 27 crates (11 directly)

Apache-2.0

2.5MB
38K SLoC

Release

Polkadot SDK Stable 2412


lib.rs:

The CheckMetadataHash transaction extension.

The extension for optionally checking the metadata hash. For information how it works and what it does exactly, see the docs of CheckMetadataHash.

Integration

As any transaction extension you will need to add it to your runtime transaction extensions: As the extension requires the RUNTIME_METADATA_HASH environment variable to be present at compile time, it requires a little bit more setup. To have this environment variable available at compile time required to tell the substrate-wasm-builder to do so: As generating the metadata hash requires to compile the runtime twice, it is recommended to only enable the metadata hash generation when doing a build for a release or when you want to test this feature.

Dependencies

~19–33MB
~560K SLoC