@noir-lang/types 0.14.1 → 0.16.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/cjs/types.d.ts +8 -4
- package/lib/esm/types.d.ts +8 -4
- package/package.json +2 -2
package/lib/cjs/types.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export interface Backend {
|
|
2
|
-
generateFinalProof(decompressedWitness: Uint8Array): Promise<
|
|
3
|
-
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<
|
|
4
|
-
verifyFinalProof(
|
|
5
|
-
verifyIntermediateProof(
|
|
2
|
+
generateFinalProof(decompressedWitness: Uint8Array): Promise<ProofData>;
|
|
3
|
+
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<ProofData>;
|
|
4
|
+
verifyFinalProof(proofData: ProofData): Promise<boolean>;
|
|
5
|
+
verifyIntermediateProof(proofData: ProofData): Promise<boolean>;
|
|
6
6
|
}
|
|
7
|
+
export type ProofData = {
|
|
8
|
+
publicInputs: Uint8Array[];
|
|
9
|
+
proof: Uint8Array;
|
|
10
|
+
};
|
|
7
11
|
export type CompiledCircuit = {
|
|
8
12
|
bytecode: string;
|
|
9
13
|
abi: object;
|
package/lib/esm/types.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export interface Backend {
|
|
2
|
-
generateFinalProof(decompressedWitness: Uint8Array): Promise<
|
|
3
|
-
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<
|
|
4
|
-
verifyFinalProof(
|
|
5
|
-
verifyIntermediateProof(
|
|
2
|
+
generateFinalProof(decompressedWitness: Uint8Array): Promise<ProofData>;
|
|
3
|
+
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<ProofData>;
|
|
4
|
+
verifyFinalProof(proofData: ProofData): Promise<boolean>;
|
|
5
|
+
verifyIntermediateProof(proofData: ProofData): Promise<boolean>;
|
|
6
6
|
}
|
|
7
|
+
export type ProofData = {
|
|
8
|
+
publicInputs: Uint8Array[];
|
|
9
|
+
proof: Uint8Array;
|
|
10
|
+
};
|
|
7
11
|
export type CompiledCircuit = {
|
|
8
12
|
bytecode: string;
|
|
9
13
|
abi: object;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
6
|
"packageManager": "yarn@3.5.1",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.16.0",
|
|
8
8
|
"license": "(MIT OR Apache-2.0)",
|
|
9
9
|
"files": [
|
|
10
10
|
"lib",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build:esm": "tsc",
|
|
18
18
|
"build:cjs": "tsc --module CommonJS --outDir lib/cjs",
|
|
19
19
|
"build": "yarn run build:cjs && yarn run build:esm",
|
|
20
|
-
"publish": "yarn npm publish",
|
|
20
|
+
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
|
|
21
21
|
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|