From 902464857160c27a206879f2951a74e792ae9ddc Mon Sep 17 00:00:00 2001 From: Meyanis95 Date: Fri, 3 May 2024 16:28:56 +0900 Subject: [PATCH 1/2] feat: cleaned lib --- src/ProveModal/ProveScreen.tsx | 12 ++++-------- src/groth16Prover.ts | 14 +------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/src/ProveModal/ProveScreen.tsx b/src/ProveModal/ProveScreen.tsx index 171d711..9fa9047 100644 --- a/src/ProveModal/ProveScreen.tsx +++ b/src/ProveModal/ProveScreen.tsx @@ -3,13 +3,7 @@ import React, { useContext, useState } from 'react'; import { groth16ProveWithZKeyFilePath, groth16Verify } from '../groth16Prover'; import { getVerificationKey } from '../util'; import RNFS from 'react-native-fs'; -import { - // ActivityIndicator, - FlatList, - Text, - TouchableOpacity, - View, -} from 'react-native'; +import { FlatList, Text, TouchableOpacity, View } from 'react-native'; import { modalStyles } from './modalStyles'; import { fieldsLabel, @@ -91,7 +85,9 @@ export const ProveScreen = ({ ) : ( <> - Your document is verified. + + Your document is not verified. + { - console.log('Proof received: ', proof.groth16Proof); - console.log('Public Inputs received: ', [ - proof.pubkeyHash, - proof.nullifier, - proof.timestamp, - proof.ageAbove18, - proof.gender, - proof.state, - proof.pincode, - proof.nullifierSeed, - proof.signalHash, - ]); - const public_signals = JSON.stringify([ proof.pubkeyHash, proof.nullifier, From b759539a7f4f3967120ec41d51927cf3e66672a7 Mon Sep 17 00:00:00 2001 From: Meyanis95 Date: Mon, 7 Oct 2024 11:58:43 -0400 Subject: [PATCH 2/2] feat: added binary files --- .gitattributes | 3 ++- .gitignore | 1 - .../Rapidsnark.xcframework/ios-arm64/librapidsnarkmerged.a | 3 +++ .../ios-arm64_arm64e_x86_64-simulator/librapidsnarkmerged.a | 3 +++ .../ios-arm64-simulator/libwitnesscalc_aadhaar_verifier.a | 3 +++ .../ios-arm64/libwitnesscalc_aadhaar_verifier.a | 3 +++ 6 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 ios/Frameworks/Rapidsnark.xcframework/ios-arm64/librapidsnarkmerged.a create mode 100644 ios/Frameworks/Rapidsnark.xcframework/ios-arm64_arm64e_x86_64-simulator/librapidsnarkmerged.a create mode 100644 ios/Frameworks/libwitnesscalc_aadhaar_verifier.xcframework/ios-arm64-simulator/libwitnesscalc_aadhaar_verifier.a create mode 100644 ios/Frameworks/libwitnesscalc_aadhaar_verifier.xcframework/ios-arm64/libwitnesscalc_aadhaar_verifier.a diff --git a/.gitattributes b/.gitattributes index 030ef14..d085202 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ *.pbxproj -text # specific for windows script files -*.bat text eol=crlf \ No newline at end of file +*.bat text eol=crlf +*.a filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore index af6f9f0..d3b53df 100644 --- a/.gitignore +++ b/.gitignore @@ -76,4 +76,3 @@ android/keystores/debug.keystore # generated by bob lib/ -*.a diff --git a/ios/Frameworks/Rapidsnark.xcframework/ios-arm64/librapidsnarkmerged.a b/ios/Frameworks/Rapidsnark.xcframework/ios-arm64/librapidsnarkmerged.a new file mode 100644 index 0000000..d6b31c2 --- /dev/null +++ b/ios/Frameworks/Rapidsnark.xcframework/ios-arm64/librapidsnarkmerged.a @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f322af31632146d71ae4c51dd2713a0ce7e92cdeb682d4ae659be010b532d9e +size 8959696 diff --git a/ios/Frameworks/Rapidsnark.xcframework/ios-arm64_arm64e_x86_64-simulator/librapidsnarkmerged.a b/ios/Frameworks/Rapidsnark.xcframework/ios-arm64_arm64e_x86_64-simulator/librapidsnarkmerged.a new file mode 100644 index 0000000..cbd37ba --- /dev/null +++ b/ios/Frameworks/Rapidsnark.xcframework/ios-arm64_arm64e_x86_64-simulator/librapidsnarkmerged.a @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:881ed0a41d090e7355f6cd644d9cd6cefbb527a2636fba111fe149571d6c129a +size 9339800 diff --git a/ios/Frameworks/libwitnesscalc_aadhaar_verifier.xcframework/ios-arm64-simulator/libwitnesscalc_aadhaar_verifier.a b/ios/Frameworks/libwitnesscalc_aadhaar_verifier.xcframework/ios-arm64-simulator/libwitnesscalc_aadhaar_verifier.a new file mode 100644 index 0000000..d8bf378 --- /dev/null +++ b/ios/Frameworks/libwitnesscalc_aadhaar_verifier.xcframework/ios-arm64-simulator/libwitnesscalc_aadhaar_verifier.a @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc04e29053cf56eb1b39057d1237bb933c559b46e4abf4da0c17e54d3054d38f +size 40136360 diff --git a/ios/Frameworks/libwitnesscalc_aadhaar_verifier.xcframework/ios-arm64/libwitnesscalc_aadhaar_verifier.a b/ios/Frameworks/libwitnesscalc_aadhaar_verifier.xcframework/ios-arm64/libwitnesscalc_aadhaar_verifier.a new file mode 100644 index 0000000..80c1990 --- /dev/null +++ b/ios/Frameworks/libwitnesscalc_aadhaar_verifier.xcframework/ios-arm64/libwitnesscalc_aadhaar_verifier.a @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:188de36b25e2d2d859c02fbfdc5ace09332a68f785ffc6923bbf217b7875ad91 +size 40143120