Skip to content

Commit

Permalink
chore: improve the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
duguorong009 committed Mar 29, 2024
1 parent fbb83a6 commit 3caba0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions halo2_backend/src/plonk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<C: CurveAffine> VerifyingKey<C> {
where
C: SerdeCurveAffine,
{
6 // VERSION(u8 = 1 byte) + "domain.k"(u8 = 1 byte) + num_fixed_columns(u32 = 4 bytes)
6 // bytes used for encoding VERSION(u8), "domain.k"(u8) & num_fixed_columns(u32)
+ (self.fixed_commitments.len() * C::byte_length(format))
+ self.permutation.bytes_length(format)
}
Expand Down Expand Up @@ -294,7 +294,7 @@ where
{
let scalar_len = C::Scalar::default().to_repr().as_ref().len();
self.vk.bytes_length(format)
+ 12 // bytes used for encoding the length of "l0", "l_last" & "l_active_row" polys
+ 12 // bytes used for encoding the length(u32) of "l0", "l_last" & "l_active_row" polys
+ scalar_len * (self.l0.len() + self.l_last.len() + self.l_active_row.len())
+ polynomial_slice_byte_length(&self.fixed_values)
+ polynomial_slice_byte_length(&self.fixed_polys)
Expand Down

0 comments on commit 3caba0b

Please sign in to comment.