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

Function build_check_claim

crates/kernel/src/claim.rs:35–39  ·  view source on GitHub ↗

Build a check claim for the constant at `const_addr` in `env`. Sets `assumptions: None` when the constant has no transitive deps, else `Some(root)` where `root` is the canonical merkle root over those deps.

(env: &Env, const_addr: Address)

Source from the content-addressed store, hash-verified

33/// else `Some(root)` where `root` is the canonical merkle root over
34/// those deps.
35pub fn build_check_claim(env: &Env, const_addr: Address) -> Claim {
36 let deps = env.transitive_deps_excl(&const_addr);
37 let assumptions = merkle_root_canonical(&deps);
38 Claim::Check { const_addr, assumptions }
39}
40
41/// Build an eval claim for the pair `(input, output)` in `env`.
42///

Calls 2

merkle_root_canonicalFunction · 0.85
transitive_deps_exclMethod · 0.45