Skip to content

Commit a3ea070

Browse files
committed
chore: fmt
1 parent f5879fb commit a3ea070

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

provekit/common/src/prefix_covector.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ pub fn expand_powers<const D: usize>(values: &[FieldElement]) -> Vec<FieldElemen
167167

168168
/// Create a public weight [`PrefixCovector`] from Fiat-Shamir randomness `x`.
169169
///
170-
/// Builds the vector `[1, x, x², …, x^{n-1}]` where `n = num_public_inputs + 1`.
170+
/// Builds the vector `[1, x, x², …, x^{n-1}]` where `n = num_public_inputs +
171+
/// 1`.
171172
#[must_use]
172173
pub fn make_public_weight(x: FieldElement, num_public_inputs: usize, m: usize) -> PrefixCovector {
173174
let n = num_public_inputs + 1;

tooling/provekit-bench/tests/compiler.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ fn case_noir(path: &str) {
8686
test_noir_compiler(path);
8787
}
8888

89-
/// Verify that the verifier rejects a proof whose public inputs have been tampered with.
89+
/// Verify that the verifier rejects a proof whose public inputs have been
90+
/// tampered with.
9091
#[test]
9192
fn test_public_input_binding_exploit() {
9293
use provekit_common::{witness::PublicInputs, FieldElement, HashConfig};
@@ -121,7 +122,8 @@ fn test_public_input_binding_exploit() {
121122
.expect("Honest proof should verify");
122123
}
123124

124-
// Tamper: the committed polynomial encodes result=16 at position 1, but we claim result=42. The verifier should reject this.
125+
// Tamper: the committed polynomial encodes result=16 at position 1, but we
126+
// claim result=42. The verifier should reject this.
125127
proof.public_inputs = PublicInputs::from_vec(vec![FieldElement::from(42u64)]);
126128

127129
let result = verifier.verify(&proof);

0 commit comments

Comments
 (0)