Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@noir-lang/noir_js

Package Overview
Dependencies
Maintainers
1
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noir-lang/noir_js - npm Package Compare versions

Comparing version 0.19.2-fd836cb.nightly to 0.18.0

8

lib/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc