Commit Graph

102 Commits

Author SHA1 Message Date
turnoffthiscomputer
4f18c75041 update contracts (#628)
* remove sdk/tests (#622)

* remove sdk/tests

* chore: update yarn.lock

---------

Co-authored-by: Ayman <aymanshaik1015@gmail.com>

* fix: add range check on paddedInLength of shaBytesDynamic (#623)

* fix ci (#626)

* 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>

* prettier (#629)

---------

Co-authored-by: Ayman <aymanshaik1015@gmail.com>
Co-authored-by: Vishalkulkarni45 <109329073+Vishalkulkarni45@users.noreply.github.com>
Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
Co-authored-by: Nesopie <87437291+Nesopie@users.noreply.github.com>
2025-06-16 15:52:02 +02:00
Aaron DeRuvo
0e9c59c0fb SEL-56: Setup Yarn Workspaces (#584) 2025-06-04 11:37:32 +02: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
turnoffthiscomputer
cc169061bd add common sdk (#537)
* add common sdk

* remove sdk backend api

* remove registry

* regenerate sha256 rsa dsc each time

* download ski-pem dynamically on staging, refactor initpassportDataParsing

* add state machine for button on prove screen, improve ux on splash screen

* fetch ski-pem in production

* fix linter issues

* fix prove screen button bugs

* update podfile.lock and yarn.lock

* run linter in circuits repo

* bump build

* bump version for sentry debugging

* bump ios to version 118

---------

Co-authored-by: Justin Hernandez <transphorm@gmail.com>
2025-05-07 11:45:21 +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
624d0e568d Feat/forbidden countries utils (#504)
* add forbidden countries util function

* remove casting
2025-04-04 18:58:30 +05:30
nicoshark
acd3329f31 Feat/proof conversion (#491)
* export castFromScope

* export proof conversion
2025-03-28 17:13:45 +01:00
nicoshark
f63ee37118 Perf/contract test (#224) 2025-03-04 16:03:03 -08:00
nicoshark
01ceaa9f44 add example contract how to integrate self verifier (#198) 2025-02-23 00:15:53 +01:00
turnoffthiscomputer
a7dbd5c788 Increase forbidden country list size (#175)
Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
2025-02-20 05:34:43 +01:00
nicoshark
43d968e8d6 add error code in the return value (#171) 2025-02-20 00:21:16 +01:00
nicoshark
7d0e83a727 Feat/clean sdk code (#155)
Co-authored-by: turnoffthiscomputer <98749896+remicolin@users.noreply.github.com>
2025-02-19 05:51:37 +01:00
nicoshark
e13c64ba10 Add verifier ids (#139) 2025-02-19 05:48:07 +01:00
turboblitz
fd74ffa156 New backend verification sdk (#131)
Co-authored-by: motemotech <i.am.nicoshark@gmail.com>
2025-02-16 18:33:54 -08:00
turboblitz
c6db61b2c0 Use secret from keychain (#108) 2025-02-14 14:30:14 +01:00
turboblitz
6d4c211c51 New OFAC updates (#47)
Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
2025-02-12 22:21:01 +01:00
nicoshark
762708d326 Fix/contract improvements (#75) 2025-02-12 15:57:55 +01:00
nicoshark
03b5428d92 Update/contract sdk (#61) 2025-02-11 00:17:13 +09: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
turnoffthiscomputer
6ef481e3fb delete RegisterAndDisclose.ts 2024-12-17 18:34:10 +01:00
motemotech
039f1220ad add test cases 2024-12-18 00:41:37 +09:00
motemotech
be67f50ce5 add test and merge test/contracts 2024-12-17 22:46:03 +09:00
motemotech
29c90af806 Merge branch 'test/contracts' into fix/register-contract 2024-12-17 21:54:46 +09:00
motemotech
f816696466 add openpassport register contract 2024-12-17 21:51:51 +09:00
motemotech
03b312a8b4 update contracts test code 2024-12-16 15:36:10 +09:00
motemotech
c895d2ee77 update function name and function to extract forbidden countries 2024-10-21 00:29:55 +09:00
motemotech
fa1e0eb9af fix test code 2024-10-16 12:36:48 +09:00
motemotech
ac6e8fbb4d checked the flow writtein in readme 2024-10-10 20:11:51 +09:00
motemotech
0936edeb57 delete unused imports 2024-10-10 19:47:16 +09:00
motemotech
2822070005 add integration test for mint function 2024-10-10 18:03:25 +09:00
motemotech
f9d37568b6 add test:prod command and change dsc to be able to get env val 2024-10-10 16:21:55 +09:00
motemotech
8c46ade8ba remove commentout from dsc proof generation 2024-10-10 02:24:48 +09:00
motemotech
9a8a6da068 Merge branch 'feat/integration-test-for-one-time-verification' of https://github.com/zk-passport/openpassport into feat/integration-test-for-one-time-verification 2024-10-10 02:08:23 +09:00
motemotech
649cba8495 update snarkjs version 2024-10-10 02:07:51 +09:00
nico shark
42b5257701 fix inputs for prove proof gen 2024-10-10 01:55:30 +09:00
motemotech
387a4c7501 try proof gen in test code, but seems not working. 2024-10-09 23:49:01 +09:00
motemotech
1c371b2035 change to magic value to constant 2024-10-09 18:12:49 +09:00
motemotech
c881b7779b fix local commentout 2024-10-09 17:18:32 +09:00
motemotech
946d4c591c preparation for OneTimeVerification.ts 2024-10-09 17:16:22 +09:00
motemotech
5e215ef6cd Merge branch 'dev' into feat/integration-test-for-one-time-verification 2024-10-09 15:28:50 +09:00
motemotech
42b2fb91bd add OneTimeVerification.ts. this is integration test for one time minting flow 2024-10-09 15:28:01 +09:00
motemotech
ddf1360abf delete unused imports 2024-10-08 23:09:49 +09:00
motemotech
e7dabf4271 add integration dir and integration test 2024-10-08 23:08:18 +09:00
motemotech
3a7e1d52aa move into unit test 2024-10-08 23:04:14 +09:00
motemotech
34eb3f546b add test for transfer and coverage check tool 2024-10-08 22:13:12 +09:00
motemotech
ca2d7bcfab add test when you successfuly mint sbt 2024-10-08 21:22:17 +09:00
motemotech
6e8d134a70 add test for mint validations 2024-10-08 20:04:13 +09:00
motemotech
bb0054f50d update require to custom errors 2024-10-08 01:40:52 +09:00
motemotech
f50e7eeeb0 delete attributePositions and made library to get attribute from passport format 2024-10-08 00:59:40 +09:00
turnoffthiscomputer
a239169f80 split bitmap into selector_dg1 and selector_older_than, fix nullifier generation in prove circuits 2024-09-19 19:03:39 +02:00