@noir-lang/noir_js
Advanced tools
Comparing version 0.16.0 to 0.16.0-37315f8.nightly
import * as acvm from '@noir-lang/acvm_js'; | ||
import * as abi from '@noir-lang/noirc_abi'; | ||
export { acvm, abi }; | ||
export { generateWitness } from './witness_generation.js'; | ||
export { acirToUint8Array, witnessMapToUint8Array } from './serialize.js'; | ||
export { WitnessMap } from '@noir-lang/acvm_js'; | ||
export { Noir } from './program.js'; |
@@ -1,9 +0,16 @@ | ||
import { Backend, CompiledCircuit } from '@noir-lang/types'; | ||
import { Backend, CompiledCircuit, ProofData } from '@noir-lang/types'; | ||
import { InputMap, InputValue } from '@noir-lang/noirc_abi'; | ||
export declare class Noir { | ||
private circuit; | ||
private backend; | ||
constructor(circuit: CompiledCircuit, backend: Backend); | ||
private backend?; | ||
constructor(circuit: CompiledCircuit, backend?: Backend | undefined); | ||
init(): Promise<void>; | ||
generateFinalProof(inputs: any): Promise<Uint8Array>; | ||
verifyFinalProof(proof: Uint8Array): Promise<boolean>; | ||
destroy(): Promise<void>; | ||
private getBackend; | ||
execute(inputs: InputMap): Promise<{ | ||
witness: Uint8Array; | ||
returnValue: InputValue; | ||
}>; | ||
generateFinalProof(inputs: InputMap): Promise<ProofData>; | ||
verifyFinalProof(proofData: ProofData): Promise<boolean>; | ||
} |
@@ -0,2 +1,4 @@ | ||
import { InputMap } from '@noir-lang/noirc_abi'; | ||
import { WitnessMap } from '@noir-lang/acvm_js'; | ||
import { CompiledCircuit } from '@noir-lang/types'; | ||
export declare function generateWitness(compiledProgram: CompiledCircuit, inputs: unknown): Promise<Uint8Array>; | ||
export declare function generateWitness(compiledProgram: CompiledCircuit, inputs: InputMap): Promise<WitnessMap>; |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.16.0", | ||
"version": "0.16.0-37315f8.nightly", | ||
"packageManager": "yarn@3.5.1", | ||
@@ -12,6 +12,5 @@ "license": "(MIT OR Apache-2.0)", | ||
"dependencies": { | ||
"@noir-lang/acvm_js": "0.28.0", | ||
"@noir-lang/noirc_abi": "0.16.0", | ||
"@noir-lang/types": "0.14.1", | ||
"fflate": "^0.8.0" | ||
"@noir-lang/acvm_js": "0.28.0-37315f8.nightly", | ||
"@noir-lang/noirc_abi": "0.16.0-37315f8.nightly", | ||
"@noir-lang/types": "0.16.0-37315f8.nightly" | ||
}, | ||
@@ -40,7 +39,7 @@ "files": [ | ||
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0", | ||
"publish": "yarn npm publish", | ||
"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", | ||
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish", | ||
"clean": "rm -rf ./lib" | ||
}, | ||
"devDependencies": { | ||
"@aztec/bb.js": "0.7.2", | ||
"@types/chai": "^4", | ||
@@ -47,0 +46,0 @@ "@types/mocha": "^10.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
12
249
0
11885
13
+ Added@noir-lang/acvm_js@0.28.0-37315f8.nightly(transitive)
+ Added@noir-lang/noirc_abi@0.16.0-37315f8.nightly(transitive)
+ Added@noir-lang/types@0.16.0-37315f8.nightly(transitive)
- Removedfflate@^0.8.0
- Removed@noir-lang/acvm_js@0.28.0(transitive)
- Removed@noir-lang/noirc_abi@0.16.0(transitive)
- Removed@noir-lang/types@0.14.1(transitive)
- Removedfflate@0.8.2(transitive)