Skip to content

Commit

Permalink
circuit: remove unnecessary export from test
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Apr 1, 2024
1 parent 7ad0460 commit 57a1564
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 22 deletions.
1 change: 0 additions & 1 deletion packages/circuits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"babel-preset-jest": "^29.5.0",
"circom_tester": "^0.0.20",
"circomlibjs": "^0.1.7",
"ffjavascript": "^0.2.59",
"jest": "^29.5.0",
"typescript": "^5.2.2"
}
Expand Down
5 changes: 0 additions & 5 deletions packages/circuits/tests/base64.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { wasm } from "circom_tester";
import { Scalar } from "ffjavascript";
import path from "path";


exports.p = Scalar.fromString(
"21888242871839275222246405745257275088548364400416034343698204186575808495617"
);

describe("Base64 Lookup", () => {
jest.setTimeout(10 * 60 * 1000); // 10 minutes

Expand Down
4 changes: 0 additions & 4 deletions packages/circuits/tests/email-verifier.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import fs from "fs";
import { buildPoseidon } from "circomlibjs";
import { wasm as wasm_tester } from "circom_tester";
import { Scalar } from "ffjavascript";
import path from "path";
import { DKIMVerificationResult } from "@zk-email/helpers/src/dkim";
import { generateCircuitInputs } from "@zk-email/helpers/src/input-helpers";
import { verifyDKIMSignature } from "@zk-email/helpers/src/dkim";
import { bigIntToChunkedBytes } from "@zk-email/helpers/src/binaryFormat";

exports.p = Scalar.fromString(
"21888242871839275222246405745257275088548364400416034343698204186575808495617"
);

describe("EmailVerifier", () => {
jest.setTimeout(10 * 60 * 1000); // 10 minutes
Expand Down
7 changes: 1 addition & 6 deletions packages/circuits/tests/rsa.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import fs from "fs";
import { buildMimcSponge } from "circomlibjs";
import { wasm as wasm_tester } from "circom_tester";
import { Scalar } from "ffjavascript";
import path from "path";
import { wasm as wasm_tester } from "circom_tester";
import { DKIMVerificationResult } from "@zk-email/helpers/src/dkim";
import { generateCircuitInputs } from "@zk-email/helpers/src/input-helpers";
import { verifyDKIMSignature } from "@zk-email/helpers/src/dkim";
import { toCircomBigIntBytes } from "@zk-email/helpers/src/binaryFormat";

exports.p = Scalar.fromString(
"21888242871839275222246405745257275088548364400416034343698204186575808495617"
);

describe("RSA", () => {
jest.setTimeout(10 * 60 * 1000); // 10 minutes
Expand Down
4 changes: 0 additions & 4 deletions packages/circuits/tests/sha.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { wasm as wasm_tester } from "circom_tester";
import { Scalar } from "ffjavascript";
import path from "path";
import { sha256Pad, shaHash } from "@zk-email/helpers/src/shaHash";
import { Uint8ArrayToCharArray, uint8ToBits } from "@zk-email/helpers/src/binaryFormat";

exports.p = Scalar.fromString(
"21888242871839275222246405745257275088548364400416034343698204186575808495617"
);

describe("SHA256 for email header", () => {
jest.setTimeout(10 * 60 * 1000); // 10 minutes
Expand Down
3 changes: 1 addition & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2761,7 +2761,6 @@ __metadata:
circom_tester: ^0.0.20
circomlib: ^2.0.5
circomlibjs: ^0.1.7
ffjavascript: ^0.2.59
jest: ^29.5.0
typescript: ^5.2.2
languageName: unknown
Expand Down Expand Up @@ -4123,7 +4122,7 @@ __metadata:
languageName: node
linkType: hard

"ffjavascript@npm:^0.2.45, ffjavascript@npm:^0.2.48, ffjavascript@npm:^0.2.59":
"ffjavascript@npm:^0.2.45, ffjavascript@npm:^0.2.48":
version: 0.2.59
resolution: "ffjavascript@npm:0.2.59"
dependencies:
Expand Down

0 comments on commit 57a1564

Please sign in to comment.