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:94

Properties

maxProofsVerified

maxProofsVerified: 0 | 2 | 1

Defined in

lib/proof_system.ts:61


proof

proof: unknown

Defined in

lib/proof_system.ts:60


publicInput

publicInput: T

Defined in

lib/proof_system.ts:59


shouldVerify

shouldVerify: Bool

Defined in

lib/proof_system.ts:62


publicInputType

Static publicInputType: AsFieldElements<any>

Defined in

lib/proof_system.ts:52


tag

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

Type declaration

▸ (): Object

Returns

Object

NameType
namestring

Defined in

lib/proof_system.ts:53

Methods

toJSON

toJSON(): JsonProof

Returns

JsonProof

Defined in

lib/proof_system.ts:70


verify

verify(): void

Returns

void

Defined in

lib/proof_system.ts:64


verifyIf

verifyIf(condition): void

Parameters

NameType
conditionBool

Returns

void

Defined in

lib/proof_system.ts:67


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:79