-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from zk-passport/merge-175
- Loading branch information
Showing
48 changed files
with
1,883 additions
and
2,888 deletions.
There are no files selected for viewing
Binary file modified
BIN
+5.7 MB
(130%)
app/android/app/src/main/cpp/lib/libwitnesscalc_prove_rsa_65537_sha1.so
Binary file not shown.
Binary file modified
BIN
+5.7 MB
(130%)
app/android/app/src/main/cpp/lib/libwitnesscalc_prove_rsa_65537_sha256.so
Binary file not shown.
Binary file modified
BIN
+5.7 MB
(130%)
app/android/app/src/main/cpp/lib/libwitnesscalc_prove_rsapss_65537_sha256.so
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
pragma circom 2.1.5; | ||
|
||
include "circomlib/circuits/comparators.circom"; | ||
include "../utils/other/bytes.circom"; | ||
template ProveCountryIsNotInList(forbiddenCountriesListLength) { | ||
|
||
signal input dg1[93]; | ||
signal input forbidden_countries_list[forbiddenCountriesListLength * 3]; | ||
|
||
signal equality_results[forbiddenCountriesListLength][4]; | ||
for (var i = 0; i < forbiddenCountriesListLength; i++) { | ||
equality_results[i][0] <== IsEqual()([dg1[7], forbidden_countries_list[i ]]); | ||
equality_results[i][1] <== IsEqual()([dg1[8], forbidden_countries_list[i + 1]]); | ||
equality_results[i][2] <== IsEqual()([dg1[9], forbidden_countries_list[i + 2]]); | ||
equality_results[i][3] <== equality_results[i][0] * equality_results[i][1]; | ||
0 === equality_results[i][3] * equality_results[i][2]; | ||
} | ||
signal output forbidden_countries_list_packed[2]; | ||
forbidden_countries_list_packed <== PackBytes(forbiddenCountriesListLength * 3)(forbidden_countries_list); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pragma circom 2.1.9; | ||
include "../../ofac/ofac_name_dob.circom"; | ||
component main { public [ smt_root ] } = OFAC_NAME_DOB(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pragma circom 2.1.9; | ||
include "../../ofac/ofac_name.circom"; | ||
component main { public [ smt_root ] } = OFAC_NAME(); |
3 changes: 3 additions & 0 deletions
3
circuits/circuits/tests/ofac/ofac_passport_number_tester.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pragma circom 2.1.9; | ||
include "../../ofac/ofac_passport_number.circom"; | ||
component main { public [ smt_root ] } = OFAC_PASSPORT_NUMBER(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
circuits/circuits/tests/utils/proveCountryIsNotInList_tester.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pragma circom 2.1.9; | ||
include "../../disclose/proveCountryIsNotInList.circom"; | ||
component main { public [ forbidden_countries_list ] } = ProveCountryIsNotInList(20); |
Oops, something went wrong.