Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Third circuit support batch #108

Merged
merged 10 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Frameworks/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
#include "witnesscalc_registerIdentity_12_256_3_3_336_232_NA.h"
#include "witnesscalc_registerIdentity_1_256_3_4_336_232_1_1480_5_296.h"
#include "witnesscalc_registerIdentity_1_256_3_4_600_248_1_1496_3_256.h"
#include "witnesscalc_registerIdentity_1_160_3_3_576_200_NA.h"
#include "witnesscalc_registerIdentity_21_256_3_3_336_232_NA.h"
#include "witnesscalc_registerIdentity_24_256_3_4_336_232_NA.h"
#include "witnesscalc_registerIdentity_1_256_3_3_576_248_NA.h"
#include "witnesscalc_registerIdentity_20_256_3_3_336_224_NA.h"

#endif /* bridge_h */
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
39 changes: 39 additions & 0 deletions Frameworks/witnesscalc_registerIdentity_1_160_3_3_576_200_NA.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#ifndef WITNESSCALC_REGISTERIDENTITY_1_160_3_3_576_200_NA_H
#define WITNESSCALC_REGISTERIDENTITY_1_160_3_3_576_200_NA_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_registerIdentity_1_160_3_3_576_200_NA(
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_REGISTERIDENTITY_1_160_3_3_576_200_NA_H
39 changes: 39 additions & 0 deletions Frameworks/witnesscalc_registerIdentity_1_256_3_3_576_248_NA.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#ifndef WITNESSCALC_REGISTERIDENTITY_1_256_3_3_576_248_NA_H
#define WITNESSCALC_REGISTERIDENTITY_1_256_3_3_576_248_NA_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_registerIdentity_1_256_3_3_576_248_NA(
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_REGISTERIDENTITY_1_256_3_3_576_248_NA_H
39 changes: 39 additions & 0 deletions Frameworks/witnesscalc_registerIdentity_20_256_3_3_336_224_NA.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#ifndef WITNESSCALC_REGISTERIDENTITY_20_256_3_3_336_224_NA_H
#define WITNESSCALC_REGISTERIDENTITY_20_256_3_3_336_224_NA_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_registerIdentity_20_256_3_3_336_224_NA(
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_REGISTERIDENTITY_20_256_3_3_336_224_NA_H
39 changes: 39 additions & 0 deletions Frameworks/witnesscalc_registerIdentity_21_256_3_3_336_232_NA.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#ifndef WITNESSCALC_REGISTERIDENTITY_21_256_3_3_336_232_NA_H
#define WITNESSCALC_REGISTERIDENTITY_21_256_3_3_336_232_NA_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_registerIdentity_21_256_3_3_336_232_NA(
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_REGISTERIDENTITY_21_256_3_3_336_232_NA_H
39 changes: 39 additions & 0 deletions Frameworks/witnesscalc_registerIdentity_24_256_3_4_336_232_NA.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#ifndef WITNESSCALC_REGISTERIDENTITY_24_256_3_4_336_232_NA_H
#define WITNESSCALC_REGISTERIDENTITY_24_256_3_4_336_232_NA_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_registerIdentity_24_256_3_4_336_232_NA(
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_REGISTERIDENTITY_24_256_3_4_336_232_NA_H
10 changes: 10 additions & 0 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@
<string>${CIRCUIT_DATA_URL_9}</string>
<key>registerIdentity_1_256_3_4_600_248_1_1496_3_256</key>
<string>${CIRCUIT_DATA_URL_10}</string>
<key>registerIdentity_1_160_3_3_576_200_NA</key>
<string>${CIRCUIT_DATA_URL_11}</string>
<key>registerIdentity_21_256_3_3_336_232_NA</key>
<string>${CIRCUIT_DATA_URL_12}</string>
<key>registerIdentity_24_256_3_4_336_232_NA</key>
<string>${CIRCUIT_DATA_URL_13}</string>
<key>registerIdentity_1_256_3_3_576_248_NA</key>
<string>${CIRCUIT_DATA_URL_14}</string>
<key>registerIdentity_20_256_3_3_336_224_NA</key>
<string>${CIRCUIT_DATA_URL_15}</string>
</dict>
<key>COSMOS_RPC_URL</key>
<string>${COSMOS_RPC_URL}</string>
Expand Down
Loading