Commit Graph

1240 Commits

Author SHA1 Message Date
turnoffthiscomputer
d79f1c2eec update build_register_circuits.sh with new path 2024-09-17 16:24:24 +02:00
turnoffthiscomputer
fa3a2e76d2 import fixed circom_tester lib 2024-09-17 16:23:26 +02:00
turnoffthiscomputer
8750c268f0 implement sha1 in shaBytes 2024-09-17 16:22:02 +02:00
turnoffthiscomputer
865bfe0a72 remove compute_pubkey_leaf.circom 2024-09-17 16:20:40 +02:00
turnoffthiscomputer
6082ae552b add rsa_sha1 to new register circuits 2024-09-16 17:09:06 +02:00
turnoffthiscomputer
2b1071ab8c implement new features in openpassport_register 2024-09-16 17:08:13 +02:00
turnoffthiscomputer
4850be941c generic passportVerifier - dg1 check 2024-09-16 17:06:56 +02:00
turnoffthiscomputer
d9156971f3 implement generic shaBytes static functions 2024-09-16 17:04:33 +02:00
turnoffthiscomputer
23515d1e7b add sha1 and rename constants 2024-09-16 17:00:47 +02:00
turnoffthiscomputer
8eb1115e9a hash data in generateInputs correctly 2024-09-16 17:00:05 +02:00
turnoffthiscomputer
448732b08c hardcode bits key length for ecdsa certificates 2024-09-16 16:59:37 +02:00
turnoffthiscomputer
22c92485d1 implement new leaf hashing functions in circuits 2024-09-16 16:58:18 +02:00
turnoffthiscomputer
4702d3cde3 rename LeafHashing functions 2024-09-16 16:57:15 +02:00
turnoffthiscomputer
f443a146d4 fix typo in utils.ts 2024-09-16 16:49:12 +02:00
turnoffthiscomputer
1cd37294e4 move utils test from circuits/tests/utils to circuits/tests/other_circuits 2024-09-16 16:48:01 +02:00
turnoffthiscomputer
ce48d1d96a refactor openpassport register circuits templates, correction of variable names eContent and signAttr 2024-09-16 13:03:09 +02:00
turnoffthiscomputer
6e80cc6f8c delete old LeafHasher templates 2024-09-16 12:52:59 +02:00
turnoffthiscomputer
a121a78e63 add signatureAlgorithm.circom 2024-09-14 19:44:48 +02:00
turnoffthiscomputer
a18d969afd fix import in register circuits 2024-09-14 19:27:43 +02:00
turnoffthiscomputer
38febb5bab import crypto in prove.test.ts 2024-09-14 19:13:20 +02:00
turnoffthiscomputer
234a94d295 yarn format 2024-09-14 19:05:27 +02:00
turnoffthiscomputer
4778b20043 use parseCertificate instead of parseDsc 2024-09-14 19:05:11 +02:00
turnoffthiscomputer
8db93da2f1 Merge pull request #200 from zk-passport/register-circuits
Register circuits
2024-09-14 13:16:53 +02:00
turnoffthiscomputer
eb863c5d0d fix leafHasherLight_tester.circom 2024-09-14 13:10:24 +02:00
turnoffthiscomputer
64159c898c force leafHasherLight.circom not have no first letter in capital 2 2024-09-14 13:04:26 +02:00
turnoffthiscomputer
b58e911198 force leafHasherLight to have to first letter in capital 2024-09-14 13:03:53 +02:00
turnoffthiscomputer
fd34bc0d29 fix ofac/dislose tests 2024-09-14 12:52:41 +02:00
turnoffthiscomputer
f3c904e0fb add sigAlg in csca leaf 2024-09-14 12:45:57 +02:00
turnoffthiscomputer
e07b221a96 yarn format 2024-09-14 12:13:41 +02:00
turnoffthiscomputer
7383fd0f20 implement new leaf hasher, add special leafhashECDSA in circuits 2024-09-14 12:12:50 +02:00
turnoffthiscomputer
33df4d58e1 fix OpenPassportVerifier 2024-09-14 10:34:05 +02:00
turnoffthiscomputer
f567535ea2 merge branch 'dev' into register-circuits 2024-09-14 10:33:38 +02:00
turboblitz
7e0601acfc Merge pull request #198 from zk-passport/refactor-passportData
refactor mockPassportData generation
2024-09-14 15:19:20 +09:00
0xturboblitz
29929d818a add prettier to common, not running it to avoid bad merge 2024-09-14 15:11:47 +09:00
0xturboblitz
9bbaf7d4ce yarn format 2024-09-14 15:08:47 +09:00
0xturboblitz
12d42800bc fix ofac tests 2024-09-14 15:04:37 +09:00
0xturboblitz
9d33ae84a3 remove static mockPassportData
- can add them back if necessary, have to regenerate them so they have dscs
2024-09-14 14:05:38 +09:00
0xturboblitz
de8cacb48d remove comments 2024-09-14 14:03:27 +09:00
0xturboblitz
cc0a0ea4a2 use n_dsc_ecdsa everywhere when ecdsa 2024-09-14 13:50:23 +09:00
0xturboblitz
544aa78d12 add /common tests to github workflow 2024-09-14 13:44:03 +09:00
0xturboblitz
6c40783d5d move SignatureAlgorithm to types.ts 2024-09-14 13:38:42 +09:00
0xturboblitz
8e2dd94554 get SignatureAlgorithmIndex back in accordance with circuits 2024-09-14 13:33:35 +09:00
0xturboblitz
aa01c8e85c rename getSignatureAlgorithm to parseDSC 2024-09-14 13:25:00 +09:00
0xturboblitz
4bc2afcfa7 remove signatureAlgorithm and pubKey from PassportData 2024-09-14 13:11:58 +09:00
0xturboblitz
82cd1005d8 remove signatureOidToName 2024-09-14 12:59:40 +09:00
0xturboblitz
5a95fa9f51 fix disclose test 2024-09-14 12:52:22 +09:00
0xturboblitz
fb15c9427c update getLeaf to use DSC and SignatureAlgorithmIndex to use new names 2024-09-14 12:39:51 +09:00
0xturboblitz
7288bab526 simplify splitToWords, remove BigintToArray 2024-09-14 12:05:25 +09:00
0xturboblitz
f99f54e35b factor register tests 2024-09-14 11:55:21 +09:00
0xturboblitz
7e5c337a50 fix ecdsa 2024-09-14 11:37:44 +09:00