@waku/rln 0.0.3 → 0.0.5
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/index.js +1 -1
- package/bundle/{rln-0e12a076.js → rln-f4682a81.js} +580 -173
- package/dist/.tsbuildinfo +1 -1
- package/dist/rln.js +5 -4
- package/dist/rln.js.map +1 -1
- package/package.json +6 -4
- package/src/rln.ts +7 -5
- package/src/witness_calculator.js +335 -0
- package/bundle/02bce7e5f3bcf834.wasm +0 -0
- package/bundle/20ff36861f56116ae72f.module.wasm +0 -0
- package/bundle/939.index.js +0 -1
- package/bundle/rln-a1a9aa71.js +0 -574
- package/bundle/rln-affbe9d4.js +0 -574
- package/dist/resources/files.d.ts +0 -4
- package/dist/resources/files.js +0 -5
- package/dist/resources/files.js.map +0 -1
- package/dist/resources/rln.wasm +0 -0
- package/dist/webpack.config.d.ts +0 -6
- package/dist/webpack.config.js +0 -11
- package/dist/webpack.config.js.map +0 -1
- package/dist/witness_calculator.cjs +0 -294
- package/dist/witness_calculator.cjs.map +0 -1
- package/dist/witness_calculator.d.cts +0 -17
- package/dist/zerokit/rln_wasm.d.ts +0 -1
- package/dist/zerokit/rln_wasm.js +0 -2
- package/dist/zerokit/rln_wasm.js.map +0 -1
- package/dist/zerokit/rln_wasm_bg.d.ts +0 -108
- package/dist/zerokit/rln_wasm_bg.js +0 -592
- package/dist/zerokit/rln_wasm_bg.js.map +0 -1
- package/dist/zerokit/rln_wasm_bg.wasm +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/files.ts"],"names":[],"mappings":"AAAA,IAAI,gBAAgB,GAAG,8gKAA8gK,CAAC;AACtiK,IAAI,QAAQ,GAAC,sjvlDAAsjvlD,CAAC;AACpkvlD,IAAI,IAAI,GAAC,0mxhIAA0mxhI,CAAC;AAEpnxhI,OAAO,EAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC"}
|
package/dist/resources/rln.wasm
DELETED
Binary file
|
package/dist/webpack.config.d.ts
DELETED
package/dist/webpack.config.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"webpack.config.js","sourceRoot":"","sources":["../src/webpack.config.js"],"names":[],"mappings":";AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAM,CAAC,OAAO,GAAG;IACf,KAAK,EAAE,iBAAiB;IACxB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC;QACvC,QAAQ,EAAE,UAAU;KACrB;IACD,IAAI,EAAE,YAAY;CACnB,CAAC"}
|
@@ -1,294 +0,0 @@
|
|
1
|
-
// @ts-nocheck
|
2
|
-
/*eslint-disable*/
|
3
|
-
// File generated with https://github.com/iden3/circom
|
4
|
-
// following the instructions from:
|
5
|
-
// https://github.com/vacp2p/zerokit/tree/master/rln#compiling-circuits
|
6
|
-
module.exports = async function builder(code, options) {
|
7
|
-
options = options || {};
|
8
|
-
let wasmModule;
|
9
|
-
try {
|
10
|
-
wasmModule = await WebAssembly.compile(code);
|
11
|
-
}
|
12
|
-
catch (err) {
|
13
|
-
console.log(err);
|
14
|
-
console.log("\nTry to run circom --c in order to generate c++ code instead\n");
|
15
|
-
throw new Error(err);
|
16
|
-
}
|
17
|
-
let wc;
|
18
|
-
let errStr = "";
|
19
|
-
let msgStr = "";
|
20
|
-
const instance = await WebAssembly.instantiate(wasmModule, {
|
21
|
-
runtime: {
|
22
|
-
exceptionHandler: function (code) {
|
23
|
-
let err;
|
24
|
-
if (code == 1) {
|
25
|
-
err = "Signal not found.\n";
|
26
|
-
}
|
27
|
-
else if (code == 2) {
|
28
|
-
err = "Too many signals set.\n";
|
29
|
-
}
|
30
|
-
else if (code == 3) {
|
31
|
-
err = "Signal already set.\n";
|
32
|
-
}
|
33
|
-
else if (code == 4) {
|
34
|
-
err = "Assert Failed.\n";
|
35
|
-
}
|
36
|
-
else if (code == 5) {
|
37
|
-
err = "Not enough memory.\n";
|
38
|
-
}
|
39
|
-
else if (code == 6) {
|
40
|
-
err = "Input signal array access exceeds the size.\n";
|
41
|
-
}
|
42
|
-
else {
|
43
|
-
err = "Unknown error.\n";
|
44
|
-
}
|
45
|
-
throw new Error(err + errStr);
|
46
|
-
},
|
47
|
-
printErrorMessage: function () {
|
48
|
-
errStr += getMessage() + "\n";
|
49
|
-
// console.error(getMessage());
|
50
|
-
},
|
51
|
-
writeBufferMessage: function () {
|
52
|
-
const msg = getMessage();
|
53
|
-
// Any calls to `log()` will always end with a `\n`, so that's when we print and reset
|
54
|
-
if (msg === "\n") {
|
55
|
-
console.log(msgStr);
|
56
|
-
msgStr = "";
|
57
|
-
}
|
58
|
-
else {
|
59
|
-
// If we've buffered other content, put a space in between the items
|
60
|
-
if (msgStr !== "") {
|
61
|
-
msgStr += " ";
|
62
|
-
}
|
63
|
-
// Then append the message to the message we are creating
|
64
|
-
msgStr += msg;
|
65
|
-
}
|
66
|
-
},
|
67
|
-
showSharedRWMemory: function () {
|
68
|
-
printSharedRWMemory();
|
69
|
-
}
|
70
|
-
}
|
71
|
-
});
|
72
|
-
const sanityCheck = options;
|
73
|
-
// options &&
|
74
|
-
// (
|
75
|
-
// options.sanityCheck ||
|
76
|
-
// options.logGetSignal ||
|
77
|
-
// options.logSetSignal ||
|
78
|
-
// options.logStartComponent ||
|
79
|
-
// options.logFinishComponent
|
80
|
-
// );
|
81
|
-
wc = new WitnessCalculator(instance, sanityCheck);
|
82
|
-
return wc;
|
83
|
-
function getMessage() {
|
84
|
-
var message = "";
|
85
|
-
var c = instance.exports.getMessageChar();
|
86
|
-
while (c != 0) {
|
87
|
-
message += String.fromCharCode(c);
|
88
|
-
c = instance.exports.getMessageChar();
|
89
|
-
}
|
90
|
-
return message;
|
91
|
-
}
|
92
|
-
function printSharedRWMemory() {
|
93
|
-
const shared_rw_memory_size = instance.exports.getFieldNumLen32();
|
94
|
-
const arr = new Uint32Array(shared_rw_memory_size);
|
95
|
-
for (let j = 0; j < shared_rw_memory_size; j++) {
|
96
|
-
arr[shared_rw_memory_size - 1 - j] = instance.exports.readSharedRWMemory(j);
|
97
|
-
}
|
98
|
-
// If we've buffered other content, put a space in between the items
|
99
|
-
if (msgStr !== "") {
|
100
|
-
msgStr += " ";
|
101
|
-
}
|
102
|
-
// Then append the value to the message we are creating
|
103
|
-
msgStr += (fromArray32(arr).toString());
|
104
|
-
}
|
105
|
-
};
|
106
|
-
class WitnessCalculator {
|
107
|
-
constructor(instance, sanityCheck) {
|
108
|
-
this.instance = instance;
|
109
|
-
this.version = this.instance.exports.getVersion();
|
110
|
-
this.n32 = this.instance.exports.getFieldNumLen32();
|
111
|
-
this.instance.exports.getRawPrime();
|
112
|
-
const arr = new Uint32Array(this.n32);
|
113
|
-
for (let i = 0; i < this.n32; i++) {
|
114
|
-
arr[this.n32 - 1 - i] = this.instance.exports.readSharedRWMemory(i);
|
115
|
-
}
|
116
|
-
this.prime = fromArray32(arr);
|
117
|
-
this.witnessSize = this.instance.exports.getWitnessSize();
|
118
|
-
this.sanityCheck = sanityCheck;
|
119
|
-
}
|
120
|
-
circom_version() {
|
121
|
-
return this.instance.exports.getVersion();
|
122
|
-
}
|
123
|
-
async _doCalculateWitness(input, sanityCheck) {
|
124
|
-
//input is assumed to be a map from signals to arrays of bigints
|
125
|
-
this.instance.exports.init((this.sanityCheck || sanityCheck) ? 1 : 0);
|
126
|
-
const keys = Object.keys(input);
|
127
|
-
var input_counter = 0;
|
128
|
-
keys.forEach((k) => {
|
129
|
-
const h = fnvHash(k);
|
130
|
-
const hMSB = parseInt(h.slice(0, 8), 16);
|
131
|
-
const hLSB = parseInt(h.slice(8, 16), 16);
|
132
|
-
const fArr = flatArray(input[k]);
|
133
|
-
let signalSize = this.instance.exports.getInputSignalSize(hMSB, hLSB);
|
134
|
-
if (signalSize < 0) {
|
135
|
-
throw new Error(`Signal ${k} not found\n`);
|
136
|
-
}
|
137
|
-
if (fArr.length < signalSize) {
|
138
|
-
throw new Error(`Not enough values for input signal ${k}\n`);
|
139
|
-
}
|
140
|
-
if (fArr.length > signalSize) {
|
141
|
-
throw new Error(`Too many values for input signal ${k}\n`);
|
142
|
-
}
|
143
|
-
for (let i = 0; i < fArr.length; i++) {
|
144
|
-
const arrFr = toArray32(BigInt(fArr[i]) % this.prime, this.n32);
|
145
|
-
for (let j = 0; j < this.n32; j++) {
|
146
|
-
this.instance.exports.writeSharedRWMemory(j, arrFr[this.n32 - 1 - j]);
|
147
|
-
}
|
148
|
-
try {
|
149
|
-
this.instance.exports.setInputSignal(hMSB, hLSB, i);
|
150
|
-
input_counter++;
|
151
|
-
}
|
152
|
-
catch (err) {
|
153
|
-
// console.log(`After adding signal ${i} of ${k}`)
|
154
|
-
throw new Error(err);
|
155
|
-
}
|
156
|
-
}
|
157
|
-
});
|
158
|
-
if (input_counter < this.instance.exports.getInputSize()) {
|
159
|
-
throw new Error(`Not all inputs have been set. Only ${input_counter} out of ${this.instance.exports.getInputSize()}`);
|
160
|
-
}
|
161
|
-
}
|
162
|
-
async calculateWitness(input, sanityCheck) {
|
163
|
-
const w = [];
|
164
|
-
await this._doCalculateWitness(input, sanityCheck);
|
165
|
-
for (let i = 0; i < this.witnessSize; i++) {
|
166
|
-
this.instance.exports.getWitness(i);
|
167
|
-
const arr = new Uint32Array(this.n32);
|
168
|
-
for (let j = 0; j < this.n32; j++) {
|
169
|
-
arr[this.n32 - 1 - j] = this.instance.exports.readSharedRWMemory(j);
|
170
|
-
}
|
171
|
-
w.push(fromArray32(arr));
|
172
|
-
}
|
173
|
-
return w;
|
174
|
-
}
|
175
|
-
async calculateBinWitness(input, sanityCheck) {
|
176
|
-
const buff32 = new Uint32Array(this.witnessSize * this.n32);
|
177
|
-
const buff = new Uint8Array(buff32.buffer);
|
178
|
-
await this._doCalculateWitness(input, sanityCheck);
|
179
|
-
for (let i = 0; i < this.witnessSize; i++) {
|
180
|
-
this.instance.exports.getWitness(i);
|
181
|
-
const pos = i * this.n32;
|
182
|
-
for (let j = 0; j < this.n32; j++) {
|
183
|
-
buff32[pos + j] = this.instance.exports.readSharedRWMemory(j);
|
184
|
-
}
|
185
|
-
}
|
186
|
-
return buff;
|
187
|
-
}
|
188
|
-
async calculateWTNSBin(input, sanityCheck) {
|
189
|
-
const buff32 = new Uint32Array(this.witnessSize * this.n32 + this.n32 + 11);
|
190
|
-
const buff = new Uint8Array(buff32.buffer);
|
191
|
-
await this._doCalculateWitness(input, sanityCheck);
|
192
|
-
//"wtns"
|
193
|
-
buff[0] = "w".charCodeAt(0);
|
194
|
-
buff[1] = "t".charCodeAt(0);
|
195
|
-
buff[2] = "n".charCodeAt(0);
|
196
|
-
buff[3] = "s".charCodeAt(0);
|
197
|
-
//version 2
|
198
|
-
buff32[1] = 2;
|
199
|
-
//number of sections: 2
|
200
|
-
buff32[2] = 2;
|
201
|
-
//id section 1
|
202
|
-
buff32[3] = 1;
|
203
|
-
const n8 = this.n32 * 4;
|
204
|
-
//id section 1 length in 64bytes
|
205
|
-
const idSection1length = 8 + n8;
|
206
|
-
const idSection1lengthHex = idSection1length.toString(16);
|
207
|
-
buff32[4] = parseInt(idSection1lengthHex.slice(0, 8), 16);
|
208
|
-
buff32[5] = parseInt(idSection1lengthHex.slice(8, 16), 16);
|
209
|
-
//this.n32
|
210
|
-
buff32[6] = n8;
|
211
|
-
//prime number
|
212
|
-
this.instance.exports.getRawPrime();
|
213
|
-
var pos = 7;
|
214
|
-
for (let j = 0; j < this.n32; j++) {
|
215
|
-
buff32[pos + j] = this.instance.exports.readSharedRWMemory(j);
|
216
|
-
}
|
217
|
-
pos += this.n32;
|
218
|
-
// witness size
|
219
|
-
buff32[pos] = this.witnessSize;
|
220
|
-
pos++;
|
221
|
-
//id section 2
|
222
|
-
buff32[pos] = 2;
|
223
|
-
pos++;
|
224
|
-
// section 2 length
|
225
|
-
const idSection2length = n8 * this.witnessSize;
|
226
|
-
const idSection2lengthHex = idSection2length.toString(16);
|
227
|
-
buff32[pos] = parseInt(idSection2lengthHex.slice(0, 8), 16);
|
228
|
-
buff32[pos + 1] = parseInt(idSection2lengthHex.slice(8, 16), 16);
|
229
|
-
pos += 2;
|
230
|
-
for (let i = 0; i < this.witnessSize; i++) {
|
231
|
-
this.instance.exports.getWitness(i);
|
232
|
-
for (let j = 0; j < this.n32; j++) {
|
233
|
-
buff32[pos + j] = this.instance.exports.readSharedRWMemory(j);
|
234
|
-
}
|
235
|
-
pos += this.n32;
|
236
|
-
}
|
237
|
-
return buff;
|
238
|
-
}
|
239
|
-
}
|
240
|
-
function toArray32(rem, size) {
|
241
|
-
const res = []; //new Uint32Array(size); //has no unshift
|
242
|
-
const radix = BigInt(0x100000000);
|
243
|
-
while (rem) {
|
244
|
-
res.unshift(Number(rem % radix));
|
245
|
-
rem = rem / radix;
|
246
|
-
}
|
247
|
-
if (size) {
|
248
|
-
var i = size - res.length;
|
249
|
-
while (i > 0) {
|
250
|
-
res.unshift(0);
|
251
|
-
i--;
|
252
|
-
}
|
253
|
-
}
|
254
|
-
return res;
|
255
|
-
}
|
256
|
-
function fromArray32(arr) {
|
257
|
-
var res = BigInt(0);
|
258
|
-
const radix = BigInt(0x100000000);
|
259
|
-
for (let i = 0; i < arr.length; i++) {
|
260
|
-
res = res * radix + BigInt(arr[i]);
|
261
|
-
}
|
262
|
-
return res;
|
263
|
-
}
|
264
|
-
function flatArray(a) {
|
265
|
-
var res = [];
|
266
|
-
fillArray(res, a);
|
267
|
-
return res;
|
268
|
-
function fillArray(res, a) {
|
269
|
-
if (Array.isArray(a)) {
|
270
|
-
for (let i = 0; i < a.length; i++) {
|
271
|
-
fillArray(res, a[i]);
|
272
|
-
}
|
273
|
-
}
|
274
|
-
else {
|
275
|
-
res.push(a);
|
276
|
-
}
|
277
|
-
}
|
278
|
-
}
|
279
|
-
function fnvHash(str) {
|
280
|
-
const uint64_max = BigInt(2) ** BigInt(64);
|
281
|
-
let hash = BigInt("0xCBF29CE484222325");
|
282
|
-
for (var i = 0; i < str.length; i++) {
|
283
|
-
hash ^= BigInt(str[i].charCodeAt());
|
284
|
-
hash *= BigInt(0x100000001B3);
|
285
|
-
hash %= uint64_max;
|
286
|
-
}
|
287
|
-
let shash = hash.toString(16);
|
288
|
-
let n = 16 - shash.length;
|
289
|
-
shash = '0'.repeat(n).concat(shash);
|
290
|
-
return shash;
|
291
|
-
}
|
292
|
-
module.exports = { builder };
|
293
|
-
export {};
|
294
|
-
//# sourceMappingURL=witness_calculator.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"witness_calculator.cjs","sourceRoot":"","sources":["../src/witness_calculator.cjs"],"names":[],"mappings":"AAAA,cAAc;AACd,kBAAkB;AAElB,sDAAsD;AACtD,mCAAmC;AACnC,uEAAuE;AAEvE,MAAM,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO,CAAC,IAAI,EAAE,OAAO;IAEjD,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;IAExB,IAAI,UAAU,CAAC;IACf,IAAI;QACP,UAAU,GAAG,MAAM,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;KACzC;IAAE,OAAO,GAAG,EAAE;QAClB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjB,OAAO,CAAC,GAAG,CAAC,iEAAiE,CAAC,CAAC;QAC/E,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;KACjB;IAED,IAAI,EAAE,CAAC;IAEP,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,WAAW,CAAC,UAAU,EAAE;QACvD,OAAO,EAAE;YACL,gBAAgB,EAAG,UAAS,IAAI;gBAC1C,IAAI,GAAG,CAAC;gBACM,IAAI,IAAI,IAAI,CAAC,EAAE;oBACX,GAAG,GAAG,qBAAqB,CAAC;iBAC/B;qBAAM,IAAI,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C;IAC3C,IAAI,IAAI,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,IAAI,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC;QACpC,IAAI,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC;QAC9B,IAAI,IAAI,UAAU,CAAC;KACf;IACD,IAAI,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC9B,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;IAC1B,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpC,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,OAAO,EAAE,CAAA"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
declare function _exports(code: any, options: any): Promise<WitnessCalculator>;
|
2
|
-
declare namespace _exports { }
|
3
|
-
export = _exports;
|
4
|
-
declare class WitnessCalculator {
|
5
|
-
constructor(instance: any, sanityCheck: any);
|
6
|
-
instance: any;
|
7
|
-
version: any;
|
8
|
-
n32: any;
|
9
|
-
prime: bigint;
|
10
|
-
witnessSize: any;
|
11
|
-
sanityCheck: any;
|
12
|
-
circom_version(): any;
|
13
|
-
_doCalculateWitness(input: any, sanityCheck: any): Promise<void>;
|
14
|
-
calculateWitness(input: any, sanityCheck: any): Promise<bigint[]>;
|
15
|
-
calculateBinWitness(input: any, sanityCheck: any): Promise<Uint8Array>;
|
16
|
-
calculateWTNSBin(input: any, sanityCheck: any): Promise<Uint8Array>;
|
17
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./rln_wasm_bg.js";
|
package/dist/zerokit/rln_wasm.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"rln_wasm.js","sourceRoot":"","sources":["../../src/zerokit/rln_wasm.js"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC"}
|
@@ -1,108 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
*/
|
3
|
-
export function init_panic_hook(): void;
|
4
|
-
/**
|
5
|
-
* @param {number} tree_height
|
6
|
-
* @param {Uint8Array} zkey
|
7
|
-
* @param {Uint8Array} vk
|
8
|
-
* @returns {number}
|
9
|
-
*/
|
10
|
-
export function newRLN(tree_height: number, zkey: Uint8Array, vk: Uint8Array): number;
|
11
|
-
/**
|
12
|
-
* @param {number} ctx
|
13
|
-
* @param {Uint8Array} input
|
14
|
-
* @returns {Uint8Array}
|
15
|
-
*/
|
16
|
-
export function getSerializedRLNWitness(ctx: number, input: Uint8Array): Uint8Array;
|
17
|
-
/**
|
18
|
-
* @param {number} ctx
|
19
|
-
* @param {Uint8Array} input
|
20
|
-
*/
|
21
|
-
export function insertMember(ctx: number, input: Uint8Array): void;
|
22
|
-
/**
|
23
|
-
* @param {number} ctx
|
24
|
-
* @param {Uint8Array} serialized_witness
|
25
|
-
* @returns {object}
|
26
|
-
*/
|
27
|
-
export function RLNWitnessToJson(ctx: number, serialized_witness: Uint8Array): object;
|
28
|
-
/**
|
29
|
-
* @param {number} ctx
|
30
|
-
* @param {(bigint)[]} calculated_witness
|
31
|
-
* @param {Uint8Array} serialized_witness
|
32
|
-
* @returns {Uint8Array}
|
33
|
-
*/
|
34
|
-
export function generate_rln_proof_with_witness(ctx: number, calculated_witness: (bigint)[], serialized_witness: Uint8Array): Uint8Array;
|
35
|
-
/**
|
36
|
-
* @param {number} ctx
|
37
|
-
* @returns {Uint8Array}
|
38
|
-
*/
|
39
|
-
export function generateMembershipKey(ctx: number): Uint8Array;
|
40
|
-
/**
|
41
|
-
* @param {number} ctx
|
42
|
-
* @param {Uint8Array} proof
|
43
|
-
* @returns {boolean}
|
44
|
-
*/
|
45
|
-
export function verifyProof(ctx: number, proof: Uint8Array): boolean;
|
46
|
-
export function __wbindgen_string_new(arg0: any, arg1: any): number;
|
47
|
-
export function __wbindgen_object_drop_ref(arg0: any): void;
|
48
|
-
export function __wbindgen_is_string(arg0: any): boolean;
|
49
|
-
export function __wbindgen_string_get(arg0: any, arg1: any): void;
|
50
|
-
export function __wbg_BigInt_73b2c10d8e6eb5a5(arg0: any, arg1: any): number;
|
51
|
-
export function __wbindgen_number_new(arg0: any): number;
|
52
|
-
export function __wbg_BigInt_1a499fbb5f402f4c(arg0: any, arg1: any): number;
|
53
|
-
export function __wbindgen_object_clone_ref(arg0: any): number;
|
54
|
-
export function __wbindgen_is_undefined(arg0: any): boolean;
|
55
|
-
export function __wbindgen_is_object(arg0: any): boolean;
|
56
|
-
export function __wbg_set_e93b31d47b90bff6(arg0: any, arg1: any, arg2: any): void;
|
57
|
-
export function __wbg_new_693216e109162396(): number;
|
58
|
-
export function __wbg_stack_0ddaca5d1abfb52f(arg0: any, arg1: any): void;
|
59
|
-
export function __wbg_error_09919627ac0992f5(arg0: any, arg1: any): void;
|
60
|
-
export function __wbg_process_e56fd54cf6319b6c(arg0: any): number;
|
61
|
-
export function __wbg_versions_77e21455908dad33(arg0: any): number;
|
62
|
-
export function __wbg_node_0dd25d832e4785d5(arg0: any): number;
|
63
|
-
export function __wbg_static_accessor_NODE_MODULE_26b231378c1be7dd(): number;
|
64
|
-
export function __wbg_require_0db1598d9ccecb30(...args: any[]): any;
|
65
|
-
export function __wbg_crypto_b95d7173266618a9(arg0: any): number;
|
66
|
-
export function __wbg_msCrypto_5a86d77a66230f81(arg0: any): number;
|
67
|
-
export function __wbg_getRandomValues_b14734aa289bc356(...args: any[]): any;
|
68
|
-
export function __wbg_randomFillSync_91e2b39becca6147(...args: any[]): any;
|
69
|
-
export function __wbg_new_ee1a3da85465d621(): number;
|
70
|
-
export function __wbg_newnoargs_971e9a5abe185139(arg0: any, arg1: any): number;
|
71
|
-
export function __wbg_new_ac586205e4424583(): number;
|
72
|
-
export function __wbg_call_33d7bcddbbfa394a(...args: any[]): any;
|
73
|
-
export function __wbg_new_e6a9fecc2bf26696(): number;
|
74
|
-
export function __wbg_self_fd00a1ef86d1b2ed(...args: any[]): any;
|
75
|
-
export function __wbg_window_6f6e346d8bbd61d7(...args: any[]): any;
|
76
|
-
export function __wbg_globalThis_3348936ac49df00a(...args: any[]): any;
|
77
|
-
export function __wbg_global_67175caf56f55ca9(...args: any[]): any;
|
78
|
-
export function __wbg_set_64cc39858b2ec3f1(arg0: any, arg1: any, arg2: any): void;
|
79
|
-
export function __wbg_toString_b1dd862c6b41dd95(...args: any[]): any;
|
80
|
-
export function __wbg_new_3ee7ebe9952c1fbd(arg0: any, arg1: any): number;
|
81
|
-
export function __wbg_set_a55cff623a9eaa21(arg0: any, arg1: any, arg2: any): number;
|
82
|
-
export function __wbg_fromEntries_576d8e028b09637c(...args: any[]): any;
|
83
|
-
export function __wbg_buffer_34f5ec9f8a838ba0(arg0: any): number;
|
84
|
-
export function __wbg_newwithbyteoffsetandlength_88fdad741db1b182(arg0: any, arg1: any, arg2: any): number;
|
85
|
-
export function __wbg_new_cda198d9dbc6d7ea(arg0: any): number;
|
86
|
-
export function __wbg_set_1a930cfcda1a8067(arg0: any, arg1: any, arg2: any): void;
|
87
|
-
export function __wbg_length_51f19f73d6d9eff3(arg0: any): any;
|
88
|
-
export function __wbg_newwithlength_66e5530e7079ea1b(arg0: any): number;
|
89
|
-
export function __wbg_subarray_270ff8dd5582c1ac(arg0: any, arg1: any, arg2: any): number;
|
90
|
-
export function __wbindgen_debug_string(arg0: any, arg1: any): void;
|
91
|
-
export function __wbindgen_throw(arg0: any, arg1: any): void;
|
92
|
-
export function __wbindgen_memory(): number;
|
93
|
-
/**
|
94
|
-
*/
|
95
|
-
export class RLN {
|
96
|
-
__destroy_into_raw(): number | undefined;
|
97
|
-
ptr: number | undefined;
|
98
|
-
free(): void;
|
99
|
-
}
|
100
|
-
/**
|
101
|
-
* A struct representing an aborted instruction execution, with a message
|
102
|
-
* indicating the cause.
|
103
|
-
*/
|
104
|
-
export class WasmerRuntimeError {
|
105
|
-
__destroy_into_raw(): number | undefined;
|
106
|
-
ptr: number | undefined;
|
107
|
-
free(): void;
|
108
|
-
}
|