Commit Graph

18 Commits

Author SHA1 Message Date
Nesopie
07352a5ac6 feat: migrate from Sumsub to Didit KYC provider (#1860)
* chore: swap @sumsub/react-native-mobilesdk-module for @didit-protocol/sdk-react-native

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: rename SUMSUB_TEE_URL to DIDIT_TEE_URL

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: rename PendingKycVerification.userId to sessionId

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add Didit integration module, remove Sumsub integration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add useDiditWebSocket hook, remove useSumsubWebSocket

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add useDiditLauncher hook, remove useSumsubLauncher

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: rename userId to sessionId in pendingKycStore, bump persist version

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: rename sumsub error injection triggers to didit

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: rename KycSuccess route param userId to sessionId

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: update KycSuccessScreen to use useDiditWebSocket and sessionId

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: update all consumer files from Sumsub to Didit

Updates usePendingKycRecovery, selfClientProvider, 5 fallback screens,
LogoConfirmationScreen, HomeScreen, KYCVerifiedScreen, and KycIdCard.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test: update jest mocks and config for Didit SDK

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* build: swap Sumsub native deps for Didit in Podfile and build.gradle

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: remove hardcoded sumsub namespace from nullifier generation

Read namespace from id_type field instead of hardcoding 'sumsub'.
The didit-tee encodes id_type as [namespace_len][namespace][doc_type],
so the namespace is already in the signed data.

Also fix deserializeApplicantInfo to parse the namespaced encoding
and extract just the document type for display.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: lint and formatting issues from Didit migration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add register_kyc support to build_r1cs_wasm.sh and build_cpp.sh

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: use circuits/node_modules paths in build_r1cs_wasm.sh

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: emit ack_success after receiving KYC data to trigger session deletion

The didit-tee now expects the client to ack receipt of signed data,
which triggers DELETE of the session from Didit's API for data cleanup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: use raw bytes for KYC commitment/nullifier instead of deserialize+reserialize

The deserialize→reserialize path strips the namespace prefix from
id_type, producing different bytes than the TEE signed. Work on the
raw base64-decoded bytes directly to match the circuit inputs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: lint

* Revert "fix: lint"

This reverts commit d3dde1460b.

* fix: lint

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 15:49:49 +05:30
Nesopie
2fd8d18107 ci: build 1 circuit at a time (#1684) 2026-02-03 11:30:40 +05:30
Nesopie
41a4d9374d Ci/kyc (#1658)
* ci: add kyc to the workflow and rm new aadhaar nullifier logic

* fix: true spelling
2026-01-27 19:38:28 +05:30
Vishalkulkarni45
16b1b1cde0 chore: whitelist poland register circuit (#1290) 2025-10-17 11:15:57 +05:30
Vishalkulkarni45
c5d0e5d323 Custom build circuit (#1242)
* feat: add serbia dsc to build

* feat: add run-id to download artifacts

* fix: circom dep import path
2025-10-08 21:03:17 +05:30
Nesopie
b26aca0eab fix aadhaar register output after building the cpp circuit (#1045) 2025-09-11 09:20:31 +05:30
Nesopie
87424d9858 Feat/build aadhaar (#1044)
* feat: build aadhaar circuits as well in the ci

* feat: add register aadhaar case handling
2025-09-11 08:36:24 +05:30
Nesopie
5de4aa8c9e Feat/build cpp (#1029)
* chore: remove register id from register circuits

* chore: only use 128ram instance

* chore: build 2 circuits at a time
2025-09-09 18:57:47 +05:30
Nesopie
3b93831ac9 chore: remove register id from register circuits (#1028)
* chore: remove register id from register circuits

* chore: only use 128ram instance
2025-09-09 18:56:11 +05:30
Nesopie
44bc71987d chore: update the cpp build script (#1021) 2025-09-09 12:18:07 +05:30
Ayman
b00862164b chore: update build_cpp to 2 concurrent builds 2025-06-28 08:46:07 +05:30
Ayman
d6e97a7caf decrease parallel circuits to 3 2025-06-27 23:36:53 +05:30
Nesopie
83ad584f03 feat: add register eu id instances (#682)
* feat: add register eu id instances

* feat: add new instances

* chore: update scripts

* chore: fix sig alg

* chore: rm circuits
2025-06-25 19:59:38 +02:00
ayman
71651f78ce chore: limit the number of parallel circuits being built to 5 2025-03-16 20:21:54 +05:30
ayman
7844fdeaa0 chore: build circuits 2025-03-16 19:19:05 +05:30
turboblitz
5dbece7b7f Fix missing sigalg (#185) 2025-02-20 16:53:38 +05:30
Nesopie
dac7c1d50c chore: add rsa circuit (#113) 2025-02-14 13:45:40 +01:00
Nesopie
56126be376 feat: add cpp circuit artifacts (#50) 2025-02-10 13:41:03 +01:00