Skip to main content

Class: SelfProof<T>

Type parameters

Name
T

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SelfProof<T>(«destructured»)

Type parameters

Name
T

Parameters

NameType
«destructured»Object
› maxProofsVerified0 | 2 | 1
› proofunknown
› publicInputT

Inherited from

Proof.constructor

Defined in

lib/proof_system.ts:103

Properties

maxProofsVerified

maxProofsVerified: 0 | 2 | 1

Inherited from

Proof.maxProofsVerified

Defined in

lib/proof_system.ts:70


proof

proof: unknown

Inherited from

Proof.proof

Defined in

lib/proof_system.ts:69


publicInput

publicInput: T

Inherited from

Proof.publicInput

Defined in

lib/proof_system.ts:68


shouldVerify

shouldVerify: Bool

Inherited from

Proof.shouldVerify

Defined in

lib/proof_system.ts:71


publicInputType

Static publicInputType: FlexibleProvablePure<any>

Inherited from

Proof.publicInputType

Defined in

lib/proof_system.ts:61


tag

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

Type declaration

▸ (): Object

Returns

Object

NameType
namestring

Inherited from

Proof.tag

Defined in

lib/proof_system.ts:62

Methods

toJSON

toJSON(): JsonProof

Returns

JsonProof

Inherited from

Proof.toJSON

Defined in

lib/proof_system.ts:79


verify

verify(): void

Returns

void

Inherited from

Proof.verify

Defined in

lib/proof_system.ts:73


verifyIf

verifyIf(condition): void

Parameters

NameType
conditionBool

Returns

void

Inherited from

Proof.verifyIf

Defined in

lib/proof_system.ts:76


fromJSON

Static fromJSON<S>(this, «destructured»): Proof<InferProvable<S["publicInputType"]>>

Type parameters

NameType
Sextends Subclass<typeof Proof>

Parameters

NameType
thisS
«destructured»JsonProof

Returns

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

Inherited from

Proof.fromJSON

Defined in

lib/proof_system.ts:88