Commit Graph

58 Commits

Author SHA1 Message Date
Justin Hernandez
343515c35f chore: add Node version file (#853) 2025-08-07 17:48:25 -07:00
Justin Hernandez
5305ef83fc Feat: Improved import export sorting for app and common (#833)
* save import sorting work

* remove dupe headers and fix type errors

* sort imports and exports

* fix errors from export sorting

* fix tests

* codex feedback

* fix exports

* fix exports and tweak test build

* fix export and format

* fix license headers

* fix app building and clean up test errors

* fix android local e2e test

* improve caching

* final fixes

* remove invalid option

* fix sorting and get random values loading

* fix import sorting
2025-08-06 15:18:42 -07:00
Justin Hernandez
82d26669bc Enable tree-shakeable exports (#823)
* Add tree-shakeable exports

* Migrate imports for tree-shakeable paths

* Document ESM extension requirement

* udpates

* install new lock

* yarn nice

* build deps

* save working index export no wildcard approach

* save wip

* fix building

* add tree shaking doc and examples

* sort package json files

* update package.json

* fix analyzing web

* make sure that web is built

* wip tree shaking

* building works again. save wip logic

* use granular imports

* wip test

* save wip

* Remove hardcoded .d.ts files and setup automatic TypeScript declaration generation

- Remove redundant constants.d.ts, types.d.ts, utils.d.ts files
- Add build:types script to automatically generate TypeScript declarations
- Update tsup config to disable DTS generation (handled separately)
- Update .gitignore to prevent future commits of generated .d.ts files
- Fixes import resolution errors in app by ensuring declarations are always generated

* Add .gitignore rules for generated TypeScript declarations

* ignore dts files

* Remove redundant index.js re-export files

- Remove constants.js, types.js, utils.js as they're redundant with tsup build
- These were just re-exports pointing to dist files that tsup generates
- package.json exports already point directly to built files
- Update .gitignore to prevent future commits of these generated files
- tsup handles all the building, no manual re-export files needed

* save current wip fixes

* add tsup config for web building

* common prettier and fix imports

* prettier

* fix tests

* implement level 3 tree shaking

* improve splitting

* optimize vite web building and prettier

* remove comments

* sort export params

* feedback and fix pipelines

* fix circuit-names path

* fix test

* fix building

* sort

* fix building

* allow cursor to edit scripts

* fix loadDocumentCatalog undefined

* fix build settings

* fix build settings

* additional metro tree shaking

* improved discovery script for xcode building

* pr feedback and fix camelCasing

* simplify shim setup

* fix xcode building and add command to test building

* remove comment

* simplify
2025-08-02 16:55:05 -07:00
turnoffthiscomputer
0d853a2422 App/deeplink callback (#789)
* add deepllinkCallback support

* bump package version

* yarn nice

* fix background countdown

* cast the URL to prevent malicious code introduction
2025-07-28 10:20:57 +02:00
turnoffthiscomputer
874b426ebe Feat/retrieve OFAC trees from api (#769)
* retrieve the ofac trees from the api

* remove the ofac trees from the common repo

* fix ofac test

* yarn nice

* yarn nice

* yarn nice

* refactor ofac fetching
2025-07-21 11:07:04 +02:00
Justin Hernandez
9efe13386b add bulk sort command (#723) 2025-07-01 18:32:56 -07: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
f00b21d455 add build smt function to common sdk 2025-06-17 15:29:16 +02:00
turnoffthiscomputer
cfed790593 update common package version 2025-06-17 11:40:59 +02:00
turnoffthiscomputer
40edfd7e44 replace yarn publish by npm publish 2025-06-16 23:21:21 +02:00
turnoffthiscomputer
2d53b89ff2 bump common sdk version 2025-06-16 23:14:21 +02:00
turnoffthiscomputer
f3f7028c86 bump sdk version (#633) 2025-06-16 23:01:37 +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
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
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
Aaron DeRuvo
0e9c59c0fb SEL-56: Setup Yarn Workspaces (#584) 2025-06-04 11:37:32 +02:00
nicoshark
624d0e568d Feat/forbidden countries utils (#504)
* add forbidden countries util function

* remove casting
2025-04-04 18:58:30 +05:30
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
turnoffthiscomputer
cf544628c3 Fix tee attestation (#102) 2025-02-14 01:58:56 +01:00
turboblitz
6d4c211c51 New OFAC updates (#47)
Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
2025-02-12 22:21:01 +01:00
Justin Hernandez
73421f6a9a Improve UX and DX (#66)
Co-authored-by: Nicolas Brugneaux <nicolas.brugneaux@gmail.com>
2025-02-11 10:08:07 +01:00
nicoshark
03b5428d92 Update/contract sdk (#61) 2025-02-11 00:17:13 +09:00
turnoffthiscomputer
667c993ee3 fix build issues - improve amplitude logs 2024-12-29 23:00:33 +01:00
turnoffthiscomputer
f58ac831a1 allow users to disclose nationality without asserting the value to a specific country 2024-11-02 18:32:49 +01:00
turnoffthiscomputer
12fee6d2e6 Merge branch 'dev' of https://github.com/zk-passport/openpassport into frontend-optimization 2024-10-30 15:01:31 +01:00
turnoffthiscomputer
eeca42311b update @openpassport sdk dependencies 2024-10-28 18:10:53 +01:00
motemotech
031a088894 update imports in common dir 2024-10-28 15:17:01 +09:00
motemotech
bf542411f9 Merge branch 'dev' into update/openpassport-zk-kit 2024-10-28 15:03:32 +09:00
motemotech
7966723080 update openpassport zk-kit version 2024-10-28 15:00:55 +09:00
motemotech
f9c37a21f3 update lean imt ver and yarn.lock 2024-10-27 22:40:16 +09:00
turnoffthiscomputer
ba28099848 Revert "Update/openpassport zk kit" 2024-10-27 14:16:03 +01:00
motemotech
ebfe4eb8a5 update common dir to openpassport zk kit 2024-10-27 00:37:51 +09:00
turnoffthiscomputer
5e8a8f9be6 add generateCountryOptions.ts 2024-10-26 11:10:28 +02:00
turnoffthiscomputer
b49cdf8328 fix app 2024-10-19 12:24:13 -07:00
turnoffthiscomputer
c95bb83323 clean common package.json 2024-10-15 18:20:47 -07:00
0xturboblitz
29929d818a add prettier to common, not running it to avoid bad merge 2024-09-14 15:11:47 +09:00
0xturboblitz
8522682f2a refactor mockPassportData generation
- Now using only genMockPassportData.ts
- Tests in `/common` verify them
- Mock DSCs for ecdsa
- Factor tests into unique files
- Broke register ecdsa sig verif, will fix
2024-09-14 01:29:04 +09:00
turnoffthiscomputer
0983909d69 update sdk 2024-08-22 09:31:33 +01:00
ashpect
384c53556b Merge branch 'dev' of github.com:zk-passport/proof-of-passport into dev 2024-08-08 03:25:30 +05:30
ashpect
62de12df72 Merge branch 'dev' of github.com:zk-passport/proof-of-passport into dev 2024-07-28 12:27:22 +05:30
turnoffthiscomputer
71861357d9 fix disclose proof generation 2024-07-27 14:52:09 +02:00
ashpect
d6ec67fd49 merge dev fork with dev origin 2024-07-23 04:09:40 +05:30
ashpect
c6543b6c5b input generation, almost died debugging names 2024-07-23 00:49:17 +05:30
ashpect
8ac7f8a31f export and import for smt's 2024-07-21 23:01:29 +05:30
turnoffthiscomputer
69c3aacd89 refactor sendModalRequest 2024-07-19 12:13:00 +02:00
turnoffthiscomputer
464f6d21ce refactor circuits repo, clean circuits tests, implement new certificates scripts, fix all tests from circuits repo 2024-07-14 15:44:55 +02:00
ashpect
55a0433b7e rewrote everything with smt 2024-07-05 22:39:34 +05:30