-
Notifications
You must be signed in to change notification settings - Fork 11
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 #24 from 0xPolygonID/feature/linkedMultiQuery10
LinkedMultiQuery10
- Loading branch information
Showing
9 changed files
with
950,458 additions
and
6 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,15 @@ | ||
#include "witnesscalc_linkedMultiQuery10.h" | ||
#include "witnesscalc.h" | ||
|
||
int | ||
witnesscalc_linkedMultiQuery10( | ||
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) | ||
{ | ||
return CIRCUIT_NAME::witnesscalc(circuit_buffer, circuit_size, | ||
json_buffer, json_size, | ||
wtns_buffer, wtns_size, | ||
error_msg, error_msg_maxsize); | ||
} |
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_LINKEDMULTIQUERY10_H | ||
#define WITNESSCALC_LINKEDMULTIQUERY10_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_linkedMultiQuery10( | ||
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_LINKEDMULTIQUERY10_H |
Oops, something went wrong.