Skip to content

Commit

Permalink
fix: Fix serialization for VerifyingKey (#178)
Browse files Browse the repository at this point in the history
Now the value returned when the number of selectors is a multiple of 8
is correct.

Resolves: #175
  • Loading branch information
CPerezz authored May 3, 2023
1 parent 17e9765 commit 1a4df10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion halo2_proofs/src/plonk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ where
* (self
.selectors
.get(0)
.map(|selector| selector.len() / 8 + 1)
.map(|selector| (selector.len() + 7) / 8)
.unwrap_or(0))
}

Expand Down

0 comments on commit 1a4df10

Please sign in to comment.