@noir-lang/noir_js
Advanced tools
Comparing version 0.29.0 to 0.30.0-1849389.nightly
import * as acvm from '@noir-lang/acvm_js'; | ||
import * as abi from '@noir-lang/noirc_abi'; | ||
import { CompiledCircuit, ProofData } from '@noir-lang/types'; | ||
import { CompiledCircuit } from '@noir-lang/types'; | ||
export { ecdsa_secp256r1_verify, ecdsa_secp256k1_verify, keccak256, blake2s256, sha256, xor, and, } from '@noir-lang/acvm_js'; | ||
@@ -8,4 +8,5 @@ export { InputMap } from '@noir-lang/noirc_abi'; | ||
export { Noir } from './program.js'; | ||
export { ErrorWithPayload } from './witness_generation.js'; | ||
/** @ignore */ | ||
export { acvm, abi }; | ||
export { CompiledCircuit, ProofData }; | ||
export { CompiledCircuit }; |
@@ -1,2 +0,2 @@ | ||
import { Backend, CompiledCircuit, ProofData } from '@noir-lang/types'; | ||
import { CompiledCircuit } from '@noir-lang/types'; | ||
import { InputMap, InputValue } from '@noir-lang/noirc_abi'; | ||
@@ -6,21 +6,7 @@ import { ForeignCallHandler } from '@noir-lang/acvm_js'; | ||
private circuit; | ||
private backend?; | ||
constructor(circuit: CompiledCircuit, backend?: Backend | undefined); | ||
constructor(circuit: CompiledCircuit); | ||
/** @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. | ||
@@ -37,27 +23,2 @@ * | ||
}>; | ||
/** | ||
* | ||
* @description | ||
* Generates a witness and a proof given an object as input. | ||
* | ||
* @example | ||
* ```typescript | ||
* async generateProof(input) | ||
* ``` | ||
* | ||
*/ | ||
generateProof(inputs: InputMap, foreignCallHandler?: ForeignCallHandler): Promise<ProofData>; | ||
/** | ||
* | ||
* @description | ||
* Instantiates the verification key and verifies a proof. | ||
* | ||
* | ||
* @example | ||
* ```typescript | ||
* async verifyProof(proof) | ||
* ``` | ||
* | ||
*/ | ||
verifyProof(proofData: ProofData): Promise<boolean>; | ||
} |
import { InputMap } from '@noir-lang/noirc_abi'; | ||
import { WitnessStack, ForeignCallHandler } from '@noir-lang/acvm_js'; | ||
import { WitnessStack, ForeignCallHandler, ExecutionError } from '@noir-lang/acvm_js'; | ||
import { CompiledCircuit } from '@noir-lang/types'; | ||
export type ErrorWithPayload = ExecutionError & { | ||
decodedAssertionPayload?: any; | ||
}; | ||
export declare function generateWitness(compiledProgram: CompiledCircuit, inputs: InputMap, foreignCallHandler?: ForeignCallHandler): Promise<WitnessStack>; |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.29.0", | ||
"version": "0.30.0-1849389.nightly", | ||
"packageManager": "yarn@3.5.1", | ||
@@ -21,5 +21,5 @@ "license": "(MIT OR Apache-2.0)", | ||
"dependencies": { | ||
"@noir-lang/acvm_js": "0.45.0", | ||
"@noir-lang/noirc_abi": "0.29.0", | ||
"@noir-lang/types": "0.29.0" | ||
"@noir-lang/acvm_js": "0.46.0-1849389.nightly", | ||
"@noir-lang/noirc_abi": "0.30.0-1849389.nightly", | ||
"@noir-lang/types": "0.30.0-1849389.nightly" | ||
}, | ||
@@ -26,0 +26,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
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
16533
326
+ Added@noir-lang/acvm_js@0.46.0-1849389.nightly(transitive)
+ Added@noir-lang/noirc_abi@0.30.0-1849389.nightly(transitive)
+ Added@noir-lang/types@0.30.0-1849389.nightly(transitive)
- Removed@noir-lang/acvm_js@0.45.0(transitive)
- Removed@noir-lang/noirc_abi@0.29.0(transitive)
- Removed@noir-lang/types@0.29.0(transitive)