@noir-lang/types
Advanced tools
Comparing version 0.27.0 to 0.28.0-1ec9cdc.nightly
@@ -52,4 +52,12 @@ export type Field = string | number | boolean; | ||
}; | ||
export interface Backend { | ||
export interface VerifierBackend { | ||
/** | ||
* @description Verifies a proof */ | ||
verifyProof(proofData: ProofData): Promise<boolean>; | ||
/** | ||
* @description Destroys the backend */ | ||
destroy(): Promise<void>; | ||
} | ||
export interface Backend extends VerifierBackend { | ||
/** | ||
* @description Generates a proof */ | ||
@@ -69,8 +77,2 @@ generateProof(decompressedWitness: Uint8Array): Promise<ProofData>; | ||
}>; | ||
/** | ||
* @description Verifies a proof */ | ||
verifyProof(proofData: ProofData): Promise<boolean>; | ||
/** | ||
* @description Destroys the backend */ | ||
destroy(): Promise<void>; | ||
} | ||
@@ -77,0 +79,0 @@ /** |
@@ -52,4 +52,12 @@ export type Field = string | number | boolean; | ||
}; | ||
export interface Backend { | ||
export interface VerifierBackend { | ||
/** | ||
* @description Verifies a proof */ | ||
verifyProof(proofData: ProofData): Promise<boolean>; | ||
/** | ||
* @description Destroys the backend */ | ||
destroy(): Promise<void>; | ||
} | ||
export interface Backend extends VerifierBackend { | ||
/** | ||
* @description Generates a proof */ | ||
@@ -69,8 +77,2 @@ generateProof(decompressedWitness: Uint8Array): Promise<ProofData>; | ||
}>; | ||
/** | ||
* @description Verifies a proof */ | ||
verifyProof(proofData: ProofData): Promise<boolean>; | ||
/** | ||
* @description Destroys the backend */ | ||
destroy(): Promise<void>; | ||
} | ||
@@ -77,0 +79,0 @@ /** |
@@ -7,3 +7,3 @@ { | ||
"packageManager": "yarn@3.5.1", | ||
"version": "0.27.0", | ||
"version": "0.28.0-1ec9cdc.nightly", | ||
"license": "(MIT OR Apache-2.0)", | ||
@@ -10,0 +10,0 @@ "homepage": "https://noir-lang.org/", |
Sorry, the diff of this file is not supported yet
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
49543
198