Function Engine.execute

Main dispatch execution routine.

string execute (
  in ref const(Lock) lock,
  in const(Unlock) unlock,
  in ref const(Transaction) tx,
  in ref const(Input) input
) nothrow @safe;

The lock type will be examined, and based on its type execution will proceed to either simple script-less payments, or script-based payments.

Parameters

NameDescription
lock the lock
unlock may contain a signature, signature, key, or script which only contains stack push opcodes
tx the spending transaction
input the input which contained the unlock

Returns

null if there were no errors, or a string explaining the reason execution failed