@proto-kit/sequencer • Docs
Documentation / @proto-kit/sequencer / PairProofTaskSerializer
Class: PairProofTaskSerializer<PublicInputType, PublicOutputType>
Type Parameters
• PublicInputType
• PublicOutputType
Implements
TaskSerializer<PairTuple<Proof<PublicInputType,PublicOutputType>>>
Constructors
new PairProofTaskSerializer()
new PairProofTaskSerializer<
PublicInputType,PublicOutputType>(proofClassFun):PairProofTaskSerializer<PublicInputType,PublicOutputType>
Parameters
• proofClassFun
Returns
PairProofTaskSerializer<PublicInputType, PublicOutputType>
Defined in
packages/sequencer/src/helpers/utils.ts:193
Methods
fromJSON()
fromJSON(
json):Promise<PairTuple<Proof<PublicInputType,PublicOutputType>>>
Parameters
• json: string
Returns
Promise<PairTuple<Proof<PublicInputType, PublicOutputType>>>
Implementation of
Defined in
packages/sequencer/src/helpers/utils.ts:199
toJSON()
toJSON(
input):Promise<string>
Parameters
• input: PairTuple<Proof<PublicInputType, PublicOutputType>>
Returns
Promise<string>