Builder for DSTAS (stas3-freeze-multisig) locking scripts.
Summary
Functions
Build flags byte from boolean options.
Build a DSTAS locking script.
Push data with appropriate length prefix.
Functions
Build flags byte from boolean options.
@spec build_dstas_locking_script( <<_::160>>, <<_::160>>, BSV.Tokens.ActionData.t() | nil, boolean(), boolean(), [binary()], [binary()] ) :: {:ok, BSV.Script.t()} | {:error, term()}
Build a DSTAS locking script.
Parameters
owner_pkh- 20-byte owner public key hashredemption_pkh- 20-byte redemption public key hashaction_data- optional action data ({:swap, hash}or{:custom, bytes})frozen- whether the token is frozenfreezable- whether the token supports freeze operationsservice_fields- list of additional service field binariesoptional_data- list of additional optional data binaries
Push data with appropriate length prefix.