Run all the tests

This commit is contained in:
dancoffman 2022-11-03 17:11:25 -07:00
parent ab04cdd85d
commit 05fd8809ca
No known key found for this signature in database
GPG Key ID: 47B1F53E36A9B3CC
1 changed files with 2 additions and 2 deletions

View File

@ -43,10 +43,10 @@ describe("C-KZG", () => {
expect(verifyAggregateKzgProof(blobs, commitments, proof)).toBe(true);
});
it.only("fails when given incorrect commitments", () => {
it("fails when given incorrect commitments", () => {
const blobs = new Array(2).fill(0).map(generateRandomBlob);
const commitments = blobs.map(blobToKzgCommitment);
commitments[0][0] += 1;
commitments[0][0] += 1; // Mutate the commitment
const proof = computeAggregateKzgProof(blobs);
expect(verifyAggregateKzgProof(blobs, commitments, proof)).toBe(false);
});