diff --git a/.gitignore b/.gitignore index 37195ed..7cae081 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,8 @@ circuits/ecdsa/tmp/* !tests/tests/inputs/validInput.json helpers/blacklist_generation/__pycache__ package-lock.json +test/passports/* +test/inputs/* +test/registerIdentityTest.ts +test/circuits/* +!test/passports/readme.txt \ No newline at end of file diff --git a/.mocharc.json b/.mocharc.json index d8079d9..32c989b 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,5 +1,6 @@ { "require": "hardhat/register", - "timeout": 100000, - "_": ["test/**/*.ts"] + "timeout": 10000000, + "_": ["test/**/*.ts"], + "ignore": "test/generateRegisterIdentityTest.js" } diff --git a/circuits/dateUtilities/dateComparison.circom b/circuits/dateUtilities/dateComparison.circom index b980f9d..460eb37 100644 --- a/circuits/dateUtilities/dateComparison.circom +++ b/circuits/dateUtilities/dateComparison.circom @@ -1,6 +1,6 @@ pragma circom 2.1.6; -include "../node_modules/circomlib/circuits/comparators.circom"; +include "circomlib/circuits/comparators.circom"; template DateIsLess() { signal input firstDay; diff --git a/circuits/dateUtilities/dateDecoder.circom b/circuits/dateUtilities/dateDecoder.circom index f641e6d..4b369d4 100644 --- a/circuits/dateUtilities/dateDecoder.circom +++ b/circuits/dateUtilities/dateDecoder.circom @@ -1,6 +1,6 @@ pragma circom 2.1.6; -include "../node_modules/circomlib/circuits/bitify.circom"; +include "circomlib/circuits/bitify.circom"; include "./dateEncoder.circom"; template DateDecoder() { diff --git a/circuits/ecdsa/brainpoolP256r1/circomPairing/bls12_381Func.circom b/circuits/ecdsa/brainpoolP256r1/circomPairing/bls12_381Func.circom index 7c82312..78a3a9c 100644 --- a/circuits/ecdsa/brainpoolP256r1/circomPairing/bls12_381Func.circom +++ b/circuits/ecdsa/brainpoolP256r1/circomPairing/bls12_381Func.circom @@ -22,18 +22,22 @@ function get_BLS12_381_prime(CHUNK_SIZE, CHUNK_NUMBER){ // half of 8th ROOTS of unity, up to negation function get_roots_of_unity(CHUNK_SIZE, CHUNK_NUMBER){ - assert( CHUNK_SIZE == 55 && CHUNK_NUMBER == 7 ); + + assert(CHUNK_SIZE == 55 && CHUNK_NUMBER == 7); + var ROOTS[4][2][150]; + for(var idx=0; idx