# US 2023/0410106 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 2023/0410106 A1
- Document ID: US20230410106A1
- Status: Published application
- Kind: A1
- Application number: 18/198,813
- Filed: 2023-05-17
- Published: 2023-12-21
- Earliest claimed: 2016-12-21
- Assignees: nChain Licensing AG
- Applicants: nChain Licensing AG
- Inventors: Stephane VINCENT
- Web page: https://patentgrep.com/patent/US20230410106A1

## 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

Techniques are presented 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 minimizing script size, and also provides a novel architecture for the distributed execution of computational processes. A presented method obtains data from at least one data storage resource, the data comprising a first unlocking script corresponding to a first blockchain transaction and a second unlocking script corresponding to a second blockchain transaction, and controls a task or computation based on the data obtained as a result of the first and second blockchain transactions.

## Claims

### Claim at position 1

1-19. (canceled)

### Claim 20

A computer-implemented method comprising:
obtaining data from at least one data storage resource, the data comprising a first unlocking script corresponding to a first blockchain transaction and a second unlocking script corresponding to a second blockchain transaction, wherein the second locking script corresponds to a locking script generated based at least in part on an output of the first unlocking script; and
controlling performance of a task or computation based on the data obtained as a result of validating the first and second blockchain transactions.

### Claim 21 (depends on 20)

The computer-implemented method of claim 20, wherein one or more functions included in the locking script are decoupled from one or more arguments contained in the first unlocking script.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, wherein the product is an unspent output of the first blockchain transaction.

### Claim 23 (depends on 20)

The computer-implemented method of claim 20, wherein the task or computation is performed by executing a script that exceeds a size limit of the first or second blockchain transaction.

### Claim 24 (depends on 20)

The computer-implemented method of claim 20, wherein the task or computation is implemented by a number of op_codes, the number exceeding a limit of a given blockchain transaction.

### Claim 25 (depends on 20)

The computer-implemented method of claim 20, wherein the task or computation is implemented by:
reading a value from the first unlocking script; and
using the value as an input to the second unlocking script.

### Claim 26 (depends on 25)

The computer-implemented method of claim 25, wherein the value is read by a computing agent and identified by the computing agent as following an op_return.

### Claim 27 (depends on 20)

The computer-implemented method of claim 20, wherein the data is obtained as a result of one or more computing agents reading a state of a stack, the stack receiving a product of executing a locking or unlocking script.

### Claim 28

A system comprising:
one or more processors; and
memory that stores computer-executable instructions that, as a result of execution by the one or more processors, cause the system to:
obtain data from at least one data storage resource, the data comprising a first unlocking script corresponding to a first blockchain transaction and a second unlocking script corresponding to a second blockchain transaction, wherein the second locking script corresponds to a locking script generated based at least in part on an output of the first unlocking script; and
complete a task or computation based on the data obtained as a result of validating the first and second blockchain transactions.

### Claim 29 (depends on 28)

The system of claim 28, wherein one or more functions included in the locking script are decoupled from one or more arguments contained in the first unlocking script.

### Claim 30 (depends on 29)

The system of claim 29, wherein the result is an unspent output of the first blockchain transaction.

### Claim 31 (depends on 28)

The system of claim 28, wherein the task or computation is execution of a script that exceeds a threshold number of bytes in size.

### Claim 32 (depends on 28)

The system of claim 28, wherein the task or computation is implemented by a plurality of op_codes, the plurality exceeding a threshold number of op_codes.

### Claim 33 (depends on 28)

The system of claim 28, wherein the task or computation is implemented by:
reading a value from the first unlocking script; and
using the value as an input to the second unlocking script.

### Claim 34 (depends on 33)

The system of claim 33, wherein the value is read by a computing agent and identified by the computing agent as following an op_return.

### Claim 35 (depends on 28)

The system of claim 28, wherein the data is obtained as a result of one or more computing agents reading a state of a stack, the stack receiving a product of executing a locking or unlocking script.

### Claim 36

A non-transitory computer-readable storage medium comprising executable instructions that, as a result of being executed by one or more processors of a computer system, cause the computer system to at least partially implement a first node in a network to:
obtain data from at least one data storage resource, the data comprising a first unlocking script corresponding to a first blockchain transaction and a second unlocking script corresponding to a second blockchain transaction; and
complete a task or computation based on the data obtained as a result of the first and second blockchain transactions.

### Claim 37 (depends on 36)

The non-transitory computer-readable storage medium of claim 36, wherein the product is an unspent output of the first blockchain transaction.

### Claim 38 (depends on 37)

The non-transitory computer-readable storage medium of claim 37, wherein the result is an unspent output of the first blockchain transaction.

### Claim 39 (depends on 36)

The non-transitory computer-readable storage medium of claim 36, wherein the task or computation is implemented by:
reading a value from the first unlocking script; and
using the value as an input to the second unlocking script.
