// Copyright (c) Subzero Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
//! Program binary format magic bytes.
//!
//! These constants identify the binary format of on-chain program data
//! by their leading 4-byte magic signatures.
/// PVM magic bytes identifying PolkaVM/RISC-V bytecode.
pub const PVM_MAGIC: & = b"PVM\0";
/// WASM magic bytes identifying WebAssembly modules and components.
pub const WASM_MAGIC: & = b"\0asm";
/// WASM Component Model magic bytes (8 bytes).
///
/// - `\0asm` (4 bytes): WebAssembly magic number
/// - `\x0d\x00`: Layer ID 13, identifying this as a Component (not a core module)
/// - `\x01\x00`: Version 1 of the Component Model format
pub const WASM_COMPONENT_MAGIC: & = b"\0asm\x0d\x00\x01\x00";