Skip to content

Commit

Permalink
chore: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehunkim committed Oct 7, 2024
1 parent faa7ad6 commit 7e0a25d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions channel/src/fs_prover_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,8 @@ impl<F: PrimeField, P: Prng, W: Digest> ProverChannel for FSProverChannel<F, P,
fn send_felts(&mut self, felts: &[Self::Field]) -> Result<(), anyhow::Error> {
let mut raw_bytes = vec![0u8; 0];
for &felem in felts {
// maybe we should use flag should_convert_from_mont_when_initialize
// let big_int = felem.div(self.mont_r_inv).into_bigint();
let big_int = felem.into_bigint();
let bytes = big_int.to_bytes_be();
// println!("raw_bytes: {:?}", bytes);
raw_bytes.extend_from_slice(&bytes);
}
self.send_bytes(&raw_bytes)?;
Expand Down
3 changes: 0 additions & 3 deletions channel/src/fs_verifier_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ impl<F: PrimeField, P: Prng, W: Digest> VerifierChannel for FSVerifierChannel<F,
let raw_bytes: Vec<u8> = self.recv_bytes(n * chunk_bytes_size)?;

for chunk in raw_bytes.chunks_exact(chunk_bytes_size) {
// maybe we should use flag should_convert_from_mont_when_initialize
// let mut felt = Self::Field::from_be_bytes_mod_order(chunk);
let felt = Self::Field::from_be_bytes_mod_order(chunk);
// felt.mul_assign(self.mont_r_inv);
felts.push(felt);
}

Expand Down

0 comments on commit 7e0a25d

Please sign in to comment.