# US 2019/0356467 A1 · Computer-implemented systems and methods to enable complex functionality on a blockchain while preserving security-based restrictions on script size and opcode limits

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0356467 A1
- Document ID: US20190356467A1
- Status: Published application
- Kind: A1
- Application number: 16/472,170
- Filed: 2017-12-15
- Published: 2019-11-21
- Earliest claimed: 2016-12-21
- Assignees: nChain Holdings Limited
- Applicants: nChain Holdings Limited
- Inventors: Stephane VINCENT
- Web page: https://patentgrep.com/patent/US20190356467A1

## CPC

- G06Q 20/401: {Transaction verification}
- G06F 9/4484: {Executing subprograms}
- G06F 9/466: {Transaction processing}
- G06Q 20/065: {using e-cash}
- G06Q 20/389: {Keeping log of transactions for guaranteeing non-repudiation of a transaction}
- H04L 9/06: the encryption apparatus using shift registers or memories for block-wise {or stream} coding, e.g. DES systems {or RC4; Hash functions; Pseudorandom sequence generators}
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/3247: {involving digital signatures}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The invention relates to blockchain technologies such as the Bitcoin blockchain. The invention uses a novel technique to decompose the functionality of a blockchain transaction script into several chunks or functional parts, and to use the output of a chunk as the input of the next chunk. Advantageously, this allows the blockchain to be used for ever complex tasks and computations while minimising script size, and also provides a novel architecture for the distributed execution of computational processes. The invention comprises 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). Preferably, the locking script (LS1) and the further locking script (LS2) are provided in association with different outputs within the same blockchain transaction (Tx1).

## Claims

### Claim 1

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).

### Claim 2 (depends on 1)

A method according to claim 1, and further comprising:
performing one or more of the steps of claim 1 more than once.

### Claim 3 (depends on 1)

A method according to claim 1, and further comprising the step of:
using the at least one data item in the execution of a calculation or sequence of instructions provided within the locking script (LS1).

### Claim 4 (depends on 1)

A method according to claim 1, and further comprising the step of:
using the result provided on the stack in the execution of a calculation or sequence of instructions provided within the further locking script (LS2).

### Claim 5 (depends on 1)

A method according to claim 1, and further comprising the step of:
obtaining the result from the stack.

### Claim 6 (depends on 1)

A method according to claim 1, and further comprising the step of:
validating the blockchain transaction (Tx2) and/or the other transaction (Tx1) to generate the result on the stack.

### Claim 7 (depends on 1)

A method according to claim 1, wherein:
the unlocking script (ULS1) and the further unlocking script (ULS2) are provided in association with different inputs (In1 In2) within the same blockchain transaction (Tx2).

### Claim 8 (depends on 1)

A method according to claim 1, wherein:
the locking script (LS1) and the further locking script (LS2) are provided in association with different outputs within the same blockchain transaction (Tx1).

### Claim 9 (depends on 1)

A method according to claim 1, wherein:
the step of presenting the further unlocking script (ULS2) to a further locking script (LS2) provides a further result on the stack, or on a different stack.

### Claim 10 (depends on 1)

A method according to claim 1, and further comprising the step of:
using a blockchain client to obtain the result from the stack.

### Claim 11 (depends on 10)

A method according to claim 10, wherein:
the blockchain client is a Bitcoin client.

### Claim 12 (depends on 1)

A method according to claim 1, and further comprising the step of:
submitting the blockchain transaction (Tx2) and/or other blockchain transaction (Tx1) to a blockchain network.

### Claim 13 (depends on 1)

A method according to claim 1, wherein:
the at least one data item is provided as metadata within the unlocking script (ULS1); and/or
the result is provided as metadata within the further unlocking script (ULS2).

### Claim 14 (depends on 1)

A method according to claim 1, wherein:
the plurality of blockchain transactions are for a blockchain, the blockchain being a consensus-based, distributed, electronic ledger; and/or
the blockchain is the Bitcoin blockchain; and/or
one, some or all of the transactions are Bitcoin transactions; and/or
the method is arranged for execution on the Bitcoin blockchain.

### Claim 15 (depends on 1)

A method according to claim 1, and further comprising the step of:
using the method to compute a final result, and using the final result to control a process performed off the blockchain.

### Claim 16 (depends on 1)

A computer-implemented system arranged and configured to implement the step(s) of claim 1.
