From 09ea0f623c0188347fdadd209a14705bee551c99 Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 28 Apr 2020 13:44:59 +1200 Subject: [PATCH] fix: verify proof test --- .../verifyProof.bbsSignature.spec.ts | 35 ++----------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/__tests__/bbsSignature/verifyProof.bbsSignature.spec.ts b/__tests__/bbsSignature/verifyProof.bbsSignature.spec.ts index 8964367..63d6834 100644 --- a/__tests__/bbsSignature/verifyProof.bbsSignature.spec.ts +++ b/__tests__/bbsSignature/verifyProof.bbsSignature.spec.ts @@ -149,28 +149,8 @@ describe("bbsSignature", () => { }; const proof = createProof(proofRequest); - let proofMessages = ["Message2", "Message3"]; - let request: BbsVerifyProofRequest = { - proof, - publicKey: bbsPublicKey, - messageCount: 4, - messages: proofMessages, - nonce, - revealed: [1, 2], - }; - - proofMessages = ["Message2"]; - request = { - proof, - publicKey: bbsPublicKey, - messageCount: 4, - messages: proofMessages, - nonce, - revealed: [1], - }; - - proofMessages = ["BadMessage9"]; - request = { + const proofMessages = ["BadMessage9"]; + const request = { proof, publicKey: bbsPublicKey, messageCount: 4, @@ -180,17 +160,6 @@ describe("bbsSignature", () => { }; expect(verifyProof(request).verified).toBeFalsy(); - - proofMessages = ["Message1"]; - request = { - proof, - publicKey: bbsPublicKey, - messageCount: 4, - messages: proofMessages, - nonce, - revealed: [0], - }; - expect(verifyProof(request).verified).toBeTruthy(); }); describe("blsVerifyProof", () => {