# US 2023/0421383 A1 · Node versioning

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

- Number: US 2023/0421383 A1
- Document ID: US20230421383A1
- Status: Published application
- Kind: A1
- Application number: 18/037,032
- Filed: 2021-11-04
- Published: 2023-12-28
- Earliest claimed: 2020-11-18
- Assignees: nChain Licensing AG
- Applicants: nChain Licensing AG
- Inventors: Chloe TARTAN; Wei ZHANG; Craig Steven WRIGHT
- Web page: https://patentgrep.com/patent/US20230421383A1

## CPC

- H04L 9/3247: {involving digital signatures}
- H04L 9/3236: {using cryptographic hash functions}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A computer-implemented method of executing blockchain transactions, wherein a first blockchain transaction comprises a first output, wherein the first output comprises a first locking script comprising a version opcode, wherein a second transaction comprises a first input that references the first output of the first transaction and comprises a first unlocking script, and wherein the method is performed by a blockchain node and comprises: executing the first locking script together with the first unlocking script, wherein said execution comprises, upon executing the version opcode, obtaining a node protocol version number of the blockchain node, and outputting the node protocol version number, wherein the node protocol version number is associated with a particular functionality that the blockchain node is configured to execute.

## Claims

### Claim 1

A computer-implemented method of executing blockchain transactions, wherein a first blockchain transaction comprises a first output, wherein the first output comprises a first locking script comprising a version opcode, wherein a second transaction comprises a first input that references the first output of the first transaction and comprises a first unlocking script, and wherein the method is performed by a blockchain node and comprises:
executing the first locking script together with the first unlocking script, wherein said execution comprises, upon executing the version opcode, obtaining a node protocol version number of the blockchain node, and outputting the node protocol version number, wherein the node protocol version number is associated with a particular functionality that the blockchain node is configured to execute.

### Claim 2 (depends on 1)

The method of claim 1, comprising validating the second transaction based on said execution of the first locking script together with the first unlocking script.

### Claim 3 (depends on 1)

The method of claim 1, wherein said outputting of the node protocol version number comprises outputting a fixed-length representation of the node protocol version number.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first locking script is written in a stack-based scripting language, and wherein said outputting of the node protocol version number comprises outputting the node protocol version number to a stack.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first locking script or the first unlocking script comprises a target node protocol version number, and wherein said execution of the version opcode comprises determining whether the output node protocol version number matches the target node protocol version number.

### Claim 6 (depends on 5)

The method of claim 5, wherein said execution of the version opcode comprises:
if the output node protocol version number does match the target node protocol version number, executing a predetermined portion of the locking script, and
if the output node protocol version number does not match the target node protocol version number, not executing the predetermined portion of the locking script.

### Claim 7 (depends on 6)

The method of claim 6, wherein the first locking script comprises a code separator opcode separating the predetermined portion of script and a second portion of script such that a signature included in the first unlocking script signs only the second portion of script and not the predetermined portion of script.

### Claim 8 (depends on 6)

The method of claim 6, comprising outputting and/or storing a result of said execution of the predetermined portion of the locking script, wherein said outputting of the result comprises storing the result in a blockchain transaction and making the blockchain transaction available to one or more nodes of a blockchain network.

### Claim 9 (depends on 6)

The method of claim 6, wherein the predetermined portion of script comprises a portion of code written in a language other than a native blockchain language, and wherein the blockchain node is configured to execute code written in that language.

### Claim 10 (depends on 9)

The method of claim 9, wherein the portion of code is written in a blockchain language other than the native blockchain language.

### Claim at position 11

11-14. (canceled)

### Claim 15 (depends on 1)

The method of claim 1, comprising:
generating a third blockchain transaction, wherein the third transaction comprises an output comprising a locking script, and wherein the locking script comprises the version opcode; and
making the third blockchain transaction available to one or more nodes of a blockchain network.

### Claim 16 (depends on 15)

The method of claim 15, wherein the locking script comprises a respective target version number and a portion of code, wherein the version opcode is configured so as when executed alongside an input of a later transaction, to determine whether a node protocol version number output during execution of the version opcode matches the respective target node protocol version number, and to only execute the portion of the code on condition that the output node protocol version number matches the respective target node protocol version number.

### Claim 17 (depends on 16)

The method of claim 16, wherein the portion of code comprises a locking condition based on a public key or a hash of a public key.

### Claim 18

(canceled)

### Claim 19 (depends on 6)

The method of claim 6, wherein the first and second transactions are respective token transactions, wherein the target node protocol version number is associated with a token protocol, and wherein the portion of code comprises a locking condition based on a public key or a hash of a public key.

### Claim 20 (depends on 19)

The method of claim 19, comprising constructing a respective token block for a respective blockchain block, wherein the token block comprises one, some or all of:
the target node protocol version number associated with the token protocol,
each transaction comprising the target version number and published in the respective blockchain block,
a sum of the number of transactions contained in the token block,
a Merkle root calculated based on the transactions included in the token block, and
a previous block header based on a hash of a previous token block constructed based on a corresponding previous blockchain block.

### Claim 21 (depends on 20)

The method of claim 20, comprising storing and/or outputting the respective token block.

### Claim 22

A computer-implemented method of generating blockchain transactions, wherein the method is performed by a generating entity and comprises:
generating a first blockchain transaction comprising a first output, wherein the first output comprises a first locking script comprising a version opcode, wherein the version opcode is configured, so as when executed by an executing entity, to cause the executing entity to obtaining a node protocol version number of the blockchain node, and output the node protocol version number, and wherein the node protocol version number is associated with a particular functionality that the blockchain node is configured to execute.

### Claim at position 20

23-29. (canceled)

### Claim 30 (depends on 1)

The method of claim 1, wherein the version opcode is one of OP_VER, OP_VERIF or OP_VERIFNOT.

### Claim 31

Computer equipment, comprising:
memory comprising one or more memory units; and
processing apparatus comprising one or more processing units, wherein the memory stores code arranged to run on the processing apparatus, the code being configured so as when run on the processing apparatus, the processing apparatus performs a method of executing blockchain transactions, wherein a first blockchain transaction comprises a first output, wherein the first output comprises a first locking script comprising a version opcode, wherein a second transaction comprises a first input that references the first output of the first transaction and comprises a first unlocking script, and wherein the method is performed by a blockchain node and comprises:
executing the first locking script together with the first unlocking script, wherein said execution comprises, upon executing the version opcode, obtaining a node protocol version number of the blockchain node, and outputting the node protocol version number, wherein the node protocol version number is associated with a particular functionality that the blockchain node is configured to execute.

### Claim 32

A computer program embodied on a non-transitory computer-readable storage medium and configured so as, when run on one or more processors, the one or more processors perform a method of executing blockchain transactions, wherein a first blockchain transaction comprises a first output, wherein the first output comprises a first locking script comprising a version opcode, wherein a second transaction comprises a first input that references the first output of the first transaction and comprises a first unlocking script, and wherein the method is performed by a blockchain node and comprises:
executing the first locking script together with the first unlocking script, wherein said execution comprises, upon executing the version opcode, obtaining a node protocol version number of the blockchain node, and outputting the node protocol version number, wherein the node protocol version number is associated with a particular functionality that the blockchain node is configured to execute.
