-
Notifications
You must be signed in to change notification settings - Fork 57
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 #177 from zk-passport/new-ux-refactor-circuits
refactor repo · new ux · prove circuits · new sdk
- Loading branch information
Showing
291 changed files
with
5,152,211 additions
and
7,429 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
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,7 +1,8 @@ | ||
module.exports = { | ||
arrowParens: 'avoid', | ||
bracketSameLine: true, | ||
bracketSameLine: false, | ||
bracketSpacing: false, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
}; |
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
39 changes: 39 additions & 0 deletions
39
app/android/app/src/main/cpp/include/witnesscalc_prove_rsa_65537_sha1.h
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#ifndef WITNESSCALC_prove_rsa_65537_sha1_H | ||
#define WITNESSCALC_prove_rsa_65537_sha1_H | ||
|
||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define WITNESSCALC_OK 0x0 | ||
#define WITNESSCALC_ERROR 0x1 | ||
#define WITNESSCALC_ERROR_SHORT_BUFFER 0x2 | ||
|
||
/** | ||
* | ||
* @return error code: | ||
* WITNESSCALC_OK - in case of success. | ||
* WITNESSCALC_ERROR - in case of an error. | ||
* | ||
* On success wtns_buffer is filled with witness data and | ||
* wtns_size contains the number bytes copied to wtns_buffer. | ||
* | ||
* If wtns_buffer is too small then the function returns WITNESSCALC_ERROR_SHORT_BUFFER | ||
* and the minimum size for wtns_buffer in wtns_size. | ||
* | ||
*/ | ||
|
||
int | ||
witnesscalc_prove_rsa_65537_sha1( | ||
const char *circuit_buffer, unsigned long circuit_size, | ||
const char *json_buffer, unsigned long json_size, | ||
char *wtns_buffer, unsigned long *wtns_size, | ||
char *error_msg, unsigned long error_msg_maxsize); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
|
||
#endif // WITNESSCALC_prove_rsa_65537_sha1_H |
39 changes: 39 additions & 0 deletions
39
app/android/app/src/main/cpp/include/witnesscalc_prove_rsa_65537_sha256.h
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#ifndef WITNESSCALC_prove_rsa_65537_sha256_H | ||
#define WITNESSCALC_prove_rsa_65537_sha256_H | ||
|
||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define WITNESSCALC_OK 0x0 | ||
#define WITNESSCALC_ERROR 0x1 | ||
#define WITNESSCALC_ERROR_SHORT_BUFFER 0x2 | ||
|
||
/** | ||
* | ||
* @return error code: | ||
* WITNESSCALC_OK - in case of success. | ||
* WITNESSCALC_ERROR - in case of an error. | ||
* | ||
* On success wtns_buffer is filled with witness data and | ||
* wtns_size contains the number bytes copied to wtns_buffer. | ||
* | ||
* If wtns_buffer is too small then the function returns WITNESSCALC_ERROR_SHORT_BUFFER | ||
* and the minimum size for wtns_buffer in wtns_size. | ||
* | ||
*/ | ||
|
||
int | ||
witnesscalc_prove_rsa_65537_sha256( | ||
const char *circuit_buffer, unsigned long circuit_size, | ||
const char *json_buffer, unsigned long json_size, | ||
char *wtns_buffer, unsigned long *wtns_size, | ||
char *error_msg, unsigned long error_msg_maxsize); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
|
||
#endif // WITNESSCALC_prove_rsa_65537_sha256_H |
39 changes: 39 additions & 0 deletions
39
app/android/app/src/main/cpp/include/witnesscalc_prove_rsapss_65537_sha256.h
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#ifndef WITNESSCALC_prove_rsapss_65537_sha256_H | ||
#define WITNESSCALC_prove_rsapss_65537_sha256_H | ||
|
||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define WITNESSCALC_OK 0x0 | ||
#define WITNESSCALC_ERROR 0x1 | ||
#define WITNESSCALC_ERROR_SHORT_BUFFER 0x2 | ||
|
||
/** | ||
* | ||
* @return error code: | ||
* WITNESSCALC_OK - in case of success. | ||
* WITNESSCALC_ERROR - in case of an error. | ||
* | ||
* On success wtns_buffer is filled with witness data and | ||
* wtns_size contains the number bytes copied to wtns_buffer. | ||
* | ||
* If wtns_buffer is too small then the function returns WITNESSCALC_ERROR_SHORT_BUFFER | ||
* and the minimum size for wtns_buffer in wtns_size. | ||
* | ||
*/ | ||
|
||
int | ||
witnesscalc_prove_rsapss_65537_sha256( | ||
const char *circuit_buffer, unsigned long circuit_size, | ||
const char *json_buffer, unsigned long json_size, | ||
char *wtns_buffer, unsigned long *wtns_size, | ||
char *error_msg, unsigned long error_msg_maxsize); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
|
||
#endif // WITNESSCALC_prove_rsapss_65537_sha256_H |
Binary file added
BIN
+11.2 MB
app/android/app/src/main/cpp/lib/libwitnesscalc_prove_rsa_65537_sha1.so
Binary file not shown.
Binary file added
BIN
+10.7 MB
app/android/app/src/main/cpp/lib/libwitnesscalc_prove_rsa_65537_sha256.so
Binary file not shown.
Binary file added
BIN
+10.7 MB
app/android/app/src/main/cpp/lib/libwitnesscalc_prove_rsapss_65537_sha256.so
Binary file not shown.
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
Oops, something went wrong.