You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In zkPhoto.circom, the output is assigned using the <-- operator, which does not enforce any constraints. As a result, a malicious prover can generate a fake proof with incorrect outputs, compromising the integrity of the circuit.
Without explicit constraints enforcing the expected behavior of the shift operation, the circuit becomes vulnerable to manipulation. A prover could arbitrarily choose an output without satisfying any underlying computation.
To properly implement the shift operation with sufficient constraints, consider referencing established implementations for similar functionalities, such as:
Would appreciate any thoughts or confirmation on this fix!
The text was updated successfully, but these errors were encountered:
Koukyosyumei
changed the title
Under-Constrained Problem in zkPhoto template
Output Assignment Uses <-- Without Constraints, Allowing Malicious Proof Generation
Feb 21, 2025
In zkPhoto.circom, the output is assigned using the
<--
operator, which does not enforce any constraints. As a result, a malicious prover can generate a fake proof with incorrect outputs, compromising the integrity of the circuit.zkPhoto/circuits/zkPhoto.circom
Line 41 in 12b8d51
Without explicit constraints enforcing the expected behavior of the shift operation, the circuit becomes vulnerable to manipulation. A prover could arbitrarily choose an output without satisfying any underlying computation.
To properly implement the shift operation with sufficient constraints, consider referencing established implementations for similar functionalities, such as:
Would appreciate any thoughts or confirmation on this fix!
The text was updated successfully, but these errors were encountered: