Commit Graph

660 Commits

Author SHA1 Message Date
turnoffthiscomputer
de4bf207ee merge dev branch into main (#624)
* remove sdk/tests (#622)

* remove sdk/tests

* chore: update yarn.lock

---------

Co-authored-by: Ayman <aymanshaik1015@gmail.com>

* fix: add range check on paddedInLength of shaBytesDynamic (#623)

* fix ci (#626)

---------

Co-authored-by: Ayman <aymanshaik1015@gmail.com>
Co-authored-by: Vishalkulkarni45 <109329073+Vishalkulkarni45@users.noreply.github.com>
2025-06-16 12:14:19 +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
turnoffthiscomputer
81afb0b9d0 Revert "fix: added missing range checks in ShaBytesDynamic (#579)" (#617)
This reverts commit 0c8c87362b.
2025-06-12 18:12:49 +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
ArmanKolozyan
0c8c87362b fix: added missing range checks in ShaBytesDynamic (#579)
* fix: added missing range checks for Sha1Bytes

* more descriptive comments around range checks

* added range assumption of Sha1Bytes

* added range assumption of Sha1General

---------

Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
Co-authored-by: turnoffthiscomputer <98749896+remicolin@users.noreply.github.com>
2025-06-03 13:19:53 +02:00
nicoshark
668732a57b Chore/refactor contracts (#582)
* 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

* circuit compilation for local environment

* add register id circuit in the contracts dir

* clean up ignition deploy scritps

* refactor deploy scripts

* prettier

* update serialized dsc tree

* fix ofac check

* fix passport attestation id

---------

Co-authored-by: turnoffthiscomputer <colin.remi07@gmail.com>
2025-06-03 14:58:41 +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
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
turnoffthiscomputer
5904234d2e Feat/simpler contract sdk (#519)
* 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

---------

Co-authored-by: motemotech <i.am.nicoshark@gmail.com>
2025-04-17 16:06:49 +02:00
turboblitz
dc5529b507 Fix input generation for 521bit curves (#481)
* fix EC point padding for 521 bit curves

* rename modulus to point in findStartIndexEC as it is a point

* simplify matching logic

* simplify padding logic

* remove comment

* remove log

removing .only so the CI/CD runs circuit tests

fix disclosure test

fix scope in test

fix scope error in circuit tests

remove .only

fix test

* run ci/cd
2025-04-17 09:59:13 +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
d266cf2ced Feat/add new verifiers (#488)
* update verifiers

* update and deploy new verifiers
2025-03-30 19:22:15 +02:00
nicoshark
9d8c475de0 Docs/contracts (#467)
* add new columns in contracts readme

* update contracts readme
2025-03-18 13:08:43 +01: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
turnoffthiscomputer
d8701b5fd2 Merge pull request #396 from selfxyz/new-instances
New instances
2025-03-16 08:49:24 -04:00
0xturboblitz
6ed35b542f temporarily remove mock passport whose DSC is signed by a CSCA sig alg that is not used 2025-03-12 20:12:52 -07:00
motemotech
c253877d91 Merge branch 'main' into feat/download-n-update-verifiers 2025-03-12 11:39:41 +09:00
0xturboblitz
05066f3576 yarn format 2025-03-08 22:49:10 -08:00
0xturboblitz
f51c77681f push new test cases 2025-03-08 19:40:55 -08:00
0xturboblitz
5cea47e35f add and fix 521 instances 2025-03-08 19:36:03 -08:00
0xturboblitz
9d403a5355 fix typing 2025-03-08 18:21:22 -08:00
0xturboblitz
b10667f5fc add missing rsapss instance with unusual salt length for Denmark
- add new mock certs
- did a terrible things in the SignatureAlgorithm type, might want to refactor later
2025-03-08 18:20:07 -08:00
0xturboblitz
8fb6265955 adding first 4 missing instances 2025-03-08 18:15:13 -08:00
turboblitz
51e2fc15fa Self sdk and playground (#210)
Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
2025-02-25 13:08:01 -07:00
motemotech
03019eee49 download and update verifiers 2025-02-24 15:10:32 -08:00
Justin Hernandez
65d1f74c10 bump build to new release candidate (#163)
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
2025-02-20 07:36:26 -08:00
turboblitz
5dbece7b7f Fix missing sigalg (#185) 2025-02-20 16:53:38 +05:30
turnoffthiscomputer
a7dbd5c788 Increase forbidden country list size (#175)
Co-authored-by: nicoshark <i.am.nicoshark@gmail.com>
2025-02-20 05:34:43 +01:00
turnoffthiscomputer
81b870cc8a Instances (#179)
Co-authored-by: 0xturboblitz <florent.tavernier@gmail.com>
2025-02-20 05:34:26 +01:00
turboblitz
d263620dc2 Audit/pubkey prefixes (#147) 2025-02-19 18:10:54 -08:00
Nesopie
8004f6ebd5 feat: update bigintiszero implementation (#150) 2025-02-19 17:39:22 -08:00
Seshanth.S🐺
a19f515fe5 Hotfix/audit rsapss (#144) 2025-02-19 17:37:46 -08:00
turboblitz
5e83716273 hotfix off-by-one issues (#145) 2025-02-19 17:36:43 -08:00
turnoffthiscomputer
5534b7a91a refactor AssertBytes (#143)
Co-authored-by: 0xturboblitz <florent.tavernier@gmail.com>
2025-02-19 10:46:06 -08:00
Nesopie
99168a45fe chore: use num2bits instead of isNBits (#148) 2025-02-19 10:32:32 -08:00
nicoshark
94de78d1d4 Feat/verifier update scripts (#157) 2025-02-19 05:51:20 +01:00
nicoshark
e13c64ba10 Add verifier ids (#139) 2025-02-19 05:48:07 +01:00
turboblitz
fd74ffa156 New backend verification sdk (#131)
Co-authored-by: motemotech <i.am.nicoshark@gmail.com>
2025-02-16 18:33:54 -08:00
turboblitz
7f23412a64 Circuit safety checks (#121) 2025-02-15 11:42:30 +01:00
turboblitz
c6db61b2c0 Use secret from keychain (#108) 2025-02-14 14:30:14 +01:00
Nesopie
dac7c1d50c chore: add rsa circuit (#113) 2025-02-14 13:45:40 +01:00
Nesopie
66a257c53d audit: ecdsa (#64) 2025-02-13 14:23:33 +01:00
Seshanth.S🐺
efbe84e599 update rsapss tests (#70) 2025-02-13 14:23:15 +01:00
turnoffthiscomputer
153414c82b Add AssertBytes template to validate byte inputs in CustomHasher circuit (#51) 2025-02-13 13:59:18 +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
Nesopie
56126be376 feat: add cpp circuit artifacts (#50) 2025-02-10 13:41:03 +01:00
turnoffthiscomputer
451b99496f Tee (#46)
Co-authored-by: Aaron DeRuvo <aaron.deruvo@clabs.co>
2025-02-10 11:54:02 +01:00