Socket
Socket
Sign inDemoInstall

@noir-lang/types

Package Overview
Dependencies
Maintainers
1
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noir-lang/types - npm Package Compare versions

Comparing version 0.16.0-1b40af8c1 to 0.16.0-20a160c

15

lib/cjs/types.d.ts

@@ -0,10 +1,15 @@

import { Abi } from '@noir-lang/noirc_abi';
export interface Backend {
generateFinalProof(decompressedWitness: Uint8Array): Promise<Uint8Array>;
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<Uint8Array>;
verifyFinalProof(proof: Uint8Array): Promise<boolean>;
verifyIntermediateProof(proof: Uint8Array): Promise<boolean>;
generateFinalProof(decompressedWitness: Uint8Array): Promise<ProofData>;
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<ProofData>;
verifyFinalProof(proofData: ProofData): Promise<boolean>;
verifyIntermediateProof(proofData: ProofData): Promise<boolean>;
}
export type ProofData = {
publicInputs: Uint8Array[];
proof: Uint8Array;
};
export type CompiledCircuit = {
bytecode: string;
abi: object;
abi: Abi;
};

@@ -0,10 +1,15 @@

import { Abi } from '@noir-lang/noirc_abi';
export interface Backend {
generateFinalProof(decompressedWitness: Uint8Array): Promise<Uint8Array>;
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<Uint8Array>;
verifyFinalProof(proof: Uint8Array): Promise<boolean>;
verifyIntermediateProof(proof: Uint8Array): Promise<boolean>;
generateFinalProof(decompressedWitness: Uint8Array): Promise<ProofData>;
generateIntermediateProof(decompressedWitness: Uint8Array): Promise<ProofData>;
verifyFinalProof(proofData: ProofData): Promise<boolean>;
verifyIntermediateProof(proofData: ProofData): Promise<boolean>;
}
export type ProofData = {
publicInputs: Uint8Array[];
proof: Uint8Array;
};
export type CompiledCircuit = {
bytecode: string;
abi: object;
abi: Abi;
};

@@ -7,3 +7,3 @@ {

"packageManager": "yarn@3.5.1",
"version": "0.16.0-1b40af8c1",
"version": "0.16.0-20a160c",
"license": "(MIT OR Apache-2.0)",

@@ -32,2 +32,5 @@ "files": [

},
"dependencies": {
"@noir-lang/noirc_abi": "0.16.0-20a160c"
},
"devDependencies": {

@@ -34,0 +37,0 @@ "@types/prettier": "^3",

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