Commit Graph

671 Commits

Author SHA1 Message Date
Justin Hernandez
f77cd80663 Temporarily disable recovery redirect and reminder prompts (#733)
* Revert "SEL-487: Prompt user to backup recovery phrase before registering (#715)"

This reverts commit fe14ac655e.

* revert update

* fix safe area context pkg

* Revert "SEL-487: Prompt user to backup recovery phrase before registering (#715)"

This reverts commit fe14ac655e.

* fix old flow

* more silent tests

* update lock files

* hard code return
2025-07-03 11:01:43 -07:00
Justin Hernandez
9efe13386b add bulk sort command (#723) 2025-07-01 18:32:56 -07:00
Ayman
b00862164b chore: update build_cpp to 2 concurrent builds 2025-06-28 08:46:07 +05:30
Ayman
d6e97a7caf decrease parallel circuits to 3 2025-06-27 23:36:53 +05:30
Nesopie
47ef8da161 fix: circuit for register ci (#690)
* fix: circuit for register ci

* fix: rm duplicate workflow_dispatch
2025-06-27 17:19:07 +02:00
Nesopie
83ad584f03 feat: add register eu id instances (#682)
* feat: add register eu id instances

* feat: add new instances

* chore: update scripts

* chore: fix sig alg

* chore: rm circuits
2025-06-25 19:59:38 +02:00
Vishalkulkarni45
a3555eebd7 chore: update zk-kit binary merkle root dep (#674) 2025-06-24 21:47:21 +05:30
Vishalkulkarni45
22681b1f92 Circuit audit fixes (#644)
* feat: add range checks before use of LessEqThan and SelectSubArray

* fix: Num2Bits_strict to constrain virtualKey
2025-06-24 10:13:48 +02:00
turnoffthiscomputer
0468719f9f App/eu id updates (#638)
* fix build issues

* generate disclosure proof with euids

* generate disclosure proof with euids

* Eu id updates 2 (#648)

* update vc_and_disclose_id test (dev branch) (#641)

* fix: vc_and_disclose_id test

* chore: yarn prettier

* Show modal on NFC scan error (#642)

* Add help button and error modal actions

* fix the screen management

* yarn nice

* Bump build v2.5.4: ios 132; android 71 (#631)

* bump version and build numbers

* remove tamagui/toast

* fix marketing version

* fix: update TD1 and TD3 checks (#643)

* bum yarn.lock

* add version and user defined data

---------

Co-authored-by: Vishalkulkarni45 <109329073+Vishalkulkarni45@users.noreply.github.com>
Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>

* remove the mock user define data

* get the useridentifier as a hash from the user defined data

* chore: add version and userDefinedData

* feat: use the version in register / dsc proofs as well

* update calculateUserIdentifierHash

* yarn nice

* refactor: consolidate user context data handling and update payload structure

* fix typing issues on sha1

* remove console.log(sha1)

* fix sha1 import

* refactor: streamline userDefinedData handling and adjust payload type for circuit

* refactor: update sha1 usage and enhance logging in calculateUserIdentifierHash

* yarn nice

* yarn lint common

* use ts-ignore for sha1 import

* fix app ci tests

* fix typing issue

* remove unused ts-ignore

* cast uuid before calling generateinputs

* bump qrcode version

* add tsup on the qrcode sdk

* fix: exports on selfxyz/qrcode

* update how we define config.version

* fix yarn imports

* yarn format

---------

Co-authored-by: Vishalkulkarni45 <109329073+Vishalkulkarni45@users.noreply.github.com>
Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: Ayman <aymanshaik1015@gmail.com>
2025-06-23 13:01:23 +02:00
Vishalkulkarni45
27990f0201 update vc_and_disclose_id test (dev branch) (#641)
* fix: vc_and_disclose_id test

* chore: yarn prettier
2025-06-18 13:03:23 +02: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
Vishalkulkarni45
095ceebcc5 fix: add range check on paddedInLength of shaBytesDynamic (#623) 2025-06-15 23:02:24 +02:00
Nesopie
f4f5903b40 fix: circuit tests and tsconfigs (#621)
* fix: circuit tests and tsconfigs

* fix-ci: downgrade typescript version

* fix: yarn.lock

* fix: linting in common
2025-06-13 14:16:23 +02:00
turnoffthiscomputer
81afb0b9d0 Revert "fix: added missing range checks in ShaBytesDynamic (#579)" (#617)
This reverts commit 0c8c87362b.
2025-06-12 18:12:49 +02:00
Justin Hernandez
6d27b365c7 Bump build to test PACE polling (ios 127; android 66) (#591)
* bump builds

* update env.sample with new env vars, and add _NFC to mixpanel nfc var

* remove NDEF so we can keep target sdk version at 15

* add sort package json command

* sort all project package.json files

* enable hermes

* disable hermes

* revert disabling

* remove hermes
2025-06-06 07:29:26 -07:00
Aaron DeRuvo
0e9c59c0fb SEL-56: Setup Yarn Workspaces (#584) 2025-06-04 11:37:32 +02:00
ArmanKolozyan
0c8c87362b fix: added missing range checks in ShaBytesDynamic (#579)
* fix: added missing range checks for Sha1Bytes

* more descriptive comments around range checks

* added range assumption of Sha1Bytes

* added range assumption of Sha1General

---------

Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
Co-authored-by: turnoffthiscomputer <98749896+remicolin@users.noreply.github.com>
2025-06-03 13:19:53 +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
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
turboblitz
dc5529b507 Fix input generation for 521bit curves (#481)
* fix EC point padding for 521 bit curves

* rename modulus to point in findStartIndexEC as it is a point

* simplify matching logic

* simplify padding logic

* remove comment

* remove log

removing .only so the CI/CD runs circuit tests

fix disclosure test

fix scope in test

fix scope error in circuit tests

remove .only

fix test

* run ci/cd
2025-04-17 09:59:13 +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
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
turnoffthiscomputer
d8701b5fd2 Merge pull request #396 from selfxyz/new-instances
New instances
2025-03-16 08:49:24 -04:00
0xturboblitz
6ed35b542f temporarily remove mock passport whose DSC is signed by a CSCA sig alg that is not used 2025-03-12 20:12:52 -07:00
motemotech
c253877d91 Merge branch 'main' into feat/download-n-update-verifiers 2025-03-12 11:39:41 +09:00
0xturboblitz
05066f3576 yarn format 2025-03-08 22:49:10 -08:00
0xturboblitz
f51c77681f push new test cases 2025-03-08 19:40:55 -08:00
0xturboblitz
5cea47e35f add and fix 521 instances 2025-03-08 19:36:03 -08:00
0xturboblitz
9d403a5355 fix typing 2025-03-08 18:21:22 -08:00
0xturboblitz
b10667f5fc add missing rsapss instance with unusual salt length for Denmark
- add new mock certs
- did a terrible things in the SignatureAlgorithm type, might want to refactor later
2025-03-08 18:20:07 -08:00
0xturboblitz
8fb6265955 adding first 4 missing instances 2025-03-08 18:15:13 -08:00
turboblitz
51e2fc15fa Self sdk and playground (#210)
Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
2025-02-25 13:08:01 -07:00
motemotech
03019eee49 download and update verifiers 2025-02-24 15:10:32 -08:00
Justin Hernandez
65d1f74c10 bump build to new release candidate (#163)
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
2025-02-20 07:36:26 -08:00
turboblitz
5dbece7b7f Fix missing sigalg (#185) 2025-02-20 16:53:38 +05:30
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
turnoffthiscomputer
81b870cc8a Instances (#179)
Co-authored-by: 0xturboblitz <florent.tavernier@gmail.com>
2025-02-20 05:34:26 +01:00
turboblitz
d263620dc2 Audit/pubkey prefixes (#147) 2025-02-19 18:10:54 -08:00
Nesopie
8004f6ebd5 feat: update bigintiszero implementation (#150) 2025-02-19 17:39:22 -08:00
Seshanth.S🐺
a19f515fe5 Hotfix/audit rsapss (#144) 2025-02-19 17:37:46 -08:00
turboblitz
5e83716273 hotfix off-by-one issues (#145) 2025-02-19 17:36:43 -08:00
turnoffthiscomputer
5534b7a91a refactor AssertBytes (#143)
Co-authored-by: 0xturboblitz <florent.tavernier@gmail.com>
2025-02-19 10:46:06 -08:00
Nesopie
99168a45fe chore: use num2bits instead of isNBits (#148) 2025-02-19 10:32:32 -08:00
nicoshark
94de78d1d4 Feat/verifier update scripts (#157) 2025-02-19 05:51:20 +01:00
nicoshark
e13c64ba10 Add verifier ids (#139) 2025-02-19 05:48:07 +01:00