Skip to content

Commit

Permalink
Add snark generation for layer2 compression
Browse files Browse the repository at this point in the history
  • Loading branch information
darth-cy committed Sep 27, 2024
1 parent ab818be commit 864a685
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions compression/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,15 @@ fn test_two_layer_compression() {
lookup_bits: 20,
};
let mut rng = test_rng();
let _compression_circuit_layer2 =
let compression_circuit_layer2 =
CompressionCircuit::new_from_ce_snark(layer2_agg_params, &params, compression_snark, true, &mut rng).unwrap();

// let pk_layer2 = gen_pk(&params, &compression_circuit_layer2, None);
// let compression_snark_layer2 = gen_snark_shplonk(
// &params2,
// &pk_layer2,
// compression_circuit_layer2.clone(),
// None::<String>,
// );
let pk_layer2 = gen_pk(&params, &compression_circuit_layer2, None);
let _compression_snark_layer2 = gen_snark_shplonk(
&params,
&pk_layer2,
compression_circuit_layer2,
None::<String>,
);

// verify_compression_layer_evm(layer_1_snark, layer_2_params, k2, path, 2);
}
Expand Down

0 comments on commit 864a685

Please sign in to comment.