Skip to main content

Class: Proof<T>

Type parameters

Name
T

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Proof<T>(__namedParameters)

Type parameters

Name
T

Parameters

NameType
__namedParametersObject
__namedParameters.maxProofsVerified0 | 2 | 1
__namedParameters.proofunknown
__namedParameters.publicInputT

Defined in

lib/proof_system.ts:97

Properties

maxProofsVerified

maxProofsVerified: 0 | 2 | 1

Defined in

lib/proof_system.ts:64


proof

proof: unknown

Defined in

lib/proof_system.ts:63


publicInput

publicInput: T

Defined in

lib/proof_system.ts:62


shouldVerify

shouldVerify: Bool

Defined in

lib/proof_system.ts:65


publicInputType

Static publicInputType: ProvablePure<any>

Defined in

lib/proof_system.ts:55


tag

Static tag: () => { name: string }

Type declaration

▸ (): Object

Returns

Object

NameType
namestring

Defined in

lib/proof_system.ts:56

Methods

toJSON

toJSON(): JsonProof

Returns

JsonProof

Defined in

lib/proof_system.ts:73


verify

verify(): void

Returns

void

Defined in

lib/proof_system.ts:67


verifyIf

verifyIf(condition): void

Parameters

NameType
conditionBool

Returns

void

Defined in

lib/proof_system.ts:70


fromJSON

Static fromJSON<S>(this, __namedParameters): Proof<InferInstance<S["publicInputType"]>>

Type parameters

NameType
Sextends Subclass<typeof Proof>

Parameters

NameType
thisS
__namedParametersJsonProof

Returns

Proof<InferInstance<S["publicInputType"]>>

Defined in

lib/proof_system.ts:82