-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from zk-passport/dev
merge dev int main
- Loading branch information
Showing
227 changed files
with
294,378 additions
and
105,885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
nodeLinker: node-modules | ||
enableScripts: true | ||
checksumBehavior: 'update' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
declare module 'react-native-passport-reader' { | ||
interface ScanOptions { | ||
documentNumber: string; | ||
dateOfBirth: string; | ||
dateOfExpiry: string; | ||
quality?: number; | ||
} | ||
interface ScanOptions { | ||
documentNumber: string; | ||
dateOfBirth: string; | ||
dateOfExpiry: string; | ||
quality?: number; | ||
} | ||
|
||
interface PassportReader { | ||
scan(options: ScanOptions): Promise<{ | ||
mrz: string; | ||
eContent: string; | ||
encryptedDigest: string; | ||
photo: { | ||
base64: string; | ||
}; | ||
digestAlgorithm: string; | ||
signerInfoDigestAlgorithm: string; | ||
digestEncryptionAlgorithm: string; | ||
LDSVersion: string; | ||
unicodeVersion: string; | ||
encapContent: string; | ||
documentSigningCertificate: string; | ||
dataGroupHashes: string; | ||
}>; | ||
} | ||
interface PassportReader { | ||
scan(options: ScanOptions): Promise<{ | ||
mrz: string; | ||
eContent: string; | ||
encryptedDigest: string; | ||
photo: { | ||
base64: string; | ||
}; | ||
digestAlgorithm: string; | ||
signerInfoDigestAlgorithm: string; | ||
digestEncryptionAlgorithm: string; | ||
LDSVersion: string; | ||
unicodeVersion: string; | ||
encapContent: string; | ||
documentSigningCertificate: string; | ||
dataGroupHashes: string; | ||
}>; | ||
} | ||
|
||
const PassportReader: PassportReader; | ||
export default PassportReader; | ||
} | ||
const PassportReader: PassportReader; | ||
export default PassportReader; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
{ | ||
"extends": "@react-native/typescript-config/tsconfig.json", | ||
"compilerOptions": { | ||
"lib": [ | ||
"dom", | ||
"esnext" | ||
], | ||
"typeRoots": [ | ||
"./src/types", | ||
"./node_modules/@types" | ||
] | ||
"lib": ["dom", "esnext"], | ||
"typeRoots": ["./src/types", "./node_modules/@types"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
inputs | ||
build | ||
node_modules/ | ||
err.log | ||
err.log | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
circuits/circuits/dsc/instances/dsc_rsa_sha1_65537_4096.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../openpassport_dsc.circom"; | ||
include "../dsc.circom"; | ||
|
||
component main { public [ merkle_root ] } = OPENPASSPORT_DSC(11, 120, 35, 120, 35, 1664, 256, 12); | ||
component main { public [ merkle_root ] } = DSC(11, 120, 35, 120, 35, 1664, 256, 12); |
4 changes: 2 additions & 2 deletions
4
circuits/circuits/dsc/instances/dsc_rsa_sha256_65537_4096.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../openpassport_dsc.circom"; | ||
include "../dsc.circom"; | ||
|
||
component main { public [ merkle_root ] } = OPENPASSPORT_DSC(10, 120, 35, 120, 35, 1664, 256, 12); | ||
component main { public [ merkle_root ] } = DSC(10, 120, 35, 120, 35, 1664, 256, 12); |
4 changes: 2 additions & 2 deletions
4
circuits/circuits/dsc/instances/dsc_rsapss_sha256_65537_4096.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../openpassport_dsc.circom"; | ||
include "../dsc.circom"; | ||
|
||
component main { public [ merkle_root ] } = OPENPASSPORT_DSC(12, 120, 35, 120, 35, 1664, 256, 12); | ||
component main { public [ merkle_root ] } = DSC(12, 120, 35, 120, 35, 1664, 256, 12); |
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha1_sha1_sha1_ecdsa_brainpoolP224r1.circom
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha1_sha1_sha1_ecdsa_secp256r1.circom
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha1_sha1_sha1_rsa_65537_2048.circom
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha1_sha256_sha256_rsa_65537_4096.circom
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha256_sha224_sha224_ecdsa_brainpoolP224r1.circom
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha256_sha256_sha256_ecdsa_brainpoolP224r1.circom
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha256_sha256_sha256_ecdsa_brainpoolP256r1.circom
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha256_sha256_sha256_ecdsa_secp256r1.circom
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
circuits/circuits/prove/instances/prove_sha256_sha256_sha256_ecdsa_secp384r1.circom
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.