Socket
Socket
Sign inDemoInstall

@noir-lang/noir_js

Package Overview
Dependencies
Maintainers
1
Versions
254
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.30.0-f03f8ae.nightly to 0.30.0-ff7bb72.nightly

4

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';
import { CompiledCircuit } from '@noir-lang/types';
export { ecdsa_secp256r1_verify, ecdsa_secp256k1_verify, keccak256, blake2s256, sha256, xor, and, } from '@noir-lang/acvm_js';

@@ -11,2 +11,2 @@ export { InputMap } from '@noir-lang/noirc_abi';

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>;
}

@@ -6,3 +6,3 @@ {

],
"version": "0.30.0-f03f8ae.nightly",
"version": "0.30.0-ff7bb72.nightly",
"packageManager": "yarn@3.5.1",

@@ -21,5 +21,5 @@ "license": "(MIT OR Apache-2.0)",

"dependencies": {
"@noir-lang/acvm_js": "0.46.0-f03f8ae.nightly",
"@noir-lang/noirc_abi": "0.30.0-f03f8ae.nightly",
"@noir-lang/types": "0.30.0-f03f8ae.nightly"
"@noir-lang/acvm_js": "0.46.0-ff7bb72.nightly",
"@noir-lang/noirc_abi": "0.30.0-ff7bb72.nightly",
"@noir-lang/types": "0.30.0-ff7bb72.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

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