@noir-lang/noir_js
Advanced tools
Comparing version 0.19.2-fd836cb.nightly to 0.18.0
import * as acvm from '@noir-lang/acvm_js'; | ||
import * as abi from '@noir-lang/noirc_abi'; | ||
import { CompiledCircuit, ProofData } from '@noir-lang/types'; | ||
export { ecdsa_secp256r1_verify, ecdsa_secp256k1_verify, keccak256, blake2s256, sha256, xor, and, } from '@noir-lang/acvm_js'; | ||
export { WitnessMap, ForeignCallHandler, ForeignCallInput, ForeignCallOutput } from '@noir-lang/acvm_js'; | ||
export { acvm, abi }; | ||
export { WitnessMap } from '@noir-lang/acvm_js'; | ||
export { Noir } from './program.js'; | ||
/** @ignore */ | ||
export { acvm, abi }; | ||
export { CompiledCircuit, ProofData }; |
import { Backend, CompiledCircuit, ProofData } from '@noir-lang/types'; | ||
import { InputMap, InputValue } from '@noir-lang/noirc_abi'; | ||
import { ForeignCallHandler } from '@noir-lang/acvm_js'; | ||
export declare class Noir { | ||
@@ -8,55 +7,11 @@ private circuit; | ||
constructor(circuit: CompiledCircuit, backend?: Backend | undefined); | ||
/** @ignore */ | ||
init(): Promise<void>; | ||
/** | ||
* | ||
* @description | ||
* Destroys the underlying backend instance. | ||
* | ||
* @example | ||
* ```typescript | ||
* await noir.destroy(); | ||
* ``` | ||
* | ||
*/ | ||
destroy(): Promise<void>; | ||
private getBackend; | ||
/** | ||
* @description | ||
* Allows to execute a circuit to get its witness and return value. | ||
* | ||
* @example | ||
* ```typescript | ||
* async execute(inputs) | ||
* ``` | ||
*/ | ||
execute(inputs: InputMap, foreignCallHandler?: ForeignCallHandler): Promise<{ | ||
execute(inputs: InputMap): Promise<{ | ||
witness: Uint8Array; | ||
returnValue: InputValue; | ||
}>; | ||
/** | ||
* | ||
* @description | ||
* Generates a witness and a proof given an object as input. | ||
* | ||
* @example | ||
* ```typescript | ||
* async generateFinalproof(input) | ||
* ``` | ||
* | ||
*/ | ||
generateFinalProof(inputs: InputMap): Promise<ProofData>; | ||
/** | ||
* | ||
* @description | ||
* Instantiates the verification key and verifies a proof. | ||
* | ||
* | ||
* @example | ||
* ```typescript | ||
* async verifyFinalProof(proof) | ||
* ``` | ||
* | ||
*/ | ||
verifyFinalProof(proofData: ProofData): Promise<boolean>; | ||
} |
import { InputMap } from '@noir-lang/noirc_abi'; | ||
import { WitnessMap, ForeignCallHandler } from '@noir-lang/acvm_js'; | ||
import { WitnessMap } from '@noir-lang/acvm_js'; | ||
import { CompiledCircuit } from '@noir-lang/types'; | ||
export declare function generateWitness(compiledProgram: CompiledCircuit, inputs: InputMap, foreignCallHandler?: ForeignCallHandler): Promise<WitnessMap>; | ||
export declare function generateWitness(compiledProgram: CompiledCircuit, inputs: InputMap): Promise<WitnessMap>; |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.19.2-fd836cb.nightly", | ||
"version": "0.18.0", | ||
"packageManager": "yarn@3.5.1", | ||
@@ -12,5 +12,5 @@ "license": "(MIT OR Apache-2.0)", | ||
"dependencies": { | ||
"@noir-lang/acvm_js": "0.33.0-fd836cb.nightly", | ||
"@noir-lang/noirc_abi": "0.19.2-fd836cb.nightly", | ||
"@noir-lang/types": "0.19.2-fd836cb.nightly" | ||
"@noir-lang/acvm_js": "0.30.0", | ||
"@noir-lang/noirc_abi": "0.18.0", | ||
"@noir-lang/types": "0.18.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "files": [ |
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
11821
249
+ Added@noir-lang/acvm_js@0.30.0(transitive)
+ Added@noir-lang/noirc_abi@0.18.0(transitive)
+ Added@noir-lang/types@0.18.0(transitive)
- Removed@noir-lang/acvm_js@0.33.0-fd836cb.nightly(transitive)
- Removed@noir-lang/noirc_abi@0.19.2-fd836cb.nightly(transitive)
- Removed@noir-lang/types@0.19.2-fd836cb.nightly(transitive)
Updated@noir-lang/acvm_js@0.30.0
Updated@noir-lang/noirc_abi@0.18.0
Updated@noir-lang/types@0.18.0