@noir-lang/acvm_js 1.0.0-beta.18-e51d969.nightly → 1.0.0-beta.18-78a5445.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/acvm_js.d.ts +14 -14
- package/nodejs/acvm_js_bg.wasm +0 -0
- package/package.json +1 -1
- package/web/acvm_js.d.ts +14 -14
- package/web/acvm_js_bg.wasm +0 -0
package/nodejs/acvm_js.d.ts
CHANGED
|
@@ -131,20 +131,6 @@ export type ExecutionError = Error & {
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
export type ForeignCallInput = string[]
|
|
135
|
-
export type ForeignCallOutput = string | string[]
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* A callback which performs an foreign call and returns the response.
|
|
139
|
-
* @callback ForeignCallHandler
|
|
140
|
-
* @param {string} name - The identifier for the type of foreign call being performed.
|
|
141
|
-
* @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
|
|
142
|
-
* @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
|
|
143
|
-
*/
|
|
144
|
-
export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
134
|
// Map from witness index to hex string value of witness.
|
|
149
135
|
export type WitnessMap = Map<number, string>;
|
|
150
136
|
|
|
@@ -160,6 +146,20 @@ export type SolvedAndReturnWitness = {
|
|
|
160
146
|
|
|
161
147
|
|
|
162
148
|
|
|
149
|
+
export type ForeignCallInput = string[]
|
|
150
|
+
export type ForeignCallOutput = string | string[]
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* A callback which performs an foreign call and returns the response.
|
|
154
|
+
* @callback ForeignCallHandler
|
|
155
|
+
* @param {string} name - The identifier for the type of foreign call being performed.
|
|
156
|
+
* @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
|
|
157
|
+
* @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
|
|
158
|
+
*/
|
|
159
|
+
export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
163
|
export type StackItem = {
|
|
164
164
|
index: number;
|
|
165
165
|
witness: WitnessMap;
|
package/nodejs/acvm_js_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/web/acvm_js.d.ts
CHANGED
|
@@ -131,20 +131,6 @@ export type ExecutionError = Error & {
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
export type ForeignCallInput = string[]
|
|
135
|
-
export type ForeignCallOutput = string | string[]
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* A callback which performs an foreign call and returns the response.
|
|
139
|
-
* @callback ForeignCallHandler
|
|
140
|
-
* @param {string} name - The identifier for the type of foreign call being performed.
|
|
141
|
-
* @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
|
|
142
|
-
* @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
|
|
143
|
-
*/
|
|
144
|
-
export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
134
|
// Map from witness index to hex string value of witness.
|
|
149
135
|
export type WitnessMap = Map<number, string>;
|
|
150
136
|
|
|
@@ -160,6 +146,20 @@ export type SolvedAndReturnWitness = {
|
|
|
160
146
|
|
|
161
147
|
|
|
162
148
|
|
|
149
|
+
export type ForeignCallInput = string[]
|
|
150
|
+
export type ForeignCallOutput = string | string[]
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* A callback which performs an foreign call and returns the response.
|
|
154
|
+
* @callback ForeignCallHandler
|
|
155
|
+
* @param {string} name - The identifier for the type of foreign call being performed.
|
|
156
|
+
* @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
|
|
157
|
+
* @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
|
|
158
|
+
*/
|
|
159
|
+
export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
163
|
export type StackItem = {
|
|
164
164
|
index: number;
|
|
165
165
|
witness: WitnessMap;
|
package/web/acvm_js_bg.wasm
CHANGED
|
Binary file
|