Skip to main content

Module program_format

Module program_format 

Source
Expand description

Program binary format magic bytes.

These constants identify the binary format of on-chain program data by their leading 4-byte magic signatures.

Constantsยง

PVM_MAGIC
PVM magic bytes identifying PolkaVM/RISC-V bytecode.
WASM_COMPONENT_MAGIC
WASM Component Model magic bytes (8 bytes).
WASM_MAGIC
WASM magic bytes identifying WebAssembly modules and components.