@noir-lang/noir_js
Advanced tools
Comparing version 0.16.0-38acee5.aztec to 0.16.0-4646a93.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'; |
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<ProofData>; | ||
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-38acee5.aztec", | ||
"version": "0.16.0-4646a93.nightly", | ||
"packageManager": "yarn@3.5.1", | ||
@@ -12,6 +12,5 @@ "license": "(MIT OR Apache-2.0)", | ||
"dependencies": { | ||
"@noir-lang/acvm_js": "0.28.0-38acee5.aztec", | ||
"@noir-lang/noirc_abi": "0.16.0-38acee5.aztec", | ||
"@noir-lang/types": "0.14.1-38acee5.aztec", | ||
"fflate": "^0.8.0" | ||
"@noir-lang/acvm_js": "0.28.0-4646a93.nightly", | ||
"@noir-lang/noirc_abi": "0.16.0-4646a93.nightly", | ||
"@noir-lang/types": "0.16.0-4646a93.nightly" | ||
}, | ||
@@ -45,3 +44,2 @@ "files": [ | ||
"devDependencies": { | ||
"@aztec/bb.js": "0.7.2", | ||
"@types/chai": "^4", | ||
@@ -48,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
3
12
249
11885
13
+ Added@noir-lang/acvm_js@0.28.0-4646a93.nightly(transitive)
+ Added@noir-lang/noirc_abi@0.16.0-4646a93.nightly(transitive)
+ Added@noir-lang/types@0.16.0-4646a93.nightly(transitive)
- Removedfflate@^0.8.0
- Removed@noir-lang/acvm_js@0.28.0-38acee5.aztec(transitive)
- Removed@noir-lang/noirc_abi@0.16.0-38acee5.aztec(transitive)
- Removed@noir-lang/types@0.14.1-38acee5.aztec(transitive)
- Removedfflate@0.8.2(transitive)