Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstanceBeguier committed Nov 23, 2023
1 parent 77abf73 commit 280eeed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion halo2_gadgets/src/sinsemilla.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ where
}

#[allow(clippy::type_complexity)]
/// Evaluates the blinding factor equal to $[r] R$ where `r` is stored in the `CommitDomain`.
/// Evaluates the blinding factor equal to $\[r\] R$ where `r` is stored in the `CommitDomain`.
pub fn blinding_factor(
&self,
mut layouter: impl Layouter<C::Base>,
Expand Down
26 changes: 13 additions & 13 deletions halo2_gadgets/src/sinsemilla/chip/generator_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@ impl GeneratorTableConfig {

/// Load the generator table into the circuit.
///
/// | table_idx | table_x | table_y | table_range_check_tag |
/// | table_idx | table_x | table_y | table_range_check_tag |
/// -------------------------------------------------------------------
/// | 0 | X(S[0]) | Y(S[0]) | 0 |
/// | 1 | X(S[1]) | Y(S[1]) | 0 |
/// | ... | ... | ... | 0 |
/// | 2^10-1 | X(S[2^10-1]) | Y(S[2^10-1]) | 0 |
/// | 0 | X(S[0]) | Y(S[0]) | 4 |
/// | 1 | X(S[1]) | Y(S[1]) | 4 |
/// | ... | ... | ... | 4 |
/// | 2^4-1 | X(S[2^4-1]) | Y(S[2^4-1]) | 4 |
/// | 0 | X(S[0]) | Y(S[0]) | 5 |
/// | 1 | X(S[1]) | Y(S[1]) | 5 |
/// | ... | ... | ... | 5 |
/// | 2^5-1 | X(S[2^5-1]) | Y(S[2^5-1]) | 5 |
/// | 0 | X(S\[0\]) | Y(S\[0\]) | 0 |
/// | 1 | X(S\[1\]) | Y(S\[1\]) | 0 |
/// | ... | ... | ... | 0 |
/// | 2^10-1 | X(S\[2^10-1\]) | Y(S\[2^10-1\]) | 0 |
/// | 0 | X(S\[0\]) | Y(S\[0\]) | 4 |
/// | 1 | X(S\[1\]) | Y(S\[1\]) | 4 |
/// | ... | ... | ... | 4 |
/// | 2^4-1 | X(S\[2^4-1\]) | Y(S\[2^4-1\]) | 4 |
/// | 0 | X(S\[0\]) | Y(S\[0\]) | 5 |
/// | 1 | X(S\[1\]) | Y(S\[1\]) | 5 |
/// | ... | ... | ... | 5 |
/// | 2^5-1 | X(S\[2^5-1\]) | Y(S\[2^5-1\]) | 5 |
pub fn load(&self, layouter: &mut impl Layouter<pallas::Base>) -> Result<(), Error> {
layouter.assign_table(
|| "generator_table",
Expand Down

0 comments on commit 280eeed

Please sign in to comment.