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

Function leaf_stdin

zisk/host/src/main.rs:477–491  ·  view source on GitHub ↗

Build the 3-slice leaf-guest stdin: range + env bytes + reuse check-list. `check_list` is a packed list of primary addresses (`Address::pack`) to check; empty means "range mode" (use `[start,end)`). A non-empty list puts the guest in reuse mode, checking only those work items.

(
  start: u32,
  end: u32,
  env_bytes: &[u8],
  check_list: &[u8],
)

Source from the content-addressed store, hash-verified

475 " store: skipping {idx}.proof (no .asm witness; re-prove to refresh)"
476 );
477 continue;
478 };
479 let mut subjects: Vec<Address> = Address::unpack(&cov).collect();
480 subjects.sort_unstable();
481 subjects.dedup();
482 let mut assumptions: Vec<Address> = Address::unpack(&asm).collect();
483 assumptions.sort_unstable();
484 assumptions.dedup();
485 out.push(StoredProof { blob, subjects, assumptions });
486 }
487 out
488}
489
490/// Build the 3-slice leaf-guest stdin: range + env bytes + reuse check-list.
491///
492/// `check_list` is a packed list of primary addresses (`Address::pack`) to
493/// check; empty means "range mode" (use `[start,end)`). A non-empty list puts
494/// the guest in reuse mode, checking only those work items.

Callers 3

run_constantFunction · 0.85
run_shard_planFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected