IP Library › Granted Patent US 11,558,180
Granted Patent B2
US 11,558,180 · App. 16/747,370 · Granted Jan 17, 2023

Key-value store with blockchain properties

Inventor: Jeronimo Irazabal (Buenos Aires, AR)
Assignee: International Business Machines Corporation
H04L9/0637H04L9/0825H04L9/0861H04L9/0891H04L9/3242H04L41/0627
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,558,180
App. No.
16/747,370
Granted
Jan 17, 2023
Kind
B2
Abstract

An example operation may include one or more of receiving a request associated with a key-value pair stored in a database, determining whether a state of the key-value pair has changed since a most recently received request, and in response to a determination that the state of the key-value pair has changed, generating a data block that includes a changed state of the key-value pair and adding the generated data block to a hash-linked chain of data blocks.

Claims (32)

1. An apparatus comprising:

a memory comprising a key-value store (KVS) and a blockchain ledger; and

a processor configured to

receive a request from a software application, where the request identifies a key stored in the KVS,

determine whether a state of a key-value pair stored in the KVS which correspond to the key in the received request has changed since a most recently received request from the software application based on a comparison of a timestamp stored in a block previously committed to the blockchain ledger which includes a most-recently committed value of the key-value pair and of the key-value pair in the KVS,

in response to a determination that the state of the key-value pair has changed in the KVS, generate a new data block that includes a changed state of the key-value pair included in the request and a hash pointer to the block which includes the most recently committed value of the key-value pair from the software application, and

commit the new data block to the blockchain ledger.

2. The apparatus of claim 1 , wherein, in response to a determination that the state of the key-value pair has not changed, the processor is further configured to send an instruction to not generate a data block.

3. The apparatus of claim 1 , wherein the processor is configured to receive a tick operation triggered by the software application which identifies a subset of keys from among a larger set of keys within the KVS.

4. The apparatus of claim 1 , wherein the processor is further configured to transmit a notification which indicates that the new data block is generated to the software application.

5. The apparatus of claim 1 , wherein the KVS comprises a plurality of records which each comprise a unique key paired with one or more respective data values.

6. The apparatus of claim 1 , wherein the request is associated with a plurality of key-value pairs, and the processor determines whether any of the plurality of key-value pairs have changed since the most recently received request.

7. The apparatus of claim 1 , wherein the processor is configured to store a hash of block content from the previously committed block which includes the most recently committed value of the key-value pair from the software application within the new data block.

8. The apparatus of claim 1 , wherein the processor is further configured to detect that a conditional statement from among a plurality of predefined conditional statements has occurred with respect to the database, and automatically generate hail the new data block based on the detected conditional statement.

9. A method comprising:

receiving a request from a software application, where the request identifies a key stored in a key-value store (KVS) in storage;

determining whether a state of a key-value pair stored in the KVS which corresponds to the key in the received request has changed since a most recently received request from the software application based on a comparison of a timestamp stored in a block previously committed to a blockchain ledger in the storage which includes a most-recently committed value of the key-value pair and a current timestamp of the key-value pair in the KVS;

in response to a determination that the key-value pair has changed, generating a data block that includes a changed state of the key-value pair included in the request and a hash pointer to the block which includes the most recently committed value of the key-value pair from the software application; and

committing the new data block to the blockchain ledger.

10. The method of claim 9 , further comprising, in response to a determination that the state of the key-value pair has not changed, sending an instruction not to generate a data block.

11. The method of claim 9 , wherein the receiving comprises receiving a tick operation triggered by the software application which identifies a subset of keys from among a larger set of keys within the KVS.

12. The method of claim 9 , further comprising transmitting a notification indicating that the new data block is generated to the software application.

13. The method of claim 9 , wherein the KVS comprises a plurality of records which each comprise a unique key paired with one or more respective data values.

14. The method of claim 9 , wherein the request is associated with a plurality of key-value pairs, and the determining comprises determining whether any of the plurality of key-value pairs have changed.

15. The method of claim 9 , wherein the committing further comprises storing a hash of block content from the previously committed block that includes the most recently committed value of the key-value pair t from the software application within the new data block.

16. The method of claim 9 , further comprising detecting that a conditional statement from among a plurality of predefined condition statements has occurred with respect to the database, and automatically generating flail the new data block based on the detected conditional statement.

17. A non-transitory computer readable medium comprising instructions, that when read by a processor, cause the processor to perform a method comprising:

receiving a request from a software application, where the request identifies a key stored in a key-value store (KVS) in storage;

determining whether a state of a key-value pair stored in the KVS which corresponds to the key in the received request has changed since a most recently received request from the software application based on a comparison of a timestamp stored in a block previously committed to a blockchain ledger in the storage which includes a most-recently committed value of the key-value pair and a current timestamp of the key-value pair in the KVS;

in response to a determination that the key-value pair has changed, generating a data block that includes a changed state of the key-value pair included in the request and a hash pointer to the block which includes the most recently committed value of the key-value pair from the software application; and

committing the new data block to the blockchain ledger.

18. The non-transitory computer readable medium of claim 17 , wherein the method further comprises, in response to a determination that the state of the key-value pair has not changed, sending an instruction not to generate a data block.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 20, 2020
From: IRAZABAL, JERONIMO
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 051558/0855 →
Continuity (1)
Related Publication 20210226768A1 · Jul 22, 2021