CN109948003B - Block chain system of isomorphic dual-mode main and auxiliary chains and block production method thereof - Google Patents

Block chain system of isomorphic dual-mode main and auxiliary chains and block production method thereof Download PDF

Info

Publication number
CN109948003B
CN109948003B CN201910213509.7A CN201910213509A CN109948003B CN 109948003 B CN109948003 B CN 109948003B CN 201910213509 A CN201910213509 A CN 201910213509A CN 109948003 B CN109948003 B CN 109948003B
Authority
CN
China
Prior art keywords
block
chain
mode
auxiliary
main
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.)
Active
Application number
CN201910213509.7A
Other languages
Chinese (zh)
Other versions
CN109948003A (en
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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN201910213509.7A priority Critical patent/CN109948003B/en
Publication of CN109948003A publication Critical patent/CN109948003A/en
Application granted granted Critical
Publication of CN109948003B publication Critical patent/CN109948003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a block chain system of a homogeneous dual-mode master-slave chain and a block production method thereof. Specifically, by designing a main block chain pointer and an auxiliary block chain pointer, waste computing power is recycled by using a main ore excavation mode and an auxiliary ore excavation mode with a multiple difficulty relation, and the block chains are fitted into a logical main chain and a logical auxiliary chain. The main mode block on the main chain is responsible for providing stable database service for the outside, and the auxiliary mode block on the auxiliary chain is responsible for providing auxiliary information mount updated in time for the inside. According to the invention, a set of logical double-chain structure is formed by optimizing the structure of the blockchain system, and the balance between stable service of the blockchain and rapid blockproduction capability is realized by the main chain external service and the auxiliary chain internal management.

Description

Block chain system of isomorphic dual-mode main and auxiliary chains and block production method thereof
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain system of a isomorphic dual-mode main and auxiliary chain and a block production method thereof.
Background
The application of internet technology is gradually permeating into various fields of human activities. The clever author in the signature published a paper on 2008, month 11 and 1, describing in detail how to create a set of electronic transaction systems that do not require to be centralized based on mutual trust between the two parties, and named the set of systems as bitcoins. With the birth of the bitcoin, the core block chain technology of the bitcoin once becomes the key point of scientific research and the application hot spot of each industry.
The application field of the blockchain technology relates to a wide range of industries with extremely high safety requirements, and in an application environment, the safety of the blockchain is improved to a necessary height. Although the existing block chain technology is continuously researched and applied, certain limitations still exist, and many challenges are faced.
The inventor of the present application finds that the method of the prior art has at least the following technical problems in the process of implementing the present invention:
the conventional block chain system generally adopts a method of solving the problems of instability of the actual network environment and the influence of network delay by increasing the mining difficulty and controlling the generation speed of a new block. However, slower chunk generation speed means a delay in data updates for the blockchain system compared to conventional database systems. For some data that is sensitive to timeliness and at the same time requires the guarantee of non-falsification of the blockchain system, the expectation of uncertain and long block production time will cause great inconvenience to the user of the blockchain system.
Therefore, the prior art has the contradiction between stability and timeliness, namely, the stability and the timeliness cannot be considered at the same time.
Disclosure of Invention
In view of the above, the present invention provides a block chain system of homogeneous dual-mode master and slave chains and a block production method thereof, so as to solve or at least partially solve the technical problem in the prior art that stability and timeliness cannot be considered at the same time.
The invention provides a blockchain system of homogeneous dual-mode master-slave chains, which comprises a data layer and a consensus layer,
the data layer is provided with a double-block pointer, and two storage areas are adopted to respectively store the hash value of the last main mode block and the hash value of the latest auxiliary mode block behind the last main mode block;
the consensus layer forms a homogeneous dual-mode main-auxiliary chain structure through the double-block pointer, comprises a logic main chain and a logic auxiliary chain, adopts a preset single-chain structure workload proving difficulty updating mechanism under the main mode, adopts a workload proving difficulty updating mechanism with a multiple relation with the main mode under the auxiliary mode,
the relationship between the mathematical expectation of the workload proving difficulty updating time in the main mode and the expectation T of the workload proving difficulty updating period D and the main mode block generation time in the main mode is as follows:
the master mode workload proving difficulty updating time is DxT
The calculation formula of the new difficulty under the main mode is as follows:
new difficulty x old difficulty (actual total time/(D × T) to generate the first D blocks)
The old difficulty is used for representing the difficulty of the last time slice, and the new difficulty is used for representing the difficulty of the next time slice;
the secondary mode workload proving difficulty is calculated as follows:
auxiliary mode workload proving difficulty (main mode workload proving difficulty/K)
Wherein K is a preset value;
the main mode block on the main chain is responsible for providing database service externally, and the auxiliary mode block on the auxiliary chain is responsible for providing auxiliary information mount updated timely internally.
In one embodiment, the consensus layer employs a bifurcation processing mechanism in which a long-chain principle coexists with a unique principle.
In one embodiment, the bifurcation processing mechanism using the long-chain principle and the unique principle includes:
the main chain mode adopts the longest chain principle to process the bifurcation so as to generate a determined main chain block, and the auxiliary chain between each main chain block and the last main chain block is uniquely determined by an auxiliary Hash pointer after each main chain block is determined.
Based on the same inventive concept, the second aspect of the present invention provides a block production method based on the block chain system of the first aspect, including:
step S1: accessing a block chain network, and transmitting all the existing block information of the block chain network to a host;
step S2: collecting client billing requests and storing the client billing requests into a block to be generated;
step S3: determining auxiliary information according to the requirement, wherein the auxiliary information comprises transfer postscript, instruction information, auxiliary safety authentication information and management information, and storing the auxiliary information into a block to be generated;
step S4: updating newly generated block information in a block chain network in real time, pointing a main hash pointer of a block to be generated to a newly generated main mode block in the whole network according to the latest legal block information, pointing an auxiliary hash pointer of the block to be generated to a newly generated auxiliary mode block in the whole network, calculating a hash value of the whole block to be generated which is determined newly and comparing the hash value with a target difficulty, and carrying out workload certification;
step S5: and updating the target difficulty value in real time according to the latest block information and the difficulty updating rule, comparing the target difficulty value with the result of each Hash attempt, determining whether a new legal block is generated, if the main mode difficulty mechanism is met, publishing the new legal block to the whole network, and if the main mode difficulty mechanism is met, publishing the new legal block to the whole network as a new auxiliary mode block.
In one embodiment, the transaction data verification means is a means for approving only the transaction data recorded in the main mode block, and the management information verification means is a means for approving the auxiliary information in the main and auxiliary mode blocks at the same time.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the invention provides a block chain system of a isomorphic dual-mode master-slave chain, which adopts a novel block chain technical framework which gives consideration to the stability of distributed database service and the timeliness of updating internal management information. By designing a main block chain pointer and an auxiliary block chain pointer, waste computing power is recycled by using a main ore excavation mode and an auxiliary ore excavation mode with a multiple difficulty relation, and the block chains are fitted into a logical main chain and a logical auxiliary chain. The main mode block on the main chain is responsible for providing stable database service for the outside, and the auxiliary mode block on the auxiliary chain is responsible for providing auxiliary information mount updated in time for the inside.
According to the invention, a set of logical double-chain structure is formed by optimizing the structure of the blockchain system, the stable service of the blockchain and the capability of quickly producing the blockchain are both realized by the external service of the main chain and the internal management of the auxiliary chain, and the technical problem that the stability and timeliness cannot be both considered in the prior art is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram illustrating a structure of a homogeneous dual-mode primary and secondary chain according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a structure of a double hash pointer in a specific example;
FIG. 3 is a diagram illustrating a difficulty update mechanism according to an embodiment of the present invention;
FIG. 4 is an architecture diagram of a homogeneous dual-mode master-slave chain blockchain system in a specific example;
FIG. 5 is a diagram illustrating a mechanism for sub-mode forking according to an embodiment of the present invention;
FIG. 6 is a flow chart of a block production method according to an embodiment of the present invention.
Detailed Description
The invention aims to provide a block chain system of a isomorphic dual-mode main and auxiliary chain and a block production method thereof, which are used for solving the technical problem that the stability and timeliness cannot be considered simultaneously in the prior art.
The main concept of the invention is as follows:
the novel block chain technical architecture which gives consideration to the stability of the distributed database service and the timeliness of updating the internal management information is provided. By designing a main block chain pointer and an auxiliary block chain pointer, waste computing power is recycled by using a main ore excavation mode and an auxiliary ore excavation mode with a multiple difficulty relation, and the block chains are fitted into a logical main chain and a logical auxiliary chain. The main mode block on the main chain is responsible for providing stable database service for the outside, and the auxiliary mode block on the auxiliary chain is responsible for providing auxiliary information mount updated in time for the inside. The implementation scheme of the invention specifically comprises a difficulty updating mechanism of multiple relation, a main and auxiliary chain framework of isomorphic double modes and a bifurcation processing mechanism with a long chain principle and a unique principle coexisting. According to the invention, a set of logical double-chain structure is formed by optimizing the structure of the blockchain system, and the balance between blockchain stable service and fast blockchain production capacity is realized by the main chain external service and the auxiliary chain internal management.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment provides a blockchain system of a homogeneous dual-mode master-slave chain, which comprises a data layer and a consensus layer,
the data layer is provided with a double-block pointer, and two storage areas are adopted to respectively store the hash value of the last main mode block and the hash value of the latest auxiliary mode block behind the last main mode block;
the consensus layer forms a homogeneous dual-mode main-auxiliary chain structure through the double-block pointer, comprises a logic main chain and a logic auxiliary chain, adopts a preset single-chain structure workload proving difficulty updating mechanism under the main mode, adopts a workload proving difficulty updating mechanism with a multiple relation with the main mode under the auxiliary mode,
the relationship between the mathematical expectation of the workload proving difficulty updating time in the main mode and the expectation T of the workload proving difficulty updating period D and the main mode block generation time in the main mode is as follows:
the master mode workload proving difficulty updating time is DxT
The calculation formula of the new difficulty under the main mode is as follows:
new difficulty x old difficulty (actual total time/(D × T) to generate the first D blocks)
The old difficulty is used for representing the difficulty of the last time slice, and the new difficulty is used for representing the difficulty of the next time slice;
the secondary mode workload proving difficulty is calculated as follows:
auxiliary mode workload proving difficulty (main mode workload proving difficulty/K)
Wherein K is a preset value;
the main mode block on the main chain is responsible for providing database service externally, and the auxiliary mode block on the auxiliary chain is responsible for providing auxiliary information mount updated timely internally.
In particular, the innovation of the present invention at the data level is a dual block pointer design. The double-hash pointer structure of the block is realized by designing the block storage structure, and a foundation is laid for the logic realization of the isomorphic dual-mode main and auxiliary chain structure. In the data structure of the block, a new storage area for recording the hash value of the block before is added besides the original storage area (pointer to the previous block) for recording the hash value of the block before. The two storage areas are used for respectively storing the hash value of the last main mode block and the hash value of the latest auxiliary mode block after the last main mode block. Fig. 2 is a schematic diagram of a double hash pointer structure.
In fig. 2, the present invention is based on the block structure in the existing widely used single-chain blockchain system (taking bitcoin blockchain as an example), and the design of the double hash pointer in the present invention is illustrated. In the current mainstream single-chain blockchain system, the block structure is mainly divided into a block header and a transaction list. The block header contains a data structure which stores the hash value of the previous block and is used as a hash pointer and other related block chain structure characteristics, and the transaction list stores important transaction data recorded in the block chain. The transaction list is connected to the block header by means of a merkel hash Tree (Merkle Tree). The Merkle Tree (Merkle Tree) is generated for solving the authentication problem in multiple primary signatures, and the Merkle Tree (Merkle Tree) structure has the advantages of mass authentication of one signature and has obvious advantages in the aspect of authentication. The invention optimizes the hash pointer structure in the block header to a double pointer structure.
The consensus layer is introduced below, which adopts the difficulty updating mechanism of multiple relation,
specifically, the invention adopts a workload proving difficulty updating mechanism consistent with a common blockchain system of a single-chain architecture in a main mode environment, and provides a secondary mode workload proving difficulty updating mechanism which has a constant relation with the main mode workload proving difficulty updating mechanism and has a direct mathematical multiple relation with the secondary mode workload proving difficulty updating mechanism. The user determines the expected T of the generation time of the main mode blocks according to the application environment of the user's system, and all the nodes renew the excavation difficulty target of the bitcoin every D blocks.
In a specific implementation process, the mining difficulty in each block chain system is updated at any time, the old difficulty refers to the difficulty of carrying out workload certification (mining) on each node in a previous time slice (for example, the mining difficulty in the bit coin block chain system is updated once every 2016 blocks, so that the previous time slice refers to the time slice generated by the 2016 blocks before the difficulty is updated by taking the bit coin as an example), the new difficulty refers to the difficulty updated by the next time slice, and the variable D can be updated by an operator of the system according to the difficulty actually determined by the operator.
Assuming that the hash calculation result is uniformly distributed every time, when the workload certification of inverse hash solution is performed on the blocks of the same data structure, the workload certification difficulty is in direct proportion to the mathematical expectation of the generation time of the next block.
Based on this, the invention sets the requirement of generating the difficulty value of the side chain block to be K times of the difficulty value obtained based on the updating mechanism of the main chain difficulty value, so as to ensure that the number of the side chain generating blocks is stabilized at K times of the mathematical expectation of the number of the main chain blocks. The present embodiment adopts the following mechanism for proving difficulty of the secondary mode workload:
the auxiliary mode workload proving difficulty is in a multiple relation of K times constant with the main mode workload proving difficulty at the current moment.
Namely, it is
Auxiliary mode difficulty (main mode difficulty/K)
The embodiment on the block header data is:
target value of secondary mode is equal to target value of primary mode multiplied by K
Fig. 3 shows the difficulty updating mechanism principle.
In fig. 3, the present invention is based on the difficulty updating mechanism in the existing widely used single-chain blockchain system (taking bitcoin blockchain as an example), and illustrates the difficulty updating mechanism of the main and auxiliary mode blocks in the double-chain structure of the present invention. In the block chain system with the existing mainstream single chain structure, the target difficulty of workload certification of each node in the system is updated every time D blocks are generated, and the basic principle of updating is to continuously adapt to the change of the calculation power of nodes in the whole network and continuously enable the time for generating the blocks to approach the expectation of T minutes. According to the constant multiple K of the difficulty of the main and auxiliary mode blocks in the difficulty updating mechanism, K auxiliary mode blocks are expected to be generated within T minutes.
Besides the difficulty updating mechanism adopting the multiple relation, the consensus layer also forms a homogeneous dual-mode main-auxiliary chain structure.
Specifically, the block architecture of the homogeneous dual mode is composed of main and auxiliary mode blocks which are respectively connected in series by a dual-pointer structure and are uniquely identified by workload proving difficulty under a main and auxiliary mode. According to the arrangement of the data layer, the invention can serially connect a logical main chain and a logical auxiliary chain on the block under the new structure on the basis of the existing data structure and the consensus protocol to form a block chain system with a homogeneous dual-mode main and auxiliary chain structure. The logical main-sub link structure is shown in fig. 1, and fig. 4 is an architecture diagram of a homogeneous dual-mode main-sub link blockchain system in a specific example.
In fig. 4, the invention is shown in a perspective view on the basis of fig. 2, in which the invention is applied in a specific example. On the left side of the figure is a schematic of a homogeneous multimodal primary and secondary chain architecture block chain growing from bottom to top. In the example, the block structure is the same as in fig. 2, i.e. composed of block headers and transaction lists connected by merkel hash trees (Merkle trees). In the block chain system with the existing single chain structure, the first transaction in the transaction list does not record the actual transaction, but records the attribute and the auxiliary information of the block chain system such as the version number and the like as the Coin Base transaction (Coin Base), and the Coin Base data in the Coin Base transaction has larger redundancy on the storage structure. Thus, the present invention, in this example, places information about the secondary mode blocks and storage data in the Coin-based data field in a Coin-based transaction (Coin Base). The design realizes the utilization of redundancy in the existing main stream block chain structure, and can protect the core structure of the existing stable block chain system to the maximum extent to prevent the generation of derived unstable factors.
In one embodiment, the consensus layer employs a bifurcation processing mechanism in which a long-chain principle coexists with a unique principle.
The bifurcation processing mechanism adopting the coexistence of the long-chain principle and the unique principle specifically comprises the following steps:
the main chain mode adopts the longest chain principle to process the bifurcation so as to generate a determined main chain block, and the auxiliary chain between each main chain block and the last main chain block is uniquely determined by an auxiliary Hash pointer after each main chain block is determined.
Specifically, in a real network environment, in order to ensure decentralized deployment of the blockchain system itself, the basic principle of the main mode for processing potential side chain bifurcation still follows the longest chain principle in the present invention. However, the secondary mode is not interfered with the stable operation of the main mode due to the uncertainty of the secondary mode, so the invention processes the bifurcation of the secondary mode in a unique principle. That is, only one sub-mode block chain connected by sub-pointers is arranged between two legal main mode blocks. Fig. 5 shows a sub-mode forking mechanism.
Fig. 5 illustrates a bifurcation processing mechanism of the sub-mode block in the double-chain structure according to the present invention. Unlike the "longest chain principle" of the bifurcation treatment in the conventional block chain system with a mainstream single-chain structure, the treatment of the side mode bifurcation in the present invention depends on the determination of the next legal main mode block. No matter how many branches of the sub-mode blockchain occur before the next legal main mode block is generated, after the main mode block is generated, a unique sub-mode blockchain can be determined between two adjacent front and back main mode blocks along the direction of the sub-hash pointer, and blocks which are not on the sub-mode blockchain are illegal sub-mode blocks (i.e. blocks filled with dark colors in fig. 5) and should be discarded.
The modification of the block chain system by the technical scheme of the invention comprises the following structural innovations:
1.1 data layer: adding a double-hash pointer structure design;
2.1 consensus layer: difficulty updating mechanism of multiple relation;
2.2 consensus layer: a homogeneous dual-mode main and auxiliary chain structure;
2.3 consensus layer: a bifurcation processing mechanism with a long-chain principle and a unique principle.
Compared with the prior art, the invention has the advantages and positive effects mainly embodied in the following aspects:
1. a data-layered logic storage structure is provided for the block chain system, and the data-layered requirements of block chain technical users are met.
2. The service stability under the real network environment is met, and meanwhile the timeliness of management and auxiliary information updating is provided.
3. The recycling of the mining intermediate results is realized, and the blocks which are abandoned in the single-chain structure and meet certain difficulty requirements but do not meet high difficulty requirements are recycled under the constant multiple main and auxiliary mode difficulty relationship, so that the stability is considered, and simultaneously, an information mounting scheme which is updated in time is provided without extra consumption of computing power.
4. The architecture of the invention can provide a safety defense scheme of the blockchain system and improve the safety of the blockchain system.
Based on the same inventive concept, the application also provides a block production method realized based on the block chain system of the isomorphic dual-mode master-slave chain in the first embodiment, which is detailed in the second embodiment.
Example two
The present embodiment provides a block production method of a block chain system based on a homogeneous dual-mode master-slave chain described in the first embodiment, please refer to fig. 6, and the method includes:
step S1: accessing a block chain network, and transmitting all the existing block information of the block chain network to a host;
step S2: collecting client billing requests and storing the client billing requests into a block to be generated;
step S3: determining auxiliary information according to the requirement, wherein the auxiliary information comprises transfer postscript, instruction information, auxiliary safety authentication information and management information, and storing the auxiliary information into a block to be generated;
step S4: updating newly generated block information in a block chain network in real time, pointing a main hash pointer of a block to be generated to a newly generated main mode block in the whole network according to the latest legal block information, pointing an auxiliary hash pointer of the block to be generated to a newly generated auxiliary mode block in the whole network, calculating a hash value of the whole block to be generated which is determined newly and comparing the hash value with a target difficulty, and carrying out workload certification;
step S5: and updating the target difficulty value in real time according to the latest block information and the difficulty updating rule, comparing the target difficulty value with the result of each Hash attempt, determining whether a new legal block is generated, if the main mode difficulty mechanism is met, publishing the new legal block to the whole network, and if the main mode difficulty mechanism is met, publishing the new legal block to the whole network as a new auxiliary mode block.
In a specific implementation process, step S2 is executed in a loop, and the client billing request is collected, and the to-be-generated block is stored and updated. In step S3, the auxiliary information may select, according to the user' S own needs, information that is not high in requirement for stability but high in requirement for timeliness and that is not tamper-resistant for the dependent blockchain system, including but not limited to, transfer postscript, instruction information, auxiliary security authentication information, and management information. And step S3 is also executed to store the auxiliary information into the to-be-generated block.
In step S4, the master hash pointer of the block to be generated is pointed to the newly generated master mode block in the entire network by recording the hash value of the latest master mode block on the master hash pointer, and the slave hash pointer of the block to be generated is pointed to the newly generated slave mode block in the entire network by recording the hash value of the latest slave mode block on the slave hash pointer. It should be noted that there are many nodes in the blockchain system, so the whole network blocks are updated every minute and every second, and the whole network blocks in step S1 refer to the existing whole network blocks at the time of node joining, and at this time, new blocks are generated, and the joined nodes need to be updated in real time, and the more frequent the system itself is, the better the update frequency is, but considering that the network resources are limited, the update frequency may be determined by the nodes themselves. Step S4 and step S5 are also performed repeatedly, so that new tiles are continuously produced.
In one embodiment, the transaction data verification means is a means for approving only the transaction data recorded in the main mode block, and the management information verification means is a means for approving the auxiliary information in the main and auxiliary mode blocks at the same time.
Since the block production method described in the second embodiment of the present invention is a method implemented by the block chain system based on the homogeneous dual-mode master-slave chain in the first embodiment of the present invention, a person skilled in the art can understand a specific implementation process of the block chain system based on the homogeneous dual-mode master-slave chain described in the first embodiment of the present invention, and thus, details are not described herein again. All the methods implemented by the block chain system of the homogeneous dual-mode master-slave chain in the first embodiment of the present invention belong to the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (5)

1. A block chain system of isomorphic dual-mode master and slave chains is characterized by comprising a data layer and a consensus layer,
the data layer is provided with a double-block pointer, and two storage areas are adopted to respectively store the hash value of the last main mode block and the hash value of the latest auxiliary mode block behind the last main mode block;
the consensus layer forms a homogeneous dual-mode main-auxiliary chain structure through the double-block pointer, comprises a logic main chain and a logic auxiliary chain, adopts a preset single-chain structure workload proving difficulty updating mechanism under the main mode, adopts a workload proving difficulty updating mechanism with a multiple relation with the main mode under the auxiliary mode,
the relationship between the mathematical expectation of the workload proving difficulty updating time in the main mode and the expectation T of the workload proving difficulty updating period D and the main mode block generation time in the main mode is as follows:
the master mode workload proving difficulty updating time is DxT
The calculation formula of the new difficulty under the main mode is as follows:
new difficulty x old difficulty (actual total time/(D × T) to generate the first D blocks)
The old difficulty is used for representing the difficulty of the last time slice, and the new difficulty is used for representing the difficulty of the next time slice;
the secondary mode workload proving difficulty is calculated as follows:
auxiliary mode workload proving difficulty (main mode workload proving difficulty/K)
Wherein K is a preset value;
the main mode block on the main chain is responsible for providing database service externally, and the auxiliary mode block on the auxiliary chain is responsible for providing auxiliary information mount updated timely internally.
2. The system of claim 1, wherein the consensus layer employs a bifurcation processing mechanism with long chain principles coexisting with unique principles.
3. The system of claim 2, wherein the bifurcation processing mechanism using the long-chain principle and the unique principle includes:
the main chain mode adopts the longest chain principle to process the bifurcation so as to generate a determined main chain block, and the auxiliary chain between each main chain block and the last main chain block is uniquely determined by an auxiliary Hash pointer after each main chain block is determined.
4. A block production method based on the block chain system of any one of claims 1 to 3, comprising:
step S1: accessing a block chain network, and downloading all the existing block information of the block chain network to a host;
step S2: collecting client billing requests and storing the client billing requests into a block to be generated;
step S3: determining auxiliary information according to the requirement, wherein the auxiliary information comprises transfer postscript, instruction information, auxiliary safety authentication information and management information, and storing the auxiliary information into a block to be generated;
step S4: updating newly generated block information in a block chain network in real time, pointing a main hash pointer of a block to be generated to a newly generated main mode block in the whole network according to the latest legal block information, pointing an auxiliary hash pointer of the block to be generated to a newly generated auxiliary mode block in the whole network, calculating a hash value of the whole block to be generated which is determined newly and comparing the hash value with a target difficulty, and carrying out workload certification;
step S5: and updating the target difficulty value in real time according to the latest block information and the difficulty updating rule, comparing the target difficulty value with the result of each Hash attempt, determining whether a new legal block is generated, if the main mode difficulty mechanism is met, publishing the new legal block to the whole network, and if the main mode difficulty mechanism is met, publishing the new legal block to the whole network as a new auxiliary mode block.
5. The method of claim 4, wherein the transaction data verification means recognizes only the transaction data recorded in the main mode block, and the management information verification means recognizes the auxiliary information in the main and sub mode blocks.
CN201910213509.7A 2019-03-20 2019-03-20 Block chain system of isomorphic dual-mode main and auxiliary chains and block production method thereof Active CN109948003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910213509.7A CN109948003B (en) 2019-03-20 2019-03-20 Block chain system of isomorphic dual-mode main and auxiliary chains and block production method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910213509.7A CN109948003B (en) 2019-03-20 2019-03-20 Block chain system of isomorphic dual-mode main and auxiliary chains and block production method thereof

Publications (2)

Publication Number Publication Date
CN109948003A CN109948003A (en) 2019-06-28
CN109948003B true CN109948003B (en) 2021-01-15

Family

ID=67010357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910213509.7A Active CN109948003B (en) 2019-03-20 2019-03-20 Block chain system of isomorphic dual-mode main and auxiliary chains and block production method thereof

Country Status (1)

Country Link
CN (1) CN109948003B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335051B (en) * 2019-07-03 2023-12-19 烟台市同翔网络科技有限责任公司 Food tag unique code release and circulation tracing method based on block chain main and auxiliary chain technology
CN111125131B (en) * 2019-12-16 2023-06-06 武汉大学 Two-stage consensus blockchain system with state buffering capability and deployment method
CN111400779A (en) * 2020-01-07 2020-07-10 李蕴光 High-dimensional data encryption method and system
CN111371543B (en) * 2020-01-08 2023-03-24 中国科学院重庆绿色智能技术研究院 Internet of things equipment access control method based on double-block chain structure
CN112783983A (en) * 2021-02-07 2021-05-11 中国人民解放军国防科技大学 Self-adaptive consensus method based on major-minor block diagram chain structure block chain account book design
CN117874060B (en) * 2024-03-12 2024-05-31 北京市农林科学院信息技术研究中心 Supply chain product traceability data multi-condition query method and device based on block chain

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100414516C (en) * 2004-12-02 2008-08-27 明基电通股份有限公司 Two-way data storaging method
CN105488675B (en) * 2015-11-25 2019-12-24 布比(北京)网络技术有限公司 Block chain distributed shared general ledger construction method
CN106506638B (en) * 2016-11-04 2020-01-07 江苏通付盾科技有限公司 Block storage method and device in block chain
US20180189753A1 (en) * 2017-01-05 2018-07-05 Beskatta, LLC Infrastructure for obligation management and validation
CN107122682B (en) * 2017-04-20 2019-02-05 杭州铜板街互联网金融信息服务有限公司 Data processing method and system based on the storage of block chain

Also Published As

Publication number Publication date
CN109948003A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN109948003B (en) Block chain system of isomorphic dual-mode main and auxiliary chains and block production method thereof
US20240348442A1 (en) Maintaining blocks of a blockchain in a partitioned blockchain network
US10938567B2 (en) Parallel-chain architecture for blockchain systems
EP4254183A1 (en) Transaction processing method and apparatus, computer device, and storage medium
CN115210741B (en) Partially ordered blockchain
Armbrust et al. Scads: Scale-independent storage for social computing applications
EP3607471B1 (en) Management of co-ownership database system
JP2020504927A (en) Method and apparatus for a distributed database enabling deletion of events
Wang et al. Performance benchmarking and optimization for blockchain systems: A survey
US20200082398A1 (en) Proof-of-Devotion Blockchain Consensus Algorithm
US20200084041A1 (en) Automated Blockchain Protocol Update
Hao et al. Outsourced data integrity verification based on blockchain in untrusted environment
CN112835977B (en) Database management method and system based on block chain
CN111597015A (en) Transaction processing method and device, computer equipment and storage medium
CN114493865A (en) Decentralized internet cooperative system and data interaction method based on block chain
WO2023231339A1 (en) Transaction execution method and node in blockchain system, and blockchain system
Zhao et al. Blockchain and distributed system
WO2021190179A1 (en) Synchronous processing method and related apparatus
CN113994324B (en) Block chain system with efficient world state data structure
WO2022087834A1 (en) Blockchain system having efficient world state data structures
WO2022061878A1 (en) Blockchain transaction processing systems and methods
Hao et al. Decentralized data integrity verification model in untrusted environment
Lin et al. RollStore: Hybrid Onchain-Offchain Data Indexing for Blockchain Applications
Gai et al. Smart data deduplication for telehealth systems in heterogeneous cloud computing
WO2023004807A1 (en) Knowledge management system, method and apparatus, electronic device, 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
GR01 Patent grant
GR01 Patent grant