Skip to main content

compute_initial_memory_commit

Function compute_initial_memory_commit 

Source
pub fn compute_initial_memory_commit<F: PrimeField32>(
    hasher: &Poseidon2Hasher<F>,
    exe: &VmExe<F>,
    memory_config: &MemoryConfig,
) -> [F; 8]
Expand description

Computes the Merkle root of an executable’s initial memory using the VM memory configuration. This rebuilds the Merkle tree from the executable’s initial memory image.