Skip to main content

buildEscrowEnforcementScript

@totemsdk/kissvm


@totemsdk/kissvm / buildEscrowEnforcementScript

Function: buildEscrowEnforcementScript()

buildEscrowEnforcementScript(config): string

Build an escrow enforcement script that checks:

  1. Condition hash matches committed condition
  2. Amount matches committed amount
  3. Escrow state is unchanged

Parameters

config

EscrowEnforcementConfig

Returns

string