@aztec/noir-noir_js 0.78.1 → 0.80.0
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/lib/index.cjs +3 -3
- package/lib/index.d.ts +6 -6
- package/lib/index.mjs +3 -3
- package/lib/program.cjs +2 -2
- package/lib/program.d.ts +3 -3
- package/lib/program.mjs +2 -2
- package/lib/witness_generation.cjs +2 -2
- package/lib/witness_generation.d.ts +3 -3
- package/lib/witness_generation.mjs +2 -2
- package/package.json +4 -4
package/lib/index.cjs
CHANGED
|
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.abi = exports.acvm = exports.Noir = exports.and = exports.xor = exports.blake2s256 = exports.ecdsa_secp256k1_verify = exports.ecdsa_secp256r1_verify = void 0;
|
|
27
|
-
const acvm = __importStar(require("@noir-
|
|
27
|
+
const acvm = __importStar(require("@aztec/noir-acvm_js"));
|
|
28
28
|
exports.acvm = acvm;
|
|
29
|
-
const abi = __importStar(require("@noir-
|
|
29
|
+
const abi = __importStar(require("@aztec/noir-noirc_abi"));
|
|
30
30
|
exports.abi = abi;
|
|
31
|
-
var acvm_js_1 = require("@noir-
|
|
31
|
+
var acvm_js_1 = require("@aztec/noir-acvm_js");
|
|
32
32
|
Object.defineProperty(exports, "ecdsa_secp256r1_verify", { enumerable: true, get: function () { return acvm_js_1.ecdsa_secp256r1_verify; } });
|
|
33
33
|
Object.defineProperty(exports, "ecdsa_secp256k1_verify", { enumerable: true, get: function () { return acvm_js_1.ecdsa_secp256k1_verify; } });
|
|
34
34
|
Object.defineProperty(exports, "blake2s256", { enumerable: true, get: function () { return acvm_js_1.blake2s256; } });
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as acvm from '@noir-
|
|
2
|
-
import * as abi from '@noir-
|
|
3
|
-
import { CompiledCircuit } from '@noir-
|
|
4
|
-
export { ecdsa_secp256r1_verify, ecdsa_secp256k1_verify, blake2s256, xor, and } from '@noir-
|
|
5
|
-
export { InputMap } from '@noir-
|
|
6
|
-
export { WitnessMap, ForeignCallHandler, ForeignCallInput, ForeignCallOutput } from '@noir-
|
|
1
|
+
import * as acvm from '@aztec/noir-acvm_js';
|
|
2
|
+
import * as abi from '@aztec/noir-noirc_abi';
|
|
3
|
+
import { CompiledCircuit } from '@aztec/noir-types';
|
|
4
|
+
export { ecdsa_secp256r1_verify, ecdsa_secp256k1_verify, blake2s256, xor, and } from '@aztec/noir-acvm_js';
|
|
5
|
+
export { InputMap } from '@aztec/noir-noirc_abi';
|
|
6
|
+
export { WitnessMap, ForeignCallHandler, ForeignCallInput, ForeignCallOutput } from '@aztec/noir-acvm_js';
|
|
7
7
|
export { Noir } from './program.js';
|
|
8
8
|
export { ErrorWithPayload } from './witness_generation.js';
|
|
9
9
|
/** @ignore */
|
package/lib/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as acvm from '@noir-
|
|
2
|
-
import * as abi from '@noir-
|
|
3
|
-
export { ecdsa_secp256r1_verify, ecdsa_secp256k1_verify, blake2s256, xor, and } from '@noir-
|
|
1
|
+
import * as acvm from '@aztec/noir-acvm_js';
|
|
2
|
+
import * as abi from '@aztec/noir-noirc_abi';
|
|
3
|
+
export { ecdsa_secp256r1_verify, ecdsa_secp256k1_verify, blake2s256, xor, and } from '@aztec/noir-acvm_js';
|
|
4
4
|
export { Noir } from "./program.mjs";
|
|
5
5
|
/** @ignore */
|
|
6
6
|
export { acvm, abi };
|
package/lib/program.cjs
CHANGED
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Noir = void 0;
|
|
27
27
|
const witness_generation_js_1 = require("./witness_generation.cjs");
|
|
28
|
-
const noirc_abi_1 = __importStar(require("@noir-
|
|
29
|
-
const acvm_js_1 = __importStar(require("@noir-
|
|
28
|
+
const noirc_abi_1 = __importStar(require("@aztec/noir-noirc_abi"));
|
|
29
|
+
const acvm_js_1 = __importStar(require("@aztec/noir-acvm_js"));
|
|
30
30
|
class Noir {
|
|
31
31
|
circuit;
|
|
32
32
|
constructor(circuit) {
|
package/lib/program.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CompiledCircuit } from '@noir-
|
|
2
|
-
import { InputMap, InputValue } from '@noir-
|
|
3
|
-
import { ForeignCallHandler } from '@noir-
|
|
1
|
+
import { CompiledCircuit } from '@aztec/noir-types';
|
|
2
|
+
import { InputMap, InputValue } from '@aztec/noir-noirc_abi';
|
|
3
|
+
import { ForeignCallHandler } from '@aztec/noir-acvm_js';
|
|
4
4
|
export declare class Noir {
|
|
5
5
|
private circuit;
|
|
6
6
|
constructor(circuit: CompiledCircuit);
|
package/lib/program.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { generateWitness } from "./witness_generation.mjs";
|
|
2
|
-
import initAbi, { abiDecode } from '@noir-
|
|
3
|
-
import initACVM, { compressWitnessStack } from '@noir-
|
|
2
|
+
import initAbi, { abiDecode } from '@aztec/noir-noirc_abi';
|
|
3
|
+
import initACVM, { compressWitnessStack } from '@aztec/noir-acvm_js';
|
|
4
4
|
export class Noir {
|
|
5
5
|
circuit;
|
|
6
6
|
constructor(circuit) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generateWitness = void 0;
|
|
4
|
-
const noirc_abi_1 = require("@noir-
|
|
4
|
+
const noirc_abi_1 = require("@aztec/noir-noirc_abi");
|
|
5
5
|
const base64_decode_js_1 = require("./base64_decode.cjs");
|
|
6
|
-
const acvm_js_1 = require("@noir-
|
|
6
|
+
const acvm_js_1 = require("@aztec/noir-acvm_js");
|
|
7
7
|
const defaultForeignCallHandler = async (name, args) => {
|
|
8
8
|
if (name == 'print') {
|
|
9
9
|
// By default we do not print anything for `print` foreign calls due to a need for formatting,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InputMap } from '@noir-
|
|
2
|
-
import { WitnessStack, ForeignCallHandler, ExecutionError } from '@noir-
|
|
3
|
-
import { CompiledCircuit } from '@noir-
|
|
1
|
+
import { InputMap } from '@aztec/noir-noirc_abi';
|
|
2
|
+
import { WitnessStack, ForeignCallHandler, ExecutionError } from '@aztec/noir-acvm_js';
|
|
3
|
+
import { CompiledCircuit } from '@aztec/noir-types';
|
|
4
4
|
export type ErrorWithPayload = ExecutionError & {
|
|
5
5
|
decodedAssertionPayload?: any;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { abiDecodeError, abiEncode } from '@noir-
|
|
1
|
+
import { abiDecodeError, abiEncode } from '@aztec/noir-noirc_abi';
|
|
2
2
|
import { base64Decode } from "./base64_decode.mjs";
|
|
3
|
-
import { executeProgram } from '@noir-
|
|
3
|
+
import { executeProgram } from '@aztec/noir-acvm_js';
|
|
4
4
|
const defaultForeignCallHandler = async (name, args) => {
|
|
5
5
|
if (name == 'print') {
|
|
6
6
|
// By default we do not print anything for `print` foreign calls due to a need for formatting,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"contributors": [
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.80.0",
|
|
7
7
|
"packageManager": "yarn@3.5.1",
|
|
8
8
|
"license": "(MIT OR Apache-2.0)",
|
|
9
9
|
"type": "module",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"url": "https://github.com/noir-lang/noir/issues"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@aztec/noir-acvm_js": "0.
|
|
21
|
-
"@aztec/noir-noirc_abi": "0.
|
|
22
|
-
"@aztec/noir-types": "0.
|
|
20
|
+
"@aztec/noir-acvm_js": "0.80.0",
|
|
21
|
+
"@aztec/noir-noirc_abi": "0.80.0",
|
|
22
|
+
"@aztec/noir-types": "0.80.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"lib",
|