IP Library › Granted Patent US 11,665,000
Granted Patent B2
US 11,665,000 · App. 17/116,327 · Granted May 30, 2023

Method and apparatus for processing privacy data of block chain, device, and storage medium

Inventors: Bing Duan (Beijing, CN); Wei Xiao (Beijing, CN)
Assignee: Baidu Online Network Technology (Beijing) Co., Ltd.
H04L9/3239G06F21/602H04L9/008H04L63/0442H04L9/50
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,665,000
App. No.
17/116,327
Granted
May 30, 2023
Kind
B2
Abstract

Embodiments of the present disclosure disclose a method for processing privacy data of a block chain. When implemented by a block chain node, a specific implementation comprises: acquiring a data calculation transaction request initiated by a data user side based on a privacy smart contract; acquiring homomorphically encrypted source data according to the data calculation transaction request; invoking the privacy smart contract according to a calculation task in the data calculation transaction request; and performing an uplink operation on the data calculation transaction request and the calculation result to feed the data calculation transaction request and the calculation result back to the data user side of the data calculation transaction request, for the data user side to perform a homomorphic decryption and de-blinding on the calculation result, to acquire a plaintext calculation result. Thus, the scheme of processing the privacy data of the block chain is optimized.

Claims (57)

1. A method for processing privacy data of a block chain by a block chain node, the method comprising:

acquiring a data calculation transaction request, wherein the request is initiated by a data user side based on a privacy smart contract, and invocation data in the request refers to data after blinding performed by the data user side, wherein the blinding is processing the invocation data thereof according to a rule set by the data user side;

acquiring homomorphically encrypted source data according to the request;

invoking the privacy smart contract according to a calculation task in the request, to perform a calculation for the invocation data and the source data to acquire a calculation result; and

performing an uplink operation on the request and the calculation result to feed the request and the calculation result back to the data user side, such that the data user side homomorphically decrypts and de-blinds the calculation result to acquire a plaintext calculation result.

2. The method according to claim 1 , further comprising:

acquiring a data publishing transaction request initiated by a data provider side based on the privacy smart contract, wherein source data in the data publishing transaction request refers to homomorphically encrypted data; and

invoking the privacy smart contract to perform the data publishing transaction request to perform uplink publishing on the source data.

3. The method according to claim 1 , wherein the blinding comprises: adding a random value to the invocation data, and the de-blinding comprises: removing the random value from the calculation result.

4. The method according to claim 1 , wherein after the acquiring a data calculation transaction request initiated by a data user side based on a privacy smart contract, the method further comprises:

performing, based on source data pointed in the data calculation transaction request, an authentication as to whether the data user side is permitted to use the source data.

5. The method according to claim 4 , wherein the performing the authentication operation comprises:

sending, based on the source data pointed in the data calculation transaction request, an authentication request for permitting the data user side to use the source data to an authentication center, to request the authentication center to process the authentication request according to a permission configured by a data provider side; and

acquiring an authentication result fed back by the authentication center.

6. The method according to claim 1 , wherein invoking the privacy smart contract to perform the calculation for the invocation data and the source data comprises:

invoking the privacy smart contract to run on a virtual machine, and

invoking a nested function of the virtual machine according to the privacy smart contract, to perform the calculation for the invocation data and the source data.

7. A method for processing privacy data of a block chain, performed by a block chain client, the method comprising:

determining source data required for a calculation task from homomorphically encrypted data published in a block chain;

blinding invocation data of the calculation task, wherein the blinding is processing the invocation data thereof according to a rule set by the data user side;

initiating a data calculation transaction request for performing a calculation task for the invocation data and the source data based on a privacy smart contract configured by a block chain node, to request the block chain node to invoke the privacy smart contract to perform the calculation task and acquire a calculation result;

acquiring an uplink calculation result;

requesting a data provider side of the source data to provide a homomorphic encryption public key; and

decrypting homomorphically the calculation result by using the homomorphic encryption public key, and de-blinding the calculation result to acquire a plaintext calculation result.

8. The method according to claim 7 , wherein the blinding comprises: adding a random value to the invocation data, and the de-blinding comprises: removing the random value from the calculation result.

9. The method according to claim 7 , further comprising:

invoking a homomorphic encryption module to create an asymmetric homomorphic encryption key, the asymmetric homomorphic encryption key including a homomorphic encryption private key and a homomorphic encryption public key;

invoking the homomorphic encryption module to perform a homomorphic encryption on to-be-provided source data by using the homomorphic encryption private key; and

initiating a data publishing transaction request for an uplink operation on the source data, based on the privacy smart contract.

10. The method according to claim 9 , wherein after the initiating a data publishing transaction request for an uplink operation on the source data, the method further comprises:

configuring a permission to use the source data into an authentication center, to make an authentication as to whether a data user side is permitted to use the source data to.

11. An electronic device, comprising:

at least one processor; and

a storage device, communicated with the at least one processor,

wherein the storage device stores an instruction executable by the at least one processor to perform an operation for processing privacy data of a block chain by a block chain node, the operation comprising:

acquiring a data calculation transaction request, wherein the request is initiated by a data user side based on a privacy smart contract, and invocation data in the request refers to data after blinding performed by the data user side, wherein the blinding is processing the invocation data thereof according to a rule set by the data user side;

acquiring homomorphically encrypted source data according to the request;

invoking the privacy smart contract according to a calculation task in the request, to perform a calculation for the invocation data and the source data to acquire a calculation result; and

performing an uplink operation on the request and the calculation result to feed the request and the calculation result back to the data user side, such that the data user side homomorphically decrypts and de-blinds the calculation result to acquire a plaintext calculation result.

12. The electronic device according to claim 11 , further comprising:

acquiring a data publishing transaction request initiated by a data provider side based on the privacy smart contract, wherein source data in the data publishing transaction request refers to homomorphically encrypted data; and

invoking the privacy smart contract to perform the data publishing transaction request to perform uplink publishing on the source data.

13. The electronic device according to claim 11 , wherein the blinding comprises: adding a random value to the invocation data, and the de-blinding comprises: removing the random value from the calculation result.

14. The electronic device according to claim 11 , wherein after the acquiring a data calculation transaction request initiated by a data user side based on a privacy smart contract, the at least one processor further comprises:

performing, based on source data pointed in the data calculation transaction request, an authentication as to whether the data user side is permitted to use the source data.

15. The electronic device according to claim 14 , wherein the performing the authentication operation comprises:

sending, based on the source data pointed in the data calculation transaction request, an authentication request for permitting the data user side to use the source data to an authentication center, to request the authentication center to process the authentication request according to a permission configured by a data provider side; and

acquiring an authentication result fed back by the authentication center.

16. The electronic device according to claim 11 , wherein invoking the privacy smart contract to perform the calculation for the invocation data and the source data comprises:

invoking the privacy smart contract to run on a virtual machine, and

invoking a nested function of the virtual machine according to the privacy smart contract, to perform the calculation for the invocation data and the source data.

17. An electronic device, comprising:

at least one processor; and

a storage device, communicated with the at least one processor,

wherein the storage device stores an instruction executable by the at least one processor to perform the method of claim 7 .

18. A non-transitory computer readable storage medium, storing a computer instruction, wherein the computer instruction is used to cause the computer to perform the method of claim 1 .

19. A non-transitory computer readable storage medium, storing a computer instruction, wherein the computer instruction is used to cause the computer to perform the method of claim 7 .

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 17, 2021
From: DUAN, BING; XIAO, WEI
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 057208/0353 →
Priority Claims (1)
CN 202010474245.3 · May 29, 2020 · national
Continuity (1)
Related Publication 20210377038A1 · Dec 2, 2021
Cited By (1)
US 12,432,052