Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lj committed Apr 11, 2024
1 parent 5f36df9 commit b03b8c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fastcrypto-zkp/src/groth16/generic_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ impl<G1: Pairing> VerifyingKey<G1> {
.try_into()
.map_err(|_| FastCryptoError::InvalidInput)?,
);
// There must be at least one element in gamma_abc, which implies that there are no public inputs
// There must be at least one element in gamma_abc, since this should be equal to the number
// of public inputs + 1.
if n == 0 {
return Err(FastCryptoError::InvalidInput);
}
Expand Down

0 comments on commit b03b8c1

Please sign in to comment.