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

Method commitment

crates/aiur/src/vk_codec.rs:174–181  ·  view source on GitHub ↗
(&mut self, c: &Commitment)

Source from the content-addressed store, hash-verified

172 push_u16(buf, circuit.max_constraint_degree);
173 // The lookup group size is a free per-circuit choice (it changes the
174 // constraint structure, not just counts), so it must be serialized.
175 buf
176 .push(u8::try_from(circuit.lookup_group_size).expect("group size fits u8"));
177 push_u16(buf, compiled.nodes.len());
178 for node in &compiled.nodes {
179 push_node(buf, node);
180 }
181 push_u16(buf, compiled.zeros.len());
182 for &z in &compiled.zeros {
183 push_node_id(buf, z);
184 }

Callers

nothing calls this directly

Calls 2

vecMethod · 0.80
u64Method · 0.45

Tested by

no test coverage detected