CheckMetadataHash Presentation 2024

Metadata for offline signers

Bastian Köcher
Core Dev @ Polkadot


Status Quo


Why Metadata?


Problems with Metadata


Chunk the Metadata


Merkleize the Metadata


How does it work?


How does it work?


Integration

In your runtime:

pub type SignedExtra = (
	frame_system::CheckNonZeroSender<Runtime>,
	...
	frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);

Integration

In your build.rs:

fn main() {
	substrate_wasm_builder::WasmBuilder::init_with_defaults()
		.enable_metadata_hash("UNIT", 12)
		.build();
}

Questions?