Skip to content

Commit

Permalink
Fix badProof test.
Browse files Browse the repository at this point in the history
  • Loading branch information
armfazh committed Jul 2, 2024
1 parent a9e6da4 commit 2e73ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/oprf.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ async function testBadProof(
if (!evaluation.proof) throw new Error('no evaluation exists')

const badEval = Evaluation.deserialize(suiteID, evaluation.serialize(), crypto)
Object.assign(badEval, { proof: { s: evaluation.proof.c } })

Object.assign(badEval, { proof: { s: evaluation.proof.c, c: evaluation.proof.c } })
await expect(client.finalize(finData, badEval)).rejects.toThrow(/proof failed/)
}

Expand Down

0 comments on commit 2e73ed8

Please sign in to comment.