@proto-kit/sequencerDocs


Documentation / @proto-kit/sequencer / ProofTaskSerializer

Class: ProofTaskSerializer<PublicInputType, PublicOutputType>

Extends

  • ProofTaskSerializerBase<PublicInputType, PublicOutputType, typeof Proof>

Type Parameters

PublicInputType

PublicOutputType

Implements

Constructors

new ProofTaskSerializer()

new ProofTaskSerializer<PublicInputType, PublicOutputType>(proofClass): ProofTaskSerializer<PublicInputType, PublicOutputType>

Parameters

proofClass

Returns

ProofTaskSerializer<PublicInputType, PublicOutputType>

Overrides

`ProofTaskSerializerBase< PublicInputType, PublicOutputType, typeof Proof<PublicInputType, PublicOutputType>

.constructor`

Defined in

packages/sequencer/src/helpers/utils.ts:121

Accessors

proofClass

Get Signature

get protected proofClass(): Promise<Subclass<Type>>

Returns

Promise<Subclass<Type>>

Inherited from

ProofTaskSerializerBase.proofClass

Defined in

packages/sequencer/src/helpers/utils.ts:48

Methods

fromJSON()

fromJSON(json): Promise<Proof<PublicInputType, PublicOutputType>>

Parameters

json: string

Returns

Promise<Proof<PublicInputType, PublicOutputType>>

Implementation of

TaskSerializer.fromJSON

Defined in

packages/sequencer/src/helpers/utils.ts:127


fromJSONProof()

fromJSONProof(jsonProof): Promise<Proof<PublicInputType, PublicOutputType>>

Parameters

jsonProof: JsonProof

Returns

Promise<Proof<PublicInputType, PublicOutputType>>

Defined in

packages/sequencer/src/helpers/utils.ts:134


getDummy()

protected getDummy(c, jsonProof): Promise<Proof<PublicInputType, PublicOutputType>>

Parameters

c: Subclass<typeof Proof>

jsonProof: JsonProof

Returns

Promise<Proof<PublicInputType, PublicOutputType>>

Inherited from

ProofTaskSerializerBase.getDummy

Defined in

packages/sequencer/src/helpers/utils.ts:52


toJSON()

toJSON(proof): Promise<string>

Parameters

proof: Proof<PublicInputType, PublicOutputType> | DynamicProof<PublicInputType, PublicOutputType>

Returns

Promise<string>

Implementation of

TaskSerializer.toJSON

Inherited from

ProofTaskSerializerBase.toJSON

Defined in

packages/sequencer/src/helpers/utils.ts:77


toJSONProof()

toJSONProof(proof): Promise<JsonProof>

Parameters

proof: Proof<PublicInputType, PublicOutputType> | DynamicProof<PublicInputType, PublicOutputType>

Returns

Promise<JsonProof>

Inherited from

ProofTaskSerializerBase.toJSONProof

Defined in

packages/sequencer/src/helpers/utils.ts:85