@aztec/noir-noir_js 0.80.0 → 0.82.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/base64_decode.cjs +1 -2
- package/lib/index.cjs +17 -7
- package/lib/program.cjs +17 -7
- package/lib/witness_generation.cjs +1 -2
- package/package.json +14 -14
package/lib/base64_decode.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.base64Decode =
|
|
3
|
+
exports.base64Decode = base64Decode;
|
|
4
4
|
// Since this is a simple function, we can use feature detection to
|
|
5
5
|
// see if we are in the nodeJs environment or the browser environment.
|
|
6
6
|
function base64Decode(input) {
|
|
@@ -16,4 +16,3 @@ function base64Decode(input) {
|
|
|
16
16
|
throw new Error('No implementation found for base64 decoding.');
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
exports.base64Decode = base64Decode;
|
package/lib/index.cjs
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.abi = exports.acvm = exports.Noir = exports.and = exports.xor = exports.blake2s256 = exports.ecdsa_secp256k1_verify = exports.ecdsa_secp256r1_verify = void 0;
|
|
27
37
|
const acvm = __importStar(require("@aztec/noir-acvm_js"));
|
package/lib/program.cjs
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.Noir = void 0;
|
|
27
37
|
const witness_generation_js_1 = require("./witness_generation.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateWitness =
|
|
3
|
+
exports.generateWitness = generateWitness;
|
|
4
4
|
const noirc_abi_1 = require("@aztec/noir-noirc_abi");
|
|
5
5
|
const base64_decode_js_1 = require("./base64_decode.cjs");
|
|
6
6
|
const acvm_js_1 = require("@aztec/noir-acvm_js");
|
|
@@ -54,4 +54,3 @@ async function generateWitness(compiledProgram, inputs, foreignCallHandler = def
|
|
|
54
54
|
throw new Error(`Circuit execution failed: ${err}`);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
exports.generateWitness = generateWitness;
|
package/package.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contributors": [
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
7
|
-
"packageManager": "yarn@
|
|
6
|
+
"version": "0.82.0",
|
|
7
|
+
"packageManager": "yarn@4.5.2",
|
|
8
8
|
"license": "(MIT OR Apache-2.0)",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"homepage": "https://noir-lang.org/",
|
|
@@ -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.82.0",
|
|
21
|
+
"@aztec/noir-noirc_abi": "0.82.0",
|
|
22
|
+
"@aztec/noir-types": "0.82.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"lib",
|
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
"test:node:cjs": "mocha --timeout 25000 --exit --config ./.mocharc.cjs.json",
|
|
44
44
|
"prettier": "prettier 'src/**/*.ts'",
|
|
45
45
|
"prettier:fix": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
|
|
46
|
-
"lint": "NODE_NO_WARNINGS=1 eslint . --
|
|
46
|
+
"lint": "NODE_NO_WARNINGS=1 eslint . --max-warnings 0",
|
|
47
47
|
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
|
|
48
48
|
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
|
|
49
49
|
"clean": "rm -rf ./lib"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/chai": "^4",
|
|
53
|
-
"@types/mocha": "^10.0.
|
|
54
|
-
"@types/node": "^
|
|
55
|
-
"@types/prettier": "^3",
|
|
53
|
+
"@types/mocha": "^10.0.10",
|
|
54
|
+
"@types/node": "^22.13.10",
|
|
55
|
+
"@types/prettier": "^3.0.0",
|
|
56
56
|
"chai": "^4.4.1",
|
|
57
|
-
"eslint": "^
|
|
58
|
-
"eslint-plugin-prettier": "^5.
|
|
59
|
-
"mocha": "^
|
|
60
|
-
"prettier": "3.
|
|
57
|
+
"eslint": "^9.22.0",
|
|
58
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
59
|
+
"mocha": "^11.1.0",
|
|
60
|
+
"prettier": "3.5.3",
|
|
61
61
|
"ts-node": "^10.9.1",
|
|
62
62
|
"tsc-multi": "^1.1.0",
|
|
63
63
|
"tsx": "^4.6.2",
|
|
64
|
-
"typescript": "^5.
|
|
64
|
+
"typescript": "^5.8.2"
|
|
65
65
|
}
|
|
66
66
|
}
|