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

Function subject_of_cover

zisk/host/src/main.rs:691–699  ·  view source on GitHub ↗

The canonical subject root a leaf guest commits for a chunk that certifies `cover` (its `covered()` target addresses): `merkle_root_canonical` over the addresses, exactly as the guest computes it. Used host-side to re-derive the expected per-child subject *from the env* (not from the proof) so the final aggregate's committed subject can be checked against the env it should cover.

(cover: &[[u8; 32]])

Source from the content-addressed store, hash-verified

689 let parsed: Vec<(String, IxonEnv, Vec<AnonWorkItem>)> = inputs
690 .iter()
691 .map(|ixe| {
692 let label = ixe
693 .as_ref()
694 .map(|p| p.display().to_string())
695 .unwrap_or_else(|| "<empty env>".to_string());
696 let bytes = load_env_bytes(ixe.as_ref());
697 let env =
698 IxonEnv::get_anon(&mut &bytes[..]).expect("invalid Ixon environment");
699 let work = build_anon_work(&env).expect("build_anon_work");
700 (label, env, work)
701 })
702 .collect();

Callers 1

run_constantFunction · 0.85

Calls 2

merkle_root_canonicalFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected