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

Function to_bytes

crates/aiur/src/vk_codec.rs:195–205  ·  view source on GitHub ↗

Serialize the verifying key `System ` (preprocessed traces are skipped — see the module docs).

(system: &System<AiurCircuit>)

Source from the content-addressed store, hash-verified

193}
194
195/// Serialize the verifying key `System<AiurConfig>` (preprocessed traces are
196/// skipped — see the module docs). The config's construction parameters are
197/// passed alongside because [`AiurConfig`] doesn't expose them back; they are
198/// written first so the decoder can rebuild the config.
199pub(crate) fn to_bytes(
200 system: &System<AiurConfig>,
201 commitment_parameters: CommitmentParameters,
202 fri_parameters: FriParameters,
203) -> Vec<u8> {
204 let mut buf = Vec::new();
205 push_u16(&mut buf, commitment_parameters.log_blowup);
206 push_u16(&mut buf, commitment_parameters.cap_height);
207 push_u16(&mut buf, fri_parameters.log_final_poly_len);
208 push_u16(&mut buf, fri_parameters.max_log_arity);

Callers 3

aiur_system_to_bytesFunction · 0.85
system_vk_round_tripsFunction · 0.85
rejects_trailing_bytesFunction · 0.85

Calls 3

usizeMethod · 0.80
vecMethod · 0.80
optionMethod · 0.80

Tested by 2

system_vk_round_tripsFunction · 0.68
rejects_trailing_bytesFunction · 0.68