Commit Graph

2388 Commits

Author SHA1 Message Date
Seshanth.S🐺
498b89caae CAN auth - android (#613)
* add missed files

* add NFCMethodSelectionScreen

* bump android build

---------

Co-authored-by: Justin Hernandez <transphorm@gmail.com>
2025-06-16 16:34:45 +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
turnoffthiscomputer
9efe1b0902 fix ci (#626) 2025-06-16 11:31:11 +02:00
Vishalkulkarni45
095ceebcc5 fix: add range check on paddedInLength of shaBytesDynamic (#623) 2025-06-15 23:02:24 +02:00
turnoffthiscomputer
cfd2058cc2 remove sdk/tests (#622)
* remove sdk/tests

* chore: update yarn.lock

---------

Co-authored-by: Ayman <aymanshaik1015@gmail.com>
2025-06-13 16:58:02 +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
emmmm
2a6c00f6bd ci: bump setup-node to v4 (#606)
* Update action.yml

* Update circuits.yml

* Update contracts.yml

* Update npm-publish.yml
2025-06-12 14:01:00 -07:00
turnoffthiscomputer
7a85d8734c clean passport.ts (#604) 2025-06-12 11:45:26 -07:00
Aaron DeRuvo
d7871cd091 remove tamagui toast as we dont use and remove burnt as it was just a peer dep of toast (#610) 2025-06-12 11:13:37 -07: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
turnoffthiscomputer
e814b2fccf feat: add mixpanel events for registration flow (#616) 2025-06-12 17:05:55 +02:00
Justin Hernandez
5b6a2535bf Bump version 2.5.3: build ios 129; android 69 (#609)
* bump builds

* update lock

* bump version

* commit lock

* bump build

* bump ios build
2025-06-11 15:09:51 -07:00
Seshanth.S🐺
e4d5b62fdb Add TD1 support - android (#603)
* feat: add TD1 support - android

* fix: missing logs

* update JMRTD and add CAN

* add yarn.lock
2025-06-11 13:20:58 -07:00
turnoffthiscomputer
7a8678b72d add euid support in app (#559)
* add euid support in app

* yarn nice

* add euid support to proving machine

* update provingMachine and add id endpoints

* fix circuitsDNSmapping

* fix proving

* fix validateDocument

* add todo comment

* add the skip PCR0 option

* set multiple passportData types

* allow storing different id documents

* fix wording

* use goback on the passportOboardingScreen

* update tamagui version

* update yarn.lock

* remove logs in mockdata screen

* remove SKIP_PRC0_CHECK const

* refactor passport data keychain storage

* update project.pbxproj

* yarn nice

* yarn nice

* fix imports

* yarn nice

* add ManageDocuments screen to tests

* update name of the ManageDocument screen in the settings

* run linter in common repo

* clean mrz before doing the length check on android
2025-06-11 13:19:49 -07:00
turnoffthiscomputer
15e2f88265 add euid support ot format mrz function (#607) 2025-06-11 13:08:49 +02:00
Justin Hernandez
65b5f8a389 Bump build ios 128 android 67 (#601)
* bump build

* update clean commands

* add notification tracking provider, and update provider paths

* request permission for firebase cloud messaging

* since the app asks for permissions, let's enable this after configuring the APN

* remove monorepo building as it doesn't affect app build success

* add flags to expose build issues

* fix hermes path

* fix hermes path for emulator and bundle build
2025-06-07 07:36:06 -07:00
Justin Hernandez
d5737195bb [Chore] fix broken build revert hermes changes (#600)
* Revert "Bump build to test PACE polling (ios 127; android 66) (#591)"

This reverts commit 6d27b365c7.

* revert old logic and fix build from breaking

* sort package.json
2025-06-06 14:35:59 -07:00
Seshanth.S🐺
aaca2b0d18 SEL-402 fix: NFC crash (#597)
* fix: handle unwrap

* update NFCPassportReader commit to add more logs
2025-06-06 13:50:00 -07:00
turnoffthiscomputer
45bb72d097 Fix/mock passports flow (#598)
* dont look for alternatives csca during the disclosure proof

* update podfile,lock

* yarn nice
2025-06-06 18:10:47 +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
Seshanth.S🐺
09d06eba2e fix: Connection Modal (#596) 2025-06-06 12:02:15 +02:00
turnoffthiscomputer
828e5b5188 rename for selfxyz 2025-06-05 17:06:40 +02:00
turnoffthiscomputer
cb3cc8d82e rename for selfxyz 2025-06-05 17:06:29 +02:00
turnoffthiscomputer
e15b3e8c3a bump common package version 2025-06-05 17:00:21 +02:00
turnoffthiscomputer
bedaceda2e fix the ski value of 8bytes 2025-06-05 16:46:13 +02:00
Justin Hernandez
2da532d221 SEL-346: fix android cloud backup (#589)
* setup google web client id

* update env sample

* setup new env

* remove old keystore

* new debug keystore

* update podfile lock
2025-06-04 22:09:17 -07:00
Seshanth.S🐺
2a7562216c feat: Add PACEPolling (#577)
* feat: Read ID cards

* add entitlements

* feat: add pacePolling through NFCPassportReader

* refactor: comment out debug print statements

* feat: add mixpanel logging

* feat: add NFC Method selection screen

* fix: UI issue

* feat: update Podfile and include PassportReader.m file

* lint

* fix: test

* debug: log mixpanel values

* fix: update dep

* update NFCPassportReader commit hash

* feat: add flag to enable debug logging

* lint
2025-06-04 15:53:04 +02:00
Aaron DeRuvo
253d414dd4 attempt to have apps cocoa pods etc be built in ci (#590) 2025-06-04 14:01:23 +02: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
5cec8a0f9f update serialized dsc tree 2025-06-02 12:16:06 +02:00
Kevin Lin
1bcd6c7f4d Feature/implement self verification root based on identity verification hub v2 (#587)
* Run prettier

* Update yarn.lock

* Refactor SelfVerificationRoot contract to support bytes-based proof verification and update related interfaces. Introduce contract versioning and enhance event emissions for verification success. Update Airdrop, HappyBirthday, and SelfPassportERC721 contracts to align with new SelfVerificationRoot structure and improve attestation ID handling.
2025-06-02 17:18:58 +09:00
Justin Hernandez
204fcf50e6 new build (#586) 2025-05-30 14:04:53 -07:00
turnoffthiscomputer
435721e68a Fix/csca pem issue (#585)
* add fix

* add getSKIPems to fetchAll - store the passport data with the used csca

* fix the dsc parsing error

* use bitwise operation, implement the new isRegisteredWithAlternativesCSCA in the recovery methods
2025-05-30 22:23:15 +02:00
nicoshark
ab6534aa89 contracts: feat/bytes inputs (#573)
* 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

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
2025-05-31 05:22:40 +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
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
8351609046 fix the ski prefix issue (#581) 2025-05-30 18:23:32 +02:00
Justin Hernandez
3db9bac703 [BUG] fix undefined tracking event error (#583)
* better trackEvent check

* clean up
2025-05-29 13:35:32 -07:00
Justin Hernandez
eb7e64d517 bump build (#580) 2025-05-28 23:04:12 +02:00
Olof Andersson
780096418b update app/README.md toolchain instructions (#140) 2025-05-28 23:03:12 +02:00
Justin Hernandez
dfb009b167 Bump build version 2.5.2 to test react native keychain (#572)
* bump build and version

* bump version 2.5.2

* don't downgrade react native keychain
2025-05-27 08:29:05 -07:00
leopardracer
b7a79a4ef6 Update GitHub checkout action from v3 to v4 (#544) 2025-05-27 14:47:08 +02:00
Seshanth.S🐺
3a60cde909 feat: Read ID cards (#571) 2025-05-27 14:25:22 +02:00
turnoffthiscomputer
4dc2acdc71 fix getCircuitName function (#575)
* fix getCircuitName function

* fix getCircuitName function
2025-05-27 13:40:48 +02:00
Kevin Lin
2e6138fbbf Feature/enhance self verification root (#569)
* Add SelfVerificationConsumer contract for self-verification logic

- Introduced an abstract contract, SelfVerificationConsumer, that extends SelfVerificationRoot.
- Implemented nullifier tracking, verification success events, and customizable validation and update methods for nullifiers.
- Added error handling for nullifier check failures and hooks for derived contracts to implement custom logic after successful verification.

* Add SelfHappyBirthday contract example using SelfVerificationConsumer

- Introduced SelfHappyBirthday contract that allows users to claim USDC on their birthday.
- Integrated SelfVerificationConsumer for handling verification and nullifier tracking.
- Added functions to set claimable amount and window, along with event emissions for state changes.
- Implemented logic to check if the claim is within the user's birthday window and transfer USDC accordingly.

* Refactor imports in HappyBirthday contract for better organization

- Updated import statements in HappyBirthday.sol to use relative paths for ISelfVerificationRoot, SelfCircuitLibrary, and SelfVerificationConsumer.
- Improved code readability and maintainability by organizing imports more logically.

* Refactor Airdrop contract to use SelfVerificationConsumer for registration logic

- Updated Airdrop contract to inherit from SelfVerificationConsumer instead of SelfVerificationRoot.
- Refactored mappings for user identifiers and nullifiers for improved clarity and functionality.
- Enhanced error handling and updated function parameters for consistency.
- Implemented new validation and update methods for nullifiers, streamlining the registration process.
- Removed deprecated verifySelfProof function and integrated logic into new methods.

* Add events and refactor SelfVerificationRoot and related contracts

- Introduced new events in SelfVerificationRoot for verification configuration updates, scope changes, and attestation ID management.
- Updated Airdrop contract to remove deprecated events and added a new event for Merkle root updates.
- Refactored SelfPassportERC721 to inherit from SelfVerificationConsumer, enhancing verification logic and event handling.
- Improved function parameters for consistency and clarity across contracts.

* Refactor contracts to use SelfVerificationRoot and enhance verification logic

- Removed SelfVerificationConsumer contract and updated related contracts to inherit from SelfVerificationRoot.
- Refactored mappings and event emissions in Airdrop, HappyBirthday, and SelfPassportERC721 for improved clarity and functionality.
- Enhanced verification success hooks to include user identifiers and nullifiers for better tracking.
- Updated constructor parameters for consistency across contracts and improved error handling for user registration and claims.

* Refactor constructor in SelfPassportERC721 for improved readability

* Refactor function parameters in SelfVerificationRoot and related contracts

* Refactor constructor parameter names in IdentityVerificationHub, Airdrop, IdentityRegistry, and ProxyRoot contracts for improved clarity and consistency
2025-05-27 05:18:40 +08:00
Justin Hernandez
c6c4b35684 SEL-181 & SEL-252: Update mobile app events (#570)
* improve analytics handling

* add error boundary that flushes segment events before error occurs

* upgrade segment analytics package

* flush analytics when user encounters error screen

* track all click events

* add tracking to loading screen

* better init and click event names

* track cloud backup and modal actions

* use __DEV__ for debugging

* add tracking to account recovery, auth, mock data

* return false instead of throwing

* add more tracking events

* save wip event updating

* abstract analytic event names

* update click events

* clean up

* move reasons comment

* add unsupported passport event
2025-05-26 09:08:40 -07:00