Commit Graph

2355 Commits

Author SHA1 Message Date
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
turnoffthiscomputer
640530db69 fix nationality using mock passports 2025-05-23 17:16: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
Justin Hernandez
5fa10dba79 Bump v2.5.1; ios 123; android 62 (#565)
* bump to build 61

* bump ios version

* update version
2025-05-20 11:27:30 -07:00
Justin Hernandez
6c5ff79c66 Chore: Polish proof history to prep for release (#566)
* clean up nav and home boundaries, passport data screen insets

* migrate proof history screen out of settings

* minor clean up

* save wip

* add new ibm plex mono font and clean up proof detail screen

* remove test data

* remove extra loading screen text

* remove unnecessary ceil
2025-05-20 10:54:18 -07:00
Seshanth.S🐺
b6da665a11 fix: update ocr corrections (#563) 2025-05-20 17:27:20 +02:00
Justin Hernandez
5c7caeafcd update react native keychain to fix could not recover issue (#564) 2025-05-19 09:39:39 -07:00
Justin Hernandez
e059f06e84 Bump v2.5.1: ios 122; android 60 (#561)
* increment build to 120

* bump builds for 2.5.1. ios 121; android 60

* clean up logic

* upgrade react native firebase for privacy manifests
2025-05-16 13:15:35 -07:00
Justin Hernandez
3f3db3c8da SEL-255: improved loading screen with estimated wait times (#550)
* create new loading screen and rename static to misc

* fix route

* save wip loading screen

* save wip animation

* save static wip design

* continue

* splash

* add a loading screen text helper

* add test for loading screen text

* save wip. almost there

* update haptic logic

* better feedback and add dev scren

* save current work

* update text logic and tests

* load passport metadata in loading screen

* simplify and fix tests

* test for additional exponents

* add new animation

* rename file

* consolidate ui useEffect and fix loading screen layout

* fix current state

* remove mockPassportFlow param

* merge new loading screen and new notification logic

* simplify

* update lock

* use passportMetadata instead of metadata

* save simplification

* update loading text based on pr feedback and tests
2025-05-16 09:45:56 -07:00
Seshanth.S🐺
9ed51fd722 feat: Use vision for MRZ scanning (SEL-47) (#557)
* feat: Use vision for MRZ scanning

* modify label to position the smartphone during the OCR scan

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
2025-05-16 18:28:36 +02:00
turnoffthiscomputer
7ff89d5b16 Fix deeplink 2 (#560)
* fix deeplink

* fix deeplink

* yarn nice
2025-05-16 18:05:18 +02:00
nicoshark
3db25aa469 Push notification (#536)
* add push notification feature

* merge new app impl

* change dsc key

* import

* reverse mock dsc

* worked in the ios

* checked in android

* update url and delete console

* delete small changes

* lint

* add yarn.lock

* fix warning message

* add mock notification service for test code

* fix path for the mock implementation

* add mock deeplink to the test code

* nice notificationServiceMock.js

* delete unused firebase related implementation

* fix wording and UI related to notification service

* hotfix on mockdatascreen

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
2025-05-15 23:46:21 +02:00
turnoffthiscomputer
2bedf095b7 log more dsc info (#558) 2025-05-15 13:49:11 +02:00
turnoffthiscomputer
73f3814170 Eth dublin (#554)
* add mock id card generator

* add genMockIdDoc in common/sdk exports

* onboard developer id using deeplink, allow custom birthdate on mockpassport
2025-05-13 23:58:56 +02:00
Justin Hernandez
2ff57e2e52 bump build (#552) 2025-05-12 18:29:13 -07:00
Justin Hernandez
a08904b50c Clean up navigation and setup Jest (#549)
* remove dupe account screens and prefer the term home

* organize screen loading better

* sort keys

* rename screen files wip

* fix deleted directory issues

* rename folders

* fix paths and naming

* save working jest import test

* save base working jest navigation test

* finalize navigation refactor and jest test

* update test name and podfile lock

* remove unused packages

* use the correct version of react test renderer
2025-05-09 10:17:12 -07:00
Justin Hernandez
4ff4c23a2f better connection check (#548) 2025-05-07 11:13:51 -07: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
Justin Hernandez
5163761a52 allow a scale of up to 1.3 (#546)
* allow a scale of up to 1.3

* update lock files

* clean up unused imports

* fix settings
2025-05-05 18:00:28 -07:00
Seshanth.S🐺
7e89698e74 feat: Add Disclose history (#533)
* feat: Add Disclose history

* fix: Duplicate history in list

* fix: Outdated disclosures

* Delete app/ios/Self copy-Info.plist
2025-05-02 13:53:27 +02:00
nicoshark
f5e243cf9c update staging registry address (#545) 2025-04-30 21:43:10 +02:00
nicoshark
2d8c780698 add delete scripts (#542) 2025-04-29 20:55:22 +02:00
Justin Hernandez
ec6c2cae72 SEL-178: Improve haptic feedback library (#535)
* fix dev settings typing

* add dev screens file

* save haptic feedback progress

* change ordedr

* fix initial route and add haptic feedback screen to dev settings options
2025-04-29 20:43:14 +02:00
Justin Hernandez
b1b6c201b4 New bug fix build for v2.5.1 (#540)
* bump new build for dev fixes

* update lock

* reinstall before running local deploy
2025-04-28 15:22:45 -07:00
turnoffthiscomputer
81fd3e86e7 fix splash screen error (#539) 2025-04-28 17:57:46 +02:00
turnoffthiscomputer
af44cd8750 Fix/proving machine endpoint type (#538)
* store endpoint type in proving machine

* yarn nice
2025-04-28 17:57:37 +02:00
turboblitz
bb1540e007 fix italy (#530) 2025-04-27 19:44:07 +02:00
James Niken
f0d2f6d94e ci: bump actions/checkout to v4 (#529)
* make contract sdk simpler (#514)

* 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

* Revert "make contract sdk simpler (#514)" (#518)

This reverts commit 847b88d5ec.

* ci: bump actions/checkout to v4

---------

Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
Co-authored-by: turnoffthiscomputer <98749896+remicolin@users.noreply.github.com>
2025-04-26 13:00:53 -07:00
turnoffthiscomputer
f5e45af0cf display error animation on failure on loading screen (#532)
* display error animation on failure on loading screen

* remove log

---------

Co-authored-by: Justin Hernandez <transphorm@gmail.com>
2025-04-25 06:25:44 -07:00
Justin Hernandez
fdfc0534fb Bump build versions for 2.5.1 (#531)
* release new builds

* fix app and build versions

* fix env check
2025-04-25 05:48:38 -07:00
turnoffthiscomputer
0bf324e639 Feat/extend id support (#517)
* refactor proving impleting xstate, speedup proving

* add disclosure proof support

* keep refactoring provingMachine, clean old implementation

* call init method when switching from dsc to register

* rebase with dev to display why the proof verification failed

* refactor ws connexion between front-end and mobile to retrieve self-app

* update the webclient at proofVerification and use selfAppStore in provingMachine

* fix provintStore.init in ProveScreen

* yarn nice

* fetch data correctly in splash screen
2025-04-24 05:55:47 -07:00
Justin Hernandez
0d7d1170f3 SEL-187: Make bottom layout scrollable on smaller screens (#525)
* fix design check

* add an option to disable local sending of sentry events

* better sentry enable / disable

* fix scan passport height

* make bottom layout scrollable so it doesn't squish top screen

* simpler logic check. don't create new env var

* fix internet connection issues

* readd comment

* use isConnected instead of internet reachable

* use a dynamic bottom panel height

* add missing recovery screens

* move aesop below

* remove dupe export

* fix rebase

* fix android package download issue
2025-04-23 18:28:02 -07:00
turnoffthiscomputer
57cb54a936 remove artefacts 2025-04-21 23:40:32 +02:00
Justin Hernandez
3c51feafdf DX: Auto format on save (#526)
* save wip

* use elint instead of prettier to sort imports

* set imports to warn

* sync prettier settigns

* update prettier settings

* save working version

* fix export and disable mobile pipeline for now

* limit auto formatting to the app folder
2025-04-21 22:10:56 +02:00