Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nationality set inclusion check and corresponding tests #175

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

ashpect
Copy link
Contributor

@ashpect ashpect commented Aug 14, 2024

Solves #56

Approach :

  1. We maintain a list of country-sanctioned_country pair, for example : USA-CUB (Usa has sanctioned on Cuba for financial exchange) from here.
  2. A SMT tree is created for these pairs.
  3. A circuit validateCountry (in utils) which verifies the smt_proof provided for a pair of countries. To implement country Verification in circuit, integrate this in any main circuit. (uses some components from Prove name is not in Ofac List #139)
  4. A circuit using the above component has been created in disclose/country_verifier which validates the passport and the correct country.
  5. Tests for the above circuits are in tests/disclose/sanctionCountry.test.ts, which tests (USA-FRA [non-mem, passes], USA-CUB[mem, fails])

@ashpect ashpect changed the title Nationality set inclusion check circuit and corresponding tests Nationality set inclusion check and corresponding tests Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant