Skip to content

Commit

Permalink
Merge pull request #9 from anon-aadhaar/feat/git_lfs
Browse files Browse the repository at this point in the history
feat: git lfs
  • Loading branch information
Meyanis95 authored Oct 7, 2024
2 parents 8f4560d + b759539 commit 78e9a6c
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
*.bat text eol=crlf
*.a filter=lfs diff=lfs merge=lfs -text
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ android/keystores/debug.keystore

# generated by bob
lib/
*.a
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
12 changes: 4 additions & 8 deletions src/ProveModal/ProveScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -91,7 +85,9 @@ export const ProveScreen = ({
</>
) : (
<>
<Text style={modalStyles.headerQr}>Your document is verified.</Text>
<Text style={modalStyles.headerQr}>
Your document is not verified.
</Text>

<View
style={{
Expand Down
14 changes: 1 addition & 13 deletions src/groth16Prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const Rapidsnark = NativeModules.Rapidsnark
);

export const DEFAULT_PROOF_BUFFER_SIZE = 1024;
// export const DEFAULT_ZKEY_BUFFER_SIZE = 1024 * 1024 * 100;
export const DEFAULT_ERROR_BUFFER_SIZE = 256;

export async function groth16ProveWithZKeyFilePath(
Expand Down Expand Up @@ -133,19 +134,6 @@ export function groth16Verify(
errorBufferSize: DEFAULT_ERROR_BUFFER_SIZE,
}
): Promise<boolean> {
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,
Expand Down

0 comments on commit 78e9a6c

Please sign in to comment.