Socket
Socket
Sign inDemoInstall

@noir-lang/noir_js

Package Overview
Dependencies
Maintainers
1
Versions
247
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.16.0 to 0.16.0-37315f8.nightly

3

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

@@ -1,9 +0,16 @@

import { Backend, CompiledCircuit } from '@noir-lang/types';
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<Uint8Array>;
verifyFinalProof(proof: Uint8Array): Promise<boolean>;
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",
"version": "0.16.0-37315f8.nightly",
"packageManager": "yarn@3.5.1",

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

"dependencies": {
"@noir-lang/acvm_js": "0.28.0",
"@noir-lang/noirc_abi": "0.16.0",
"@noir-lang/types": "0.14.1",
"fflate": "^0.8.0"
"@noir-lang/acvm_js": "0.28.0-37315f8.nightly",
"@noir-lang/noirc_abi": "0.16.0-37315f8.nightly",
"@noir-lang/types": "0.16.0-37315f8.nightly"
},

@@ -40,7 +39,7 @@ "files": [

"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
"publish": "yarn npm publish",
"nightly:version": "jq --arg new_version \"-$(git rev-parse --short HEAD)$1\" '.version = .version + $new_version' package.json > package-tmp.json && mv package-tmp.json package.json",
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
"clean": "rm -rf ./lib"
},
"devDependencies": {
"@aztec/bb.js": "0.7.2",
"@types/chai": "^4",

@@ -47,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

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