IP Library Granted Patent US 10,795,882
Granted Patent B2
US 10,795,882 · App. 16/786,794 · Granted Oct 6, 2020

Blockchain-based data compression and searching

Inventors: Long Cheng (Hangzhou, CN); Yanpeng Li (Hangzhou, CN); Boyan Jia (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
G06F16/2379G06F16/245G06F16/258H03M7/30G06Q10/10
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 10,795,882
App. No.
16/786,794
Granted
Oct 6, 2020
Kind
B2
Abstract

A computer-implemented method includes: compressing, by a service party, target data to be stored according to a preset compression template; assembling the compressed target data and a unique identifier of the preset compression template into storage transaction data; and transmitting the storage transaction data to a node device on a blockchain, so that the node device, in response to the storage transaction data, searches for a smart contract published on the blockchain, in which the smart contract corresponds to the unique identifier, invokes the preset compression template to determine that a data format of the target data conforms to a data format specified by the preset compression template, and in response to determining that the data format of the target data conforms to the data format specified by the preset compression template, stores the compressed target data.

Claims (65)

1. A computer-implemented method comprising:

receiving, by a node device on a blockchain, storage transaction data;

wherein the storage transaction data comprises compressed target data to be stored and a unique identifier of a smart contract published on the blockchain, wherein the compressed target data comprises target data compressed according to a preset compression template, and wherein the smart contract comprises the preset compression template;

searching for the smart contract published on the blockchain based on the unique identifier;

invoking the preset compression template of the smart contract to determine that a data format of the target data conforms to a data format specified by the preset compression template, wherein the preset compression template comprises a rule for compression of data having the data format of the target data; and

in response to determining that the data format of the target data conforms to the data format specified by the preset compression template, storing the compressed target data.

2. The computer-implemented method of claim 1 , wherein a data structure of the target data comprises a self-describing structure and substance data, wherein the self-describing structure is configured to represent a meaning expressed by the substance data, and wherein the target data is compressed based on a mapping between the self-describing structure of the target data and self-defining data according to the rule for of data having the data format of the target data, wherein an amount of the self-defining data is smaller than a data amount of the self-describing structure.

3. The computer-implemented method of claim 1 , further comprising,. prior to receiving the storage transaction data:

receiving smart contract creation data comprising the preset compression template;

invoking a smart contract audit logic declared in a smart audit contract published on the blockchain;

writing a voting event in a transaction log; and

after an audit node on the blockchain monitors the voting event, submitting a voting transaction to the smart audit contract, wherein the smart audit contract summarizes the voting transaction to acquire an audit result of the smart contract.

4. The computer-implemented method of claim 3 , further comprising:

in response to the audit result indicating a passing vote, generating the unique identifier of the smart contract, and

creating the smart contract on the blockchain.

5. The computer-implemented method of claim 4 , wherein the unique identifier comprises a hash value acquired by performing a hash calculation on a unique content of the preset compression template.

6. The computer-implemented method of claim 1 , comprising:

receiving, by the node device, from a service party, a search transaction, the search transaction comprising the unique identifier;

searching for the compressed target data stored on the blockchain;

invoking the preset compression template of the smart contract to restore the compressed target data to the target data; and

returning the target data to the service party.

7. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

receiving, by a node device on a blockchain, storage transaction data;

wherein the storage transaction data comprises compressed target data to be stored and a unique identifier of a smart contract published on the blockchain, wherein the compressed target data comprises target data compressed according to a preset compression template, and wherein the smart contract comprises the preset compression template;

searching for the smart contract published on the blockchain based on the unique identifier;

invoking the preset compression template of the smart contract to determine that a data format of the target data conforms to a data format specified by the preset compression template, wherein the preset compression template comprises a rule for compression of data having the data format of the target data; and

in response to determining that the data format of the target data conforms to the data format specified by the preset compression template, storing the compressed target data.

8. The non-transitory, computer-readable medium of claim 7 , wherein a data structure of the target data comprises a self-describing structure and substance data, wherein the self-describing structure is configured to represent a meaning expressed by the substance data, and wherein the target data is compressed based on a mapping between the self-describing structure of the target data and self-defining data according to the rule for compression of data having the data format of the target data, wherein an amount of the self-defining data is smaller than a data amount of the self-describing structure.

9. The non-transitory, computer-readable medium of claim 7 , wherein the operations further comprise, prior to receiving the storage transaction data:

receiving smart contract creation data comprising the preset compression template;

invoking a smart contract audit logic declared in a smart audit contract published on the blockchain;

writing a voting event in a transaction log; and

after an audit node on the blockchain monitors the voting event, submitting a voting transaction to the smart audit contract, wherein the smart audit contract summarizes the voting transaction to acquire an audit result of the smart contract.

10. The non-transitory, computer-readable medium of claim 9 , wherein the operations further comprise:

in response to the audit result indicating a passing vote, generating the unique identifier of the smart contract, and

creating the smart contract on the blockchain.

11. The non-transitory, computer-readable medium of claim 10 , wherein the unique identifier comprises a hash value acquired by performing a hash calculation on a unique content of the preset compression template.

12. The non-transitory, computer-readable medium of claim 7 , wherein the operations comprise:

receiving, by the node device, from a service party, a search transaction, the search transaction comprising the unique identifier;

searching for the compressed target data stored on the blockchain;

invoking the preset compression template of the smart contract to restore the compressed target data to the target data; and

returning the target data to the service party.

13. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

receiving, by a node device on a blockchain, storage transaction data;

wherein the storage transaction data comprises compressed target data to be stored and a unique identifier of a smart contract published on the blockchain, wherein the compressed target data comprises target data compressed according to a preset compression template, and wherein the smart contract comprises the preset compression template;

searching for the smart contract published on the blockchain based on the unique identifier;

invoking the preset compression template of the smart contract to determine that a data format of the target data conforms to a data format specified by the preset compression template, wherein the preset compression template comprises a rule for compression of data having the data format of the target data; and

in response to determining that the data format of the target data conforms to the data format specified by the preset compression template, storing the compressed target data.

14. The computer-implemented system of claim 13 , wherein a data structure of the target data comprises a self-describing structure and substance data, wherein the self-describing structure is configured to represent a meaning expressed by the substance data, and wherein the target data is compressed based on a mapping between the self-describing structure of the target data and self-defining data according to the rule for compression of data having the data format of the target data, wherein an amount of the self-defining data is smaller than a data amount of the self-describing structure.

15. The computer-implemented system of claim 13 , wherein the operations further comprise, prior to receiving the storage transaction data:

receiving smart contract creation data comprising the preset compression template;

invoking a smart contract audit logic declared in a smart audit contract published on the blockchain;

writing a voting event in a transaction log; and

after an audit node on the blockchain monitors the voting event, submitting a voting transaction to the smart audit contract, wherein the smart audit contract summarizes the voting transaction to acquire an audit result of the smart contract.

16. The computer-implemented system of claim 15 , wherein the operations further comprise:

in response to the audit result indicating a passing vote, generating the unique identifier of the smart contract, and

creating the smart contract on the blockchain.

17. The computer-implemented system of claim 16 , wherein the unique identifier comprises a hash value acquired by performing a hash calculation on a unique content of the preset compression template.

18. The computer-implemented system of claim 13 , wherein the operations comprise:

receiving, by the node device, from a service party, a search transaction, the search transaction comprising the unique identifier;

searching for the compressed target data stored on the blockchain;

invoking the preset compression template of the smart contract to restore the compressed target data to the target data; and

returning the target data to the service party.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 20, 2020
From: CHENG, LONG; LI, YANPENG; JIA, BOYAN
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052442/0243 →
Priority Claims (1)
CN 2019 1 0363442 · Apr 30, 2019 · national
Continuity (2)
Continuation PCTCN2020072133 · Jan 15, 2020
Related Publication 20200175002A1 · Jun 4, 2020