Skip to content

Commit

Permalink
Rename layout images for circuits with optimized lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstanceBeguier committed Jun 23, 2024
1 parent 5623a78 commit 2c1f636
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion halo2_gadgets/src/ecc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,8 @@ pub(crate) mod tests {
fn print_ecc_chip_4_5_b() {
use plotters::prelude::*;

let root = BitMapBackend::new("ecc-chip-layout.png", (1024, 7680)).into_drawing_area();
let root =
BitMapBackend::new("ecc-chip-4-5-b-layout.png", (1024, 7680)).into_drawing_area();
root.fill(&WHITE).unwrap();
let root = root.titled("Ecc Chip Layout", ("sans-serif", 60)).unwrap();

Expand Down
4 changes: 2 additions & 2 deletions halo2_gadgets/src/sinsemilla.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1155,8 +1155,8 @@ pub(crate) mod tests {
fn print_sinsemilla_chip_4_5_b() {
use plotters::prelude::*;

let root =
BitMapBackend::new("sinsemilla-hash-layout.png", (1024, 7680)).into_drawing_area();
let root = BitMapBackend::new("sinsemilla-hash-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
7 changes: 4 additions & 3 deletions halo2_gadgets/src/sinsemilla/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ pub mod tests {

let circuit = MyCircuit::default();
halo2_proofs::dev::CircuitLayout::default()
.show_labels(false)
.show_labels(true)
.render(11, &circuit, &root)
.unwrap();
}
Expand Down Expand Up @@ -620,13 +620,14 @@ pub mod tests {
fn print_merkle_chip_4_5_b() {
use plotters::prelude::*;

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

let circuit = MyCircuit45B::default();
halo2_proofs::dev::CircuitLayout::default()
.show_labels(false)
.show_labels(true)
.render(11, &circuit, &root)
.unwrap();
}
Expand Down

0 comments on commit 2c1f636

Please sign in to comment.