@proto-kit/sequencer • Docs
Documentation / @proto-kit/sequencer / ProofTaskSerializer
Class: ProofTaskSerializer<PublicInputType, PublicOutputType>
Extends
ProofTaskSerializerBase<PublicInputType,PublicOutputType, typeofProof>
Type Parameters
• PublicInputType
• PublicOutputType
Implements
TaskSerializer<Proof<PublicInputType,PublicOutputType>>
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
protectedproofClass():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
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()
protectedgetDummy(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
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