@baerae/zkap-zkp-react-native 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +2 -0
- package/android/libs/arm64-v8a/libzkap_uniffi_bindings.so +0 -0
- package/android/libs/armeabi-v7a/libzkap_uniffi_bindings.so +0 -0
- package/android/libs/x86_64/libzkap_uniffi_bindings.so +0 -0
- package/android/src/main/java/expo/modules/zkap/ZkapSdkModule.kt +127 -38
- package/android/src/main/java/uniffi/zkap_uniffi_bindings/zkap_uniffi_bindings.kt +1566 -0
- package/ios/ZkapSdkModule.podspec +7 -6
- package/ios/ZkapSdkModule.swift +104 -62
- package/ios/ZkapZkp.xcframework/Info.plist +9 -9
- package/ios/ZkapZkp.xcframework/ios-arm64/Headers/zkap_uniffi_bindingsFFI.h +567 -0
- package/ios/ZkapZkp.xcframework/ios-arm64/{libzkap_zkp_rn.a → libzkap_uniffi_bindings.a} +0 -0
- package/ios/ZkapZkp.xcframework/ios-arm64_x86_64-simulator/Headers/zkap_uniffi_bindingsFFI.h +567 -0
- package/ios/ZkapZkp.xcframework/ios-arm64_x86_64-simulator/{libzkap_zkp_rn_sim.a → libzkap_uniffi_bindings.a} +0 -0
- package/ios/uniffi/zkap_uniffi_bindings.swift +1174 -0
- package/ios/uniffi/zkap_uniffi_bindingsFFI.h +567 -0
- package/ios/uniffi/zkap_uniffi_bindingsFFI.modulemap +7 -0
- package/package.json +3 -2
- package/src/index.ts +10 -8
- package/android/libs/arm64-v8a/libzkap_zkp_rn.so +0 -0
- package/android/libs/armeabi-v7a/libzkap_zkp_rn.so +0 -0
- package/android/libs/x86_64/libzkap_zkp_rn.so +0 -0
- package/ios/ZkapZkp.xcframework/ios-arm64/Headers/zkap_zkp_rn.h +0 -15
- package/ios/ZkapZkp.xcframework/ios-arm64_x86_64-simulator/Headers/zkap_zkp_rn.h +0 -15
- package/ios/include/zkap_zkp_rn.h +0 -15
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
// This file was autogenerated by some hot garbage in the `uniffi` crate.
|
|
2
|
+
// Trust me, you don't want to mess with it!
|
|
3
|
+
|
|
4
|
+
#pragma once
|
|
5
|
+
|
|
6
|
+
#include <stdbool.h>
|
|
7
|
+
#include <stddef.h>
|
|
8
|
+
#include <stdint.h>
|
|
9
|
+
|
|
10
|
+
// The following structs are used to implement the lowest level
|
|
11
|
+
// of the FFI, and thus useful to multiple uniffied crates.
|
|
12
|
+
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
|
|
13
|
+
#ifdef UNIFFI_SHARED_H
|
|
14
|
+
// We also try to prevent mixing versions of shared uniffi header structs.
|
|
15
|
+
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
|
|
16
|
+
#ifndef UNIFFI_SHARED_HEADER_V4
|
|
17
|
+
#error Combining helper code from multiple versions of uniffi is not supported
|
|
18
|
+
#endif // ndef UNIFFI_SHARED_HEADER_V4
|
|
19
|
+
#else
|
|
20
|
+
#define UNIFFI_SHARED_H
|
|
21
|
+
#define UNIFFI_SHARED_HEADER_V4
|
|
22
|
+
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
|
23
|
+
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
|
24
|
+
|
|
25
|
+
typedef struct RustBuffer
|
|
26
|
+
{
|
|
27
|
+
uint64_t capacity;
|
|
28
|
+
uint64_t len;
|
|
29
|
+
uint8_t *_Nullable data;
|
|
30
|
+
} RustBuffer;
|
|
31
|
+
|
|
32
|
+
typedef struct ForeignBytes
|
|
33
|
+
{
|
|
34
|
+
int32_t len;
|
|
35
|
+
const uint8_t *_Nullable data;
|
|
36
|
+
} ForeignBytes;
|
|
37
|
+
|
|
38
|
+
// Error definitions
|
|
39
|
+
typedef struct RustCallStatus {
|
|
40
|
+
int8_t code;
|
|
41
|
+
RustBuffer errorBuf;
|
|
42
|
+
} RustCallStatus;
|
|
43
|
+
|
|
44
|
+
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
|
|
45
|
+
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
|
|
46
|
+
#endif // def UNIFFI_SHARED_H
|
|
47
|
+
#ifndef UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
|
|
48
|
+
#define UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
|
|
49
|
+
typedef void (*UniffiRustFutureContinuationCallback)(uint64_t, int8_t
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
#endif
|
|
53
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_DROPPED_CALLBACK
|
|
54
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_DROPPED_CALLBACK
|
|
55
|
+
typedef void (*UniffiForeignFutureDroppedCallback)(uint64_t
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
#endif
|
|
59
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
|
|
60
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
|
|
61
|
+
typedef void (*UniffiCallbackInterfaceFree)(uint64_t
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
#endif
|
|
65
|
+
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_CLONE
|
|
66
|
+
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_CLONE
|
|
67
|
+
typedef uint64_t (*UniffiCallbackInterfaceClone)(uint64_t
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
#endif
|
|
71
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_DROPPED_CALLBACK_STRUCT
|
|
72
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_DROPPED_CALLBACK_STRUCT
|
|
73
|
+
typedef struct UniffiForeignFutureDroppedCallbackStruct {
|
|
74
|
+
uint64_t handle;
|
|
75
|
+
UniffiForeignFutureDroppedCallback _Nonnull free;
|
|
76
|
+
} UniffiForeignFutureDroppedCallbackStruct;
|
|
77
|
+
|
|
78
|
+
#endif
|
|
79
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_U8
|
|
80
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_U8
|
|
81
|
+
typedef struct UniffiForeignFutureResultU8 {
|
|
82
|
+
uint8_t returnValue;
|
|
83
|
+
RustCallStatus callStatus;
|
|
84
|
+
} UniffiForeignFutureResultU8;
|
|
85
|
+
|
|
86
|
+
#endif
|
|
87
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
|
|
88
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
|
|
89
|
+
typedef void (*UniffiForeignFutureCompleteU8)(uint64_t, UniffiForeignFutureResultU8
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
#endif
|
|
93
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_I8
|
|
94
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_I8
|
|
95
|
+
typedef struct UniffiForeignFutureResultI8 {
|
|
96
|
+
int8_t returnValue;
|
|
97
|
+
RustCallStatus callStatus;
|
|
98
|
+
} UniffiForeignFutureResultI8;
|
|
99
|
+
|
|
100
|
+
#endif
|
|
101
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
|
|
102
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
|
|
103
|
+
typedef void (*UniffiForeignFutureCompleteI8)(uint64_t, UniffiForeignFutureResultI8
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
#endif
|
|
107
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_U16
|
|
108
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_U16
|
|
109
|
+
typedef struct UniffiForeignFutureResultU16 {
|
|
110
|
+
uint16_t returnValue;
|
|
111
|
+
RustCallStatus callStatus;
|
|
112
|
+
} UniffiForeignFutureResultU16;
|
|
113
|
+
|
|
114
|
+
#endif
|
|
115
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
|
|
116
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
|
|
117
|
+
typedef void (*UniffiForeignFutureCompleteU16)(uint64_t, UniffiForeignFutureResultU16
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
#endif
|
|
121
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_I16
|
|
122
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_I16
|
|
123
|
+
typedef struct UniffiForeignFutureResultI16 {
|
|
124
|
+
int16_t returnValue;
|
|
125
|
+
RustCallStatus callStatus;
|
|
126
|
+
} UniffiForeignFutureResultI16;
|
|
127
|
+
|
|
128
|
+
#endif
|
|
129
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
|
|
130
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
|
|
131
|
+
typedef void (*UniffiForeignFutureCompleteI16)(uint64_t, UniffiForeignFutureResultI16
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
#endif
|
|
135
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_U32
|
|
136
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_U32
|
|
137
|
+
typedef struct UniffiForeignFutureResultU32 {
|
|
138
|
+
uint32_t returnValue;
|
|
139
|
+
RustCallStatus callStatus;
|
|
140
|
+
} UniffiForeignFutureResultU32;
|
|
141
|
+
|
|
142
|
+
#endif
|
|
143
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
|
|
144
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
|
|
145
|
+
typedef void (*UniffiForeignFutureCompleteU32)(uint64_t, UniffiForeignFutureResultU32
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
#endif
|
|
149
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_I32
|
|
150
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_I32
|
|
151
|
+
typedef struct UniffiForeignFutureResultI32 {
|
|
152
|
+
int32_t returnValue;
|
|
153
|
+
RustCallStatus callStatus;
|
|
154
|
+
} UniffiForeignFutureResultI32;
|
|
155
|
+
|
|
156
|
+
#endif
|
|
157
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
|
|
158
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
|
|
159
|
+
typedef void (*UniffiForeignFutureCompleteI32)(uint64_t, UniffiForeignFutureResultI32
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
#endif
|
|
163
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_U64
|
|
164
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_U64
|
|
165
|
+
typedef struct UniffiForeignFutureResultU64 {
|
|
166
|
+
uint64_t returnValue;
|
|
167
|
+
RustCallStatus callStatus;
|
|
168
|
+
} UniffiForeignFutureResultU64;
|
|
169
|
+
|
|
170
|
+
#endif
|
|
171
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
|
|
172
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
|
|
173
|
+
typedef void (*UniffiForeignFutureCompleteU64)(uint64_t, UniffiForeignFutureResultU64
|
|
174
|
+
);
|
|
175
|
+
|
|
176
|
+
#endif
|
|
177
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_I64
|
|
178
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_I64
|
|
179
|
+
typedef struct UniffiForeignFutureResultI64 {
|
|
180
|
+
int64_t returnValue;
|
|
181
|
+
RustCallStatus callStatus;
|
|
182
|
+
} UniffiForeignFutureResultI64;
|
|
183
|
+
|
|
184
|
+
#endif
|
|
185
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
|
|
186
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
|
|
187
|
+
typedef void (*UniffiForeignFutureCompleteI64)(uint64_t, UniffiForeignFutureResultI64
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
#endif
|
|
191
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_F32
|
|
192
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_F32
|
|
193
|
+
typedef struct UniffiForeignFutureResultF32 {
|
|
194
|
+
float returnValue;
|
|
195
|
+
RustCallStatus callStatus;
|
|
196
|
+
} UniffiForeignFutureResultF32;
|
|
197
|
+
|
|
198
|
+
#endif
|
|
199
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
|
|
200
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
|
|
201
|
+
typedef void (*UniffiForeignFutureCompleteF32)(uint64_t, UniffiForeignFutureResultF32
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
#endif
|
|
205
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_F64
|
|
206
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_F64
|
|
207
|
+
typedef struct UniffiForeignFutureResultF64 {
|
|
208
|
+
double returnValue;
|
|
209
|
+
RustCallStatus callStatus;
|
|
210
|
+
} UniffiForeignFutureResultF64;
|
|
211
|
+
|
|
212
|
+
#endif
|
|
213
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
|
|
214
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
|
|
215
|
+
typedef void (*UniffiForeignFutureCompleteF64)(uint64_t, UniffiForeignFutureResultF64
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
#endif
|
|
219
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_RUST_BUFFER
|
|
220
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_RUST_BUFFER
|
|
221
|
+
typedef struct UniffiForeignFutureResultRustBuffer {
|
|
222
|
+
RustBuffer returnValue;
|
|
223
|
+
RustCallStatus callStatus;
|
|
224
|
+
} UniffiForeignFutureResultRustBuffer;
|
|
225
|
+
|
|
226
|
+
#endif
|
|
227
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
|
|
228
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
|
|
229
|
+
typedef void (*UniffiForeignFutureCompleteRustBuffer)(uint64_t, UniffiForeignFutureResultRustBuffer
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
#endif
|
|
233
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_VOID
|
|
234
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_RESULT_VOID
|
|
235
|
+
typedef struct UniffiForeignFutureResultVoid {
|
|
236
|
+
RustCallStatus callStatus;
|
|
237
|
+
} UniffiForeignFutureResultVoid;
|
|
238
|
+
|
|
239
|
+
#endif
|
|
240
|
+
#ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
|
|
241
|
+
#define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
|
|
242
|
+
typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureResultVoid
|
|
243
|
+
);
|
|
244
|
+
|
|
245
|
+
#endif
|
|
246
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_GENERATE_ANCHOR
|
|
247
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_GENERATE_ANCHOR
|
|
248
|
+
RustBuffer uniffi_zkap_uniffi_bindings_fn_func_generate_anchor(RustBuffer config, RustBuffer secrets, RustCallStatus *_Nonnull out_status
|
|
249
|
+
);
|
|
250
|
+
#endif
|
|
251
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_GENERATE_AUD_HASH
|
|
252
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_GENERATE_AUD_HASH
|
|
253
|
+
RustBuffer uniffi_zkap_uniffi_bindings_fn_func_generate_aud_hash(RustBuffer config, RustBuffer aud_list, RustCallStatus *_Nonnull out_status
|
|
254
|
+
);
|
|
255
|
+
#endif
|
|
256
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_GENERATE_HASH
|
|
257
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_GENERATE_HASH
|
|
258
|
+
RustBuffer uniffi_zkap_uniffi_bindings_fn_func_generate_hash(RustBuffer messages, RustCallStatus *_Nonnull out_status
|
|
259
|
+
);
|
|
260
|
+
#endif
|
|
261
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_GENERATE_LEAF_HASH
|
|
262
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_GENERATE_LEAF_HASH
|
|
263
|
+
RustBuffer uniffi_zkap_uniffi_bindings_fn_func_generate_leaf_hash(RustBuffer config, RustBuffer iss, RustBuffer pk_b64, RustCallStatus *_Nonnull out_status
|
|
264
|
+
);
|
|
265
|
+
#endif
|
|
266
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_PROVE
|
|
267
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_FN_FUNC_PROVE
|
|
268
|
+
RustBuffer uniffi_zkap_uniffi_bindings_fn_func_prove(RustBuffer config, RustBuffer request, RustCallStatus *_Nonnull out_status
|
|
269
|
+
);
|
|
270
|
+
#endif
|
|
271
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUSTBUFFER_ALLOC
|
|
272
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUSTBUFFER_ALLOC
|
|
273
|
+
RustBuffer ffi_zkap_uniffi_bindings_rustbuffer_alloc(uint64_t size, RustCallStatus *_Nonnull out_status
|
|
274
|
+
);
|
|
275
|
+
#endif
|
|
276
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUSTBUFFER_FROM_BYTES
|
|
277
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUSTBUFFER_FROM_BYTES
|
|
278
|
+
RustBuffer ffi_zkap_uniffi_bindings_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
|
|
279
|
+
);
|
|
280
|
+
#endif
|
|
281
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUSTBUFFER_FREE
|
|
282
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUSTBUFFER_FREE
|
|
283
|
+
void ffi_zkap_uniffi_bindings_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
|
|
284
|
+
);
|
|
285
|
+
#endif
|
|
286
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUSTBUFFER_RESERVE
|
|
287
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUSTBUFFER_RESERVE
|
|
288
|
+
RustBuffer ffi_zkap_uniffi_bindings_rustbuffer_reserve(RustBuffer buf, uint64_t additional, RustCallStatus *_Nonnull out_status
|
|
289
|
+
);
|
|
290
|
+
#endif
|
|
291
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_U8
|
|
292
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_U8
|
|
293
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_u8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
294
|
+
);
|
|
295
|
+
#endif
|
|
296
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_U8
|
|
297
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_U8
|
|
298
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_u8(uint64_t handle
|
|
299
|
+
);
|
|
300
|
+
#endif
|
|
301
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_U8
|
|
302
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_U8
|
|
303
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_u8(uint64_t handle
|
|
304
|
+
);
|
|
305
|
+
#endif
|
|
306
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_U8
|
|
307
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_U8
|
|
308
|
+
uint8_t ffi_zkap_uniffi_bindings_rust_future_complete_u8(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
309
|
+
);
|
|
310
|
+
#endif
|
|
311
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_I8
|
|
312
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_I8
|
|
313
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_i8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
314
|
+
);
|
|
315
|
+
#endif
|
|
316
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_I8
|
|
317
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_I8
|
|
318
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_i8(uint64_t handle
|
|
319
|
+
);
|
|
320
|
+
#endif
|
|
321
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_I8
|
|
322
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_I8
|
|
323
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_i8(uint64_t handle
|
|
324
|
+
);
|
|
325
|
+
#endif
|
|
326
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_I8
|
|
327
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_I8
|
|
328
|
+
int8_t ffi_zkap_uniffi_bindings_rust_future_complete_i8(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
329
|
+
);
|
|
330
|
+
#endif
|
|
331
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_U16
|
|
332
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_U16
|
|
333
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_u16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
334
|
+
);
|
|
335
|
+
#endif
|
|
336
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_U16
|
|
337
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_U16
|
|
338
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_u16(uint64_t handle
|
|
339
|
+
);
|
|
340
|
+
#endif
|
|
341
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_U16
|
|
342
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_U16
|
|
343
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_u16(uint64_t handle
|
|
344
|
+
);
|
|
345
|
+
#endif
|
|
346
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_U16
|
|
347
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_U16
|
|
348
|
+
uint16_t ffi_zkap_uniffi_bindings_rust_future_complete_u16(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
349
|
+
);
|
|
350
|
+
#endif
|
|
351
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_I16
|
|
352
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_I16
|
|
353
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_i16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
354
|
+
);
|
|
355
|
+
#endif
|
|
356
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_I16
|
|
357
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_I16
|
|
358
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_i16(uint64_t handle
|
|
359
|
+
);
|
|
360
|
+
#endif
|
|
361
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_I16
|
|
362
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_I16
|
|
363
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_i16(uint64_t handle
|
|
364
|
+
);
|
|
365
|
+
#endif
|
|
366
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_I16
|
|
367
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_I16
|
|
368
|
+
int16_t ffi_zkap_uniffi_bindings_rust_future_complete_i16(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
369
|
+
);
|
|
370
|
+
#endif
|
|
371
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_U32
|
|
372
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_U32
|
|
373
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_u32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
374
|
+
);
|
|
375
|
+
#endif
|
|
376
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_U32
|
|
377
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_U32
|
|
378
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_u32(uint64_t handle
|
|
379
|
+
);
|
|
380
|
+
#endif
|
|
381
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_U32
|
|
382
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_U32
|
|
383
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_u32(uint64_t handle
|
|
384
|
+
);
|
|
385
|
+
#endif
|
|
386
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_U32
|
|
387
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_U32
|
|
388
|
+
uint32_t ffi_zkap_uniffi_bindings_rust_future_complete_u32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
389
|
+
);
|
|
390
|
+
#endif
|
|
391
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_I32
|
|
392
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_I32
|
|
393
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_i32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
394
|
+
);
|
|
395
|
+
#endif
|
|
396
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_I32
|
|
397
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_I32
|
|
398
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_i32(uint64_t handle
|
|
399
|
+
);
|
|
400
|
+
#endif
|
|
401
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_I32
|
|
402
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_I32
|
|
403
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_i32(uint64_t handle
|
|
404
|
+
);
|
|
405
|
+
#endif
|
|
406
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_I32
|
|
407
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_I32
|
|
408
|
+
int32_t ffi_zkap_uniffi_bindings_rust_future_complete_i32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
409
|
+
);
|
|
410
|
+
#endif
|
|
411
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_U64
|
|
412
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_U64
|
|
413
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_u64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
414
|
+
);
|
|
415
|
+
#endif
|
|
416
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_U64
|
|
417
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_U64
|
|
418
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_u64(uint64_t handle
|
|
419
|
+
);
|
|
420
|
+
#endif
|
|
421
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_U64
|
|
422
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_U64
|
|
423
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_u64(uint64_t handle
|
|
424
|
+
);
|
|
425
|
+
#endif
|
|
426
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_U64
|
|
427
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_U64
|
|
428
|
+
uint64_t ffi_zkap_uniffi_bindings_rust_future_complete_u64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
429
|
+
);
|
|
430
|
+
#endif
|
|
431
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_I64
|
|
432
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_I64
|
|
433
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_i64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
434
|
+
);
|
|
435
|
+
#endif
|
|
436
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_I64
|
|
437
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_I64
|
|
438
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_i64(uint64_t handle
|
|
439
|
+
);
|
|
440
|
+
#endif
|
|
441
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_I64
|
|
442
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_I64
|
|
443
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_i64(uint64_t handle
|
|
444
|
+
);
|
|
445
|
+
#endif
|
|
446
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_I64
|
|
447
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_I64
|
|
448
|
+
int64_t ffi_zkap_uniffi_bindings_rust_future_complete_i64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
449
|
+
);
|
|
450
|
+
#endif
|
|
451
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_F32
|
|
452
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_F32
|
|
453
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_f32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
454
|
+
);
|
|
455
|
+
#endif
|
|
456
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_F32
|
|
457
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_F32
|
|
458
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_f32(uint64_t handle
|
|
459
|
+
);
|
|
460
|
+
#endif
|
|
461
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_F32
|
|
462
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_F32
|
|
463
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_f32(uint64_t handle
|
|
464
|
+
);
|
|
465
|
+
#endif
|
|
466
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_F32
|
|
467
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_F32
|
|
468
|
+
float ffi_zkap_uniffi_bindings_rust_future_complete_f32(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
469
|
+
);
|
|
470
|
+
#endif
|
|
471
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_F64
|
|
472
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_F64
|
|
473
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_f64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
474
|
+
);
|
|
475
|
+
#endif
|
|
476
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_F64
|
|
477
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_F64
|
|
478
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_f64(uint64_t handle
|
|
479
|
+
);
|
|
480
|
+
#endif
|
|
481
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_F64
|
|
482
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_F64
|
|
483
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_f64(uint64_t handle
|
|
484
|
+
);
|
|
485
|
+
#endif
|
|
486
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_F64
|
|
487
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_F64
|
|
488
|
+
double ffi_zkap_uniffi_bindings_rust_future_complete_f64(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
489
|
+
);
|
|
490
|
+
#endif
|
|
491
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_RUST_BUFFER
|
|
492
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_RUST_BUFFER
|
|
493
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_rust_buffer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
494
|
+
);
|
|
495
|
+
#endif
|
|
496
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_RUST_BUFFER
|
|
497
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_RUST_BUFFER
|
|
498
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_rust_buffer(uint64_t handle
|
|
499
|
+
);
|
|
500
|
+
#endif
|
|
501
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_RUST_BUFFER
|
|
502
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_RUST_BUFFER
|
|
503
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_rust_buffer(uint64_t handle
|
|
504
|
+
);
|
|
505
|
+
#endif
|
|
506
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_RUST_BUFFER
|
|
507
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_RUST_BUFFER
|
|
508
|
+
RustBuffer ffi_zkap_uniffi_bindings_rust_future_complete_rust_buffer(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
509
|
+
);
|
|
510
|
+
#endif
|
|
511
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_VOID
|
|
512
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_POLL_VOID
|
|
513
|
+
void ffi_zkap_uniffi_bindings_rust_future_poll_void(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
|
|
514
|
+
);
|
|
515
|
+
#endif
|
|
516
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_VOID
|
|
517
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_CANCEL_VOID
|
|
518
|
+
void ffi_zkap_uniffi_bindings_rust_future_cancel_void(uint64_t handle
|
|
519
|
+
);
|
|
520
|
+
#endif
|
|
521
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_VOID
|
|
522
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_FREE_VOID
|
|
523
|
+
void ffi_zkap_uniffi_bindings_rust_future_free_void(uint64_t handle
|
|
524
|
+
);
|
|
525
|
+
#endif
|
|
526
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_VOID
|
|
527
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_RUST_FUTURE_COMPLETE_VOID
|
|
528
|
+
void ffi_zkap_uniffi_bindings_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
|
|
529
|
+
);
|
|
530
|
+
#endif
|
|
531
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_GENERATE_ANCHOR
|
|
532
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_GENERATE_ANCHOR
|
|
533
|
+
uint16_t uniffi_zkap_uniffi_bindings_checksum_func_generate_anchor(void
|
|
534
|
+
|
|
535
|
+
);
|
|
536
|
+
#endif
|
|
537
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_GENERATE_AUD_HASH
|
|
538
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_GENERATE_AUD_HASH
|
|
539
|
+
uint16_t uniffi_zkap_uniffi_bindings_checksum_func_generate_aud_hash(void
|
|
540
|
+
|
|
541
|
+
);
|
|
542
|
+
#endif
|
|
543
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_GENERATE_HASH
|
|
544
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_GENERATE_HASH
|
|
545
|
+
uint16_t uniffi_zkap_uniffi_bindings_checksum_func_generate_hash(void
|
|
546
|
+
|
|
547
|
+
);
|
|
548
|
+
#endif
|
|
549
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_GENERATE_LEAF_HASH
|
|
550
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_GENERATE_LEAF_HASH
|
|
551
|
+
uint16_t uniffi_zkap_uniffi_bindings_checksum_func_generate_leaf_hash(void
|
|
552
|
+
|
|
553
|
+
);
|
|
554
|
+
#endif
|
|
555
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_PROVE
|
|
556
|
+
#define UNIFFI_FFIDEF_UNIFFI_ZKAP_UNIFFI_BINDINGS_CHECKSUM_FUNC_PROVE
|
|
557
|
+
uint16_t uniffi_zkap_uniffi_bindings_checksum_func_prove(void
|
|
558
|
+
|
|
559
|
+
);
|
|
560
|
+
#endif
|
|
561
|
+
#ifndef UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_UNIFFI_CONTRACT_VERSION
|
|
562
|
+
#define UNIFFI_FFIDEF_FFI_ZKAP_UNIFFI_BINDINGS_UNIFFI_CONTRACT_VERSION
|
|
563
|
+
uint32_t ffi_zkap_uniffi_bindings_uniffi_contract_version(void
|
|
564
|
+
|
|
565
|
+
);
|
|
566
|
+
#endif
|
|
567
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baerae/zkap-zkp-react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "React Native SDK for zkap-zkp — on-device ZK proving with Groth16 (BN254) and Poseidon hash. Requires Expo New Architecture.",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"src/",
|
|
12
12
|
"ios/ZkapSdkModule.podspec",
|
|
13
13
|
"ios/ZkapSdkModule.swift",
|
|
14
|
-
"ios/
|
|
14
|
+
"ios/uniffi/",
|
|
15
15
|
"ios/ZkapZkp.xcframework/",
|
|
16
16
|
"android/src/",
|
|
17
17
|
"android/build.gradle",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://github.com/baerae-zkap/zkap-zkp",
|
|
42
42
|
"bugs": "https://github.com/baerae-zkap/zkap-zkp/issues",
|
|
43
|
+
"author": "baerae-zkap",
|
|
43
44
|
"license": "MIT OR Apache-2.0",
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"expo": ">=50.0.0",
|
package/src/index.ts
CHANGED
|
@@ -35,10 +35,14 @@ export interface ProveRequest {
|
|
|
35
35
|
merkle_paths: string[][];
|
|
36
36
|
leaf_indices: number[];
|
|
37
37
|
root: string;
|
|
38
|
-
|
|
38
|
+
/** Anchor polynomial evaluations (N - K + 1 entries). */
|
|
39
|
+
anchor_evals: string[];
|
|
40
|
+
/** Anchor chain hash (hanchor). */
|
|
41
|
+
hanchor: string;
|
|
39
42
|
h_sign_user_op: string;
|
|
40
43
|
random: string;
|
|
41
|
-
|
|
44
|
+
/** Pre-computed audience hashes (from generateAudHash). */
|
|
45
|
+
aud_hash_list: string[];
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
export interface ProveResult {
|
|
@@ -128,25 +132,23 @@ export async function prove(
|
|
|
128
132
|
|
|
129
133
|
/**
|
|
130
134
|
* NOT supported on React Native.
|
|
131
|
-
* groth16Setup()
|
|
132
|
-
* Use @baerae/zkap-zkp (Node.js) for setup.
|
|
135
|
+
* groth16Setup() has been removed from all SDK packages as of v0.1.2.
|
|
133
136
|
*/
|
|
134
137
|
export function groth16Setup(): never {
|
|
135
138
|
throw new Error(
|
|
136
139
|
'[zkap/sdk-react-native] groth16Setup() is not supported on mobile. ' +
|
|
137
|
-
'
|
|
140
|
+
'Note: this function has been removed from all SDK packages as of v0.1.2.'
|
|
138
141
|
);
|
|
139
142
|
}
|
|
140
143
|
|
|
141
144
|
/**
|
|
142
145
|
* NOT supported on React Native.
|
|
143
|
-
* verify()
|
|
144
|
-
* Use @baerae/zkap-zkp (Node.js) for server-side verification.
|
|
146
|
+
* verify() has been removed from all SDK packages as of v0.1.2.
|
|
145
147
|
*/
|
|
146
148
|
export function verify(): never {
|
|
147
149
|
throw new Error(
|
|
148
150
|
'[zkap/sdk-react-native] verify() is not supported on mobile. ' +
|
|
149
|
-
'
|
|
151
|
+
'Note: this function has been removed from all SDK packages as of v0.1.2.'
|
|
150
152
|
);
|
|
151
153
|
}
|
|
152
154
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
#ifdef __cplusplus
|
|
3
|
-
extern "C" {
|
|
4
|
-
#endif
|
|
5
|
-
|
|
6
|
-
char* zkap_generate_hash(const char* input_json);
|
|
7
|
-
char* zkap_generate_anchor(const char* input_json);
|
|
8
|
-
char* zkap_generate_aud_hash(const char* input_json);
|
|
9
|
-
char* zkap_generate_leaf_hash(const char* input_json);
|
|
10
|
-
char* zkap_prove(const char* input_json);
|
|
11
|
-
void zkap_free_string(char* ptr);
|
|
12
|
-
|
|
13
|
-
#ifdef __cplusplus
|
|
14
|
-
}
|
|
15
|
-
#endif
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#pragma once
|
|
2
|
-
#ifdef __cplusplus
|
|
3
|
-
extern "C" {
|
|
4
|
-
#endif
|
|
5
|
-
|
|
6
|
-
char* zkap_generate_hash(const char* input_json);
|
|
7
|
-
char* zkap_generate_anchor(const char* input_json);
|
|
8
|
-
char* zkap_generate_aud_hash(const char* input_json);
|
|
9
|
-
char* zkap_generate_leaf_hash(const char* input_json);
|
|
10
|
-
char* zkap_prove(const char* input_json);
|
|
11
|
-
void zkap_free_string(char* ptr);
|
|
12
|
-
|
|
13
|
-
#ifdef __cplusplus
|
|
14
|
-
}
|
|
15
|
-
#endif
|