Skip to content

Commit

Permalink
patch: include shuffles in transcript, even when empty (#348)
Browse files Browse the repository at this point in the history
* feat: include "shuffles" in "PinnedConstraintSystem::fmt"

* chore: fix the "plonk_api" test
  • Loading branch information
guorong009 authored Jun 6, 2024
1 parent b4d1c4c commit d52ebca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions halo2_backend/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,9 @@ impl<'a, F: Field> std::fmt::Debug for PinnedConstraintSystem<'a, F> {
.field("instance_queries", self.instance_queries)
.field("fixed_queries", self.fixed_queries)
.field("permutation", self.permutation)
.field("lookups", self.lookups);
if !self.shuffles.is_empty() {
debug_struct.field("shuffles", self.shuffles);
}
debug_struct.field("minimum_degree", self.minimum_degree);
.field("lookups", self.lookups)
.field("shuffles", self.shuffles)
.field("minimum_degree", self.minimum_degree);
debug_struct.finish()
}
}
Expand Down
1 change: 1 addition & 0 deletions halo2_proofs/tests/plonk_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ fn plonk_api() {
],
},
],
shuffles: [],
minimum_degree: None,
},
fixed_commitments: [
Expand Down

0 comments on commit d52ebca

Please sign in to comment.