From a19ea63de011754e665f0ac3df6e214a8412fd6a Mon Sep 17 00:00:00 2001 From: erdoganishe Date: Tue, 15 Oct 2024 16:44:14 +0300 Subject: [PATCH] Add citizenship check to queryIdentityTd1 --- .../identityManagement/circuits/queryIdentityTD1.circom | 8 ++++++++ circuits/identityManagement/m.circom | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 circuits/identityManagement/m.circom diff --git a/circuits/identityManagement/circuits/queryIdentityTD1.circom b/circuits/identityManagement/circuits/queryIdentityTD1.circom index 1130c7d..8c7b6e5 100644 --- a/circuits/identityManagement/circuits/queryIdentityTD1.circom +++ b/circuits/identityManagement/circuits/queryIdentityTD1.circom @@ -7,6 +7,7 @@ include "identityStateVerifier.circom"; include "../../dateUtilities/dateComparisonEncoded.circom"; include "circomlib/circuits/comparators.circom"; include "../../dateUtilities/dateComparisonEncodedNormalized.circom"; +include "./citizenshipCheck.circom"; // QUERY SELECTOR: // 0 - nullifier (+) @@ -228,4 +229,11 @@ template QueryIdentity(idTreeDepth) { identityStateVerifier.idStateRoot <== idStateRoot; identityStateVerifier.idStateSiblings <== idStateSiblings; + + //--------------------------------- + //Citizenship Blacklist check + + component citizenshipCheck = CitizenshipCheck(); + citizenshipCheck.citizenship <== dg1DataExtractor.citizenship; + citizenshipCheck.blacklist <== citizenshipMask; } \ No newline at end of file diff --git a/circuits/identityManagement/m.circom b/circuits/identityManagement/m.circom new file mode 100644 index 0000000..aac590a --- /dev/null +++ b/circuits/identityManagement/m.circom @@ -0,0 +1,5 @@ +pragma circom 2.1.6; + +include "./circuits/queryIdentityTD1.circom"; + +component main = QueryIdentity(80);