Skip to content

Commit

Permalink
chore: Address review leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
CPerezz committed Oct 16, 2024
1 parent 67a066d commit 9bcf84c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions folding-schemes/src/frontend/circom/browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,9 @@ pub fn load_witness_from_bin_reader<R: Read, F: PrimeField>(mut reader: R) -> Ve
let mut wtns_header = [0u8; 4];
reader.read_exact(&mut wtns_header).expect("read_error");
if wtns_header != [119, 116, 110, 115] {
// ruby -e 'p "wtns".bytes' => [119, 116, 110, 115]
panic!("invalid file header");
}
let version = reader.read_u32::<LittleEndian>().expect("read_error");
// println!("wtns version {}", version);
if version > 2 {
panic!("unsupported file version");
}
Expand All @@ -146,11 +144,7 @@ pub fn load_witness_from_bin_reader<R: Read, F: PrimeField>(mut reader: R) -> Ve
}
let mut prime = vec![0u8; field_size as usize];
reader.read_exact(&mut prime).expect("read_error");
// if prime != hex!("010000f093f5e1439170b97948e833285d588181b64550b829a031e1724e6430") {
// panic!("invalid curve prime {:?}", prime);
// }
let witness_len: u32 = reader.read_u32::<LittleEndian>().expect("read_error");
// println!("witness len {}", witness_len);
let sec_type = reader.read_u32::<LittleEndian>().expect("read_error");
if sec_type != 2 {
panic!("invalid section type");
Expand Down

0 comments on commit 9bcf84c

Please sign in to comment.