Commit Graph

2785 Commits

Author SHA1 Message Date
ayman
aba11b7816 fix: contracts 2025-09-26 22:44:29 +05:30
Evi Nova
a5797bc2e2 refactor: generate scope upon deployment instead of manual generation and using setScope (#1117)
* refactor: generate scope for SelfVerificationRoot upon deploment

Utilise Poseidon to generate the scope for the deploying contract instead of relying on utilizing the Scope Generator tool on the frontend and calling a function that inherits the _setScope function

* style: use explicit import for PoseidonT3

* fix: link Poseidon library in TestSelfVerificationRoot deployments

* fix: Use same logic in SelfVerificationRoot as in hashEndpointWithScope

* refactor: use hardcoded PoseidonT3 addresses for Celo Mainnet + Sepolia

Also allowed functionality for testing environments which have a fresh deploy each time they are spun up, and which now utilize the testSetScope function for tests relying on TestSelfVerificationRoot

* style: change setTestScope to setGenerateScope for clarity

* refactor: Move logic out of SelfVerificationRoot into util files

* chore: update version

* fix: sepolia chain id

* fmt

---------

Co-authored-by: ayman <aymanshaik1015@gmail.com>
2025-09-26 01:26:27 +05:30
Nesopie
94a462704e feat: export attestation id (#1130) 2025-09-26 00:55:50 +05:30
Nesopie
8abcb15508 Feat/export attestation ids (#1129)
* fix: ofac logic

* feat: create an attestation id object

* lint
2025-09-26 00:22:51 +05:30
Aaron DeRuvo
cd6d9ce981 fix SEL-750 system bar content color (#1097) 2025-09-25 11:07:38 -07:00
Justin Hernandez
7e47824d08 chore update feedback email address (#1125)
* update email addy

* format code
2025-09-25 09:50:45 -07:00
Nesopie
43fe425543 fix: ofac logic (#1124) 2025-09-25 13:06:12 +05:30
Justin Hernandez
85bbb0279d chore: release v2.6.7; android aadhar qr hotfix (#1122)
* fix: detect mAadhaar

* bump android version to 102; 2.6.7

---------

Co-authored-by: seshanthS <seshanth@protonmail.com>
2025-09-23 13:37:10 -07:00
Seshanth.S
cbf62fe3cb fix: detect mAadhaar (#1121) 2025-09-23 12:52:13 -07:00
Nesopie
e852005e7f add setup (#1119) 2025-09-22 20:13:50 +05:30
Nesopie
4215cb4af5 fix: readme (#1118) 2025-09-22 20:05:59 +05:30
Nesopie
c18cf43e60 Fix/sdk qrcode (#1115)
* chore: export getUniversalLink

* chore: export universal link function from the angular sdk
2025-09-22 15:26:23 +05:30
Aaron DeRuvo
dd82b3b1a6 sometimes you need https auth (#1098) 2025-09-22 10:23:42 +02:00
Vishalkulkarni45
ca7292b006 fix: aadhaar verifier abi go-sdk (#1113) 2025-09-22 12:54:56 +05:30
Nesopie
a70c06d1a2 Fix/published files (#1112)
* chore: only publish dist in angular

* fix: ci and published files

* bump: angular version
2025-09-22 11:58:08 +05:30
Nesopie
8e88361a8c Feat/qr code angular (#1111)
* feat: qrcode wrapper in angular

* chore: refactor

* feat: working qrcode

* fix: websockets

* fix: lottie animations

* chore: add readme

* ci: angular

---------

Co-authored-by: vishal <vishalkoolkarni0045@gmail.com>
2025-09-22 11:50:11 +05:30
Nesopie
c36bb2f4e5 yarn (#1110) 2025-09-22 10:11:07 +05:30
Nesopie
8c1bf0c0fd chore: use published selfxyz anon-aadhaar package (#1109) 2025-09-22 10:07:40 +05:30
Justin Hernandez
f36050ef1d chore: android studio agp assistant; 16kb pagesize fix (#1107)
* upgrade android agp

* update ndk and add manual linker for 16kb

* upgarde ndk
2025-09-20 16:04:59 -07:00
Justin Hernandez
1d9e87f9b8 chore: bump v2.6.6 (aadhaar) for release (#1103)
* bump build number and version to 2.6.6

* fix tests

* update version
2025-09-20 13:48:17 -07:00
turnoffthiscomputer
f6881bf2d9 Refactor deep link handling to simplify navigation to ProveScreen (#1104)
* Refactor deep link handling to simplify navigation to ProveScreen

- Removed the reset of the navigation stack and replaced it with a direct navigation call to 'Prove'.
- This change streamlines the deep link handling process, ensuring a more straightforward user experience when navigating to the ProveScreen.

* update lock and fix tests

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
2025-09-19 22:41:55 -07:00
turnoffthiscomputer
6063aedd02 Refactor LoadingScreen to use IDDocument type and update loading text logic (#1106)
- Changed passportData state type from PassportData to IDDocument for better type handling.
- Updated getLoadingScreenText function to accept signatureAlgorithm and curveOrExponent directly instead of PassportMetadata.
- Adjusted loading text and animation logic based on document category, improving clarity and maintainability.
2025-09-20 07:36:19 +02:00
Justin Hernandez
48a8146a4b fix aadhaar screen test (#1101)
* add iOS qrcode opener and aadhaar screen

* format

* fix test

* add Image-picker android (#1077)

* add image-picker android

* fix validation

* feat: implement Aadhaar upload success and error screens, enhance AadhaarNavBar with dynamic progress indication

- Added AadhaarUploadedSuccessScreen and AadhaarUploadErrorScreen components for handling upload outcomes.
- Updated AadhaarNavBar to reflect current upload step with dynamic progress bar.
- Integrated new screens into navigation flow for Aadhaar upload process.
- Introduced blue check and warning SVG icons for visual feedback on success and error states.

* feat: generate mock aadhar (#1083)

* feat: generate mock aadhar

* add yarn.lock

* update yarn.lock

* update protocolStore, update types, start modifying provingMachine

* Register mock aadhar (#1093)

* Register mock aadhar

* fix ofac

* temp: generate name

* fix dob

* Add Aadhaar support to ID card component and screens

- Integrated Aadhaar icon and conditional rendering in IdCardLayout.
- Updated AadhaarUploadScreen to process QR codes and store Aadhaar data.
- Modified navigation and button text in AadhaarUploadedSuccessScreen.
- Added mock data generation for Aadhaar in the mobile SDK.
- Updated ManageDocumentsScreen to include Aadhaar document type.
- Enhanced error handling and validation for Aadhaar QR code processing.
- Added utility functions for Aadhaar data extraction and commitment processing.

* aadhaar disclose - wip (#1094)

* fix: timestamp cal of extractQRDataFields

* Feat/aadhar fixes (#1099)

* Fix - android aadhar qr scanner

* fixes

* update text

* yarn nice

* run prettier

* Add mock Aadhaar certificates for development

- Introduced hardcoded Aadhaar test certificates for development purposes.
- Moved Aadhaar mock private and public keys to a dedicated file for better organization.
- Updated the mock ID document generation utility to utilize the new Aadhaar mock certificates.

* prettier write

* add 'add-aadhaar' button (#1100)

* Update .gitleaks.toml to include path for mock certificates in the common/dist directory

* yarn nice

* Enhance Aadhaar error handling with specific error types

- Updated the AadhaarUploadErrorScreen to display different messages based on the error type (general or expired).
- Modified the AadhaarUploadScreen to pass the appropriate error type when navigating to the error screen.
- Set initial parameters for the home screen to include a default error type.

* Update passport handling in proving machine to support Aadhaar document category

- Modified the handling of country code in the useProvingStore to return 'IND' for Aadhaar documents.
- Ensured that the country code is only fetched from passport metadata for non-Aadhaar documents.

* tweak layout, text, change email to support, hide help button

* fix ci, remove aadhaar logging, add aadhaar events

* remove unused aadhaar tracking events

* update globs

* fix gitguardian config

* don't track id

* fix test

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: vishal <vishalkoolkarni0045@gmail.com>
2025-09-19 18:03:04 -07:00
turnoffthiscomputer
2df4dc4619 SELF-725: add iOS qrcode opener and aadhaar screen (#1038)
* add iOS qrcode opener and aadhaar screen

* format

* fix test

* add Image-picker android (#1077)

* add image-picker android

* fix validation

* feat: implement Aadhaar upload success and error screens, enhance AadhaarNavBar with dynamic progress indication

- Added AadhaarUploadedSuccessScreen and AadhaarUploadErrorScreen components for handling upload outcomes.
- Updated AadhaarNavBar to reflect current upload step with dynamic progress bar.
- Integrated new screens into navigation flow for Aadhaar upload process.
- Introduced blue check and warning SVG icons for visual feedback on success and error states.

* feat: generate mock aadhar (#1083)

* feat: generate mock aadhar

* add yarn.lock

* update yarn.lock

* update protocolStore, update types, start modifying provingMachine

* Register mock aadhar (#1093)

* Register mock aadhar

* fix ofac

* temp: generate name

* fix dob

* Add Aadhaar support to ID card component and screens

- Integrated Aadhaar icon and conditional rendering in IdCardLayout.
- Updated AadhaarUploadScreen to process QR codes and store Aadhaar data.
- Modified navigation and button text in AadhaarUploadedSuccessScreen.
- Added mock data generation for Aadhaar in the mobile SDK.
- Updated ManageDocumentsScreen to include Aadhaar document type.
- Enhanced error handling and validation for Aadhaar QR code processing.
- Added utility functions for Aadhaar data extraction and commitment processing.

* aadhaar disclose - wip (#1094)

* fix: timestamp cal of extractQRDataFields

* Feat/aadhar fixes (#1099)

* Fix - android aadhar qr scanner

* fixes

* update text

* yarn nice

* run prettier

* Add mock Aadhaar certificates for development

- Introduced hardcoded Aadhaar test certificates for development purposes.
- Moved Aadhaar mock private and public keys to a dedicated file for better organization.
- Updated the mock ID document generation utility to utilize the new Aadhaar mock certificates.

* prettier write

* add 'add-aadhaar' button (#1100)

* Update .gitleaks.toml to include path for mock certificates in the common/dist directory

* yarn nice

* Enhance Aadhaar error handling with specific error types

- Updated the AadhaarUploadErrorScreen to display different messages based on the error type (general or expired).
- Modified the AadhaarUploadScreen to pass the appropriate error type when navigating to the error screen.
- Set initial parameters for the home screen to include a default error type.

* Update passport handling in proving machine to support Aadhaar document category

- Modified the handling of country code in the useProvingStore to return 'IND' for Aadhaar documents.
- Ensured that the country code is only fetched from passport metadata for non-Aadhaar documents.

* tweak layout, text, change email to support, hide help button

* fix ci, remove aadhaar logging, add aadhaar events

* remove unused aadhaar tracking events

* update globs

* fix gitguardian config

* don't track id

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: vishal <vishalkoolkarni0045@gmail.com>
2025-09-19 17:36:01 -07:00
Vishalkulkarni45
664be08e12 fix: go-sdk (#1090) 2025-09-19 23:27:19 +02:00
Nesopie
d0a66a11ba fix: aadhaar verifier abi (#1096)
* fix: aadhaar verifier abi

* bump: core
2025-09-19 11:56:44 +05:30
Justin Hernandez
779fea5d2a address version mismatches and package resolutions (#1081)
* fix package version mismatches and resolutions

* fixes

* update lock

* fix comma

* fixes

* fix packages

* update packages

* remove firebase analytics. not needed
2025-09-18 17:35:26 -07:00
Justin Hernandez
a005bde034 [SELF-747] feat: clone android passport reader during setup (#1080)
* chore: remove android private modules doc

* private repo pull

* skip private modules

* remove unused circuits building

* save wip

* format

* restore tsconfig

* fix package install

* fix internal repo cloning

* unify logic and fix cloning

* git clone internal repos efficiently

* formatting

* run app yarn reinstall from root

* coderabbit feedback

* coderabbit suggestions

* remove skip private modules logic

* fix: ensure PAT is passed through yarn-install action and handle missing PAT gracefully

- Update yarn-install action to pass SELFXYZ_INTERNAL_REPO_PAT to yarn install
- Make setup-private-modules.cjs skip gracefully when PAT is unavailable in CI
- Fixes issue where setup script was throwing error instead of skipping for forks

* prettier

* fix clone ci

* clone ci fixes

* fix import export sorts

* fix instructions

* fix: remove SelfAppBuilder re-export to fix duplicate export error

- Remove SelfAppBuilder import/export from @selfxyz/qrcode
- Update README to import SelfAppBuilder directly from @selfxyz/common
- Fixes CI build failure with duplicate export error

* fix: unify eslint-plugin-sort-exports version across workspaces

- Update mobile-sdk-alpha from 0.8.0 to 0.9.1 to match other workspaces
- Removes yarn.lock version conflict causing CI/local behavior mismatch
- Fixes quality-checks workflow linting failure

* fix: bust qrcode SDK build cache to resolve stale SelfAppBuilder issue

- Increment GH_SDK_CACHE_VERSION from v1 to v2
- Forces CI to rebuild artifacts from scratch instead of using cached version
- Resolves quality-checks linter error showing removed SelfAppBuilder export

* skip job

* test yarn cache

* bump cache version to try and fix the issue

* revert cache version

* refactor: use direct re-exports for cleaner qrcode package structure

- Replace import-then-export pattern with direct re-exports
- Keep SelfAppBuilder export with proper alphabetical sorting (before SelfQRcode)
- Maintain API compatibility as documented in README
- Eliminates linter sorting issues while keeping clean code structure

* fix: separate type and value imports in README examples

- Import SelfApp as type since it's an interface
- Import SelfAppBuilder as value since it's a class
- Follows TypeScript best practices and improves tree shaking
2025-09-18 14:55:25 -07:00
Nesopie
b0ae194584 chore: export selfappbuilder (#1092) 2025-09-18 16:44:53 +05:30
Nesopie
b21df03b5d fix: use celo sepolia in common (#1091) 2025-09-18 16:05:28 +05:30
Nesopie
86c595be94 Feat/contracts npm publish (#1089)
* chore: ci to publish contracts

* yarn fmt
2025-09-18 13:38:39 +05:30
Nesopie
a0123d2d06 feat: add contract utils (#1088) 2025-09-18 13:29:18 +05:30
Justin Hernandez
c2406f00d2 chore update mobile app types (#1087)
* clean up types

* clean up additional types

* format

* fix types
2025-09-17 17:35:14 -07:00
Nesopie
1d648efed2 bump sdk (#1086) 2025-09-18 01:34:20 +05:30
Nesopie
48e4a5373c fix: sdk (#1085) 2025-09-18 01:31:56 +05:30
Justin Hernandez
3397fcf43b Revert "Mobile SDK: move provingMachine from the app (#1052)" (#1084)
This reverts commit 8983ac2268.
2025-09-17 12:48:42 -07:00
Leszek Stachowski
8983ac2268 Mobile SDK: move provingMachine from the app (#1052)
* Mobile SDK: move provingMachine from the app

* lint, fixes

* fix web build?

* lint

* fix metro build, add deps

* update lock files

* move the status handlers and proving machine tests

* may it be

* fix up

* yolo

---------

Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
2025-09-17 15:48:36 +02:00
Nesopie
30cc43e242 feat: change to gcp attestation verification (#959)
* feat: change to gcp attestation verification

* lint

* fix e2e test

* chore: don't check PCR0 mapping if building the app locally

* fmt:fix

---------

Co-authored-by: Justin Hernandez <transphorm@gmail.com>
2025-09-17 17:36:42 +05:30
Nesopie
729ee76e8f Feat/aadhaar sdk (#1082)
* feat: add aadhaar support to the ts sdk

* feat: aadhaar support to go sdk

* chore: refactor

* move clearPassportData, markCurrentDocumentAsRegistered, reStorePassportDataWithRightCSCA to SDK (#1041)

* Move self app store to mobile sdk (#1040)

* chore(mobile-sdk-alpha): remove unused tslib dependency (#1053)

* remove tslib -- seems unused

* remove deps accidentally added to root

* build file

* remove unused imports (#1055)

* fix: sha256 signed attr tests (#1058)

* fix mock screen launch (#1059)

* Hotfix: Belgium ID cards (#1061)

* feat: parse belgium TD1 mrz android

* feat: Parse Belgium TD1 MRZ IOS

* fix: OFAC trees not found (#1060)

* fix: relax OFAC tree response validation

* test: cover OFAC tree edge cases

* fix stateless

* revert and fix types

* fix tests

* [SELF-723] feat: add structured NFC and Proof logging (#1048)

* feat: add structured NFC logging

* fix ci

* Fix: add deps

* logging fixes. use breadcrumbs

* fix android build

* update SeverityLevel

* [SELF-705] feat: add proof event logging (#1057)

* feat: add proof event logging

* refactor: unify sentry event logging

* fix types

* fix mock

* simplify

* code rabbit feedback

* fix tests

---------

Co-authored-by: seshanthS <seshanth@protonmail.com>

* skip on dev (#1063)

* don't get fancy just disable (#1064)

* saw it building so gonna try (#1065)

* chore: bump v2.6.5 rd2 (#1067)

* commit wip version bump

* remove from building

* chore: update tooling dependencies (#1069)

* chore: update tooling dependencies

* chore: align react typings and node types

* update lock

* chore: minor fixes across monorepo (#1068)

* small fixes

* fixes

* fix gesture handler error

* ci fixes

* fix yarn build; add workflow ci (#1075)

* add new workspace ci

* disable package version check for now

* build before checks

* format

* fix in future pr

* feat: add functions for disclosing aadhaar attributes (#1033)

* feat: add functions for disclosing aadhaar attributes

* format

* chore: update monorepo artifacts (#1079)

* remove unneeded artifacts, skip building circuits

* update md files

* chore: update hub contract address

* format

* fix: add aadhaar in AllIds

* chore: bump to v1.1.0-beta

---------

Co-authored-by: vishal <vishalkoolkarni0045@gmail.com>
Co-authored-by: Leszek Stachowski <leszek.stachowski@self.xyz>
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
Co-authored-by: Seshanth.S🐺 <35675963+seshanthS@users.noreply.github.com>
Co-authored-by: seshanthS <seshanth@protonmail.com>
2025-09-17 16:43:35 +05:30
Aaron DeRuvo
f85a23ac61 cleans up unused parts of sdk interface, adds inline documentation, (#1078)
* cleans up unused parts of sdk interface, adds inline documentation,

* fix up build

* yolo
2025-09-17 11:15:02 +02:00
Justin Hernandez
c11c9af143 chore: update monorepo artifacts (#1079)
* remove unneeded artifacts, skip building circuits

* update md files
2025-09-16 16:33:31 -07:00
Nesopie
8e385cb857 feat: add functions for disclosing aadhaar attributes (#1033)
* feat: add functions for disclosing aadhaar attributes

* format
2025-09-17 01:58:33 +05:30
Justin Hernandez
045a8053da fix yarn build; add workflow ci (#1075)
* add new workspace ci

* disable package version check for now

* build before checks

* format

* fix in future pr
2025-09-16 00:32:38 -07:00
Justin Hernandez
5c569e6334 chore: minor fixes across monorepo (#1068)
* small fixes

* fixes

* fix gesture handler error

* ci fixes
2025-09-13 17:55:35 -07:00
Justin Hernandez
657d8af96e chore: update tooling dependencies (#1069)
* chore: update tooling dependencies

* chore: align react typings and node types

* update lock
2025-09-13 17:45:40 -07:00
Justin Hernandez
3d46aec7c4 chore: bump v2.6.5 rd2 (#1067)
* commit wip version bump

* remove from building
2025-09-13 14:13:33 -07:00
Justin Hernandez
be2b52ac36 saw it building so gonna try (#1065) 2025-09-12 17:40:24 -07:00
Justin Hernandez
3d0a5b42cf don't get fancy just disable (#1064) 2025-09-12 17:34:26 -07:00
Justin Hernandez
51a12a1999 skip on dev (#1063) 2025-09-12 17:32:53 -07:00
Justin Hernandez
99165c95dc [SELF-723] feat: add structured NFC and Proof logging (#1048)
* feat: add structured NFC logging

* fix ci

* Fix: add deps

* logging fixes. use breadcrumbs

* fix android build

* update SeverityLevel

* [SELF-705] feat: add proof event logging (#1057)

* feat: add proof event logging

* refactor: unify sentry event logging

* fix types

* fix mock

* simplify

* code rabbit feedback

* fix tests

---------

Co-authored-by: seshanthS <seshanth@protonmail.com>
2025-09-12 17:12:44 -07:00