# US 11,120,024 B2 · Dual-stack architecture that integrates relational database with blockchain

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

- Number: US 11,120,024 B2
- Document ID: US11120024B2
- Status: Granted
- Kind: B2
- Application number: 16/178,311
- Filed: 2018-11-01
- Published: 2020-05-07
- Granted: 2021-09-14
- Earliest claimed: 2018-11-01
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Alexander Ocher; Viktor Lapitski; Andrey Belyy
- Web page: https://patentgrep.com/patent/US11120024B2

## CPC

- G06F 16/24556: {Aggregation; Duplicate elimination}
- G06F 16/235: {Update request formulation}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- 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 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}
- 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

A database includes a blockchain infrastructure that allows data tables comprising the database to be associated with respective blockchains. Data inserted into a data table is replicated in its associated blockchain. Certain operations on a data table are disabled when it is associated with a blockchain.

## Claims

### Claim 1

A method in a database comprising a plurality of data tables, the method comprising:
performing any one of a plurality of database operations on one of the data tables when the data table is not associated with a blockchain;
associating the data table with a blockchain (associated state), wherein data comprising the data table are replicated in the blockchain;
performing at most only a subset of the plurality of database operations on the data table subsequent to associating the data table with the blockchain; and
processing a row insert operation to insert data specified in the row insert operation into the data table when the data table is in the associated state, including performing a first operation to insert the specified data into the data table and a second operation to add the specified data to a blockchain that is associated with the data table, wherein the first operation includes enqueuing the specified data to a queue and the second operation includes dequeuing data from the queue and adding the dequeued data to the blockchain, and
wherein the queue is defined for the data table, and a different queue is defined for another data table of the plurality of data tables.

### Claim 2 (depends on 1)

The method of claim 1, wherein enqueuing data to the queue occurs independently of dequeuing data from the queue.

### Claim 3 (depends on 1)

The method of claim 1, further comprising generating an ERROR response in response to receiving a row update operation or a row delete operation when the data table is in the associated state, and neither a received row update operation nor a received row delete operation are performed on the data table.

### Claim 4 (depends on 1)

The method of claim 1, further comprising receiving an ALTER TABLE operation on the data table when the data table is not associated with a blockchain, and in response:
instantiating a blockchain to be associated with the data table; and
adding data from the data table into the blockchain.

### Claim 5 (depends on 1)

The method of claim 1, wherein the queue is also defined for a set of data tables of the plurality of data tables.

### Claim 6

A non-transitory computer-readable storage medium having stored thereon computer executable instructions, which when executed by a computer device, cause the computer device to:
perform any one of a plurality of database operations on one of the data tables when the data table is not associated with a blockchain;
associate the data table with a blockchain (associated state), wherein data comprising the data table are replicated in the blockchain;
perform at most only a subset of the plurality of database operations on the data table subsequent to the data table being associated with the blockchain; and
process a row insert operation to insert data specified in the row insert operation into the data table when the data table is in the associated state, including performing a first operation to insert the specified data into the data table and a second operation to add the specified data to a blockchain that is associated with the data table, wherein the first operation includes enqueuing the specified data to a queue and the second operation includes dequeuing data from the queue and adding the dequeued data to the blockchain, and
wherein the queue is defined for the data table, and a different queue is defined for another data table of the plurality of data tables.

### Claim 7 (depends on 6)

The non-transitory computer-readable storage medium of claim 6, wherein the computer executable instructions, which when executed by the computer device, further cause the computer device to generate an ERROR response in response to receiving a row update operation or a row delete operation when the data table is in the associated state, and neither a received row update operation nor a received row delete operation are performed on the data table.

### Claim 8 (depends on 6)

The non-transitory computer-readable storage medium of claim 6, wherein the computer executable instructions, which when executed by the computer device, further cause the computer device to receive an ALTER TABLE operation on the data table when the data table is not associated with a blockchain, and in response to:
instantiate a blockchain to be associated with the data table; and
add data from the data table into the blockchain.

### Claim 9 (depends on 6)

The non-transitory computer-readable storage medium of claim 6, wherein the queue is also defined for a set of data tables of the plurality of data tables.

### Claim 10 (depends on 6)

The non-transitory computer-readable storage medium of claim 6, wherein enqueuing data to the queue occurs independently of dequeuing data from the queue.

### Claim 11

An apparatus comprising:
one or more computer processors; and
a computer-readable storage medium comprising instructions for controlling the one or more computer processors to be operable to:
perform any one of a plurality of database operations on one of the data tables when the data table is not associated with a blockchain;
associate the data table with a blockchain (associated state), wherein data comprising the data table are replicated in the blockchain;
perform at most only a subset of the plurality of database operations on the data table subsequent to the data table being associated with the blockchain; and
process a row insert operation to insert data specified in the row insert operation into the data table when the data table is in the associated state, including performing a first operation to insert the specified data into the data table and a second operation to add the specified data to a blockchain that is associated with the data table, wherein the first operation includes enqueuing the specified data to a queue and the second operation includes dequeuing data from the queue and adding the dequeued data to the blockchain, and
wherein the queue is defined for the data table, and a different queue is defined for another data table of the plurality of data tables.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the computer-readable storage medium further comprises instructions for controlling the one or more computer processors to be operable to generate an ERROR response in response to receiving a row update operation or a row delete operation when the data table is in the associated state, and neither a received row update operation nor a received row delete operation are performed on the data table.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the computer-readable storage medium further comprises instructions for controlling the one or more computer processors to be operable to receive an ALTER TABLE operation on the data table when the data table is not associated with a blockchain, and in response to:
instantiate a blockchain to be associated with the data table; and
add data from the data table into the blockchain.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the queue is also defined for a set of data tables of the plurality of data tables.

### Claim 15 (depends on 11)

The apparatus of claim 11, wherein enqueuing data to the queue occurs independently of dequeuing data from the queue.
