Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #271

Open
wants to merge 149 commits into
base: main
Choose a base branch
from
Open

Dev #271

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
7049529
add general and each circuits
motemotech Nov 28, 2024
a183882
integrate to existed circuits
motemotech Nov 28, 2024
ba498f6
delete unused circuits
motemotech Nov 28, 2024
6ca6269
delete commentout
motemotech Nov 28, 2024
d0090d0
modify other files for new signature data types
motemotech Nov 29, 2024
07380fc
delete console.log
motemotech Dec 2, 2024
d3244ea
Merge branch 'dev' into feat/missing-rsa-sha256
motemotech Dec 2, 2024
1c8d111
add sha384, sha512 static and dynamic circuits
seshanthS Dec 2, 2024
f3b2a84
format
seshanthS Dec 2, 2024
114e607
change test for missing sha256 rsa algorithms
motemotech Dec 2, 2024
194b367
lint
motemotech Dec 2, 2024
3a43dc3
fix common test
motemotech Dec 2, 2024
711c5bf
Merge pull request #248 from openpassport-org/feat/missing-rsa-sha256
remicolin Dec 3, 2024
e687764
Merge pull request #255 from openpassport-org/feature/sha384_sha512
remicolin Dec 3, 2024
b70a64d
add 10years to dsc/csca certifiactes duration
remicolin Dec 3, 2024
073b051
Merge branch 'dev' of https://github.com/zk-passport/openpassport int…
remicolin Dec 3, 2024
5fd38e9
add UserInfo screen
remicolin Dec 6, 2024
c2f329a
add optimized functions
motemotech Dec 9, 2024
6f488c8
optimized with Karatsuba algorithm
motemotech Dec 9, 2024
163128d
delete old rsa impl
motemotech Dec 9, 2024
5dd5344
add only rsa test
motemotech Dec 10, 2024
7d850a2
lint
motemotech Dec 10, 2024
302d7ae
Merge pull request #256 from openpassport-org/feat/passport-metadata-…
remicolin Dec 10, 2024
f0e70f5
pass test
motemotech Dec 11, 2024
cc6c8d1
fix padding
motemotech Dec 11, 2024
fd1c288
apply rarimo padding
motemotech Dec 11, 2024
68b76ed
add 4096 bits circuits
motemotech Dec 12, 2024
a73e7ef
lint
motemotech Dec 12, 2024
70279da
disable test timeout
motemotech Dec 13, 2024
4dc6c53
delete unused files
motemotech Dec 13, 2024
c5c4dd1
Merge pull request #257 from openpassport-org/perf/rsa-optimization
remicolin Dec 13, 2024
1e0ec4a
fix sdk
remicolin Dec 14, 2024
13ff332
feat: replace circomlib dependency with circom-dl
Nesopie Dec 14, 2024
2c83884
feat: replace circomlib with circom-dl
Nesopie Dec 14, 2024
05ef259
fix yarn behaviour
remicolin Dec 14, 2024
cfb95d7
use new certificate parsing functions in csca.ts
remicolin Dec 14, 2024
01e66e3
Merge branch 'feat/circom-dl' of https://github.com/zk-passport/openp…
remicolin Dec 14, 2024
e88e528
import circomlib-dl locally - fix import issues
remicolin Dec 14, 2024
ae7eb97
Merge pull request #259 from openpassport-org/fix/dsc-circuits
remicolin Dec 14, 2024
85ad6bd
update import from secp256r1Verifier to local circomlib
remicolin Dec 15, 2024
7b97702
fix for circom-dl
motemotech Dec 15, 2024
5a98974
remove circomlib from test code
motemotech Dec 15, 2024
99deb1e
remove dummy from other codes
motemotech Dec 15, 2024
d395856
Merge pull request #261 from openpassport-org/feat/rsa-on-circom-dl
remicolin Dec 15, 2024
e8f5e5c
import comparators and bitify from circomlib
remicolin Dec 15, 2024
a7f789c
uncomment smt check
remicolin Dec 15, 2024
222084a
import mux1.circom from circomlib
remicolin Dec 15, 2024
655882f
fix ofac tests and move ofac to utils/passport/ofac repo
remicolin Dec 15, 2024
bd701f9
refactored circomlib repo
remicolin Dec 15, 2024
e986758
Remove unused FormatECDSAInputs template from circom utils
remicolin Dec 15, 2024
32876e8
add sha1
seshanthS Dec 15, 2024
9d5fd14
Merge branch 'feat/circom-dl' of github.com:openpassport-org/openpass…
seshanthS Dec 15, 2024
1d60790
add ecdsa.circom
remicolin Dec 15, 2024
9fede8d
remove err.log
remicolin Dec 15, 2024
cfeb7c3
add err.log to .gitignore
remicolin Dec 15, 2024
78b1b75
refactor disclose circuits
remicolin Dec 15, 2024
b2cded4
fix vc_and_disclose.circom
remicolin Dec 15, 2024
772cf00
Merge branch 'feat/circom-dl' of github.com:openpassport-org/openpass…
seshanthS Dec 15, 2024
f06d6bb
sha1: fix import
seshanthS Dec 15, 2024
08e6f68
add sha256
seshanthS Dec 15, 2024
74e1ac3
add sha256Bytes.circom
seshanthS Dec 15, 2024
7edb511
add splitSignalsToWords
remicolin Dec 15, 2024
75c5cd8
remove circuits/utils/other repo
remicolin Dec 15, 2024
382578d
move sha256 to sha256_temp
remicolin Dec 15, 2024
86686bc
add rsapss-sha256-65537
seshanthS Dec 15, 2024
f8fed74
add rsapss-sha256-65537-3072
seshanthS Dec 15, 2024
2257e00
add rsapsss-sha256-3-4096
seshanthS Dec 15, 2024
eb0f909
add rsapss-sha256-3-3072
seshanthS Dec 15, 2024
eb204d2
uncomment test
seshanthS Dec 15, 2024
5798121
move shaBytesDynamic to circomlib repo
remicolin Dec 15, 2024
7cdd858
Merge pull request #262 from openpassport-org/feat/circomdl-rsapss
remicolin Dec 15, 2024
103f5fd
Merge branch 'feat/circom-dl' of https://github.com/zk-passport/openp…
remicolin Dec 15, 2024
1458335
move rsapss to circomlib/signature
remicolin Dec 15, 2024
258134e
uncomment rsapss tests
remicolin Dec 15, 2024
f86e709
clean openpassportVerifier
remicolin Dec 15, 2024
ddd89e4
use n,k=64 for dsc, use new parsing library to build csca merkle tree
remicolin Dec 15, 2024
b6b71ab
fix prove circuits
motemotech Dec 15, 2024
ea48b51
Merge remote-tracking branch 'origin/feat/circom-dl' into feat/update…
motemotech Dec 15, 2024
97155f6
fix rsa test
motemotech Dec 15, 2024
c8504f7
fix dir structure
motemotech Dec 15, 2024
03b312a
update contracts test code
motemotech Dec 16, 2024
0e00117
Merge pull request #263 from openpassport-org/feat/update-for-new-rsa
remicolin Dec 16, 2024
df70f7a
comment tests
remicolin Dec 16, 2024
bb25ddb
feat: working secp256r1 verifier
Nesopie Dec 16, 2024
a4b00d8
Merge branch 'feat/circom-dl' into feat/ecdsa
Nesopie Dec 16, 2024
57d094d
chore: change n and k params for ecdsa
Nesopie Dec 16, 2024
7de5a3a
chore: remove describe.only from prove test
Nesopie Dec 16, 2024
e672a32
Merge pull request #265 from openpassport-org/feat/ecdsa
remicolin Dec 16, 2024
b58d2f7
fix n,k for ecdsa circuits
remicolin Dec 16, 2024
065374a
uncomment tests, clean code and remove dummy from circuit inputs
remicolin Dec 16, 2024
f6ce4bc
remove dummy from dsc circuit inputs and remove uncessary logs
remicolin Dec 16, 2024
0fa1761
clean openpassport_dsc.circom
remicolin Dec 16, 2024
79d99a6
clean imports
remicolin Dec 16, 2024
f7be5e9
yarn format
remicolin Dec 16, 2024
f816696
add openpassport register contract
motemotech Dec 17, 2024
29c90af
Merge branch 'test/contracts' into fix/register-contract
motemotech Dec 17, 2024
be67f50
add test and merge test/contracts
motemotech Dec 17, 2024
039f122
add test cases
motemotech Dec 17, 2024
f59e94e
Merge pull request #268 from openpassport-org/fix/register-contract
remicolin Dec 17, 2024
6ef481e
delete RegisterAndDisclose.ts
remicolin Dec 17, 2024
f5fb877
update readme
motemotech Dec 17, 2024
0905954
delete old test code
motemotech Dec 17, 2024
1b09989
update readme
motemotech Dec 17, 2024
71e1b4e
Merge pull request #269 from openpassport-org/update/contract-readme
remicolin Dec 17, 2024
aaa4fa1
update download download circuits from aws circuit
remicolin Dec 17, 2024
87cad24
Merge branch 'openpassportv2' of https://github.com/zk-passport/openp…
remicolin Dec 17, 2024
b87d793
update circuits/readme.md
remicolin Dec 17, 2024
3c74ad1
fix genMockPassportData call
remicolin Dec 17, 2024
41a0eab
fix genMockPassportData call
remicolin Dec 17, 2024
b39699c
clean logs
remicolin Dec 17, 2024
7823133
fix build_prove_circuits.sh
remicolin Dec 17, 2024
57783d6
fix build_disclose_circuit.sh
remicolin Dec 17, 2024
15f7229
fix build_dsc_circuits script
remicolin Dec 17, 2024
307b468
Merge pull request #266 from openpassport-org/openpassportv2
remicolin Dec 18, 2024
d2cf031
add get_description_tree.sh, rename bitGates
remicolin Dec 18, 2024
ea6163d
update ci/cd pipeline
remicolin Dec 18, 2024
84478e8
add removeDummy.py
remicolin Dec 18, 2024
f79a14a
remove dummy inputs
remicolin Dec 18, 2024
89ad7a5
update imports in proveCountryIsNotInList.circom
remicolin Dec 18, 2024
d5d51f5
Merge branch 'openpassportv2' of https://github.com/zk-passport/openp…
remicolin Dec 18, 2024
c417fee
Merge pull request #270 from openpassport-org/feat/ci-cd
remicolin Dec 18, 2024
4f8fa69
Merge branch 'dev' of https://github.com/zk-passport/openpassport int…
remicolin Dec 18, 2024
7ae00cb
yarn format
remicolin Dec 18, 2024
67eae7f
Merge branch 'openpassportv2' of https://github.com/zk-passport/openp…
remicolin Dec 18, 2024
de340bb
update get_description_tree.sh
remicolin Dec 18, 2024
dca98f8
Merge pull request #273 from openpassport-org/feat/get-description-tree
remicolin Dec 18, 2024
e4dd6e7
Merge pull request #272 from openpassport-org/feat/remove-dummy-inputs
remicolin Dec 18, 2024
831a18a
Merge pull request #274 from openpassport-org/openpassportv2
remicolin Dec 18, 2024
4ac739f
rename get_description_tree.sh to print_circom_tree.sh
remicolin Dec 18, 2024
8de8ff1
Move @types deps to dev deps
thomas-senechal Dec 23, 2024
934ceb1
Fix RNZipArchive unsupported -G option error
thomas-senechal Dec 23, 2024
95e9a73
Add watchman to requirements
thomas-senechal Dec 23, 2024
c5045f2
Merge pull request #275 from thomas-senechal/main
remicolin Dec 26, 2024
459311d
use zkemail for short rsa and circom-dl for long rsa
motemotech Dec 27, 2024
114ce74
delete unused val
motemotech Dec 27, 2024
ebb2e53
return dummy
motemotech Dec 27, 2024
d358050
delete FpPow3Mod in 65537
motemotech Dec 27, 2024
b35b853
lint
motemotech Dec 27, 2024
06feecb
Merge branch 'dev' into fix/zkemail-rsa
motemotech Dec 27, 2024
d3f7cb4
merge zkemail branch
motemotech Dec 27, 2024
af73e35
merge zkemail
motemotech Dec 27, 2024
ea6c8d4
pass tests
motemotech Dec 27, 2024
62528b1
delete unused file
motemotech Dec 27, 2024
22bc01e
Merge pull request #277 from openpassport-org/fix/zkemail-rsa
remicolin Dec 27, 2024
9a0330a
add passportMetaData feature
remicolin Dec 28, 2024
89b533d
split parseCertificateSimple.ts
remicolin Dec 28, 2024
0918928
move imports to @zk-email and circomlib
remicolin Dec 28, 2024
ca98342
yarn format
remicolin Dec 28, 2024
ce6c61e
Merge pull request #280 from openpassport-org/feat/move-imports
remicolin Dec 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
branches:
- dev
- main
- openpassportv2
paths:
- 'circuits/**'
- 'common/**'
pull_request:
branches:
- dev
- main
- openpassportv2
paths:
- 'circuits/**'
- 'common/**'
Expand Down Expand Up @@ -59,6 +61,8 @@ jobs:

- name: Run Tests (Circuits)
working-directory: ./circuits
env:
FULL_TEST_SUITE: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/openpassportv2' }}
run: yarn test

- name: Run Tests (Common)
Expand Down
1 change: 1 addition & 0 deletions app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| nodejs | > v18 | [Install nodejs](https://nodejs.org/) |
| circom | Latest | [Install circom](https://docs.circom.io/) |
| snarkjs | Latest | [Install snarkjs](https://github.com/iden3/snarkjs) |
| watchman | Latest | [Install watchman](https://facebook.github.io/watchman/) |


### Android
Expand Down
68 changes: 37 additions & 31 deletions app/ios/OpenPassport.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
1686F0E02C500FBD00841CDE /* QRScannerBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = 1686F0DF2C500FBD00841CDE /* QRScannerBridge.m */; };
16E6646E2B8D292500FDD6A0 /* QKMRZScannerViewRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16E6646D2B8D292500FDD6A0 /* QKMRZScannerViewRepresentable.swift */; };
16E884A52C5BD764003B7125 /* passport.json in Resources */ = {isa = PBXBuildFile; fileRef = 16E884A42C5BD764003B7125 /* passport.json */; };
205310F3BECB4ECF3B41887C /* Pods_OpenPassport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A19556C626C22D40B7D18E23 /* Pods_OpenPassport.framework */; };
1B904271B8E1DB8434EF0613 /* Pods_OpenPassport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3435ED6D988B5E2DE0DE8101 /* Pods_OpenPassport.framework */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
905B70052A72767900AFA232 /* PassportReader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 905B70042A72767900AFA232 /* PassportReader.swift */; };
905B70072A72774000AFA232 /* PassportReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 905B70062A72774000AFA232 /* PassportReader.m */; };
Expand Down Expand Up @@ -112,14 +112,14 @@
169349842CC694DA00166F21 /* OpenPassportDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = OpenPassportDebug.entitlements; path = OpenPassport/OpenPassportDebug.entitlements; sourceTree = "<group>"; };
16E6646D2B8D292500FDD6A0 /* QKMRZScannerViewRepresentable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QKMRZScannerViewRepresentable.swift; sourceTree = "<group>"; };
16E884A42C5BD764003B7125 /* passport.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = passport.json; sourceTree = "<group>"; };
7C737C07B2C3788F9AB02DE4 /* Pods-OpenPassport.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenPassport.release.xcconfig"; path = "Target Support Files/Pods-OpenPassport/Pods-OpenPassport.release.xcconfig"; sourceTree = "<group>"; };
3435ED6D988B5E2DE0DE8101 /* Pods_OpenPassport.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OpenPassport.framework; sourceTree = BUILT_PRODUCTS_DIR; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = OpenPassport/LaunchScreen.storyboard; sourceTree = "<group>"; };
905B70032A72767800AFA232 /* OpenPassport-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "OpenPassport-Bridging-Header.h"; sourceTree = "<group>"; };
905B70042A72767900AFA232 /* PassportReader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PassportReader.swift; sourceTree = "<group>"; };
905B70062A72774000AFA232 /* PassportReader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PassportReader.m; sourceTree = "<group>"; };
905B70082A729CD400AFA232 /* OpenPassport.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = OpenPassport.entitlements; path = OpenPassport/OpenPassport.entitlements; sourceTree = "<group>"; };
A19556C626C22D40B7D18E23 /* Pods_OpenPassport.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_OpenPassport.framework; sourceTree = BUILT_PRODUCTS_DIR; };
C9DDA5F7441C6B4DEC17FCC9 /* Pods-OpenPassport.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenPassport.debug.xcconfig"; path = "Target Support Files/Pods-OpenPassport/Pods-OpenPassport.debug.xcconfig"; sourceTree = "<group>"; };
A239B1BBD7EF208EB51EF7DE /* Pods-OpenPassport.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenPassport.release.xcconfig"; path = "Target Support Files/Pods-OpenPassport/Pods-OpenPassport.release.xcconfig"; sourceTree = "<group>"; };
BB9316819FB038104D42933E /* Pods-OpenPassport.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OpenPassport.debug.xcconfig"; path = "Target Support Files/Pods-OpenPassport/Pods-OpenPassport.debug.xcconfig"; sourceTree = "<group>"; };
E56E082698598B41447667BB /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = OpenPassport/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */
Expand All @@ -140,7 +140,7 @@
05D985F62BB331AB00F58EEA /* libfr.a in Frameworks */,
167D934A2C91D2EA00530E6B /* libwitnesscalc_prove_rsa_65537_sha256.a in Frameworks */,
167D93462C91B1E100530E6B /* libwitnesscalc_register_rsa_65537_sha1.a in Frameworks */,
205310F3BECB4ECF3B41887C /* Pods_OpenPassport.framework in Frameworks */,
1B904271B8E1DB8434EF0613 /* Pods_OpenPassport.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -227,7 +227,7 @@
0569F35E2BBC98C9006670BD /* libfq.a */,
0569F35A2BBC900D006670BD /* librapidsnark.a */,
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
A19556C626C22D40B7D18E23 /* Pods_OpenPassport.framework */,
3435ED6D988B5E2DE0DE8101 /* Pods_OpenPassport.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -274,8 +274,8 @@
BBD78D7AC51CEA395F1C20DB /* Pods */ = {
isa = PBXGroup;
children = (
C9DDA5F7441C6B4DEC17FCC9 /* Pods-OpenPassport.debug.xcconfig */,
7C737C07B2C3788F9AB02DE4 /* Pods-OpenPassport.release.xcconfig */,
BB9316819FB038104D42933E /* Pods-OpenPassport.debug.xcconfig */,
A239B1BBD7EF208EB51EF7DE /* Pods-OpenPassport.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
Expand All @@ -287,15 +287,15 @@
isa = PBXNativeTarget;
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "OpenPassport" */;
buildPhases = (
17F3EE4BABFEFEDC3C2AD3FC /* [CP] Check Pods Manifest.lock */,
62212FE980074600640A3F2F /* [CP] Check Pods Manifest.lock */,
FD10A7F022414F080027D42C /* Start Packager */,
13B07F871A680F5B00A75B9A /* Sources */,
13B07F8C1A680F5B00A75B9A /* Frameworks */,
13B07F8E1A680F5B00A75B9A /* Resources */,
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
054340D12C71B2980014B445 /* Embed App Clips */,
A032F3F676B35028E7879043 /* [CP] Embed Pods Frameworks */,
C35A2C941C33076C64ACA128 /* [CP] Copy Pods Resources */,
19B6B230BF58128B7603B834 /* [CP] Embed Pods Frameworks */,
CCF107224BF9CF7E8A4F57B7 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -369,46 +369,46 @@
shellPath = /bin/sh;
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
};
17F3EE4BABFEFEDC3C2AD3FC /* [CP] Check Pods Manifest.lock */ = {
19B6B230BF58128B7603B834 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-OpenPassport/Pods-OpenPassport-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-OpenPassport-checkManifestLockResult.txt",
"${PODS_ROOT}/Target Support Files/Pods-OpenPassport/Pods-OpenPassport-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-OpenPassport/Pods-OpenPassport-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
A032F3F676B35028E7879043 /* [CP] Embed Pods Frameworks */ = {
62212FE980074600640A3F2F /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-OpenPassport/Pods-OpenPassport-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-OpenPassport/Pods-OpenPassport-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-OpenPassport-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-OpenPassport/Pods-OpenPassport-frameworks.sh\"\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
C35A2C941C33076C64ACA128 /* [CP] Copy Pods Resources */ = {
CCF107224BF9CF7E8A4F57B7 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -492,7 +492,7 @@
/* Begin XCBuildConfiguration section */
13B07F941A680F5B00A75B9A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C9DDA5F7441C6B4DEC17FCC9 /* Pods-OpenPassport.debug.xcconfig */;
baseConfigurationReference = BB9316819FB038104D42933E /* Pods-OpenPassport.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
Expand Down Expand Up @@ -633,7 +633,7 @@
};
13B07F951A680F5B00A75B9A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7C737C07B2C3788F9AB02DE4 /* Pods-OpenPassport.release.xcconfig */;
baseConfigurationReference = A239B1BBD7EF208EB51EF7DE /* Pods-OpenPassport.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
Expand Down Expand Up @@ -857,7 +857,10 @@
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
OTHER_LDFLAGS = "$(inherited) ";
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
Expand Down Expand Up @@ -947,7 +950,10 @@
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
OTHER_LDFLAGS = "$(inherited) ";
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = false;
Expand Down
9 changes: 8 additions & 1 deletion app/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ target 'OpenPassport' do
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
if target.name == 'RNZipArchive'
target.source_build_phase.files.each do |file|
if file.settings && file.settings['COMPILER_FLAGS']
file.settings['COMPILER_FLAGS'] = ''
end
end
end
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
end
end

Expand Down
6 changes: 3 additions & 3 deletions app/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1813,8 +1813,8 @@ SPEC CHECKSUMS:
SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef
SwiftQRScanner: e85a25f9b843e9231dab89a96e441472fe54a724
SwiftyTesseract: 1f3d96668ae92dc2208d9842c8a59bea9fad2cbb
Yoga: b05994d1933f507b0a28ceaa4fdb968dc18da178
Yoga: a9ef4f5c2cd79ad812110525ef61048be6a582a4

PODFILE CHECKSUM: fff5f0fc97e17fb53d7fd9198944714a37fed0a6
PODFILE CHECKSUM: cc6778e0dcd4c510b705f4dc458411547dc1d00c

COCOAPODS: 1.15.2
COCOAPODS: 1.16.2
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
"@tamagui/lucide-icons": "1.110.0",
"@tamagui/toast": "1.110.0",
"@tamagui/types": "1.110.0",
"@types/msgpack-lite": "^0.1.11",
"@types/pako": "^2.0.3",
"axios": "^1.6.3",
"buffer": "^6.0.3",
"burnt": "^0.12.2",
Expand Down Expand Up @@ -66,7 +64,9 @@
"@tsconfig/react-native": "^3.0.0",
"@types/crypto-js": "^4.1.1",
"@types/express": "^4.17.17",
"@types/msgpack-lite": "^0.1.11",
"@types/node-forge": "^1.3.3",
"@types/pako": "^2.0.3",
"@types/react": "^18.2.6",
"@types/react-native-dotenv": "^0.2.0",
"@types/react-test-renderer": "^18.0.0",
Expand Down
27 changes: 22 additions & 5 deletions app/src/screens/MainScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import { NativeEventEmitter, NativeModules, Linking, Modal, Platform, Pressable, TouchableOpacity, ScrollView } from 'react-native';
import { YStack, XStack, Text, Button, Tabs, Sheet, Label, Fieldset, Input, Switch, H2, Image, useWindowDimensions, H4, H3, View, Separator } from 'tamagui'
import { HelpCircle, IterationCw, VenetianMask, Cog, CheckCircle2, ChevronLeft, Share, Eraser, ArrowRight, UserPlus, CalendarSearch, X, ShieldCheck } from '@tamagui/lucide-icons';
import { HelpCircle, IterationCw, VenetianMask, Cog, CheckCircle2, ChevronLeft, Share, Eraser, ArrowRight, UserPlus, CalendarSearch, X, ShieldCheck, Info } from '@tamagui/lucide-icons';
import Telegram from '../images/telegram.png'
import Github from '../images/github.png'
import Internet from "../images/internet.png"
Expand Down Expand Up @@ -39,6 +39,7 @@ import OPENPASSPORT_LOGO from '../images/openpassport.png'
import { countryCodes } from '../../../common/src/constants/constants';
import getCountryISO2 from "country-iso-3-to-2";
import { flag } from 'country-emoji';
import UserInfo from './UserInfo';

const emitter = (Platform.OS === 'android')
? new NativeEventEmitter(NativeModules.nativeModule)
Expand Down Expand Up @@ -203,6 +204,9 @@ const MainScreen: React.FC = () => {
else if (selectedTab === "valid") {
setSelectedTab("app");
}
else if (selectedTab === "userInfo") {
setSelectedTab("app");
}
}

useEffect(() => {
Expand Down Expand Up @@ -289,7 +293,7 @@ const MainScreen: React.FC = () => {
</Sheet>


<Sheet open={HelpIsOpen} onOpenChange={setHelpIsOpen} dismissOnSnapToBottom modal animation="medium" snapPoints={[76]}>
<Sheet open={HelpIsOpen} onOpenChange={setHelpIsOpen} dismissOnSnapToBottom modal animation="medium" snapPoints={[82]}>
<Sheet.Overlay />
<Sheet.Frame bg={bgWhite} borderTopLeftRadius="$9" borderTopRightRadius="$9" pt="$2" pb="$3">
<YStack p="$4" f={1} gap="$3">
Expand Down Expand Up @@ -330,9 +334,19 @@ const MainScreen: React.FC = () => {
<Dialog.Button onPress={() => handleContribute()} label="Contribute" />
</Dialog.Container>
<Separator mt="$5" borderColor={separatorColor} w="80%" alignSelf='center' />
<Fieldset mt="$4" gap="$4" horizontal alignSelf="center">
<Label color={textBlack} width={200} justifyContent="flex-end" htmlFor="restart">
View passport infos
</Label>
<Button bg="white" jc="center" borderColor={borderColor} borderWidth={1.2} size="$3.5" ml="$2" onPress={() => {
setHelpIsOpen(false);
setSelectedTab("userInfo");
}}>
<Info color={textBlack} />
</Button>
</Fieldset>


<Fieldset horizontal mt="$3" alignSelf='center'>
<Fieldset horizontal mt="$2" alignSelf='center'>
<Label color={textBlack} width={225} justifyContent="flex-end" htmlFor="restart" >
Display other options
</Label>
Expand All @@ -344,7 +358,7 @@ const MainScreen: React.FC = () => {


{displayOtherOptions && (
<YStack gap="$2" mt="$3" ai="center">
<YStack gap="$2" mt="$2" ai="center">
<Fieldset gap="$4" horizontal>
<Label color={textBlack} width={200} justifyContent="flex-end" htmlFor="restart">
Rescan passport
Expand Down Expand Up @@ -801,6 +815,9 @@ const MainScreen: React.FC = () => {
<Tabs.Content value="wrong" f={1}>
<WrongProofScreen />
</Tabs.Content>
<Tabs.Content value="userInfo" f={1}>
<UserInfo />
</Tabs.Content>
</Tabs>
<XStack mt="$2.5" justifyContent='center' alignItems='center' gap="$1.5">
<ShieldCheck color={textBlack} size={12} />
Expand Down
Loading
Loading