Skip to content

Commit

Permalink
circuit: fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Mar 29, 2024
1 parent 61ded0b commit a6bc26c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/circuits/email-verifier.circom
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include "circomlib/circuits/poseidon.circom";
include "@zk-email/zk-regex-circom/circuits/common/body_hash_regex.circom";
include "./lib/base64.circom";
include "./lib/rsa.circom";
include "./helpers/sha.circom";
include "./lib/sha.circom";
include "./helpers/extract.circom";
include "./helpers/utils.circom";

Expand Down
6 changes: 3 additions & 3 deletions packages/circuits/tests/email-verifier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,17 @@ describe("EmailVerifier : Without body check", () => {

beforeAll(async () => {
const rawEmail = fs.readFileSync(
path.join(__dirname, "./test.eml"),
path.join(__dirname, "./test-emails/test.eml"),
"utf8"
);
dkimResult = await verifyDKIMSignature(rawEmail);

circuit = await wasm_tester(
path.join(__dirname, "./test-circuits/no-body-hash.test.circom"),
path.join(__dirname, "./test-circuits/email-verifier-no-body-test.circom"),
{
recompile: true,
include: path.join(__dirname, "../../../node_modules"),
output: path.join(__dirname, "./compiled-test-circuits"),
// output: path.join(__dirname, "./compiled-test-circuits"),
}
);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.1.5;

include "../email-verifier.circom";
include "../../email-verifier.circom";

component main { public [ pubkey ] } = EmailVerifier(640, 768, 121, 17, 1);
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.1.5;

include "../email-verifier.circom";
include "../../email-verifier.circom";

component main { public [ pubkey ] } = EmailVerifier(640, 768, 121, 17, 0);

0 comments on commit a6bc26c

Please sign in to comment.