@noir-lang/noir_wasm 0.21.0-fa1cf5f.nightly → 0.22.0-57eae42.nightly
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/nodejs/noir_wasm.d.ts +0 -10
- package/nodejs/noir_wasm.js +6 -45
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/nodejs/noir_wasm_bg.wasm.d.ts +0 -2
- package/package.json +1 -1
- package/web/noir_wasm.d.ts +0 -12
- package/web/noir_wasm.js +5 -44
- package/web/noir_wasm_bg.wasm +0 -0
- package/web/noir_wasm_bg.wasm.d.ts +0 -2
package/nodejs/noir_wasm.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {Uint8Array} bytes
|
|
5
|
-
* @returns {any}
|
|
6
|
-
*/
|
|
7
|
-
export function acir_read_bytes(bytes: Uint8Array): any;
|
|
8
|
-
/**
|
|
9
|
-
* @param {any} acir
|
|
10
|
-
* @returns {Uint8Array}
|
|
11
|
-
*/
|
|
12
|
-
export function acir_write_bytes(acir: any): Uint8Array;
|
|
13
|
-
/**
|
|
14
4
|
* This is a method that exposes the same API as `compile`
|
|
15
5
|
* But uses the Context based APi internally
|
|
16
6
|
* @param {string} entry_point
|
package/nodejs/noir_wasm.js
CHANGED
|
@@ -183,45 +183,6 @@ function debugString(val) {
|
|
|
183
183
|
return className;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
187
|
-
const ptr = malloc(arg.length * 1) >>> 0;
|
|
188
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
189
|
-
WASM_VECTOR_LEN = arg.length;
|
|
190
|
-
return ptr;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* @param {Uint8Array} bytes
|
|
194
|
-
* @returns {any}
|
|
195
|
-
*/
|
|
196
|
-
module.exports.acir_read_bytes = function(bytes) {
|
|
197
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
|
|
198
|
-
const len0 = WASM_VECTOR_LEN;
|
|
199
|
-
const ret = wasm.acir_read_bytes(ptr0, len0);
|
|
200
|
-
return takeObject(ret);
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
204
|
-
ptr = ptr >>> 0;
|
|
205
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @param {any} acir
|
|
209
|
-
* @returns {Uint8Array}
|
|
210
|
-
*/
|
|
211
|
-
module.exports.acir_write_bytes = function(acir) {
|
|
212
|
-
try {
|
|
213
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
214
|
-
wasm.acir_write_bytes(retptr, addHeapObject(acir));
|
|
215
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
216
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
217
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
218
|
-
wasm.__wbindgen_export_2(r0, r1 * 1);
|
|
219
|
-
return v1;
|
|
220
|
-
} finally {
|
|
221
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
|
|
225
186
|
function _assertClass(instance, klass) {
|
|
226
187
|
if (!(instance instanceof klass)) {
|
|
227
188
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -491,21 +452,21 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
491
452
|
takeObject(arg0);
|
|
492
453
|
};
|
|
493
454
|
|
|
494
|
-
module.exports.
|
|
455
|
+
module.exports.__wbg_constructor_a29cdb41a75eb0e8 = function(arg0) {
|
|
495
456
|
const ret = new Error(takeObject(arg0));
|
|
496
457
|
return addHeapObject(ret);
|
|
497
458
|
};
|
|
498
459
|
|
|
460
|
+
module.exports.__wbg_constructor_a3b5b211c5053ce8 = function() {
|
|
461
|
+
const ret = new Object();
|
|
462
|
+
return addHeapObject(ret);
|
|
463
|
+
};
|
|
464
|
+
|
|
499
465
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
500
466
|
const ret = getObject(arg0) === undefined;
|
|
501
467
|
return ret;
|
|
502
468
|
};
|
|
503
469
|
|
|
504
|
-
module.exports.__wbg_constructor_0fbcf25c6da50731 = function() {
|
|
505
|
-
const ret = new Object();
|
|
506
|
-
return addHeapObject(ret);
|
|
507
|
-
};
|
|
508
|
-
|
|
509
470
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
510
471
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
511
472
|
return addHeapObject(ret);
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function acir_read_bytes(a: number, b: number): number;
|
|
5
|
-
export function acir_write_bytes(a: number, b: number): void;
|
|
6
4
|
export function __wbg_compilercontext_free(a: number): void;
|
|
7
5
|
export function __wbg_crateid_free(a: number): void;
|
|
8
6
|
export function compilercontext_new(a: number): number;
|
package/package.json
CHANGED
package/web/noir_wasm.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {Uint8Array} bytes
|
|
5
|
-
* @returns {any}
|
|
6
|
-
*/
|
|
7
|
-
export function acir_read_bytes(bytes: Uint8Array): any;
|
|
8
|
-
/**
|
|
9
|
-
* @param {any} acir
|
|
10
|
-
* @returns {Uint8Array}
|
|
11
|
-
*/
|
|
12
|
-
export function acir_write_bytes(acir: any): Uint8Array;
|
|
13
|
-
/**
|
|
14
4
|
* This is a method that exposes the same API as `compile`
|
|
15
5
|
* But uses the Context based APi internally
|
|
16
6
|
* @param {string} entry_point
|
|
@@ -152,8 +142,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
152
142
|
|
|
153
143
|
export interface InitOutput {
|
|
154
144
|
readonly memory: WebAssembly.Memory;
|
|
155
|
-
readonly acir_read_bytes: (a: number, b: number) => number;
|
|
156
|
-
readonly acir_write_bytes: (a: number, b: number) => void;
|
|
157
145
|
readonly __wbg_compilercontext_free: (a: number) => void;
|
|
158
146
|
readonly __wbg_crateid_free: (a: number) => void;
|
|
159
147
|
readonly compilercontext_new: (a: number) => number;
|
package/web/noir_wasm.js
CHANGED
|
@@ -180,45 +180,6 @@ function debugString(val) {
|
|
|
180
180
|
return className;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
184
|
-
const ptr = malloc(arg.length * 1) >>> 0;
|
|
185
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
186
|
-
WASM_VECTOR_LEN = arg.length;
|
|
187
|
-
return ptr;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @param {Uint8Array} bytes
|
|
191
|
-
* @returns {any}
|
|
192
|
-
*/
|
|
193
|
-
export function acir_read_bytes(bytes) {
|
|
194
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
|
|
195
|
-
const len0 = WASM_VECTOR_LEN;
|
|
196
|
-
const ret = wasm.acir_read_bytes(ptr0, len0);
|
|
197
|
-
return takeObject(ret);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
201
|
-
ptr = ptr >>> 0;
|
|
202
|
-
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* @param {any} acir
|
|
206
|
-
* @returns {Uint8Array}
|
|
207
|
-
*/
|
|
208
|
-
export function acir_write_bytes(acir) {
|
|
209
|
-
try {
|
|
210
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
211
|
-
wasm.acir_write_bytes(retptr, addHeapObject(acir));
|
|
212
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
213
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
214
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
215
|
-
wasm.__wbindgen_export_2(r0, r1 * 1);
|
|
216
|
-
return v1;
|
|
217
|
-
} finally {
|
|
218
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
183
|
function _assertClass(instance, klass) {
|
|
223
184
|
if (!(instance instanceof klass)) {
|
|
224
185
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -518,18 +479,18 @@ function __wbg_get_imports() {
|
|
|
518
479
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
519
480
|
takeObject(arg0);
|
|
520
481
|
};
|
|
521
|
-
imports.wbg.
|
|
482
|
+
imports.wbg.__wbg_constructor_a29cdb41a75eb0e8 = function(arg0) {
|
|
522
483
|
const ret = new Error(takeObject(arg0));
|
|
523
484
|
return addHeapObject(ret);
|
|
524
485
|
};
|
|
486
|
+
imports.wbg.__wbg_constructor_a3b5b211c5053ce8 = function() {
|
|
487
|
+
const ret = new Object();
|
|
488
|
+
return addHeapObject(ret);
|
|
489
|
+
};
|
|
525
490
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
526
491
|
const ret = getObject(arg0) === undefined;
|
|
527
492
|
return ret;
|
|
528
493
|
};
|
|
529
|
-
imports.wbg.__wbg_constructor_0fbcf25c6da50731 = function() {
|
|
530
|
-
const ret = new Object();
|
|
531
|
-
return addHeapObject(ret);
|
|
532
|
-
};
|
|
533
494
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
534
495
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
535
496
|
return addHeapObject(ret);
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function acir_read_bytes(a: number, b: number): number;
|
|
5
|
-
export function acir_write_bytes(a: number, b: number): void;
|
|
6
4
|
export function __wbg_compilercontext_free(a: number): void;
|
|
7
5
|
export function __wbg_crateid_free(a: number): void;
|
|
8
6
|
export function compilercontext_new(a: number): number;
|