15 major breaking releases
new 15.0.0 | Jan 7, 2025 |
---|---|
14.0.0 | Jul 18, 2024 |
13.0.0 | Jun 21, 2024 |
12.0.0 | May 23, 2024 |
0.0.0 | Sep 8, 2023 |
#676 in Magic Beans
67,930 downloads per month
Used in 180 crates
(46 directly)
22KB
292 lines
Release
Polkadot SDK Stable 2412
lib.rs
:
Defines primitive types for creating or validating a parachain.
When compiled with standard library support, this crate exports a wasm
module that can be used to validate parachain WASM.
Parachain WASM
Polkadot parachain WASM is in the form of a module which imports a memory
instance and exports a function validate_block
.
validate
accepts as input two i32
values, representing a pointer/length pair
respectively, that encodes ValidationParams
.
validate
returns an u64
which is a pointer to an u8
array and its length.
The data in the array is expected to be a SCALE encoded
ValidationResult
.
ASCII-diagram demonstrating the return data format:
[pointer][length]
32bit 32bit
^~~ returned pointer & length
The wasm-api (enabled only when std
feature is not enabled and wasm-api
feature is enabled)
provides utilities for setting up a parachain WASM module in Rust.
Dependencies
~17–30MB
~473K SLoC