@noir-lang/noir_wasm
Advanced tools
Comparing version 0.4.1-3d2233d to 0.4.1-a10182e
@@ -5,4 +5,2 @@ /* tslint:disable */ | ||
export function compile(a: number): number; | ||
export function acir_from_bytes(a: number, b: number): number; | ||
export function acir_to_bytes(a: number, b: number): void; | ||
export function acir_read_bytes(a: number, b: number): number; | ||
@@ -9,0 +7,0 @@ export function acir_write_bytes(a: number, b: number): void; |
@@ -12,12 +12,2 @@ /* tslint:disable */ | ||
*/ | ||
export function acir_from_bytes(bytes: Uint8Array): any; | ||
/** | ||
* @param {any} acir | ||
* @returns {Uint8Array} | ||
*/ | ||
export function acir_to_bytes(acir: any): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {any} | ||
*/ | ||
export function acir_read_bytes(bytes: Uint8Array): any; | ||
@@ -24,0 +14,0 @@ /** |
@@ -139,6 +139,6 @@ let imports = {}; | ||
*/ | ||
module.exports.acir_from_bytes = function(bytes) { | ||
module.exports.acir_read_bytes = function(bytes) { | ||
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.acir_from_bytes(ptr0, len0); | ||
const ret = wasm.acir_read_bytes(ptr0, len0); | ||
return takeObject(ret); | ||
@@ -154,31 +154,2 @@ }; | ||
*/ | ||
module.exports.acir_to_bytes = function(acir) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.acir_to_bytes(retptr, addHeapObject(acir)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var v0 = getArrayU8FromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_export_2(r0, r1 * 1); | ||
return v0; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
}; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {any} | ||
*/ | ||
module.exports.acir_read_bytes = function(bytes) { | ||
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.acir_read_bytes(ptr0, len0); | ||
return takeObject(ret); | ||
}; | ||
/** | ||
* @param {any} acir | ||
* @returns {Uint8Array} | ||
*/ | ||
module.exports.acir_write_bytes = function(acir) { | ||
@@ -185,0 +156,0 @@ try { |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.4.1-3d2233d", | ||
"version": "0.4.1-a10182e", | ||
"files": [ | ||
@@ -25,4 +25,4 @@ "nodejs", | ||
"compiler": { | ||
"versionHash": "3d2233de810ab6d4a0f4f83007232133c88a49fe" | ||
"versionHash": "a10182e46c1bb2bd37237ff86f214fd11295624c" | ||
} | ||
} |
# Noir Lang WASM JavaScript Package | ||
## Tracks | ||
Noir lang Repository [noir-lang/noir@3d2233d](https://github.com/noir-lang/noir/tree/3d2233de810ab6d4a0f4f83007232133c88a49fe) | ||
Noir lang Repository [noir-lang/noir@a10182e](https://github.com/noir-lang/noir/tree/a10182e46c1bb2bd37237ff86f214fd11295624c) |
@@ -5,4 +5,2 @@ /* tslint:disable */ | ||
export function compile(a: number): number; | ||
export function acir_from_bytes(a: number, b: number): number; | ||
export function acir_to_bytes(a: number, b: number): void; | ||
export function acir_read_bytes(a: number, b: number): number; | ||
@@ -9,0 +7,0 @@ export function acir_write_bytes(a: number, b: number): void; |
@@ -12,12 +12,2 @@ /* tslint:disable */ | ||
*/ | ||
export function acir_from_bytes(bytes: Uint8Array): any; | ||
/** | ||
* @param {any} acir | ||
* @returns {Uint8Array} | ||
*/ | ||
export function acir_to_bytes(acir: any): Uint8Array; | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {any} | ||
*/ | ||
export function acir_read_bytes(bytes: Uint8Array): any; | ||
@@ -43,4 +33,2 @@ /** | ||
readonly compile: (a: number) => number; | ||
readonly acir_from_bytes: (a: number, b: number) => number; | ||
readonly acir_to_bytes: (a: number, b: number) => void; | ||
readonly acir_read_bytes: (a: number, b: number) => number; | ||
@@ -47,0 +35,0 @@ readonly acir_write_bytes: (a: number, b: number) => void; |
@@ -137,6 +137,6 @@ import { read_file } from '@noir-lang/noir-source-resolver'; | ||
*/ | ||
export function acir_from_bytes(bytes) { | ||
export function acir_read_bytes(bytes) { | ||
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.acir_from_bytes(ptr0, len0); | ||
const ret = wasm.acir_read_bytes(ptr0, len0); | ||
return takeObject(ret); | ||
@@ -152,31 +152,2 @@ } | ||
*/ | ||
export function acir_to_bytes(acir) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.acir_to_bytes(retptr, addHeapObject(acir)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var v0 = getArrayU8FromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_export_2(r0, r1 * 1); | ||
return v0; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
/** | ||
* @param {Uint8Array} bytes | ||
* @returns {any} | ||
*/ | ||
export function acir_read_bytes(bytes) { | ||
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.acir_read_bytes(ptr0, len0); | ||
return takeObject(ret); | ||
} | ||
/** | ||
* @param {any} acir | ||
* @returns {Uint8Array} | ||
*/ | ||
export function acir_write_bytes(acir) { | ||
@@ -183,0 +154,0 @@ try { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
8196907
641