Skip to main content

roundBasedWorkflow

@totemsdk/kissvm


@totemsdk/kissvm / roundBasedWorkflow

Function: roundBasedWorkflow()

roundBasedWorkflow(roundPort, pk1, pk2): PrevStateWorkflow

Generate a KISSVM script for a round-based game or voting system.

Parameters

roundPort

number

STATE port for the current round number.

pk1

string

First participant's public key.

pk2

string

Second participant's public key.

Returns

PrevStateWorkflow