Serialize the verifying key `System ` (preprocessed traces are skipped — see the module docs).
(system: &System<AiurCircuit>)
| 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. |
| 199 | pub(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); |