Class: Proof<T>
Type parameters
Name |
---|
T |
Hierarchy
Proof
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Proof<T
>(__namedParameters
)
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
__namedParameters | Object |
__namedParameters.maxProofsVerified | 0 | 2 | 1 |
__namedParameters.proof | unknown |
__namedParameters.publicInput | T |
Defined in
Properties
maxProofsVerified
• maxProofsVerified: 0
| 2
| 1
Defined in
proof
• proof: unknown
Defined in
publicInput
• publicInput: T
Defined in
shouldVerify
• shouldVerify: Bool
Defined in
publicInputType
▪ Static
publicInputType: ProvablePure
<any
>
Defined in
tag
▪ Static
tag: () => { name
: string
}
Type declaration
▸ (): Object
Returns
Object
Name | Type |
---|---|
name | string |
Defined in
Methods
toJSON
▸ toJSON(): JsonProof
Returns
JsonProof
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
, __namedParameters
): Proof
<InferInstance
<S
["publicInputType"
]>>
Type parameters
Name | Type |
---|---|
S | extends Subclass <typeof Proof > |
Parameters
Name | Type |
---|---|
this | S |
__namedParameters | JsonProof |
Returns
Proof
<InferInstance
<S
["publicInputType"
]>>