A method of using a plurality of blockchain transactions to execute a computer-implemented task, comprising the steps:
- using an unlocking script (ULS1) associated with a first input (In1) in a blockchain transaction (Tx2) to present at least one data item to a locking script (LS1) of another transaction (Tx1) so as to provide a result on a stack;
- amending the blockchain transaction (Tx2) to include a second input (In2);
- generating a further unlocking script (ULS2) associated with the second input (In2), the further unlocking script (ULS2) comprising the result from the stack;
- and
- presenting the further unlocking script (ULS2) to a further locking script (LS2) such that the result from the stack is provided as input to the further locking script (LS2).