-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ecdsa to mobile proving (attempt)
- Loading branch information
Showing
36 changed files
with
5,444,332 additions
and
154 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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#ifndef WITNESSCALC_prove_ecdsa_secp256r1_sha1_H | ||
#define WITNESSCALC_prove_ecdsa_secp256r1_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_ecdsa_secp256r1_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_ecdsa_secp256r1_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_ecdsa_secp256r1_sha256_H | ||
#define WITNESSCALC_prove_ecdsa_secp256r1_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_ecdsa_secp256r1_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_ecdsa_secp256r1_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
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
Oops, something went wrong.