Skip to content

Commit

Permalink
Fix HOL mode in BBS#
Browse files Browse the repository at this point in the history
Signed-off-by: lovesh <[email protected]>
  • Loading branch information
lovesh committed Jul 19, 2024
1 parent 1929e47 commit 33181f5
Show file tree
Hide file tree
Showing 7 changed files with 695 additions and 234 deletions.
4 changes: 2 additions & 2 deletions kvac/src/bbdt_2016/keyed_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ impl<G: AffineRepr> ProofOfValidityOfKeyedProof<G> {
.unwrap();
let challenge = compute_random_oracle_challenge::<G::ScalarField, D>(&challenge_bytes);
if !self.sc_pk.verify(pk, g_0, &challenge) {
return Err(KVACError::InvalidKeyedProof);
return Err(KVACError::InvalidProofOfValidity);
}
if !self
.sc_proof
.verify(C, B_0, &challenge, &self.sc_pk.response)
{
return Err(KVACError::InvalidKeyedProof);
return Err(KVACError::InvalidProofOfValidity);
}
Ok(())
}
Expand Down
Loading

0 comments on commit 33181f5

Please sign in to comment.