Commit Graph

108 Commits

Author SHA1 Message Date
nicoshark
7cab29dd91 implement self uups upgradeable (#592)
* implement self uups upgradeable

* small changes in identityVerificationHubImplV2

* delete aderyn.toml

* chore: add custom verifier

* chnage return output

* feat: use self structs and a Generic output struct

* feat: add userIdentifier, nullifier, forbiddencountries to returned output

* add root view functions from registry

* fix: build and compilation errors

* add userDefined data into selfVerificationRoot

* "resolve conflicts"

* fix compilation problem

* fix how to register verification config

* test: CustomVerifier

* fix verification root and hub integration

* add scope check in hub impl

* replace poseidon hash to ripemd+sha256

* add todo list

* feat: refactor and add test cases for generic formatter

* add performUserIdentifierCheck in basicVerification

* change how to handle additionalData and fix stack too deep

* start adding test codes

* fix dependency problems in monorepo

* fix: forbidden countries (#612)

LGTM!

* able to run test code

* pass happy path

* delete unused codes

* change error code name, add caller address validation and add scripts to run test and build in monorepo

* add all test cases in vcAndDisclose flow

* remove comment out

* chore: use actual user identifier outputs

* success in registration tests

* cover all cases

* pass contractVersion instead of circuitVersion

* fix disclose test

* chore: add natspecs for ImplHubV2, CustomVerifier and GenericFormatter

* change val name and remove unused lines

* add val name change

* remove userIdentifier from return data

* feat: use GenericDiscloseOutput struct in verfication hook  fix test cases for user identifier

* chore: change the function order for Hub Impl V2 (#625)

* fix nat specs

* add nat spec in SelfStructs

---------

Co-authored-by: Ayman <aymanshaik1015@gmail.com>
Co-authored-by: Nesopie <87437291+Nesopie@users.noreply.github.com>
2025-06-16 14:44:44 +02:00
nicoshark
668732a57b Chore/refactor contracts (#582)
* add eu id support

* add ofac and disclosure euid support

* add contract support for euid cards

* update contracts

* add comment out to remember the interface what we need to implement

* prettier

* get combine verifyVcAndDisclose function and get bytes data

* unified library and clean constant V2

* fix verifyVcAndDisclose interface

* add prettier and run prettier except .sol files

* prettier

* circuit compilation for local environment

* add register id circuit in the contracts dir

* clean up ignition deploy scritps

* refactor deploy scripts

* prettier

* update serialized dsc tree

* fix ofac check

* fix passport attestation id

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
2025-06-03 14:58:41 +09:00
turnoffthiscomputer
5d01e29bf4 add eu id support (#527)
* add eu id support

* add ofac and disclosure euid support

* add contract support for euid cards

---------

Co-authored-by: motemotech <i.am.nicoshark@gmail.com>
2025-05-30 18:24:11 +02:00
turnoffthiscomputer
5904234d2e Feat/simpler contract sdk (#519)
* make contract sdk simpler

* reduce root inputs

* delete convert function

* summarize our library

* update npm package

* update package version

* update attestation id

* add util function to get revealed data

---------

Co-authored-by: motemotech <i.am.nicoshark@gmail.com>
2025-04-17 16:06:49 +02:00
nicoshark
d266cf2ced Feat/add new verifiers (#488)
* update verifiers

* update and deploy new verifiers
2025-03-30 19:22:15 +02:00
nicoshark
9d8c475de0 Docs/contracts (#467)
* add new columns in contracts readme

* update contracts readme
2025-03-18 13:08:43 +01:00
ayman
71651f78ce chore: limit the number of parallel circuits being built to 5 2025-03-16 20:21:54 +05:30
ayman
7844fdeaa0 chore: build circuits 2025-03-16 19:19:05 +05:30
turboblitz
51e2fc15fa Self sdk and playground (#210)
Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
2025-02-25 13:08:01 -07:00
turboblitz
5dbece7b7f Fix missing sigalg (#185) 2025-02-20 16:53:38 +05:30
nicoshark
94de78d1d4 Feat/verifier update scripts (#157) 2025-02-19 05:51:20 +01:00
Nesopie
dac7c1d50c chore: add rsa circuit (#113) 2025-02-14 13:45:40 +01:00
Nesopie
56126be376 feat: add cpp circuit artifacts (#50) 2025-02-10 13:41:03 +01:00
turboblitz
629dfdad1a Bringing openpassport/main (#19)
Co-authored-by: seshanthS <seshanth@protonmail.com>
Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
Co-authored-by: thomas-senechal <thomas.senechal@pm.me>
Co-authored-by: motemotech <i.am.nicoshark@gmail.com>
Co-authored-by: turnoffthiscomputer <98749896+remicolin@users.noreply.github.com>
Co-authored-by: ayman <aymanshaik1015@gmail.com>
2025-02-05 11:13:52 +01:00
ayman
06e366d2ec merge dev 2025-01-06 12:52:59 +05:30
ayman
3135a407cc feat: working 384 bit curves 2024-12-27 19:24:16 +05:30
turnoffthiscomputer
4ac739fdab rename get_description_tree.sh to print_circom_tree.sh 2024-12-18 23:08:29 +01:00
turnoffthiscomputer
de340bb5b0 update get_description_tree.sh 2024-12-18 22:07:39 +01:00
turnoffthiscomputer
d2cf031e95 add get_description_tree.sh, rename bitGates 2024-12-18 13:34:06 +01:00
turnoffthiscomputer
15f7229933 fix build_dsc_circuits script 2024-12-17 23:01:45 +01:00
turnoffthiscomputer
57783d6397 fix build_disclose_circuit.sh 2024-12-17 22:57:28 +01:00
turnoffthiscomputer
782313379b fix build_prove_circuits.sh 2024-12-17 22:47:06 +01:00
turnoffthiscomputer
aaa4fa1d57 update download download circuits from aws circuit 2024-12-17 18:47:06 +01:00
motemotech
c2f329a68f add optimized functions 2024-12-09 20:09:07 +09:00
turnoffthiscomputer
5abc98041d fix build_dsc_circuits and update dsc verifiers contracts 2024-10-25 11:03:52 +02:00
motemotech
73e2e46f95 add single disclose function, bit like selector mechanism and helper function to read forbidden countries 2024-10-20 01:32:51 +09:00
motemotech
101464b27c fix package.json for npm 2024-10-17 14:28:15 +09:00
motemotech
387a4c7501 try proof gen in test code, but seems not working. 2024-10-09 23:49:01 +09:00
nico shark
0a8713bf6c fix build dsc 4096 script 2024-10-09 21:11:12 +09:00
motemotech
946d4c591c preparation for OneTimeVerification.ts 2024-10-09 17:16:22 +09:00
motemotech
bfb0a42b4b delete all dsc 2048 2024-10-08 02:49:32 +09:00
motemotech
fb77493b2c change circuit list for build_disclose 2024-10-08 02:47:36 +09:00
motemotech
729985e2d3 add build_disclose_circuit.sh and fix each build scripts 2024-10-07 23:14:48 +09:00
motemotech
72fde0e145 fix readme 2024-10-06 19:05:35 +09:00
motemotech
c49215bc9d add build script for dislose circuits 2024-10-06 18:47:15 +09:00
motemotech
1a18dd7ef7 fix script for build-dsc-circuit 2024-10-06 12:51:56 +09:00
turnoffthiscomputer
312b74ad57 merge dev into merge-175 2024-10-03 15:07:59 -07:00
turnoffthiscomputer
d347fad9f3 fix build_prove_circuits.sh 2024-10-03 13:01:19 -07:00
turnoffthiscomputer
b9e5da219b implement new dsc circuits and tests 2024-09-27 16:56:47 +02:00
turnoffthiscomputer
ddd7e723d7 update witness gen 2024-09-25 20:12:05 +02:00
turnoffthiscomputer
7e9ddbaf01 Revert "add ecdsa to mobile proving (attempt)"
This reverts commit dbc4deef32.
2024-09-25 18:23:14 +02:00
turnoffthiscomputer
dbc4deef32 add ecdsa to mobile proving (attempt) 2024-09-24 12:46:49 +02:00
turnoffthiscomputer
35a697bfc6 add curve to ecdsa circuits name 2024-09-23 15:04:15 +02:00
turnoffthiscomputer
ccf2534ca1 adapt script to zip and upload dat and zkeys to aws 2024-09-21 16:24:35 +02:00
turnoffthiscomputer
adb18f795d clean .sh 2024-09-20 19:29:36 +02:00
turnoffthiscomputer
4ad5371379 add contract verifier generation to build_prove_circuits.sh 2024-09-20 19:28:59 +02:00
turnoffthiscomputer
27cb0a80c5 update circuit path 2024-09-20 18:47:57 +02:00
turnoffthiscomputer
eb465057a4 pad dg2_hash to length 64, fix commitment generation 2024-09-18 20:16:29 +02:00
turnoffthiscomputer
d79f1c2eec update build_register_circuits.sh with new path 2024-09-17 16:24:24 +02:00
turnoffthiscomputer
48d7729300 allow more RAM in build_dsc_4096_circuits.sh 2024-09-12 18:37:33 +02:00