MCPcopy Create free account
hub / github.com/argumentcomputer/ix / env_root_present_when_consts_nonempty

Function env_root_present_when_consts_nonempty

crates/ixon/src/serialize.rs:2476–2485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2474
2475 // Sections 4-6 (names / named / comms) are laid out after the
2476 // hints precisely so this reader can stop here.
2477
2478 // Verify merkle root over the §2 addresses (ascending — enforced).
2479 let computed_root =
2480 merkle_root_canonical(&consts_order).unwrap_or_else(zero_address);
2481 if computed_root != stored_root {
2482 return Err(format!(
2483 "Env::get_anon: merkle root mismatch (stored={}, computed={})",
2484 stored_root.hex(),
2485 computed_root.hex(),
2486 ));
2487 }
2488

Callers

nothing calls this directly

Calls 4

parse_stored_rootFunction · 0.85
store_constMethod · 0.80
defn_constFunction · 0.70
putMethod · 0.45

Tested by

no test coverage detected