Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pragma circom 2.1.9;

include "../dsc.circom";

component main { public [ merkle_root ] } = DSC(18, 120, 35);
6 changes: 3 additions & 3 deletions circuits/tests/disclose/vc_and_disclose.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ describe('Disclose', function () {
path.join(__dirname, '../../circuits/disclose/vc_and_disclose.circom'),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down
4 changes: 2 additions & 2 deletions circuits/tests/disclose/vc_and_disclose_aadhaar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import fs from 'fs';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// const privateKeyPath = path.join(__dirname, '../../../node_modules/anon-aadhaar-circuits/assets/testPrivateKey.pem');
const privateKeyPem = fs.readFileSync(
path.join(__dirname, '../../../node_modules/anon-aadhaar-circuits/assets/testPrivateKey.pem'),
path.join(__dirname, '../../node_modules/anon-aadhaar-circuits/assets/testPrivateKey.pem'),
'utf8'
);

Expand Down Expand Up @@ -52,7 +52,7 @@ describe(' VC and Disclose Aadhaar Circuit Tests', function () {
{
verbose: true,
logOutput: true,
include: ['../node_modules', '../node_modules/circomlib/circuits'],
include: ['node_modules', 'node_modules/circomlib/circuits'],
}
);
});
Expand Down
6 changes: 3 additions & 3 deletions circuits/tests/disclose/vc_and_disclose_id.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ describe('Disclose', function () {
path.join(__dirname, '../../circuits/disclose/vc_and_disclose_id.circom'),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down
6 changes: 3 additions & 3 deletions circuits/tests/dsc/dsc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ testSuite.forEach(({ sigAlg, hashFunction, domainParameter, keyLength }) => {
),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down
7 changes: 7 additions & 0 deletions circuits/tests/dsc/test_cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export const fullSigAlgs = [
domainParameter: '3',
keyLength: '3072',
},
{
sigAlg: 'rsapss',
hashFunction: 'sha384',
saltLen: '48',
domainParameter: '65537',
keyLength: '3072',
},
//ECDSA
//brainpool
{ sigAlg: 'ecdsa', hashFunction: 'sha1', domainParameter: 'brainpoolP256r1', keyLength: '256' },
Expand Down
36 changes: 18 additions & 18 deletions circuits/tests/ofac/ofac.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ describe('OFAC - Passport number and Nationality match', function () {
path.join(__dirname, '../../circuits/tests/ofac/ofac_passport_number_tester.circom'),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down Expand Up @@ -142,9 +142,9 @@ describe('OFAC - Name and DOB match', function () {
path.join(__dirname, '../../circuits/tests/ofac/ofac_name_dob_tester.circom'),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down Expand Up @@ -210,9 +210,9 @@ describe('OFAC - Name and YOB match', function () {
path.join(__dirname, '../../circuits/tests/ofac/ofac_name_yob_tester.circom'),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down Expand Up @@ -276,9 +276,9 @@ describe('OFAC - SMT Security Tests', function () {
path.join(__dirname, '../../circuits/tests/ofac/ofac_passport_number_tester.circom'),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down Expand Up @@ -380,9 +380,9 @@ describe('OFAC - ID Card - Name and DOB match', function () {
path.join(__dirname, '../../circuits/tests/ofac/ofac_name_dob_id_tester.circom'),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down Expand Up @@ -439,9 +439,9 @@ describe('OFAC - ID Card - Name and YOB match', function () {
path.join(__dirname, '../../circuits/tests/ofac/ofac_name_yob_id_tester.circom'),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down
12 changes: 6 additions & 6 deletions circuits/tests/other_circuits/custom_hasher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ describe('CustomHasher', function () {
);
circuitCustomHasher = await wasm_tester(circuitPathCustomHasher, {
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
});
circuitPackBytesAndPoseidon = await wasm_tester(circuitPathPackBytesAndPoseidon, {
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
});
});
Expand Down
2 changes: 1 addition & 1 deletion circuits/tests/other_circuits/is_older_than.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('DateIsLessChecker Circuit Test', function () {
circuit = await wasm_tester(
path.join(__dirname, '../../circuits/tests/utils/isOlderThan_tester.circom'),
{
include: ['../node_modules'],
include: ['node_modules'],
}
);
});
Expand Down
2 changes: 1 addition & 1 deletion circuits/tests/other_circuits/is_valid.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('DateIsLessChecker Circuit Test', function () {
circuit = await wasm_tester(
path.join(__dirname, '../../circuits/tests/utils/isValid_tester.circom'),
{
include: ['../node_modules'],
include: ['node_modules'],
}
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ describe('ProveCountryIsNotInList', function () {
);
circuit = await wasm_tester(circuitPath, {
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
});
});
Expand Down
8 changes: 4 additions & 4 deletions circuits/tests/other_circuits/qrdata_extractor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import fs from 'fs';
const __dirname = path.dirname(fileURLToPath(import.meta.url));

const privateKeyPem = fs.readFileSync(
path.join(__dirname, '../../../node_modules/anon-aadhaar-circuits/assets/testPrivateKey.pem'),
path.join(__dirname, '../../node_modules/anon-aadhaar-circuits/assets/testPrivateKey.pem'),
'utf8'
);

Expand All @@ -28,9 +28,9 @@ describe('Aadhaar QR Data Extractor1', function () {
verbose: true,
logOutput: true,
include: [
'../node_modules',
'../node_modules/anon-aadhaar-circuits/src/helpers/constants.circom',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/anon-aadhaar-circuits/src/helpers/constants.circom',
'node_modules/circomlib/circuits',
],
}
);
Expand Down
6 changes: 3 additions & 3 deletions circuits/tests/register/register.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ testSuite.forEach(
),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down
6 changes: 3 additions & 3 deletions circuits/tests/register/register_aadhaar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import { pubkeys } from './pubkeys.js';
const __dirname = path.dirname(new URL(import.meta.url).pathname);

const privateKeyPem = fs.readFileSync(
path.join(__dirname, '../../../node_modules/anon-aadhaar-circuits/assets/testPrivateKey.pem'),
path.join(__dirname, '../../node_modules/anon-aadhaar-circuits/assets/testPrivateKey.pem'),
'utf8'
);
const publicKeyPem = fs.readFileSync(
path.join(__dirname, '../../../common/src/utils/aadhaar/assets/testPublicKey.pem'),
path.join(__dirname, '../../node_modules/anon-aadhaar-circuits/assets/testPublicKey.pem'),
'utf8'
);

Expand All @@ -35,7 +35,7 @@ describe('REGISTER AADHAAR Circuit Tests', function () {
{
verbose: true,
logOutput: true,
include: ['../node_modules'],
include: ['node_modules', 'node_modules/circomlib/circuits'],
}
);
});
Expand Down
6 changes: 3 additions & 3 deletions circuits/tests/register_id/register_id.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ testSuite.forEach(
),
{
include: [
'../node_modules',
'../node_modules/@zk-kit/binary-merkle-root.circom/src',
'../node_modules/circomlib/circuits',
'node_modules',
'node_modules/@zk-kit/binary-merkle-root.circom/src',
'node_modules/circomlib/circuits',
],
}
);
Expand Down
8 changes: 4 additions & 4 deletions circuits/tests/utils/ecdsa.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('ecdsa', () => {
const circuit = await wasmTester(
path.join(__dirname, `../../circuits/tests/utils/ecdsa/test_${curve}.circom`),
{
include: ['../node_modules', '../node_modules/@zk-kit/binary-merkle-root.circom/src'],
include: ['node_modules', 'node_modules/@zk-kit/binary-merkle-root.circom/src'],
}
);

Expand Down Expand Up @@ -119,7 +119,7 @@ describe('ecdsa', () => {
const circuit = await wasmTester(
path.join(__dirname, `../../circuits/tests/utils/ecdsa/test_${curve}.circom`),
{
include: ['../node_modules', '../node_modules/@zk-kit/binary-merkle-root.circom/src'],
include: ['node_modules', 'node_modules/@zk-kit/binary-merkle-root.circom/src'],
}
);

Expand All @@ -144,7 +144,7 @@ describe('ecdsa', () => {
const circuit = await wasmTester(
path.join(__dirname, `../../circuits/tests/utils/ecdsa/test_p256.circom`),
{
include: ['../node_modules', '../node_modules/@zk-kit/binary-merkle-root.circom/src'],
include: ['node_modules', 'node_modules/@zk-kit/binary-merkle-root.circom/src'],
}
);

Expand Down Expand Up @@ -206,7 +206,7 @@ describe('ecdsa', () => {
const circuit = await wasmTester(
path.join(__dirname, `../../circuits/tests/utils/ecdsa/test_p256.circom`),
{
include: ['../node_modules', '../node_modules/@zk-kit/binary-merkle-root.circom/src'],
include: ['node_modules', 'node_modules/@zk-kit/binary-merkle-root.circom/src'],
}
);

Expand Down
6 changes: 3 additions & 3 deletions circuits/tests/utils/rsaPkcs1v1_5.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('VerifyRsaPkcs1v1_5 Circuit Test', function () {
const circuit = await wasmTester(
path.join(__dirname, `../../circuits/tests/utils/rsa/test_${algorithm}.circom`),
{
include: ['../node_modules', '../node_modules/@zk-kit/binary-merkle-root.circom/src'],
include: ['node_modules', 'node_modules/@zk-kit/binary-merkle-root.circom/src'],
}
);

Expand All @@ -61,7 +61,7 @@ describe('VerifyRsaPkcs1v1_5 Circuit Test', function () {
const circuit = await wasmTester(
path.join(__dirname, `../../circuits/tests/utils/rsa/test_${algorithm}.circom`),
{
include: ['../node_modules', '../node_modules/@zk-kit/binary-merkle-root.circom/src'],
include: ['node_modules', 'node_modules/@zk-kit/binary-merkle-root.circom/src'],
}
);

Expand All @@ -83,7 +83,7 @@ describe('VerifyRsaPkcs1v1_5 Circuit Test', function () {
const circuit = await wasmTester(
path.join(__dirname, `../../circuits/tests/utils/rsa/test_${algorithm}.circom`),
{
include: ['../node_modules', '../node_modules/@zk-kit/binary-merkle-root.circom/src'],
include: ['node_modules', 'node_modules/@zk-kit/binary-merkle-root.circom/src'],
}
);

Expand Down
Loading
Loading