Skip to content

Commit

Permalink
Rename some layouter images
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstanceBeguier committed Jun 27, 2024
1 parent 37e9380 commit eda965f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions halo2_gadgets/src/sinsemilla.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1151,16 +1151,19 @@ pub(crate) mod tests {
fn test_against_stored_sinsemilla_chip_4_5_b() {
let circuit = MyCircuit45B {};

test_against_stored_circuit(circuit, "sinsemilla_chip_4_5_b", 4672);
test_against_stored_circuit(circuit, "sinsemilla_with_private_init_chip_4_5_b", 4672);
}

#[cfg(feature = "test-dev-graph")]
#[test]
fn print_sinsemilla_chip_4_5_b() {
use plotters::prelude::*;

let root = BitMapBackend::new("sinsemilla-hash-4-5-b-layout.png", (1024, 7680))
.into_drawing_area();
let root = BitMapBackend::new(
"sinsemilla-with-private-init-4-5-b-layout.png",
(1024, 7680),
)
.into_drawing_area();
root.fill(&WHITE).unwrap();
let root = root.titled("SinsemillaHash", ("sans-serif", 60)).unwrap();

Expand Down
9 changes: 6 additions & 3 deletions halo2_gadgets/src/sinsemilla/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,16 +624,19 @@ pub mod tests {
fn test_against_stored_merkle_chip_4_5_b() {
let circuit = generate_circuit_4_5_b();

test_against_stored_circuit(circuit, "merkle_chip_4_5_b", 4160);
test_against_stored_circuit(circuit, "merkle_with_private_init_chip_4_5_b", 4160);
}

#[cfg(feature = "test-dev-graph")]
#[test]
fn print_merkle_chip_4_5_b() {
use plotters::prelude::*;

let root =
BitMapBackend::new("merkle-path-4-5-b-layout.png", (1024, 7680)).into_drawing_area();
let root = BitMapBackend::new(
"merkle-path-with-private-init-4-5-b-layout.png",
(1024, 7680),
)
.into_drawing_area();
root.fill(&WHITE).unwrap();
let root = root.titled("MerkleCRH Path", ("sans-serif", 60)).unwrap();

Expand Down

0 comments on commit eda965f

Please sign in to comment.