Method and device for reestablishing user database on block chain, equipment and medium

A blockchain and database technology, applied in the blockchain field, can solve the problem of inability to retrieve indexes and data keys.

Active Publication Date: 2018-10-09
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention provides a user database reconstruction method, device, equipment and medium on the block chain to solve the problem that the user cannot retrieve the lost index and data key on the block chain

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for reestablishing user database on block chain, equipment and medium
  • Method and device for reestablishing user database on block chain, equipment and medium
  • Method and device for reestablishing user database on block chain, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It shows a flow chart of the method for rebuilding the user database on the blockchain in this embodiment. The user database reconstruction method on the block chain can be applied to the application system based on the block chain technology, and is used to re-establish the user's application database when the user loses the index and data key on the block chain. Such as figure 1 As shown, the user database reconstruction method on the block chain includes the following steps:

[0026] S10: Read all data entries on the blockchain, each data entry is stored in the form of a key-value pair, each data entry is obtained after being encrypted with a preset encryption algorithm, and the index of each data entry includes a user ID .

[0027] Blockchain is a new application mode of computer technology such as distributed data storage, consensus mechanism and encryption algorithm. This embodiment is implemented based on a blockchain system. The blockchain mentioned...

Embodiment 2

[0075] Figure 4 A functional block diagram of a device for rebuilding a user database on a blockchain corresponding to the method for rebuilding a user database on a blockchain in Embodiment 1 is shown. Such as Figure 4 As shown, the user database rebuilding device on the block chain includes a reading module 10 , a decryption module 20 , a saving module 30 and a rebuilding module 40 . Among them, the implementation functions of the reading module 10, the decryption module 20, the saving module 30 and the reconstruction module 40 correspond to the steps corresponding to the user database reconstruction method on the block chain in Embodiment 1. In order to avoid redundant description, this embodiment is different. a detailed description.

[0076] The reading module 10 is used to read all data entries on the block chain. Each data entry is stored in the form of a key-value pair. Each data entry is obtained after being encrypted by using a preset encryption algorithm. Each d...

Embodiment 3

[0090] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for rebuilding the user database on the blockchain in Embodiment 1 is implemented. In order to avoid repetition, here No longer. Alternatively, when the computer program is executed by the processor, the functions of the modules / units in the device for rebuilding the user database on the blockchain in Embodiment 2 are implemented. In order to avoid repetition, details are not repeated here.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and device for reestablishing a user database on a block chain, terminal equipment and a storage medium. The method for reestablishing the user database on the block chain comprises the steps of reading all data items on the block chain, wherein each data item is obtained after being encrypted through a preset encryption algorithm; adopting a decryption algorithm corresponding to the encryption algorithm for decrypting each data item, and obtaining a decrypting result of each data item; if the decrypting results carry user identifiers, determining the data items as user data information corresponding to the user identifiers, and saving the data information; based on indexes and data secret keys, establishing a corresponding relationship of the data information on the block chain, and reestablishing the user database on the block chain. By means of the method for reestablishing the user database on the block chain, a user can find back missing data fromthe block chain, and the user database is reestablished.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a user database reconstruction method, device, equipment and medium on the block chain. Background technique [0002] When users communicate on the blockchain, users encrypt and store all data entries on the blockchain. During normal application, users on the blockchain save the indexes and data keys of their own data entries. Users have all their own The full plaintext state of the data. Due to the need for authorization and reading between users on the blockchain, it is necessary to maintain K<->KC<->Key (where K is the index and KC is the encrypted index (that is, the key of the data entry) that requires very high storage security. Index), Key is the data key, "<->" indicates the two-way correspondence between data) correspondence, so in a multi-user blockchain system, if the index and data key owned by a user are lost, the Users will not be ab...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30G06Q20/38H04L29/06
CPCH04L63/0428G06Q20/3829
Inventor 贾牧谢丹力陆陈一帆
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products