CN110851536A - Block chain construction method with master and slave blocks - Google Patents

Block chain construction method with master and slave blocks Download PDF

Info

Publication number
CN110851536A
CN110851536A CN201911137147.4A CN201911137147A CN110851536A CN 110851536 A CN110851536 A CN 110851536A CN 201911137147 A CN201911137147 A CN 201911137147A CN 110851536 A CN110851536 A CN 110851536A
Authority
CN
China
Prior art keywords
block
slave
chain
master
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911137147.4A
Other languages
Chinese (zh)
Inventor
谭朋柳
万里旭冉
王雪娇
唐伟强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanchang Hangkong University
Original Assignee
Nanchang Hangkong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanchang Hangkong University filed Critical Nanchang Hangkong University
Priority to CN201911137147.4A priority Critical patent/CN110851536A/en
Publication of CN110851536A publication Critical patent/CN110851536A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a block chain construction method with master and slave blocks, wherein a side chain structure is added to a traditional block single chain, wherein a side chain comprises a slave master block and a slave micro block, and the storage capacity of a single block is expanded to a greater extent compared with that of the single block in the traditional single-chain block chain. The invention improves the traditional single chain structure into a block chain structure with side chains, which is a double-chain block structure with master and slave blocks, and solves the problems of continuously updated data uplink and limited capacity of the traditional block chain. The system can be used for talent information management, house information storage and the like.

Description

Block chain construction method with master and slave blocks
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain construction method with master and slave blocks.
Background
The block chain is derived from the underlying technology of bitcoin, and is a chain structure with a block as a unit, and all data is stored in the blocks, each block comprises a block header and a block body, wherein the block header comprises information such as hash, timestamp, merkel root value and random value of a previous block, the block body mainly comprises information of transaction, and a hash field of the previous block is summary information of the previous block, so that the previous block can be prevented from being arbitrarily tampered and is uniquely pointed to the previous block, and thus the blocks are connected. This has led to a number of problems, such as: the storage capacity is limited. As for the development of the block chain, more and more application scenarios cannot be realized in the block chain, such as talent chain, house information recording, etc. These applications require blockchains that can store large amounts of data, and for these applications, the information for each thing is constantly updated, and if the information for the same thing is too cluttered because new information is re-linked, the creation of a new underlying blockchain structure is imminent.
Disclosure of Invention
The invention aims to solve the problems that: a block chain construction method with master and slave blocks is provided, a traditional single chain structure is improved into a block chain structure with side chains, the block chain structure is a double-chain block structure with master and slave blocks, and the problems of continuously updated data uplink and limited capacity of the traditional block chain are solved.
The technical scheme provided by the invention for solving the problems is as follows: a side chain structure is added to a traditional block single chain, wherein a side chain comprises a slave main block and a slave micro block, and the storage capacity of a single block is expanded to a greater degree compared with that of a single block in the traditional single-chain block chain.
Preferably, the whole frame structure comprises three parts of the blocks, the slave main blocks and the slave micro blocks, and a more flexible block chain storage structure is provided for a user.
Preferably, the block has a similar structure as a conventional block, and includes a hash value of information stored in a previous block, a time stamp, information, a mercker root hash value of the information, and a hash value of unique information in the block.
Preferably, the slave master block includes a hash value of the unique information connected to the block, a time stamp, self-stored information, and a mercker root hash value of the stored information.
Preferably, the dependent micro-block includes a hash value of all information of the previous block, a timestamp, own data information, and a mercker root hash value of the own data information.
Preferably, the block-to-block connections are the same as conventional blockchain connections, where the information in a block is subjected to a double SHA256 hash operation, and the hash value generated by the previous block links the two blocks.
Preferably, on the side chain, the slave master block links the block with a hash generated based on the uniqueness information of the block.
Preferably, the slave micro-tile then links the previous slave micro-tile with the previous slave micro-tile based on a hash value generated from the content of the previous slave master or slave micro-tile.
Preferably, the process of mining is reduced, the previous hash is directly calculated for uplink, if users with simultaneous uplink exist, time is compared firstly, the user with the earlier time preferentially uplink, and if the time is completely the same, one user uplink is randomly selected.
Compared with the prior art, the invention has the advantages that: a solution is provided for the problem of expansibility of a block chain by a side chain structure, and the limited storage space of the block chain is further expanded logically by improving the structure of the block chain at the bottom layer, so that the structure of the block chain is more flexibly applied. Taking talent links as an example, if the talent links are common block links, the talent links are very difficult to implement, and firstly, the problem is that each person has large resume information data volume. Second, one may experience changing jobs, and therefore, the resume information for the uplink needs to be updated continuously. Although the ordinary blockchain can re-link the chain once to update the personal resume, the resume information is too dispersed and is not easy to be sorted. The structure with the side chain provided by the invention is a good solution for the talent chain, and each person takes the identity information as a main block, and resume information which is continuously updated is placed on a subordinate block, so that the problem of huge data volume is well solved, and the problem that the information needs to be continuously updated is also solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention.
FIG. 1 is a block diagram of a conventional block structure of the present invention;
FIG. 2 is a diagram of a slave-master block architecture of the present invention;
FIG. 3 is a diagram of a slave tile architecture of the present invention;
FIG. 4 is a block diagram of the frame of the present invention;
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the accompanying drawings and examples, so that how to implement the embodiments of the present invention by using technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
A side chain structure is added to a traditional block single chain, wherein a side chain comprises a slave main block and a slave micro block, and the storage capacity of a single block is expanded to a greater degree compared with that of a single block in the traditional single-chain block chain.
Furthermore, the whole frame structure comprises three parts, namely the block, the slave main block and the slave micro block, and a more flexible block chain storage structure is provided for a user.
Further, the blocks have similar structures as conventional blocks, and include a hash value of information stored in a previous block, a time stamp, information stored in the previous block, a michael root hash value of the information stored in the previous block, and a hash value of unique information in the previous block.
Further, the slave master block comprises a hash value of the uniqueness information connected with the block, a time stamp, self-storage information and a merkel root hash value of the storage information.
Further, the slave micro-block includes hash values of all information of the previous block, a timestamp, self data information, and a tacher root hash value of the self data information.
Furthermore, the connection between blocks is the same as the traditional block chain connection, the information in the blocks is subjected to double SHA256 hash operation, and the latter block links the two blocks according to the hash value generated by the content of the former block.
Further, on the side chain, the slave master block links the block with a hash generated based on the uniqueness information of the block.
Further, the slave micro-tile links the previous slave micro-tile with the previous slave micro-tile based on a hash value generated from the content of the previous slave master or slave micro-tile.
Further, the process of mining is reduced, the previous hash is directly calculated for chain linking, if users which are simultaneously linked exist, time is compared, the user which is earlier in time preferentially links, and if the time is completely the same, a user is randomly selected for chain linking.
The single block structure of the block chain is not convenient for storing information of a plurality of market resources at present, therefore, the invention firstly improves the traditional block structure as shown in fig. 1 and designs a side chain structure, wherein the side chain comprises a slave main block and a slave micro block. The slave main block structure is connected with the block bodies through the hash value of the unique information, and each block body except the next block is connected with the block body, and only one slave main block is connected with the block body on the side chain. The slave master block includes information such as a hash value of the block uniqueness information, a time stamp, and data information, and a Merkle root hash value of the data information. The slave-master block structure is shown in fig. 2. In addition to the introduction of the slave-master block structure, the invention also introduces the slave micro-block structure, and the slave micro-block is different from the slave-master block in that the first slave micro-block is connected with the slave-master block, and then the slave micro-blocks are connected with each other, but whether the slave micro-block is connected with the slave micro-block or the slave micro-block is connected with the slave micro-block, the slave micro-block is connected with the slave micro-block through the Merkel root hash value of the previous block of information. The slave micro-block structure is similar to the slave main block structure and comprises hash values, time stamps, self data information Mercker root hash values and other information of all information of the previous block. The slave tile structure is shown in fig. 3. The invention provides a block chain structure framework with master and slave blocks by using slave master blocks and slave micro blocks. The frame structure is shown in fig. 4.
Similar to the traditional single-chain connection method, the framework provided by the invention adds a side chain structure on the basis of the single chain, so that a large amount of data required to be stored on a block is placed on the side chain, and the framework is also a traditional single-chain mode from the viewpoint of the side chain.
The block-to-block connection is the same as the traditional block chain connection, the information in the block is subjected to double SHA256 hash operation, and the latter block links the two according to the hash value generated by the content of the former block. On the side chain, the slave master chunk links a chunk based on its hash generated from the uniqueness information of the chunk, and the slave micro chunk links a previous slave chunk (whether a slave master chunk or a slave micro chunk) with a hash value generated based on the content of the previous slave chunk.
Taking talent market as an example, since the information is unified into the chaining of personal information, everyone can chain his own information without mining by miners, and then generate his own block. The problem of miners digging is eliminated. This is different from the blockchain. The uplink can be connected by directly calculating the hash of the previous block, but a problem derives from the fact that a plurality of users uplink simultaneously, therefore, if a plurality of users uplink simultaneously, the time is firstly judged, the earliest user uplink is selected according to the time, and other users need to form own blocks again according to the new hash value. If the time is the same, a user uplink is randomly selected.
The foregoing is merely illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the claims. The present invention is not limited to the above embodiments, and the specific structure thereof is allowed to vary. All changes which come within the scope of the invention as defined by the independent claims are intended to be embraced therein.

Claims (9)

1. A block chain construction method with master and slave blocks is characterized in that: on the traditional single-chain block, a side chain structure is added, wherein the side chain comprises two parts of a slave main block and a slave micro block, and the storage capacity of the single block is expanded to a greater extent compared with the single block in the traditional single-chain block chain.
2. A method of constructing a blockchain with master and slave blocks as claimed in claim 1, wherein: the whole frame structure comprises three parts, namely a block, a slave main block and a slave micro block, and provides a more flexible block chain storage structure for a user.
3. A method of constructing a blockchain with master and slave blocks as claimed in claim 2, wherein: the blocks have similar structures as traditional blocks, and comprise the hash value of the information stored in the previous block, the time stamp, the storage information, the mercker root hash value of the storage information and the hash value of the unique information in the block.
4. A method of constructing a blockchain with master and slave blocks as claimed in claim 2, wherein: the subordinate main block comprises a hash value of the unique information connected with the block, a time stamp, self storage information and a Mercker root hash value of the storage information.
5. A method of constructing a blockchain with master and slave blocks as claimed in claim 2, wherein: the subordinate micro-block comprises the hash value of all the information of the previous block, a time stamp, the data information of the subordinate micro-block and the Mercker root hash value of the data information of the subordinate micro-block.
6. A method of constructing a blockchain with master and slave blocks as claimed in claim 1, wherein: the block-to-block connection is the same as the traditional block chain connection, the information in the block is subjected to double SHA256 hash operation, and the latter block links the two according to the hash value generated by the content of the former block.
7. A method of constructing a blockchain with master and slave blocks as claimed in claim 1, wherein: on the side chain, the slave master block links blocks based on their hash generated based on their uniqueness information.
8. A method of constructing a blockchain with master and slave blocks as claimed in claim 1, wherein: the slave micro-block then links it with the previous slave block based on a hash value generated from the content of the previous slave master block or the previous slave micro-block.
9. A method of constructing a blockchain with master and slave blocks as claimed in claim 1, wherein: the mining process is reduced, the previous hash is directly calculated to carry out chain linking, if users with simultaneous chain linking exist, time is compared firstly, the user with the earlier time preferentially chains, and if the time is completely the same, one user can randomly select the chain linking.
CN201911137147.4A 2019-11-19 2019-11-19 Block chain construction method with master and slave blocks Pending CN110851536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911137147.4A CN110851536A (en) 2019-11-19 2019-11-19 Block chain construction method with master and slave blocks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911137147.4A CN110851536A (en) 2019-11-19 2019-11-19 Block chain construction method with master and slave blocks

Publications (1)

Publication Number Publication Date
CN110851536A true CN110851536A (en) 2020-02-28

Family

ID=69602410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911137147.4A Pending CN110851536A (en) 2019-11-19 2019-11-19 Block chain construction method with master and slave blocks

Country Status (1)

Country Link
CN (1) CN110851536A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102091A (en) * 2020-11-09 2020-12-18 南京可信区块链与算法经济研究院有限公司 Block chain excitation method based on double-layer chain architecture
CN112583805A (en) * 2020-12-03 2021-03-30 联动数科(北京)科技有限公司 Data processing method and device based on block chain, electronic equipment and storage medium
WO2023020442A1 (en) * 2021-08-18 2023-02-23 华为技术有限公司 Blockchain generation method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729471A (en) * 2017-10-13 2018-02-23 上海策赢网络科技有限公司 A kind of block chain and its generation method and equipment
CN109102400A (en) * 2018-07-17 2018-12-28 横琴密达科技有限责任公司 A kind of block catenary system comprising main chain and side chain
US20190320037A1 (en) * 2018-04-17 2019-10-17 Paypal, Inc. Content linking and aggregation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729471A (en) * 2017-10-13 2018-02-23 上海策赢网络科技有限公司 A kind of block chain and its generation method and equipment
US20190320037A1 (en) * 2018-04-17 2019-10-17 Paypal, Inc. Content linking and aggregation
CN109102400A (en) * 2018-07-17 2018-12-28 横琴密达科技有限责任公司 A kind of block catenary system comprising main chain and side chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102091A (en) * 2020-11-09 2020-12-18 南京可信区块链与算法经济研究院有限公司 Block chain excitation method based on double-layer chain architecture
CN112583805A (en) * 2020-12-03 2021-03-30 联动数科(北京)科技有限公司 Data processing method and device based on block chain, electronic equipment and storage medium
CN112583805B (en) * 2020-12-03 2023-08-15 联动优势科技有限公司 Block chain-based data processing method and device, electronic equipment and storage medium
WO2023020442A1 (en) * 2021-08-18 2023-02-23 华为技术有限公司 Blockchain generation method and apparatus

Similar Documents

Publication Publication Date Title
CN110851536A (en) Block chain construction method with master and slave blocks
KR102392944B1 (en) Data backup methods, storage media and computing devices
Etemad et al. Transparent, distributed, and replicated dynamic provable data possession
CN103503414B (en) A kind of group system calculating storage and merge
US8224825B2 (en) Graph-processing techniques for a MapReduce engine
CN104778225B (en) A kind of method of synchrodata in more storage systems of unstructured data
CN110941676B (en) Configuration method, device, equipment and medium
CN106452785A (en) Block chain network, branch node and block chain network application method
CN109218348A (en) The determination method and node device of block in a kind of block chain
KR102232641B1 (en) Method for searching using data structure supporting multiple search in blockchain based IoT environment, and apparatus thereof
TW202101437A (en) Hierarchical storage method and device based on block chain and electronic equipment
JP7328237B2 (en) Computer-implemented voting process and system
CN110473030B (en) Block chain-based electronic bill number claiming method and device and electronic equipment
CN106599104A (en) Mass data association method based on redis cluster
CN109857803A (en) Method of data synchronization, device, equipment, system and computer readable storage medium
CN111163148B (en) Synchronization method and related equipment for consensus state of block chain system
CN109857810B (en) Data synchronization device and method based on block chain
CN107423404A (en) Flow instance data synchronizing processing method and device
DE60312527D1 (en) MANAGING DATA WITH A MULTIPLE OF STORAGE ATTRIBUTES
CN111444203B (en) Synchronous processing method, device, equipment and medium
CN106383896A (en) Crawler + RocktMQ-based data capturing and distributing method
CN111125131A (en) Two-stage consensus block chain system with state buffering capacity and deployment method
CN104077374B (en) A kind of method and device for realizing the storage of IP disk files
CN115052008B (en) Block chain data under-chain storage method based on cloud storage
CN116910820A (en) Data report processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228

RJ01 Rejection of invention patent application after publication