computeActionCommitment
@totemsdk/txpow / computeActionCommitment
Function: computeActionCommitment()
computeActionCommitment(
action,challenge):string
Compute the canonical action commitment.
commitment = SHA3-256( protocolDomain || protocolVersion || canonicalAction(action) || canonicalChallenge(challenge) )
Parameters
action
The application action.
challenge
The challenge the work is bound to.
Returns
string