Skip to main content

MAX_CHUNKABLE_BYTECODE

Constant MAX_CHUNKABLE_BYTECODE 

Source
pub const MAX_CHUNKABLE_BYTECODE: usize = _; // 1_692usize
Expand description

Maximum canonical-bytecode length that can be chunked under v0.1.

Equals MAX_CHUNKS * CHUNKED_FRAGMENT_LONG_BYTES − CROSS_CHUNK_HASH_BYTES (= 32 * 53 − 4 = 1692). Bytecodes longer than this cannot be encoded as a single mk1 card and the encoder returns Error::CardPayloadTooLarge.