Files
self/circuits/package.json
Nesopie f4f5903b40 fix: circuit tests and tsconfigs (#621)
* fix: circuit tests and tsconfigs

* fix-ci: downgrade typescript version

* fix: yarn.lock

* fix: linting in common
2025-06-13 14:16:23 +02:00

87 lines
3.9 KiB
JSON

{
"name": "@selfxyz/circuits",
"version": "0.0.1",
"private": true,
"license": "MIT",
"author": "self team",
"type": "module",
"scripts": {
"build": "tsc",
"build-all": "bash scripts/build/build_register_circuits.sh && bash scripts/build/build_register_circuits_id.sh && bash scripts/build/build_dsc_circuits.sh && bash scripts/build/build_disclose_circuits.sh",
"build-disclose": "bash scripts/build/build_disclose_circuits.sh",
"build-dsc": "bash scripts/build/build_dsc_circuits.sh",
"build-register": "bash scripts/build/build_register_circuits.sh",
"build-register-id": "bash scripts/build/build_register_circuits_id.sh",
"build:deps": "yarn workspaces foreach --from @selfxyz/circuits --topological-dev --recursive run build",
"download": "bash scripts/server/download_circuits_from_AWS.sh",
"format": "prettier --write .",
"install-circuits": "yarn workspaces focus @selfxyz/circuits",
"lint": "prettier --check .",
"nice": "prettier --write .",
"test": "yarn test-base 'tests/**/*.test.ts' --exit",
"test-base": "yarn ts-mocha -n import=tsx --max-old-space-size=8192 --paths -p tsconfig.spec.json",
"test-custom-hasher": "yarn test-base 'tests/other_circuits/custom_hasher.test.ts' --exit",
"test-disclose": "yarn test-base 'tests/disclose/vc_and_disclose.test.ts' --exit",
"test-disclose-id": "yarn test-base 'tests/disclose/vc_and_disclose_id.test.ts' --exit",
"test-dsc": "yarn test-base --max-old-space-size=51200 'tests/dsc/dsc.test.ts' --exit",
"test-ecdsa": "yarn test-base 'tests/utils/ecdsa.test.ts' --exit",
"test-is-older-than": "yarn test-base 'tests/other_circuits/is_older_than.test.ts' --exit",
"test-is-valid": "yarn test-base 'tests/other_circuits/is_valid.test.ts' --exit",
"test-not-in-list": "yarn test-base 'tests/other_circuits/prove_country_is_not_in_list.test.ts' --exit",
"test-ofac": "yarn test-base 'tests/ofac/ofac.test.ts' --exit",
"test-register": "yarn test-base --max-old-space-size=40960 'tests/register/register.test.ts' --exit",
"test-register-id": "yarn test-base --max-old-space-size=40960 'tests/register_id/register_id.test.ts' --exit",
"test-rsa": "yarn test-base 'tests/utils/rsaPkcs1v1_5.test.ts' --exit",
"test-rsa-pss": "yarn test-base 'tests/utils/rsapss.test.ts' --exit",
"types": "yarn build --noEmit"
},
"dependencies": {
"@noble/curves": "^1.4.2",
"@openpassport/zk-email-circuits": "^6.1.2",
"@openpassport/zk-kit-imt": "^0.0.4",
"@openpassport/zk-kit-lean-imt": "^0.0.4",
"@openpassport/zk-kit-smt": "^0.0.1",
"@selfxyz/common": "workspace:^",
"@types/chai-as-promised": "^7.1.6",
"@types/node": "^20.11.19",
"@types/node-forge": "^1.3.5",
"@zk-email/circuits": "^6.3.2",
"@zk-email/helpers": "^6.1.1",
"@zk-email/zk-regex-circom": "^1.2.1",
"@zk-kit/binary-merkle-root.circom": "^1.0.0",
"@zk-kit/circuits": "^1.0.0-beta",
"asn1": "^0.2.6",
"asn1.js": "^5.4.1",
"asn1js": "^3.0.5",
"chai-as-promised": "^7.1.1",
"circom-bigint": "https://github.com/0xbok/circom-bigint",
"circom-dl": "https://github.com/distributed-lab/circom-dl",
"circom_tester": "github:remicolin/circom_tester#main",
"circomlib": "^2.0.5",
"circomlibjs": "^0.1.7",
"crypto": "^1.0.1",
"dotenv": "^16.4.7",
"elliptic": "^6.5.5",
"hash.js": "^1.1.7",
"js-sha256": "^0.10.1",
"jsrsasign": "^11.1.0",
"modpow": "^1.0.0",
"node-forge": "https://github.com/remicolin/forge",
"poseidon-lite": "^0.2.0",
"snarkjs": "^0.7.1",
"typescript": "^5.3.3"
},
"devDependencies": {
"@types/chai": "4.3.11",
"@types/circomlibjs": "^0.1.6",
"@types/mocha": "^10.0.10",
"@yarnpkg/sdks": "^3.2.0",
"chai": "4.3.8",
"mocha": "^10.3.0",
"prettier": "^3.3.3",
"ts-mocha": "^10.0.0",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.20.3"
}
}