Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Sep 18, 2023
1 parent 5a1b05a commit c4be838
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions evm/src/fixed_recursive_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,9 @@ where
&self.root.public_values,
&all_proof.public_values,
)
.map_err(|_| anyhow::Error::msg("Invalid conversion when setting public_values target."))?;
.map_err(|_| {
anyhow::Error::msg("Invalid conversion when setting public values targets.")
})?;

let root_proof = self.root.circuit.prove(root_inputs)?;

Expand Down Expand Up @@ -944,7 +946,9 @@ where
&self.aggregation.public_values,
&public_values,
)
.map_err(|_| anyhow::Error::msg("Invalid conversion when setting public values target."))?;
.map_err(|_| {
anyhow::Error::msg("Invalid conversion when setting public values targets.")
})?;

let aggregation_proof = self.aggregation.circuit.prove(agg_inputs)?;
Ok((aggregation_proof, public_values))
Expand Down Expand Up @@ -1005,7 +1009,7 @@ where

set_public_value_targets(&mut block_inputs, &self.block.public_values, &public_values)
.map_err(|_| {
anyhow::Error::msg("Invalid conversion when setting public values target.")
anyhow::Error::msg("Invalid conversion when setting public values targets.")
})?;

let block_proof = self.block.circuit.prove(block_inputs)?;
Expand Down
4 changes: 2 additions & 2 deletions evm/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn trace_rows_to_poly_values<F: Field, const COLUMNS: usize>(
}

/// Returns the lowest LE 32-bit limb of a `U256` as a field element,
/// and errors in case the integer is actually greater.
/// and errors if the integer is actually greater.
pub(crate) fn u256_lowest_limb<F: Field>(u256: U256) -> Result<F, ProgramError> {
if TryInto::<u32>::try_into(u256).is_err() {
return Err(ProgramError::IntegerTooLarge);
Expand All @@ -58,7 +58,7 @@ pub(crate) fn u256_lowest_limb<F: Field>(u256: U256) -> Result<F, ProgramError>
}

/// Returns the lowest LE 64-bit word of a `U256` as two field elements
/// each storing a 32-bit limb, and errors in case the integer is actually greater.
/// each storing a 32-bit limb, and errors if the integer is actually greater.
pub(crate) fn u256_lowest_word<F: Field>(u256: U256) -> Result<(F, F), ProgramError> {
if TryInto::<u64>::try_into(u256).is_err() {
return Err(ProgramError::IntegerTooLarge);
Expand Down

0 comments on commit c4be838

Please sign in to comment.