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
assert!(z.len().is_power_of_two(), "z must be a power of two");
assert!(evals_ABC.len().is_power_of_two(), "eval_ABC must be a power of two");
assert_eq!(z.len(), evals_ABC.len(), "vector z and eval_ABC should have equal length");
similarly, it can be checked in the conversion function in
Program Information
In Spartan/crr1csproof.rs it's not checked the witness to be a power of two, in fact, it can be checked in
nexus-zkvm/spartan/src/crr1csproof.rs
Line 363 in 7f7789a
by adding the following lines:
similarly, it can be checked in the conversion function in
https://github.com/nexus-xyz/nexus-zkvm/blob/main/nova/src/circuits/nova/pcd/compression/conversion.rs
when converting an r1cs instance to check witness size to be a power of two in
nexus-zkvm/nova/src/circuits/nova/pcd/compression/conversion.rs
Line 105 in f37401c
Project Information
No response
Reproduction Steps
...
What is expected?
...
What is actually happening?
if this is not done you get a reading index of zero from an empty vector in the function
nexus-zkvm/spartan/src/crr1csproof.rs
Line 40 in 7f7789a
System Information
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: