# US 2021/0081400 A1 · Search method using data structure for supporting multiple search in blockchain-based iot environment, and device according to method

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

- Number: US 2021/0081400 A1
- Document ID: US20210081400A1
- Status: Published application
- Kind: A1
- Application number: 16/954,024
- Filed: 2018-12-13
- Published: 2021-03-18
- Earliest claimed: 2017-12-13
- Assignees: Sogang University Research Foundation
- Applicants: Sogang University Research Foundation
- Inventors: Soo Yong PARK; Dong Young LEE
- Web page: https://patentgrep.com/patent/US20210081400A1

## CPC

- G06F 16/2365: {Ensuring data consistency and integrity}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 16/2264: {Multidimensional index structures}
- G06F 16/9027: {Trees}
- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- H04L 63/12: {Applying verification of the received information (cryptographic mechanisms or cryptographic arrangements for data integrity or data verification H04L9/32)}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- 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 present disclosure relates to a search technology using a data structure for supporting multi-search in a blockchain-based IoT environment, and a method for providing a search function for blockchain includes receiving block data via a network, verifying transactions included in the received block data, and adding the block data as a node to an index tree of multidimensional index structures based on information about each transaction in the transaction verification.

## Claims

### Claim 1

A method for providing a search function for blockchain, comprising:
receiving block data via a network;
verifying transactions included in the received block data; and
adding the block data as a node to an index tree of multidimensional index structures based on information about each transaction in the transaction verification.

### Claim 2 (depends on 1)

The method for providing a search function for blockchain according to claim 1, wherein in the index tree of multidimensional index structures, a search key is a plurality of fields according to Point Access Method (PAM), and transaction data comprises multidimensional points and is stored in a disk.

### Claim 3 (depends on 2)

The method for providing a search function for blockchain according to claim 2, wherein the index tree of multidimensional index structures is a balanced tree including nodes of a uniform size that is equal to a disk page size, each node is stored in a page, an internal node is responsible for one region in a multidimensional space, a leaf node stores data page information, and each transaction data is located in a search space along an index node indicating a space to which each transaction data belongs.

### Claim 4 (depends on 1)

The method for providing a search function for blockchain according to claim 1, further comprising:
updating ‘Mempool’ that stores unconfirmed transactions, in the transaction verification.

### Claim 5 (depends on 1)

The method for providing a search function for blockchain according to claim 1, further comprising:
after the transaction verification is completed, calculating ‘Merkle Root’ based on transaction information, and verifying a block header.

### Claim 6 (depends on 1)

The method for providing a search function for blockchain according to claim 1, further comprising:
storing the transaction verified block data in a local disk.

### Claim 7

A method for providing a search function for blockchain, comprising:
receiving, by a receiver, block data according to multidimensional index structures from a sender via a network;
verifying, by the receiver, transactions included in the received block data; and
adding, by the receiver, the block data as a node to an index tree of multidimensional index structures based on information about each transaction in the transaction verification,
wherein the received block data includes a first hash value generated from information about the number of nodes stored in the sender's index tree according to the multidimensional index structures.

### Claim 8 (depends on 7)

The method for providing a search function for blockchain according to claim 7, wherein in the index tree of multidimensional index structures, a search key is a plurality of fields according to Point Access Method (PAM), and transaction data comprises multidimensional points and is stored in a disk.

### Claim 9 (depends on 8)

The method for providing a search function for blockchain according to claim 8, wherein the index tree of multidimensional index structures is a balanced tree including nodes of a uniform size that is equal to a disk page size, and is a ‘K-D-B Tree’.

### Claim 10 (depends on 7)

The method for providing a searchfunction for blockchain according to claim 7, further comprising:
calculating, by the receiver, the number of internal nodes stored in the receiver's index tree additionally created after the transaction verification is completed and generating a second hash value from it; and
verifying, by the receiver, integrity by comparing the first hash value included in the block data received from the sender and the second hash value generated by the receiver.

### Claim 11 (depends on 10)

The method for providing a search function for blockchain according to claim 10, wherein each of the first hash value and the second hash value is calculated using information about an index tree created until a previous block, ‘Merkle Root’ for ensuring integrity of transaction information in a currently inputted block data, and the number of nodes after creating an index tree through the currently inputted block data.

### Claim 12 (depends on 10)

The method for providing a search function for blockchain according to claim 10, further comprising:
when the integrity verification succeeds,
verifying, by the receiver, a block header; and
propagating, by the receiver, the block data to other user.

### Claim 13 (depends on 7)

The method for providing a search function for blockchain according to claim 7, further comprising:
after the transaction verification is completed,
calculating ‘Merkle Root’ based on transaction information.

### Claim 14 (depends on 1)

A computer-readable recording medium having recorded thereon a program for performing the method according to claim 1 on a computer.

### Claim 15

A user device for blockchain, comprising:
a communication unit to transmit and receive block data via a network;
a processing unit to verify transactions included in the block data received through the communication unit, and add the block data as a node to an index tree of multidimensional index structures based on information about each transaction in the transaction verification; and
a storage unit to store the index tree and the block data.

### Claim 16 (depends on 15)

The user device according to claim 15, wherein in the index tree of multidimensional index structures, a search key is a plurality of fields according to Point Access Method (PAM), and transaction data comprises multidimensional points and is stored in a disk.

### Claim 17 (depends on 16)

The user device according to claim 16, wherein the index tree of multidimensional index structures is a balanced tree including nodes of a uniform size that is equal to a disk page size, and is a ‘K-D-B Tree’.

### Claim 18 (depends on 15)

The user device according to claim 15, wherein the block data received through the communication unit includes a first hash value generated from information about the number of nodes stored in a sender's index tree according to the multidimensional index structures, and
the processing unit is configured to:
calculate the number of internal nodes stored in its index tree additionally created after the transaction verification is completed, and generate a second hash value from it, and
verify integrity by comparing the first hash value included in the block data received from the sender and the generated second hash value.

### Claim 19 (depends on 18)

The user device according to claim 18, wherein each of the first hash value and the second hash value is calculated using information about an index tree created until a previous block, ‘Merkle Root’ for ensuring integrity of transaction information in a currently inputted block data, and the number of nodes after creating an index tree through the currently inputted block data.

### Claim 20 (depends on 15)

The user device according to claim 15, wherein when the integrity verification succeeds,
the processing unit is configured to:
verify a block header, and
propagate the block data to other user.
