Skip to content

Commit

Permalink
Replace enable_hash_from_private_point by init_from_private_point
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstanceBeguier committed Aug 8, 2024
1 parent a34d146 commit 9df4fb6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions halo2_gadgets/src/sinsemilla.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ pub(crate) mod tests {

fn configure<Lookup: PallasLookupRangeCheck>(
meta: &mut ConstraintSystem<pallas::Base>,
enable_hash_from_private_point: bool,
init_from_private_point: bool,
) -> EccSinsemillaConfig<Lookup> {
let advices = [
meta.advice_column(),
Expand Down Expand Up @@ -659,7 +659,7 @@ pub(crate) mod tests {
lagrange_coeffs[0],
lookup,
range_check,
enable_hash_from_private_point,
init_from_private_point,
);
let config2 = SinsemillaChip::configure(
meta,
Expand All @@ -668,7 +668,7 @@ pub(crate) mod tests {
lagrange_coeffs[1],
lookup,
range_check,
enable_hash_from_private_point,
init_from_private_point,
);
(ecc_config, config1, config2)
}
Expand Down
6 changes: 3 additions & 3 deletions halo2_gadgets/src/sinsemilla/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub mod tests {
#[allow(clippy::type_complexity)]
fn configure<Lookup: PallasLookupRangeCheck>(
meta: &mut ConstraintSystem<pallas::Base>,
enable_hash_from_private_point: bool,
init_from_private_point: bool,
) -> (
MerkleConfig<TestHashDomain, TestCommitDomain, TestFixedBases, Lookup>,
MerkleConfig<TestHashDomain, TestCommitDomain, TestFixedBases, Lookup>,
Expand Down Expand Up @@ -277,7 +277,7 @@ pub mod tests {
fixed_y_q_1,
lookup,
range_check,
enable_hash_from_private_point,
init_from_private_point,
);
let config1 = MerkleChip::configure(meta, sinsemilla_config_1);

Expand All @@ -288,7 +288,7 @@ pub mod tests {
fixed_y_q_2,
lookup,
range_check,
enable_hash_from_private_point,
init_from_private_point,
);
let config2 = MerkleChip::configure(meta, sinsemilla_config_2);

Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/src/plonk/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub enum Error {
ColumnNotInPermutation(Column<Any>),
/// An error relating to a lookup table.
TableError(TableError),
/// Try to hash from a private point when enable_hash_from_private_point is not set.
/// Try to hash from a private point when init_from_private_point is not set.
HashFromPrivatePoint,
}

Expand Down

0 comments on commit 9df4fb6

Please sign in to comment.