Proof
Class: Proof<Input, Output>
Type parameters
| Name | 
|---|
| Input | 
| Output | 
Hierarchy
- Proof
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Proof<Input, Output>(«destructured»)
Type parameters
| Name | 
|---|
| Input | 
| Output | 
Parameters
| Name | Type | 
|---|---|
| «destructured» | Object | 
| › maxProofsVerified | 0|2|1 | 
| › proof | unknown | 
| › publicInput | Input | 
| › publicOutput | Output | 
Defined in
Properties
maxProofsVerified
• maxProofsVerified: 0 | 2 | 1
Defined in
proof
• proof: unknown
Defined in
publicInput
• publicInput: Input
Defined in
publicOutput
• publicOutput: Output
Defined in
shouldVerify
• shouldVerify: Bool
Defined in
publicInputType
▪ Static publicInputType: FlexibleProvablePure<any>
Defined in
publicOutputType
▪ Static publicOutputType: FlexibleProvablePure<any>
Defined in
tag
▪ Static tag: () => { name: string  }
Type declaration
▸ (): Object
Returns
Object
| Name | Type | 
|---|---|
| name | string | 
Defined in
Methods
toJSON
▸ toJSON(): JsonProof
Returns
Defined in
verify
▸ verify(): void
Returns
void
Defined in
verifyIf
▸ verifyIf(condition): void
Parameters
| Name | Type | 
|---|---|
| condition | Bool | 
Returns
void
Defined in
fromJSON
▸ Static fromJSON<S>(this, «destructured»): Proof<InferProvable<S["publicInputType"]>, InferProvable<S["publicOutputType"]>>
Type parameters
| Name | Type | 
|---|---|
| S | extends Subclass<typeofProof> | 
Parameters
| Name | Type | 
|---|---|
| this | S | 
| «destructured» | JsonProof | 
Returns
Proof<InferProvable<S["publicInputType"]>, InferProvable<S["publicOutputType"]>>