Commit Graph

223 Commits

Author SHA1 Message Date
turnoffthiscomputer
19f167297a don't use crypto in core sdk 2025-07-08 18:04:15 +02:00
Justin Hernandez
c3c1ecfe47 Bugfix: android deeplinks (#742)
* bugfix: deep linking

* add android manifest test

* bump build and version

* format readme
2025-07-05 04:31:42 -07:00
Ayman
55e5db78ef chore: update readme 2025-07-04 16:37:53 +02:00
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
Ayman
b40f2014b4 chore: use named exports 2025-07-03 14:56:58 +02:00
Ayman
fab8b3b6d2 chore: update default config id method 2025-07-03 14:41:30 +02:00
Justin Hernandez
9efe13386b add bulk sort command (#723) 2025-07-01 18:32:56 -07:00
Ayman
9777c45db0 bump version and add mainnet hub address 2025-06-30 10:54:05 +02:00
Justin Hernandez
4e3f764f09 SEL-473: Add lint rule for BUSL headers (#698)
* chore(app): enforce license header via eslint

* update lock and order

* fix formatting
2025-06-29 02:09:12 -07:00
Ayman
6c5b20372b fix: config not found bug 2025-06-27 23:05:44 +05:30
Ayman
33f021b47c bump: sdk/core@1.0.3-beta.4 2025-06-27 22:27:44 +05:30
Nesopie
045b574331 fix: older than bug (#692) 2025-06-27 18:56:39 +02:00
Nesopie
44f0a7ba70 feat: add better error handling (#691) 2025-06-27 18:28:36 +02:00
Ayman
02fd6120c6 bump sdk version and use new hub address 2025-06-24 20:03:26 +05:30
Nesopie
12e3598753 chore: change hub contract address (#675) 2025-06-24 12:06:03 +02:00
Ayman
0a1771706d bump core version and fix ci 2025-06-24 14:10:36 +05:30
turnoffthiscomputer
6f53872b21 bump core version 2025-06-24 10:30:07 +02:00
Nesopie
42eff712b3 Update npm-publish workflow and bump core package version to 1.0.0 (#661) 2025-06-23 14:34:53 +02:00
Nesopie
72a7f8177d Fix/sdk (#652)
* fix: sdk build configs

* chore: SelfBackendVerifier (WIP)

* feat: add custom verification

* feat: consider destination chain in user defined data

* chore: export attestation id

* chore: export attestation id

* chore: export config storage

* chore: don't throw an error if the proof is not valid

* chore: trim abi and rm typechain types

* refactor

* chore: rm unnecessary exports

* 📝 Add docstrings to `fix/sdk` (#653)

Docstrings generation was requested by @remicolin.

* https://github.com/selfxyz/self/pull/652#issuecomment-2992046545

The following files were modified:

* `sdk/core/src/utils/hash.ts`
* `sdk/core/src/utils/proof.ts`
* `sdk/core/src/utils/utils.ts`

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* review fixes

* chore: fix package.json cjs types

* chore: add minor changes to checks

* feat: add InMemoryConfigStore, allIds constant and verificationResult type

* chore: export Verification config

* feat: change the verification config types

* fix: throw issues early if verification config is null

* fix: update yarn.lock file

* chore: lint

* fix: rm ts expect error directive

* fix: contract tests

* use excluded countries instead forbidden countries list

* chore: change types in constnats

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-06-23 14:25:36 +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
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
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
turnoffthiscomputer
8351609046 fix the ski prefix issue (#581) 2025-05-30 18:23:32 +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
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
nicoshark
f5e243cf9c update staging registry address (#545) 2025-04-30 21:43:10 +02:00
crStiv
28ec407e49 fix: improve error handling for forbidden countries list mismatch (#494)
* Update SelfBackendVerifier.ts

* Update constants.ts

* Update formatInputs.ts

* Update formatCallData.ts
2025-04-18 22:18:06 +09:00
Seshanth.S🐺
8fe32d8200 Feat: Show error code in SDK (#500)
* feat: emit `error_code` and `reason` in app

* feat: add `onError` in sdk

* feat: Display reason in app

* lint & fmt

* feat: add scrollview in ProofRequestStatusScreen for long reasons
2025-04-15 08:53:57 +02:00
turnoffthiscomputer
5c450285c4 bump qrcode version (#508) 2025-04-05 09:23:58 +02:00
turnoffthiscomputer
cb036e8502 Fix rendering issue (#507)
* fix sdk import

* fix core react sdk version issue

* bump version

* bump version and fix rendering issue in the qrcode
2025-04-05 09:21:15 +02:00
turnoffthiscomputer
eb6af37ae0 Fix sdk react version (#506)
* fix sdk import

* fix core react sdk version issue

* bump version
2025-04-05 07:07:04 +02:00
turnoffthiscomputer
64ffa7aefa fix sdk import (#505) 2025-04-04 16:37:25 +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
c00827dafc increment the package version (#503) 2025-04-03 07:35:44 +02:00
nicoshark
83db48508f Add fixed url for the backed sdk (#502)
* add testnet url

* hardcode rpc url
2025-04-03 07:22:59 +02:00
turnoffthiscomputer
1f4cc63324 add self app builder to core sdk (#501) 2025-04-03 03:59:33 +02:00
nicoshark
03c1b0f453 fix backend sdk with scope (#497) 2025-03-31 20:53:38 +02:00
turnoffthiscomputer
fafc765af7 generate scope from dns (#495)
* generate scope from dns

* switch between api and staging api according to document type

* add poland passport to mockdatascreen

* yarn nice

* bump sdk version

* bump app version

* Feat/update sdk (#496)

* export castFromScope

* export proof conversion

* publish new package

* update package

* update package

* add hashEndpointWithScope to export member

---------

Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
2025-03-31 20:20:13 +02:00
turboblitz
730f812181 Fix proof messaging (#487)
* rename handleProofVerified to handleProofResult

* from the app, call proof_verified or proof_generation_failed instead of always proof_verified

* messaging for when proof fails

* bump sdk version

* yarn nice
2025-03-28 11:40:38 -07:00
nicoshark
acd3329f31 Feat/proof conversion (#491)
* export castFromScope

* export proof conversion
2025-03-28 17:13:45 +01:00
nicoshark
a357636e39 export castFromScope (#490) 2025-03-28 11:30:37 +01:00
turnoffthiscomputer
62d73f64d6 Fix qrcode (#486)
* update AndroidManifest.xml to remove unnecessary pathPrefix from deeplink configuration

* bump android version

* fix self qrcode
2025-03-27 16:21:44 -07:00
turnoffthiscomputer
2c46d34e48 add country mapping (#480)
* add country mapping

* update backend verifier

* delete unused setting

* add orgs

* update country codes

* fix nationality

* bump sdk versions

---------

Co-authored-by: motemotech <i.am.nicoshark@gmail.com>
2025-03-25 16:00:51 +01:00
turnoffthiscomputer
5a3ac1e091 add local sdk testing web app (#478)
* add local sdk testing web app

* uncomment window.location

* bump package version
2025-03-24 23:30:26 +01:00
turnoffthiscomputer
36a29c9a21 chore: add redirect.self.xyz to app link domains (#415)
* chore: add redirect.self.xyz to app link domains

* chore: add redirect.self.xyz to android manifest

* add self in the universal link path

* set gestureEnabled false on Launch screen

* improve ProveScreen UX

* improve ProveScreen UX

* implement deeplinking in mobile app and sdk

* start app listener in ViewFinder

* support WS connexion with complex qrcodes

* remove /self path from android deeplink support

---------

Co-authored-by: turboblitz <florent.tavernier@gmail.com>
2025-03-21 13:55:11 -07:00
turboblitz
f501bf47a4 removed next dependency on sdk (#447) 2025-03-21 21:53:39 +01:00
turnoffthiscomputer
ecf9f549f4 bump version 2025-03-14 20:15:29 +01:00
turnoffthiscomputer
95829b5d1a bump version 2025-03-14 20:12:40 +01:00
turnoffthiscomputer
35e3c37275 bump version 2025-03-14 20:08:58 +01:00