@@ -103,6 +103,9 @@ typedef void (*UniffiForeignFutureCompleteVoid)(
103103RustBuffer uniffi_mopro_example_app_fn_func_generate_circom_proof (
104104 RustBuffer zkey_path, RustBuffer circuit_inputs, RustBuffer proof_lib,
105105 RustCallStatus *uniffi_out_err);
106+ RustBuffer uniffi_mopro_example_app_fn_func_generate_gnark_proof (
107+ RustBuffer _r1cs_path, RustBuffer _pk_path, RustBuffer _witness_json,
108+ RustCallStatus *uniffi_out_err);
106109RustBuffer uniffi_mopro_example_app_fn_func_generate_halo2_proof (
107110 RustBuffer _srs_path, RustBuffer _pk_path, RustBuffer _circuit_inputs,
108111 RustCallStatus *uniffi_out_err);
@@ -118,6 +121,9 @@ RustBuffer uniffi_mopro_example_app_fn_func_mopro_hello_world(
118121int8_t uniffi_mopro_example_app_fn_func_verify_circom_proof (
119122 RustBuffer zkey_path, RustBuffer proof_result, RustBuffer proof_lib,
120123 RustCallStatus *uniffi_out_err);
124+ int8_t uniffi_mopro_example_app_fn_func_verify_gnark_proof (
125+ RustBuffer _r1cs_path, RustBuffer _vk_path, RustBuffer _proof_result,
126+ RustCallStatus *uniffi_out_err);
121127int8_t uniffi_mopro_example_app_fn_func_verify_halo2_proof (
122128 RustBuffer _srs_path, RustBuffer _vk_path, RustBuffer _proof,
123129 RustBuffer _public_input, RustCallStatus *uniffi_out_err);
@@ -253,11 +259,13 @@ void ffi_mopro_example_app_rust_future_free_void(
253259void ffi_mopro_example_app_rust_future_complete_void (
254260 /* handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
255261uint16_t uniffi_mopro_example_app_checksum_func_generate_circom_proof ();
262+ uint16_t uniffi_mopro_example_app_checksum_func_generate_gnark_proof ();
256263uint16_t uniffi_mopro_example_app_checksum_func_generate_halo2_proof ();
257264uint16_t uniffi_mopro_example_app_checksum_func_generate_noir_proof ();
258265uint16_t uniffi_mopro_example_app_checksum_func_get_noir_verification_key ();
259266uint16_t uniffi_mopro_example_app_checksum_func_mopro_hello_world ();
260267uint16_t uniffi_mopro_example_app_checksum_func_verify_circom_proof ();
268+ uint16_t uniffi_mopro_example_app_checksum_func_verify_gnark_proof ();
261269uint16_t uniffi_mopro_example_app_checksum_func_verify_halo2_proof ();
262270uint16_t uniffi_mopro_example_app_checksum_func_verify_noir_proof ();
263271uint32_t ffi_mopro_example_app_uniffi_contract_version ();
@@ -1700,6 +1708,18 @@ NativeMoproExampleApp::NativeMoproExampleApp(
17001708 ->cpp_uniffi_mopro_example_app_fn_func_generate_circom_proof (
17011709 rt, thisVal, args, count);
17021710 });
1711+ props[" ubrn_uniffi_mopro_example_app_fn_func_generate_gnark_proof" ] =
1712+ jsi::Function::createFromHostFunction (
1713+ rt,
1714+ jsi::PropNameID::forAscii (
1715+ rt, " ubrn_uniffi_mopro_example_app_fn_func_generate_gnark_proof" ),
1716+ 3 ,
1717+ [this ](jsi::Runtime &rt, const jsi::Value &thisVal,
1718+ const jsi::Value *args, size_t count) -> jsi::Value {
1719+ return this
1720+ ->cpp_uniffi_mopro_example_app_fn_func_generate_gnark_proof (
1721+ rt, thisVal, args, count);
1722+ });
17031723 props[" ubrn_uniffi_mopro_example_app_fn_func_generate_halo2_proof" ] =
17041724 jsi::Function::createFromHostFunction (
17051725 rt,
@@ -1759,6 +1779,18 @@ NativeMoproExampleApp::NativeMoproExampleApp(
17591779 ->cpp_uniffi_mopro_example_app_fn_func_verify_circom_proof (
17601780 rt, thisVal, args, count);
17611781 });
1782+ props[" ubrn_uniffi_mopro_example_app_fn_func_verify_gnark_proof" ] =
1783+ jsi::Function::createFromHostFunction (
1784+ rt,
1785+ jsi::PropNameID::forAscii (
1786+ rt, " ubrn_uniffi_mopro_example_app_fn_func_verify_gnark_proof" ),
1787+ 3 ,
1788+ [this ](jsi::Runtime &rt, const jsi::Value &thisVal,
1789+ const jsi::Value *args, size_t count) -> jsi::Value {
1790+ return this
1791+ ->cpp_uniffi_mopro_example_app_fn_func_verify_gnark_proof (
1792+ rt, thisVal, args, count);
1793+ });
17621794 props[" ubrn_uniffi_mopro_example_app_fn_func_verify_halo2_proof" ] =
17631795 jsi::Function::createFromHostFunction (
17641796 rt,
@@ -1794,6 +1826,18 @@ NativeMoproExampleApp::NativeMoproExampleApp(
17941826 ->cpp_uniffi_mopro_example_app_checksum_func_generate_circom_proof (
17951827 rt, thisVal, args, count);
17961828 });
1829+ props[" ubrn_uniffi_mopro_example_app_checksum_func_generate_gnark_proof" ] =
1830+ jsi::Function::createFromHostFunction (
1831+ rt,
1832+ jsi::PropNameID::forAscii (rt, " ubrn_uniffi_mopro_example_app_"
1833+ " checksum_func_generate_gnark_proof" ),
1834+ 0 ,
1835+ [this ](jsi::Runtime &rt, const jsi::Value &thisVal,
1836+ const jsi::Value *args, size_t count) -> jsi::Value {
1837+ return this
1838+ ->cpp_uniffi_mopro_example_app_checksum_func_generate_gnark_proof (
1839+ rt, thisVal, args, count);
1840+ });
17971841 props[" ubrn_uniffi_mopro_example_app_checksum_func_generate_halo2_proof" ] =
17981842 jsi::Function::createFromHostFunction (
17991843 rt,
@@ -1855,6 +1899,19 @@ NativeMoproExampleApp::NativeMoproExampleApp(
18551899 ->cpp_uniffi_mopro_example_app_checksum_func_verify_circom_proof (
18561900 rt, thisVal, args, count);
18571901 });
1902+ props[" ubrn_uniffi_mopro_example_app_checksum_func_verify_gnark_proof" ] =
1903+ jsi::Function::createFromHostFunction (
1904+ rt,
1905+ jsi::PropNameID::forAscii (
1906+ rt,
1907+ " ubrn_uniffi_mopro_example_app_checksum_func_verify_gnark_proof" ),
1908+ 0 ,
1909+ [this ](jsi::Runtime &rt, const jsi::Value &thisVal,
1910+ const jsi::Value *args, size_t count) -> jsi::Value {
1911+ return this
1912+ ->cpp_uniffi_mopro_example_app_checksum_func_verify_gnark_proof (
1913+ rt, thisVal, args, count);
1914+ });
18581915 props[" ubrn_uniffi_mopro_example_app_checksum_func_verify_halo2_proof" ] =
18591916 jsi::Function::createFromHostFunction (
18601917 rt,
@@ -1980,6 +2037,26 @@ jsi::Value NativeMoproExampleApp::
19802037 return uniffi::mopro_example_app::Bridging<RustBuffer>::toJs (rt, callInvoker,
19812038 value);
19822039}
2040+ jsi::Value NativeMoproExampleApp::
2041+ cpp_uniffi_mopro_example_app_fn_func_generate_gnark_proof (
2042+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2043+ size_t count) {
2044+ RustCallStatus status =
2045+ uniffi::mopro_example_app::Bridging<RustCallStatus>::rustSuccess (rt);
2046+ auto value = uniffi_mopro_example_app_fn_func_generate_gnark_proof (
2047+ uniffi::mopro_example_app::Bridging<RustBuffer>::fromJs (rt, callInvoker,
2048+ args[0 ]),
2049+ uniffi::mopro_example_app::Bridging<RustBuffer>::fromJs (rt, callInvoker,
2050+ args[1 ]),
2051+ uniffi::mopro_example_app::Bridging<RustBuffer>::fromJs (rt, callInvoker,
2052+ args[2 ]),
2053+ &status);
2054+ uniffi::mopro_example_app::Bridging<RustCallStatus>::copyIntoJs (
2055+ rt, callInvoker, status, args[count - 1 ]);
2056+
2057+ return uniffi::mopro_example_app::Bridging<RustBuffer>::toJs (rt, callInvoker,
2058+ value);
2059+ }
19832060jsi::Value NativeMoproExampleApp::
19842061 cpp_uniffi_mopro_example_app_fn_func_generate_halo2_proof (
19852062 jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -2075,6 +2152,25 @@ NativeMoproExampleApp::cpp_uniffi_mopro_example_app_fn_func_verify_circom_proof(
20752152 return uniffi_jsi::Bridging<int8_t >::toJs (rt, callInvoker, value);
20762153}
20772154jsi::Value
2155+ NativeMoproExampleApp::cpp_uniffi_mopro_example_app_fn_func_verify_gnark_proof (
2156+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2157+ size_t count) {
2158+ RustCallStatus status =
2159+ uniffi::mopro_example_app::Bridging<RustCallStatus>::rustSuccess (rt);
2160+ auto value = uniffi_mopro_example_app_fn_func_verify_gnark_proof (
2161+ uniffi::mopro_example_app::Bridging<RustBuffer>::fromJs (rt, callInvoker,
2162+ args[0 ]),
2163+ uniffi::mopro_example_app::Bridging<RustBuffer>::fromJs (rt, callInvoker,
2164+ args[1 ]),
2165+ uniffi::mopro_example_app::Bridging<RustBuffer>::fromJs (rt, callInvoker,
2166+ args[2 ]),
2167+ &status);
2168+ uniffi::mopro_example_app::Bridging<RustCallStatus>::copyIntoJs (
2169+ rt, callInvoker, status, args[count - 1 ]);
2170+
2171+ return uniffi_jsi::Bridging<int8_t >::toJs (rt, callInvoker, value);
2172+ }
2173+ jsi::Value
20782174NativeMoproExampleApp::cpp_uniffi_mopro_example_app_fn_func_verify_halo2_proof (
20792175 jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
20802176 size_t count) {
@@ -2123,6 +2219,14 @@ jsi::Value NativeMoproExampleApp::
21232219
21242220 return uniffi_jsi::Bridging<uint16_t >::toJs (rt, callInvoker, value);
21252221}
2222+ jsi::Value NativeMoproExampleApp::
2223+ cpp_uniffi_mopro_example_app_checksum_func_generate_gnark_proof (
2224+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2225+ size_t count) {
2226+ auto value = uniffi_mopro_example_app_checksum_func_generate_gnark_proof ();
2227+
2228+ return uniffi_jsi::Bridging<uint16_t >::toJs (rt, callInvoker, value);
2229+ }
21262230jsi::Value NativeMoproExampleApp::
21272231 cpp_uniffi_mopro_example_app_checksum_func_generate_halo2_proof (
21282232 jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -2164,6 +2268,14 @@ jsi::Value NativeMoproExampleApp::
21642268
21652269 return uniffi_jsi::Bridging<uint16_t >::toJs (rt, callInvoker, value);
21662270}
2271+ jsi::Value NativeMoproExampleApp::
2272+ cpp_uniffi_mopro_example_app_checksum_func_verify_gnark_proof (
2273+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
2274+ size_t count) {
2275+ auto value = uniffi_mopro_example_app_checksum_func_verify_gnark_proof ();
2276+
2277+ return uniffi_jsi::Bridging<uint16_t >::toJs (rt, callInvoker, value);
2278+ }
21672279jsi::Value NativeMoproExampleApp::
21682280 cpp_uniffi_mopro_example_app_checksum_func_verify_halo2_proof (
21692281 jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
0 commit comments