Skip to content

Commit 33181f5

Browse files
committed
Fix HOL mode in BBS#
Signed-off-by: lovesh <lovesh.bond@gmail.com>
1 parent 1929e47 commit 33181f5

File tree

7 files changed

+695
-234
lines changed

7 files changed

+695
-234
lines changed

kvac/src/bbdt_2016/keyed_proof.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ impl<G: AffineRepr> ProofOfValidityOfKeyedProof<G> {
197197
.unwrap();
198198
let challenge = compute_random_oracle_challenge::<G::ScalarField, D>(&challenge_bytes);
199199
if !self.sc_pk.verify(pk, g_0, &challenge) {
200-
return Err(KVACError::InvalidKeyedProof);
200+
return Err(KVACError::InvalidProofOfValidity);
201201
}
202202
if !self
203203
.sc_proof
204204
.verify(C, B_0, &challenge, &self.sc_pk.response)
205205
{
206-
return Err(KVACError::InvalidKeyedProof);
206+
return Err(KVACError::InvalidProofOfValidity);
207207
}
208208
Ok(())
209209
}

0 commit comments

Comments
 (0)