@noir-lang/types 0.14.1
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/cjs/types.d.ts +10 -0
- package/lib/cjs/types.js +2 -0
- package/lib/esm/types.d.ts +10 -0
- package/lib/esm/types.js +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface Backend {
|
|
2
|
+
generateFinalProof(decompressedWitness: Uint8Array): Promise<Uint8Array>;
|
|
3
|
+
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<Uint8Array>;
|
|
4
|
+
verifyFinalProof(proof: Uint8Array): Promise<boolean>;
|
|
5
|
+
verifyIntermediateProof(proof: Uint8Array): Promise<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export type CompiledCircuit = {
|
|
8
|
+
bytecode: string;
|
|
9
|
+
abi: object;
|
|
10
|
+
};
|
package/lib/cjs/types.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface Backend {
|
|
2
|
+
generateFinalProof(decompressedWitness: Uint8Array): Promise<Uint8Array>;
|
|
3
|
+
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<Uint8Array>;
|
|
4
|
+
verifyFinalProof(proof: Uint8Array): Promise<boolean>;
|
|
5
|
+
verifyIntermediateProof(proof: Uint8Array): Promise<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export type CompiledCircuit = {
|
|
8
|
+
bytecode: string;
|
|
9
|
+
abi: object;
|
|
10
|
+
};
|
package/lib/esm/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@noir-lang/types",
|
|
3
|
+
"collaborators": [
|
|
4
|
+
"The Noir Team <team@noir-lang.org>"
|
|
5
|
+
],
|
|
6
|
+
"packageManager": "yarn@3.5.1",
|
|
7
|
+
"version": "0.14.1",
|
|
8
|
+
"license": "(MIT OR Apache-2.0)",
|
|
9
|
+
"files": [
|
|
10
|
+
"lib",
|
|
11
|
+
"package.json"
|
|
12
|
+
],
|
|
13
|
+
"main": "lib/cjs/types.js",
|
|
14
|
+
"module": "lib/esm/types.js",
|
|
15
|
+
"types": "lib/esm/types.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build:esm": "tsc",
|
|
18
|
+
"build:cjs": "tsc --module CommonJS --outDir lib/cjs",
|
|
19
|
+
"build": "yarn run build:cjs && yarn run build:esm",
|
|
20
|
+
"publish": "yarn npm publish",
|
|
21
|
+
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
|
|
22
|
+
},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": "./lib/esm/types.js",
|
|
26
|
+
"require": "./lib/cjs/types.js",
|
|
27
|
+
"types": "./lib/esm/types.d.ts"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/prettier": "^3",
|
|
32
|
+
"eslint": "^8.50.0",
|
|
33
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
34
|
+
"prettier": "3.0.3",
|
|
35
|
+
"typescript": "^5.2.2"
|
|
36
|
+
}
|
|
37
|
+
}
|