@zama-fhe/relayer-sdk 0.3.0-1 → 0.3.0-2
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/bundle/kms_lib_bg.wasm +0 -0
- package/bundle/relayer-sdk-js.js +7327 -7230
- package/bundle/relayer-sdk-js.umd.cjs +7 -7
- package/bundle/tfhe_bg.wasm +0 -0
- package/bundle/workerHelpers.js +2 -2
- package/lib/kms_lib_bg.wasm +0 -0
- package/lib/tfhe_bg.wasm +0 -0
- package/lib/web.js +3964 -3848
- package/lib/workerHelpers.js +120 -94
- package/package.json +5 -5
package/lib/workerHelpers.js
CHANGED
|
@@ -114,9 +114,6 @@ function handleError(f, args) {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
118
|
-
|
|
119
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }
|
|
120
117
|
let cachedUint8ArrayMemory0 = null;
|
|
121
118
|
|
|
122
119
|
function getUint8ArrayMemory0() {
|
|
@@ -126,16 +123,37 @@ function getUint8ArrayMemory0() {
|
|
|
126
123
|
return cachedUint8ArrayMemory0;
|
|
127
124
|
}
|
|
128
125
|
|
|
126
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
127
|
+
|
|
128
|
+
cachedTextDecoder.decode();
|
|
129
|
+
|
|
130
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
131
|
+
let numBytesDecoded = 0;
|
|
132
|
+
function decodeText(ptr, len) {
|
|
133
|
+
numBytesDecoded += len;
|
|
134
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
135
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
136
|
+
cachedTextDecoder.decode();
|
|
137
|
+
numBytesDecoded = len;
|
|
138
|
+
}
|
|
139
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
|
|
140
|
+
}
|
|
141
|
+
|
|
129
142
|
function getStringFromWasm0(ptr, len) {
|
|
130
143
|
ptr = ptr >>> 0;
|
|
131
|
-
return
|
|
144
|
+
return decodeText(ptr, len);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
148
|
+
ptr = ptr >>> 0;
|
|
149
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
132
150
|
}
|
|
133
151
|
|
|
134
152
|
let WASM_VECTOR_LEN = 0;
|
|
135
153
|
|
|
136
|
-
const cachedTextEncoder =
|
|
154
|
+
const cachedTextEncoder = new TextEncoder();
|
|
137
155
|
|
|
138
|
-
|
|
156
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
139
157
|
const buf = cachedTextEncoder.encode(arg);
|
|
140
158
|
view.set(buf);
|
|
141
159
|
return {
|
|
@@ -173,7 +191,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
173
191
|
}
|
|
174
192
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
175
193
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
176
|
-
const ret =
|
|
194
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
177
195
|
|
|
178
196
|
offset += ret.written;
|
|
179
197
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -1096,6 +1114,9 @@ class wbg_rayon_PoolBuilder {
|
|
|
1096
1114
|
const ret = wasm.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr);
|
|
1097
1115
|
return ret >>> 0;
|
|
1098
1116
|
}
|
|
1117
|
+
build() {
|
|
1118
|
+
wasm.wbg_rayon_poolbuilder_build(this.__wbg_ptr);
|
|
1119
|
+
}
|
|
1099
1120
|
/**
|
|
1100
1121
|
* @returns {number}
|
|
1101
1122
|
*/
|
|
@@ -1103,10 +1124,10 @@ class wbg_rayon_PoolBuilder {
|
|
|
1103
1124
|
const ret = wasm.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr);
|
|
1104
1125
|
return ret >>> 0;
|
|
1105
1126
|
}
|
|
1106
|
-
build() {
|
|
1107
|
-
wasm.wbg_rayon_poolbuilder_build(this.__wbg_ptr);
|
|
1108
|
-
}
|
|
1109
1127
|
}
|
|
1128
|
+
if (Symbol.dispose) wbg_rayon_PoolBuilder.prototype[Symbol.dispose] = wbg_rayon_PoolBuilder.prototype.free;
|
|
1129
|
+
|
|
1130
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
1110
1131
|
|
|
1111
1132
|
async function __wbg_load(module, imports) {
|
|
1112
1133
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
@@ -1115,7 +1136,9 @@ async function __wbg_load(module, imports) {
|
|
|
1115
1136
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1116
1137
|
|
|
1117
1138
|
} catch (e) {
|
|
1118
|
-
|
|
1139
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
1140
|
+
|
|
1141
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1119
1142
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1120
1143
|
|
|
1121
1144
|
} else {
|
|
@@ -1142,23 +1165,23 @@ async function __wbg_load(module, imports) {
|
|
|
1142
1165
|
function __wbg_get_imports() {
|
|
1143
1166
|
const imports = {};
|
|
1144
1167
|
imports.wbg = {};
|
|
1145
|
-
imports.wbg.
|
|
1168
|
+
imports.wbg.__wbg_BigInt_40a77d45cca49470 = function() { return handleError(function (arg0) {
|
|
1146
1169
|
const ret = BigInt(arg0);
|
|
1147
1170
|
return ret;
|
|
1148
|
-
};
|
|
1149
|
-
imports.wbg.
|
|
1171
|
+
}, arguments) };
|
|
1172
|
+
imports.wbg.__wbg_BigInt_6adbfd8eb0f7ec07 = function(arg0) {
|
|
1150
1173
|
const ret = BigInt(arg0);
|
|
1151
1174
|
return ret;
|
|
1152
|
-
}
|
|
1153
|
-
imports.wbg.
|
|
1154
|
-
const ret = arg0
|
|
1175
|
+
};
|
|
1176
|
+
imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
|
|
1177
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1155
1178
|
return ret;
|
|
1156
1179
|
};
|
|
1157
|
-
imports.wbg.
|
|
1180
|
+
imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
|
|
1158
1181
|
const ret = arg0.call(arg1);
|
|
1159
1182
|
return ret;
|
|
1160
1183
|
}, arguments) };
|
|
1161
|
-
imports.wbg.
|
|
1184
|
+
imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1162
1185
|
const ret = arg0.call(arg1, arg2);
|
|
1163
1186
|
return ret;
|
|
1164
1187
|
}, arguments) };
|
|
@@ -1180,11 +1203,11 @@ function __wbg_get_imports() {
|
|
|
1180
1203
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
1181
1204
|
arg0.getRandomValues(arg1);
|
|
1182
1205
|
}, arguments) };
|
|
1183
|
-
imports.wbg.
|
|
1206
|
+
imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
|
|
1184
1207
|
const ret = arg0.getTime();
|
|
1185
1208
|
return ret;
|
|
1186
1209
|
};
|
|
1187
|
-
imports.wbg.
|
|
1210
|
+
imports.wbg.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
|
|
1188
1211
|
let result;
|
|
1189
1212
|
try {
|
|
1190
1213
|
result = arg0 instanceof Window;
|
|
@@ -1194,11 +1217,15 @@ function __wbg_get_imports() {
|
|
|
1194
1217
|
const ret = result;
|
|
1195
1218
|
return ret;
|
|
1196
1219
|
};
|
|
1220
|
+
imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
1221
|
+
const ret = arg0.length;
|
|
1222
|
+
return ret;
|
|
1223
|
+
};
|
|
1197
1224
|
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1198
1225
|
const ret = arg0.msCrypto;
|
|
1199
1226
|
return ret;
|
|
1200
1227
|
};
|
|
1201
|
-
imports.wbg.
|
|
1228
|
+
imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
|
|
1202
1229
|
const ret = new Date();
|
|
1203
1230
|
return ret;
|
|
1204
1231
|
};
|
|
@@ -1206,19 +1233,11 @@ function __wbg_get_imports() {
|
|
|
1206
1233
|
const ret = new Error();
|
|
1207
1234
|
return ret;
|
|
1208
1235
|
};
|
|
1209
|
-
imports.wbg.
|
|
1210
|
-
const ret = new Uint8Array(arg0);
|
|
1211
|
-
return ret;
|
|
1212
|
-
};
|
|
1213
|
-
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
1236
|
+
imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
|
|
1214
1237
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1215
1238
|
return ret;
|
|
1216
1239
|
};
|
|
1217
|
-
imports.wbg.
|
|
1218
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1219
|
-
return ret;
|
|
1220
|
-
};
|
|
1221
|
-
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
1240
|
+
imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
|
|
1222
1241
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1223
1242
|
return ret;
|
|
1224
1243
|
};
|
|
@@ -1230,6 +1249,9 @@ function __wbg_get_imports() {
|
|
|
1230
1249
|
const ret = arg0.process;
|
|
1231
1250
|
return ret;
|
|
1232
1251
|
};
|
|
1252
|
+
imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
1253
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1254
|
+
};
|
|
1233
1255
|
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1234
1256
|
arg0.randomFillSync(arg1);
|
|
1235
1257
|
}, arguments) };
|
|
@@ -1237,9 +1259,6 @@ function __wbg_get_imports() {
|
|
|
1237
1259
|
const ret = module.require;
|
|
1238
1260
|
return ret;
|
|
1239
1261
|
}, arguments) };
|
|
1240
|
-
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1241
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
1242
|
-
};
|
|
1243
1262
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1244
1263
|
const ret = arg1.stack;
|
|
1245
1264
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1251,34 +1270,34 @@ function __wbg_get_imports() {
|
|
|
1251
1270
|
const ret = startWorkers(arg0, arg1, wbg_rayon_PoolBuilder.__wrap(arg2));
|
|
1252
1271
|
return ret;
|
|
1253
1272
|
};
|
|
1254
|
-
imports.wbg.
|
|
1273
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
|
|
1255
1274
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1256
1275
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1257
1276
|
};
|
|
1258
|
-
imports.wbg.
|
|
1277
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
|
|
1259
1278
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1260
1279
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1261
1280
|
};
|
|
1262
|
-
imports.wbg.
|
|
1281
|
+
imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
1263
1282
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1264
1283
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1265
1284
|
};
|
|
1266
|
-
imports.wbg.
|
|
1285
|
+
imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
|
|
1267
1286
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1268
1287
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1269
1288
|
};
|
|
1270
|
-
imports.wbg.
|
|
1289
|
+
imports.wbg.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
|
|
1271
1290
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1272
1291
|
return ret;
|
|
1273
1292
|
};
|
|
1274
|
-
imports.wbg.
|
|
1293
|
+
imports.wbg.__wbg_toString_1f1286a7a97689fe = function(arg0, arg1, arg2) {
|
|
1275
1294
|
const ret = arg1.toString(arg2);
|
|
1276
1295
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1277
1296
|
const len1 = WASM_VECTOR_LEN;
|
|
1278
1297
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1279
1298
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1280
1299
|
};
|
|
1281
|
-
imports.wbg.
|
|
1300
|
+
imports.wbg.__wbg_toString_d8f537919ef401d6 = function(arg0) {
|
|
1282
1301
|
const ret = arg0.toString();
|
|
1283
1302
|
return ret;
|
|
1284
1303
|
};
|
|
@@ -1286,106 +1305,73 @@ function __wbg_get_imports() {
|
|
|
1286
1305
|
const ret = arg0.versions;
|
|
1287
1306
|
return ret;
|
|
1288
1307
|
};
|
|
1289
|
-
imports.wbg.
|
|
1290
|
-
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
|
|
1291
|
-
return ret;
|
|
1292
|
-
};
|
|
1293
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1294
|
-
const ret = arg0;
|
|
1295
|
-
return ret;
|
|
1296
|
-
};
|
|
1297
|
-
imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
|
|
1298
|
-
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
|
|
1299
|
-
return ret;
|
|
1300
|
-
};
|
|
1301
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1302
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
1303
|
-
return ret;
|
|
1304
|
-
};
|
|
1305
|
-
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1308
|
+
imports.wbg.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
|
|
1306
1309
|
const v = arg1;
|
|
1307
1310
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1308
1311
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1309
1312
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1310
1313
|
};
|
|
1311
|
-
imports.wbg.
|
|
1314
|
+
imports.wbg.__wbg_wbindgenbitand_24bfc92ff26d44cb = function(arg0, arg1) {
|
|
1312
1315
|
const ret = arg0 & arg1;
|
|
1313
1316
|
return ret;
|
|
1314
1317
|
};
|
|
1315
|
-
imports.wbg.
|
|
1318
|
+
imports.wbg.__wbg_wbindgenbitor_87169f71f306a104 = function(arg0, arg1) {
|
|
1316
1319
|
const ret = arg0 | arg1;
|
|
1317
1320
|
return ret;
|
|
1318
1321
|
};
|
|
1319
|
-
imports.wbg.
|
|
1322
|
+
imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
1320
1323
|
const ret = debugString(arg1);
|
|
1321
1324
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1322
1325
|
const len1 = WASM_VECTOR_LEN;
|
|
1323
1326
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1324
1327
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1325
1328
|
};
|
|
1326
|
-
imports.wbg.
|
|
1327
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1328
|
-
return ret;
|
|
1329
|
-
};
|
|
1330
|
-
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1331
|
-
const table = wasm.__wbindgen_export_2;
|
|
1332
|
-
const offset = table.grow(4);
|
|
1333
|
-
table.set(0, undefined);
|
|
1334
|
-
table.set(offset + 0, undefined);
|
|
1335
|
-
table.set(offset + 1, null);
|
|
1336
|
-
table.set(offset + 2, true);
|
|
1337
|
-
table.set(offset + 3, false);
|
|
1338
|
-
};
|
|
1339
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
1329
|
+
imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
1340
1330
|
const ret = typeof(arg0) === 'function';
|
|
1341
1331
|
return ret;
|
|
1342
1332
|
};
|
|
1343
|
-
imports.wbg.
|
|
1333
|
+
imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
|
|
1344
1334
|
const val = arg0;
|
|
1345
1335
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1346
1336
|
return ret;
|
|
1347
1337
|
};
|
|
1348
|
-
imports.wbg.
|
|
1338
|
+
imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
1349
1339
|
const ret = typeof(arg0) === 'string';
|
|
1350
1340
|
return ret;
|
|
1351
1341
|
};
|
|
1352
|
-
imports.wbg.
|
|
1342
|
+
imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
|
|
1353
1343
|
const ret = arg0 === undefined;
|
|
1354
1344
|
return ret;
|
|
1355
1345
|
};
|
|
1356
|
-
imports.wbg.
|
|
1346
|
+
imports.wbg.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
|
|
1357
1347
|
const ret = arg0 === arg1;
|
|
1358
1348
|
return ret;
|
|
1359
1349
|
};
|
|
1360
|
-
imports.wbg.
|
|
1350
|
+
imports.wbg.__wbg_wbindgenlt_544155a2b3097bd5 = function(arg0, arg1) {
|
|
1361
1351
|
const ret = arg0 < arg1;
|
|
1362
1352
|
return ret;
|
|
1363
1353
|
};
|
|
1364
|
-
imports.wbg.
|
|
1354
|
+
imports.wbg.__wbg_wbindgenmemory_d84da70f7c42d172 = function() {
|
|
1365
1355
|
const ret = wasm.memory;
|
|
1366
1356
|
return ret;
|
|
1367
1357
|
};
|
|
1368
|
-
imports.wbg.
|
|
1358
|
+
imports.wbg.__wbg_wbindgenmodule_7e59019f6366ff9c = function() {
|
|
1369
1359
|
const ret = __wbg_init.__wbindgen_wasm_module;
|
|
1370
1360
|
return ret;
|
|
1371
1361
|
};
|
|
1372
|
-
imports.wbg.
|
|
1362
|
+
imports.wbg.__wbg_wbindgenneg_3577d8a6fd6fd98b = function(arg0) {
|
|
1373
1363
|
const ret = -arg0;
|
|
1374
1364
|
return ret;
|
|
1375
1365
|
};
|
|
1376
|
-
imports.wbg.
|
|
1377
|
-
const ret = arg0;
|
|
1378
|
-
return ret;
|
|
1379
|
-
};
|
|
1380
|
-
imports.wbg.__wbindgen_shl = function(arg0, arg1) {
|
|
1366
|
+
imports.wbg.__wbg_wbindgenshl_54c6fe049ff902f0 = function(arg0, arg1) {
|
|
1381
1367
|
const ret = arg0 << arg1;
|
|
1382
1368
|
return ret;
|
|
1383
1369
|
};
|
|
1384
|
-
imports.wbg.
|
|
1370
|
+
imports.wbg.__wbg_wbindgenshr_7d2aae6044c0dab1 = function(arg0, arg1) {
|
|
1385
1371
|
const ret = arg0 >> arg1;
|
|
1386
1372
|
return ret;
|
|
1387
1373
|
};
|
|
1388
|
-
imports.wbg.
|
|
1374
|
+
imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
|
|
1389
1375
|
const obj = arg1;
|
|
1390
1376
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1391
1377
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1393,12 +1379,52 @@ function __wbg_get_imports() {
|
|
|
1393
1379
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1394
1380
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1395
1381
|
};
|
|
1396
|
-
imports.wbg.
|
|
1382
|
+
imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
1383
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1384
|
+
};
|
|
1385
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1386
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1397
1387
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1398
1388
|
return ret;
|
|
1399
1389
|
};
|
|
1400
|
-
imports.wbg.
|
|
1401
|
-
|
|
1390
|
+
imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
|
|
1391
|
+
// Cast intrinsic for `I128 -> Externref`.
|
|
1392
|
+
const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
|
|
1393
|
+
return ret;
|
|
1394
|
+
};
|
|
1395
|
+
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1396
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1397
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1398
|
+
return ret;
|
|
1399
|
+
};
|
|
1400
|
+
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1401
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1402
|
+
const ret = arg0;
|
|
1403
|
+
return ret;
|
|
1404
|
+
};
|
|
1405
|
+
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1406
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1407
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1408
|
+
return ret;
|
|
1409
|
+
};
|
|
1410
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1411
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1412
|
+
const ret = arg0;
|
|
1413
|
+
return ret;
|
|
1414
|
+
};
|
|
1415
|
+
imports.wbg.__wbindgen_cast_e7b45dd881f38ce3 = function(arg0, arg1) {
|
|
1416
|
+
// Cast intrinsic for `U128 -> Externref`.
|
|
1417
|
+
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
1418
|
+
return ret;
|
|
1419
|
+
};
|
|
1420
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1421
|
+
const table = wasm.__wbindgen_export_2;
|
|
1422
|
+
const offset = table.grow(4);
|
|
1423
|
+
table.set(0, undefined);
|
|
1424
|
+
table.set(offset + 0, undefined);
|
|
1425
|
+
table.set(offset + 1, null);
|
|
1426
|
+
table.set(offset + 2, true);
|
|
1427
|
+
table.set(offset + 3, false);
|
|
1402
1428
|
};
|
|
1403
1429
|
|
|
1404
1430
|
return imports;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zama-fhe/relayer-sdk",
|
|
3
|
-
"version": "0.3.0-
|
|
3
|
+
"version": "0.3.0-2",
|
|
4
4
|
"description": "fhevm Relayer SDK",
|
|
5
5
|
"main": "lib/node.js",
|
|
6
6
|
"types": "lib/node.d.ts",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"ethers": "^6.15.0",
|
|
59
59
|
"fetch-retry": "^6.0.0",
|
|
60
60
|
"keccak": "^3.0.4",
|
|
61
|
-
"node-tfhe": "1.
|
|
62
|
-
"node-tkms": "^0.
|
|
63
|
-
"tfhe": "1.
|
|
64
|
-
"tkms": "^0.
|
|
61
|
+
"node-tfhe": "1.4.0-alpha.3",
|
|
62
|
+
"node-tkms": "^0.12.0",
|
|
63
|
+
"tfhe": "1.4.0-alpha.3",
|
|
64
|
+
"tkms": "^0.12.0",
|
|
65
65
|
"wasm-feature-detect": "^1.8.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|