@proto-kit/protocolDocs


Documentation / @proto-kit/protocol / constructBatch

Function: constructBatch()

constructBatch(stateTransitions, applied): AppliedStateTransitionBatch

Constructs a AppliedBatch based on a list of STs and the flag whether to be applied or not. The AppliedBatch is a condensed commitment to a batch of STs.

Parameters

stateTransitions: StateTransition<any>[]

applied: Bool

Returns

AppliedStateTransitionBatch

Defined in

packages/protocol/src/prover/utils.ts:24