Commit Graph

49 Commits

Author SHA1 Message Date
turnoffthiscomputer
874b426ebe Feat/retrieve OFAC trees from api (#769)
* retrieve the ofac trees from the api

* remove the ofac trees from the common repo

* fix ofac test

* yarn nice

* yarn nice

* yarn nice

* refactor ofac fetching
2025-07-21 11:07:04 +02:00
turnoffthiscomputer
628ec27abe Contracts/update verifiers (#729)
* update the verifiers

* update deployment script

* update deployment script and deploy to prod

* prettier run write
2025-07-02 19:16:09 +02:00
Kevin Lin
66c3df7fcb ci: add prettier check for contract sdk (#602)
* Add Prettier check for code formatting in contracts workflow

* Update contracts workflow: remove unused checkout action and fix build step name

* Run formatter

* Run lint fix
2025-06-28 07:30:29 +08:00
turnoffthiscomputer
cdd5d2648c update the smart contracts scripts (#684) 2025-06-25 20:09:17 +02:00
turnoffthiscomputer
0a5cabde02 refactor deployment scripts (#678) 2025-06-25 10:12:55 +02:00
turnoffthiscomputer
dd02d04a09 Contracts/deploy staging (#668)
* update scripts

* deploy vc and disclose id

* fix the deployment scripts on staging

* update yarn.lock
2025-06-24 00:29:12 +02:00
turnoffthiscomputer
aa0cb509e6 update import 2025-06-23 15:56:04 +02:00
nicoshark
aca1474c2f prettier (#629) 2025-06-16 21:49:51 +09:00
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
Aaron DeRuvo
0e9c59c0fb SEL-56: Setup Yarn Workspaces (#584) 2025-06-04 11:37:32 +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
nicoshark
9d2fadfba6 Eu id/contract prettier (#574)
* 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

* add prettier and run prettier except .sol files

* prettier

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
2025-05-31 05:16:33 +09:00
nicoshark
fb99534de8 Feat/eu id contracts (#555)
* 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

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
2025-05-31 05:00:49 +09:00
Kevin Lin
5a3bd28e7b Feature/add prettier formatter (#568)
* Add Prettier configuration and ignore files for code formatting

- Created .prettierignore to exclude specific directories and files from formatting.
- Added .prettierrc.yml with custom settings for print width and trailing commas.
- Updated package.json to include Prettier and its Solidity plugin as dependencies, along with scripts for formatting and checking code.

* Run prettier formatting
2025-05-23 15:52:59 +09:00
nicoshark
2d8c780698 add delete scripts (#542) 2025-04-29 20:55:22 +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
turnoffthiscomputer
9203f08bc9 Merge pull request #427 from selfxyz/feat/deployed-informations
Feat/deployed informations
2025-03-12 04:36:02 -04:00
motemotech
5c03638c43 add deployed informations 2025-03-12 12:01:20 +09:00
motemotech
c253877d91 Merge branch 'main' into feat/download-n-update-verifiers 2025-03-12 11:39:41 +09:00
0xturboblitz
880ea03b82 writing solidity error codes in comment 2025-03-07 23:33:17 -08:00
motemotech
03019eee49 download and update verifiers 2025-02-24 15:10:32 -08:00
nicoshark
83f3f53702 add error code finding scripts (#195) 2025-02-20 22:20:02 -08:00
turnoffthiscomputer
c220d58d9d Update verifiers (#184) 2025-02-21 00:09:00 +01:00
nicoshark
4c2cc041b7 add set dsc key commitment (#167) 2025-02-20 06:08:45 +01:00
nicoshark
94de78d1d4 Feat/verifier update scripts (#157) 2025-02-19 05:51:20 +01:00
motemotech
37b36d6880 delete old verifier id 2024-10-21 01:59:44 +09:00
motemotech
20b5247a0f add deploy scripts and verifier setting scripts 2024-10-17 19:40:40 +09:00
0xturboblitz
2bdfc60d4b massive renaming to OpenPassport 2024-08-10 23:40:42 -07:00
0xturboblitz
139151c337 make DEVELOPMENT_MODE global 2024-06-18 17:23:37 -07:00
turnoffthiscomputer
4795cdaa37 Update to LeanIMT, add Ignition deployment 2024-05-14 17:31:53 +09:00
0xturboblitz
37211ebc0a few changes on disclosure circuit and its tests 2024-05-14 17:31:45 +09:00
0xturboblitz
166fa56f10 add test pubkey to deployment tree 2024-04-23 19:31:46 -07:00
0xturboblitz
e041d22903 rename static mockPassportData 2024-04-23 19:30:53 -07:00
turnoffthiscomputer
d81662bba4 fix majority hardcoded in app 2024-04-11 12:07:45 +02:00
0xturboblitz
b8e2a5057f fix age not disclosed breaking tokenURI json 2024-03-24 15:27:37 -07:00
0xturboblitz
2b6d48971a fix SBT attributes display on opensea 2024-03-24 10:26:48 -07:00
0xturboblitz
b0bc59bcbf fix contracts/scripts/mint.ts 2024-03-23 15:57:52 -07:00
0xturboblitz
af6a770ec2 merging dev, fixing bugs and new deployment 2024-03-23 11:53:58 -07:00
0xturboblitz
706b936435 using serialized tree in /contracts 2024-03-21 17:16:52 +01:00
0xturboblitz
f0956e0f53 merkle tree serialization and building
- added serialization to @zk-kit/imt
- building the tree in registry and copying it to /common and /app/deployments
- factor getLeaf
- all tests passing and in-app proof gen working
2024-02-25 00:11:31 -07:00
0xturboblitz
ad076dd29b merkle tree circuit proving in app
- factor out generateCircuitInputs
- new proof working on iOS
- new zkey on aws and contract deployment
- not working on android because of mysterious bug
2024-02-23 16:34:13 -07:00
0xturboblitz
0889b2cc97 better deploy script 2024-01-17 13:57:48 +01:00
yssf-io
3e4318f127 copying contract artefacts to app 2024-01-02 21:19:54 +01:00
0xturboblitz
b0c2f0a6f9 add token expiry 2023-12-26 21:13:41 +01:00
0xturboblitz
38a6c11483 formatting, factorize formatter, add countryCodes 2023-12-26 19:33:02 +01:00
0xturboblitz
2520d8e71d tokenURI working on opensea 2023-11-26 14:33:00 +01:00
0xturboblitz
569f87a2c7 proof of passport nft 2023-11-26 12:36:05 +01:00
0xturboblitz
edc7a7c994 moving contracts in /contract 2023-07-22 15:44:07 +02:00