# US 2023/0419322 A1 · Method and apparatus for processing blockchain messages

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

- Number: US 2023/0419322 A1
- Document ID: US20230419322A1
- Status: Published application
- Kind: A1
- Application number: 17/953,515
- Filed: 2022-09-27
- Published: 2023-12-28
- Earliest claimed: 2022-06-28
- Assignees: Electronics and Telecommunications Research Institute
- Applicants: Electronics and Telecommunications Research Institute
- Inventors: Hwanjo HEO
- Web page: https://patentgrep.com/patent/US20230419322A1

## CPC

- G06Q 20/401: {Transaction verification}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06Q 20/223: {based on the use of peer-to-peer networks}
- H04L 63/12: {Applying verification of the received information (cryptographic mechanisms or cryptographic arrangements for data integrity or data verification H04L9/32)}
- 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
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for processing blockchain messages in a blockchain node of a blockchain system is provided. The blockchain node receives a transaction delivery message including at least one transaction, checks a reference block height indicating a time point in which the transaction is composed or a time point when the transaction is verified, and verifies validity of the transaction using the reference block height and a current block height.

## Claims

### Claim 1

A method for processing blockchain messages in a blockchain node of the blockchain system, the method comprising:
receiving a transaction delivery message including at least one transaction;
checking a reference block height indicating a time point in which the transaction is composed or a time point when the transaction is verified; and
verifying validity of the transaction using the reference block height and a current block height.

### Claim 2 (depends on 1)

The method of claim 1, wherein the verifying includes:
verifying the validity of the transaction and determining a validation result as a final value when the current block height is greater than a sum of the reference block height and a value of a first variable indicating the number of blocks for which determination is reserved due to a fork of the blockchain; and
determining that the transaction is invalid and a validation result of the transaction as a final value, when a difference between the reference block height and a value of a second variable indicating the number of blocks for which determination is reserved due to a synchronization delay is greater than the current block height.

### Claim 3 (depends on 2)

The method of claim 2, wherein the verifying further includes not performing validation of the same transaction later when the validation result of the transaction is determined as the final value.

### Claim 4 (depends on 2)

The method of claim 2, wherein the verifying further includes verifying the validity of the transaction and determining a validation result as a temporary value, when the current block height exists within an interval between a sum of the reference block height and the first variable value and a difference between the reference block height and the second variable value.

### Claim 5 (depends on 4)

The method of claim 4, wherein the verifying further includes verifying the validity of the same transaction received later when the validation result of the transaction is determined as the temporary value.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
verifying the validity of the transaction when the reference block height does not exist; and
when the transaction is verified as valid, setting a reference block height indicating a time point when the transaction is verified in any one field of a transaction delivery message including the transaction and transmitting the transaction delivery message to a neighboring node.

### Claim 7 (depends on 1)

The method of claim 1, wherein the reference block height indicating the time point in which the transaction is composed is set in a configuration field of the transaction and is not modified.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
transmitting the received message to one of a first input channel having a high priority and a second input channel having a low priority based on a code of the received message;
processing the message of the first input channel first when there is a message in the first input channel; and
processing a message in the second input channel when there is no message in the first input channel.

### Claim 9 (depends on 8)

The method of claim 8, wherein the receiving includes, when receiving the transaction delivery message, transmitting the transaction delivery message to the second input channel.

### Claim 10 (depends on 8)

The method of claim 8, wherein the transmitting the received message includes transmitting the received message to the first input channel when a message required for establishing a connection with a neighboring node is received.

### Claim 11 (depends on 8)

The method of claim 8, wherein the transmitting the received message includes transmitting the received message to the first input channel when a message required for receiving a block is received.

### Claim 12

An apparatus for processing blockchain messages in a blockchain system, the apparatus comprising:
a read loop processor that reads messages existing on a network pipe;
a message processor that transmits the messages to a first input channel having a higher priority or a second input channel having a lower priority according to a priority; and
a subprotocol message processor that processes the messages of the first input channel first, and processes the messages of the second input channel when there is no message in the first input channel,
wherein when the subprotocol message processor receives a transaction delivery message including a transaction, it verifies validity of the transaction, and when a current block height is out of the range of a reservation period of a final validity determination, sets a validation result of the transaction as a final value, and does not perform validation of the transaction when the same transaction is received later.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the subprotocol message processor determines the validation result of the transaction as a temporary value when the current block height is within the reservation period, and performs the validation of the transaction when the same transaction is received later.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the reservation period includes a range between the first value and the second value,
the first value is a sum of a reference block height indicating a time point in which the transaction is composed or a time point when the transaction is verified and a value of a first variable indicating the number of blocks for which determination is reserved due to the fork of the blockchain, and
the second value is a difference between the reference block height and a value of a second variable indicating the number of blocks for which determination is reserved due to a synchronization delay.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the reference block height is set in one of the configuration fields of the transaction.

### Claim 16 (depends on 14)

The apparatus of claim 14, wherein the reference block height is set in one of the fields constituting the transaction delivery message.

### Claim 17 (depends on 14)

The apparatus of claim 14, wherein the subprotocol message processor determines that the transaction is invalid as the final value when the difference between the reference block height and the value of the second variable is greater than the current block height.

### Claim 18 (depends on 14)

The apparatus of claim 14, wherein the subprotocol message processor determines the validation result of the transaction as the final value when the current block height is greater than the sum of the reference block height and the value of the first variable.

### Claim 19 (depends on 12)

The apparatus of claim 12, wherein the message processor transmits a message to the first input channel when the message is a message required for establishing a connection with a neighboring node or a message required for receiving a block.

### Claim 20 (depends on 12)

The apparatus of claim 12, wherein the message processor transmits the transaction delivery message to the second input channel.
