@noir-lang/types
Advanced tools
Comparing version 0.14.1 to 0.16.0-10eae15.nightly
@@ -0,10 +1,16 @@ | ||
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>; | ||
destroy(): Promise<void>; | ||
} | ||
export type ProofData = { | ||
publicInputs: Uint8Array[]; | ||
proof: Uint8Array; | ||
}; | ||
export type CompiledCircuit = { | ||
bytecode: string; | ||
abi: object; | ||
abi: Abi; | ||
}; |
@@ -0,10 +1,16 @@ | ||
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>; | ||
destroy(): Promise<void>; | ||
} | ||
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.14.1", | ||
"version": "0.16.0-10eae15.nightly", | ||
"license": "(MIT OR Apache-2.0)", | ||
@@ -21,3 +21,4 @@ "files": [ | ||
"build": "yarn run build:cjs && yarn run build:esm", | ||
"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", | ||
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0" | ||
@@ -32,2 +33,5 @@ }, | ||
}, | ||
"dependencies": { | ||
"@noir-lang/noirc_abi": "0.16.0-10eae15.nightly" | ||
}, | ||
"devDependencies": { | ||
@@ -34,0 +38,0 @@ "@types/prettier": "^3", |
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
2471
35
1
+ Added@noir-lang/noirc_abi@0.16.0-10eae15.nightly(transitive)