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

Function parse_stored_root

crates/ixon/src/serialize.rs:2456–2459  ·  view source on GitHub ↗

Extract the stored merkle root from a serialized env. The Tag4 header byte (`0xE0` for env) is followed by exactly 32 bytes of root (no opt-tag).

(buf: &[u8])

Source from the content-addressed store, hash-verified

2454 addr.clone(),
2455 crate::lazy::LazyConstant::from_bytes_deferred(bytes.into(), addr),
2456 );
2457 }
2458
2459 // `main` must reference a constant actually present in the file.
2460 if let Some(m) = &env.main
2461 && env.consts.get(m).is_none()
2462 {

Calls

no outgoing calls