CN114925403B - Block chain mixed consensus data processing method and system - Google Patents

Block chain mixed consensus data processing method and system Download PDF

Info

Publication number
CN114925403B
CN114925403B CN202210551877.4A CN202210551877A CN114925403B CN 114925403 B CN114925403 B CN 114925403B CN 202210551877 A CN202210551877 A CN 202210551877A CN 114925403 B CN114925403 B CN 114925403B
Authority
CN
China
Prior art keywords
node
block
accounting
pledge
user
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
CN202210551877.4A
Other languages
Chinese (zh)
Other versions
CN114925403A (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.)
Analysys Technology Co ltd
Original Assignee
Analysys Technology Co ltd
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 Analysys Technology Co ltd filed Critical Analysys Technology Co ltd
Priority to CN202210551877.4A priority Critical patent/CN114925403B/en
Publication of CN114925403A publication Critical patent/CN114925403A/en
Application granted granted Critical
Publication of CN114925403B publication Critical patent/CN114925403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a block chain mixed consensus data processing method and system, electronic equipment and a storage medium, wherein a DPOS election mechanism is firstly adopted by creating nodes, a node pledge is created to improve the penalty cost of the nodes for disgust, the node pledge is activated to enable more users to conveniently participate, the pledge can reduce the mobility at the same time, the stable increment of the currency price is kept, and the users participate in the node network construction more fairly; the POW workload competition mechanism after the node activation enables the block chain network node to have the high decentralization characteristic; the same node cannot continuously enter the accounting group, so that 51% of computational attack is effectively avoided, and network block-out accounting is safer; and a POW competition accounting group mode is adopted, so that the network efficiency is greatly improved. According to the method and the device, through effective combination of the POW and DPOS consensus mechanisms, on the premise that high decentration, safety and fairness are guaranteed, the block chain efficiency (TPS) is improved in order of magnitude, and the problem that the block chain cannot be triangulated is solved.

Description

Block chain mixed consensus data processing method and system
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain hybrid consensus data processing method and system, electronic equipment and a storage medium.
Background
Block chains have evolved from 2009 to date, and a variety of public chain consensus mechanisms have evolved, including mainly: a workload attestation mechanism (PoW), a rights attestation mechanism (PoS), a shares authorization attestation mechanism (DPoS), etc.
PoW mechanism (Proof of Work)
The workload proving mechanism is that for the proving of the workload, the working principle is purely dependent on computing power, and who computes more and more are possible to generate the blocks.
The advantages are that: the algorithm is simple, and the method has the advantage of complete decentralization. Meanwhile, the security is very high, the system is damaged at very high cost, and the potential system hazard is still not generated after the bitcoin runs safely for ten years.
The disadvantages are as follows: because ore machine equipment needs to consume a large amount of electric power and water power, the waste of resources is serious, and the treatment efficiency is low.
PoS mechanism (Proof of title)
The proof of rights requires a prover to provide ownership of a certain amount of cryptocurrency. The method changes the calculation power in the PoW into rights and interests, and the person who owns more coins has great rights and the larger the rights and interests are, the larger the possibility of becoming the next accounting person is.
The advantages are that: the miners do not need to add the labor force and consume less electricity, and the time for reaching the consensus is shortened.
The disadvantages are as follows: the large household with tokens can enjoy his own results and all participants can hold their coins and take their interest. The number of people selling coins is reduced, and the fluidity is relatively insufficient.
DPoS mechanism (deleted Proof of authorization of shares)
The decentralized creation of block chains based on DPoS mechanisms relies on a certain number of representatives, not on the totality of users. The global node votes a certain number of node representatives, and the representatives proxy the global node to confirm the block and maintain the orderly operation of the system. All nodes in the blockchain have the right to strike and delegate at any time. The roles of bookkeepers in the PoS are specialized, the bookkeepers are selected through rights and interests, and the bookkeepers are booked in turn.
The advantages are that: the method inherits the advantages of PoS, has higher efficiency and higher performance than PoS, and achieves the consensus verification speed of a second level.
The disadvantages are that: for performance, a compromise is made to decentralize. It is not really "decentralized" and has become "partially decentralized".
As with many distributed systems, one "impossible triangle" in blockchain techniques is that decentralization (fairness), efficiency, and security cannot be optimized simultaneously. Some block chain technology systems pay more attention to decentralization fairness and have relatively low transaction efficiency; some block chain technology systems pay more attention to efficiency, and the fairness of decentralization is sacrificed; security cannot be ignored while fairness and efficiency are emphasized. The balance and balance among the three components generate different directions of block chain technical innovation.
Decentralization and fairness are the core values of blockchain techniques. It is the basis for consensus, non-tampering, trust, value transfer. It can be said that decentralization is the first principle of the block chain technology system. The bitcoin blockchain is a first blockchain system, which is very careful in design to centralization and fairness, for example, a POW consensus algorithm is adopted, a plurality of nodes are in consensus, and the fairness of the system is very good. However, in a completely decentralized system, efficiency is still a significant problem. Taking the bitcoin as an example, each block is 2M, the number of transactions per second is only 7, and the transaction efficiency is very low. The transaction efficiency of the ether house is not high, and only dozens of transactions per second are available. To some extent, the security of these systems is also very challenging, and issues surrounding bitcoin, key theft in etherhouses, smart contract vulnerabilities, privacy disclosure, etc. are also prominent.
Efficiency is a key performance requirement for the application of block chain technology in various fields of the economic society. The method for improving the efficiency of the bitcoin adopts solutions such as a side chain, a lightning network and the like. These schemes necessarily require a reduction in fairness, e.g., many small transactions are put on a relatively centralized system to do. The Ethern hopes to realize efficiency improvement through POS algorithm and fragmentation technology, and also needs to fragment nodes and reduce decentralization degree. In a more commercialized EOS system, the transaction efficiency reaches more than 2000 pens per second, DPOS consensus is directly adopted, 21 super nodes are used, and the efficiency is improved by reducing "decentralized". In fact, technical modification and innovation of the blockchain system are required to be able to take fairness and efficiency into consideration, and side chains, cross-chains, POS, DPOS, fragmentation, lightning networks and the like are all the way. Of course, the efficiency is improved, and meanwhile, the safety is also enhanced.
The safety is the guarantee of the block chain technology application. In block chain innovations, security is often neglected. However, the blockchain involves digital currency and digital assets, and security is really more important. After a lesson on for EOS by 360 companies, any vulnerability may cause irreparable damage. Security is a problem that every blockchain system faces, whether it is a decentralized bitcoin or a multicenter EOS and other blockchain systems. The security relates to a plurality of aspects such as network security, data security, computing node security, contract security, wallet security, privacy protection and the like, and a stereoscopic defense means is required to reinforce security measures.
Disclosure of Invention
An embodiment of the present invention provides a method and a system for processing blockchain hybrid consensus data, an electronic device, and a storage medium, so as to solve the problem that the existing blockchain cannot be balanced by a triangle.
To achieve the above object, an embodiment of the present invention provides a method for processing block chain hybrid consensus data, which adopts a hybrid consensus mechanism combining workload certification and share authorization certification, and includes:
creating a block chain node of a pledge user through the encryption currency of the pledge user;
voting the node by acquiring the encrypted currency of the user on the created node pledge, wherein when the created node meets the lowest voting condition, the node is activated;
qualifying the activated node as an accounting group node by a competition through workload proof;
and making the node obtaining the accounting group qualification carry out round patrol block accounting, and carrying out reward punishment on the node obtaining the accounting group qualification according to a block output result.
Further, the creating of the block link point of the user through the encrypted currency of the pledge user comprises:
presetting the encrypted currency number of the pledge required by creating the block link points;
acquiring a request of a user for creating a block chain node, and collecting the encrypted currency of the user pledge;
calculating the encrypted currency number of the pledge, wherein when the encrypted currency number of the pledge reaches a preset number, a block chain node is created, otherwise, the user request is rejected;
and binding the created block chain link point with the address of the user.
Further, the voting of the node by acquiring the encryption currency of the user to the created node pledge comprises:
presetting a voting value required by activating block link points;
acquiring a request of a user for activating a block chain node, and collecting encrypted currency of a user pledge as a vote;
accounting the encrypted currency value of the pledge as a voting value, wherein when the voting value reaches a preset voting value, the block link node is activated, otherwise, the user request is refused;
qualifying competing billing group nodes for the activated block link points.
Further, the qualifying of the activated node as a billing group node by the workload proof competition includes:
when accounting starts in the current round, comparing the activated nodes with continued workload proofs, wherein the activated nodes with higher workload proofs obtain accounting group qualifications, and the nodes without accounting qualifications continue to compete for the accounting group qualifications in the next round through the workload proofs;
enabling the activated nodes obtaining the accounting group qualification to enter the accounting of the current round of block output till the accounting of the current round is finished, wherein the activated nodes forbidden to enter the accounting of the current round of block output obtain the qualification of entering the accounting of the next round of block output;
further, the making of the node obtaining the accounting group qualification performs round patrol block accounting, and performs reward and punishment on the node obtaining the accounting group qualification according to a block outlet result, including:
obtaining a block output result of a node for block accounting, wherein when the block output result of the node for block accounting meets normal requirements, the node is used as a normal block output node, otherwise, the node is used as an abnormal block output node;
providing block-out encryption money as a reward for the normal block-out node, recording yellow cards and red cards as punishments for the abnormal block-out node, wherein the yellow cards are recorded for one abnormal block-out, the red cards are recorded for two abnormal block-out, and the block-out node recorded by the red cards is forbidden to obtain block qualification;
and providing the reward of the current round of workload proving competition for the nodes which participate in the workload proving competition but do not enter the accounting group, wherein the reward of the current round of workload proving competition is cryptocurrency.
A block chain hybrid consensus data processing system adopts a hybrid consensus mechanism combining workload certification and share authorization certification, and comprises the following steps:
the node creating module is used for creating the block chain node of the user through the encrypted currency of the pledge user;
the node activation module is used for voting the node by acquiring the encrypted currency of the user for the created node pledge, wherein when the created node meets the lowest voting condition, the node is activated;
a node competition module for qualifying a contention to an activated node as an accounting group node by a workload proof competition;
and the node reward module is used for making the accounting command to perform round patrol block accounting on the nodes acquiring the accounting group qualification, and performing reward and punishment on the nodes acquiring the accounting group qualification according to a block outlet result.
Further, the node creating module includes:
the pledge setting unit is used for presetting the encrypted currency number of pledges required by creating the block link points;
the pledge receiving unit is used for acquiring a request of a user for establishing a block chain node and receiving encrypted currency pledged by the user;
the pledge accounting unit is used for accounting the encrypted currency number of the pledge, wherein when the encrypted currency number of the pledge reaches a preset number, a block chain node is created, otherwise, the user request is rejected;
and the node binding unit is used for binding the created block chain link point with the address of the user.
Further, the node activating module comprises
The voting setting unit is used for presetting the voting value required by the activation block chain link point;
the voting receiving unit is used for acquiring a request of activating the block chain node by a user and receiving the encrypted currency of the user pledge as a vote;
the voting accounting unit is used for accounting the encrypted currency value of the pledge as a voting value, wherein when the voting value reaches a preset voting value, the block chain node is activated, otherwise, the user request is rejected;
an accounting qualification setting unit for qualifying competing accounting group nodes for the activated block link points.
Further, the node competition module includes:
a workload certification competition unit, configured to continue comparison of workload certification for the activated nodes when the current round of accounting starts, where the activated nodes with higher workload certification obtain accounting group qualification, and nodes that do not obtain accounting qualification continue to compete for the next round of accounting group qualification through workload certification;
the block output accounting unit is used for enabling the activated node obtaining the accounting group qualification to enter the block output accounting in the current round until the accounting in the current round is finished, wherein the activated node forbidding to enter the block output accounting in the current round obtains the qualification of entering the next block output accounting in the current round;
further, the node reward module includes:
the block output result calculation unit is used for obtaining the block output result of the node for block accounting, wherein when the block output result of the node for block accounting meets the normal requirement, the node is used as the normal block output node, otherwise, the node is used as the abnormal block output node;
the block awarding and punishing accounting unit is used for providing block encrypted currency as reward for the normal block issuing node and recording yellow cards and red cards as punishment for the abnormal block issuing node, wherein the yellow cards are recorded in one abnormal block issuing process, the red cards are recorded in two abnormal block issuing processes, and the block issuing node recorded by the red cards is forbidden to obtain block qualification;
and the competition reward accounting unit is used for providing rewards of the work amount proving competition of the current round for the nodes which participate in the work amount proving competition but do not enter the accounting group, wherein the rewards of the work amount proving competition of the current round are cryptocurrency.
An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the computer program is executed in the processor to perform any of the methods described above.
A storage medium storing a computer program, wherein the computer program is executable in a processor to perform any of the methods described above.
The embodiment of the invention has the following advantages:
1. creating block link points by pledge increases the cost of node doing malicious work;
2. the pledge voting enables more users to conveniently participate in the management of the block chain network, and meanwhile, the pledge can reduce the liquidity and keep the stable increment of the currency price;
3. the POW workload competition mechanism after the node activation enables the block chain network node to have the high decentralization characteristic;
4. the same node cannot continuously enter the accounting group, so that 51% of computational attack is effectively avoided, and network block-out accounting is safer;
5. and a POW competition accounting group mode is adopted, so that the network efficiency is greatly improved.
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 described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so as to be understood and read by those skilled in the art, and are not used to limit the conditions that the present invention can be implemented, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the effects and the achievable by the present invention, should still fall within the range that the technical contents disclosed in the present invention can cover.
Fig. 1 is a schematic diagram of a processing method of block chain hybrid consensus data according to an embodiment of the present invention.
Fig. 2 is a block chain hybrid consensus data processing system according to an embodiment of the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Example 1
According to the technical scheme, the principle is simple, the node is created like the qualification of a competitive salesman, the promise (the node for establishing the pledge) of the competitive salesman is firstly shown, the support is obtained through voter voting (voting the pledge), the voting support reaches a certain condition to obtain the qualification of the salesman (the node is activated), and the qualification of the competitive conference committee for routine committee (the qualification for block output accounting) is proved through workload (working capacity) after the qualification of the salesman is obtained.
A block chain mixed consensus data processing method is provided, a mixed consensus mechanism combining workload certification and share authorization certification is adopted, and the method comprises the following steps:
s100, establishing a block chain node of a pledge user through encrypted currency of the pledge user;
s200, voting is carried out on the node by acquiring the encrypted currency of the user for the created node pledge, wherein when the created node meets the lowest voting condition, the node is activated;
s300, proving the qualification of the activated nodes as accounting group nodes through the workload;
s400, the nodes obtaining the accounting group qualification are subjected to polling block accounting in turn, and the nodes obtaining the accounting group qualification are subjected to reward punishment according to a block-out result.
In a further such embodiment, said creating block link points for the pledge user from the pledge user's cryptocurrency comprises:
s110, presetting an encrypted currency number of a pledge required by creating block link points;
s120, acquiring a request of a user for creating a block chain node, and collecting the encrypted currency of the user pledge;
s130, calculating the encrypted currency number of the pledge, wherein when the encrypted currency number of the pledge reaches a preset number, a block chain node is created, otherwise, the user request is rejected;
and S140, binding the created block chain link point with the address of the user.
In a further embodiment, the voting the node by obtaining the cryptocurrency of the user to the created node pledge comprises:
s210, presetting a voting numerical value required by activating the block link points;
s220, acquiring a request of a user for activating a block chain node, and collecting the encrypted currency of the user pledge as a vote;
s230, calculating the encrypted currency value of the pledge as a voting value, wherein when the voting value reaches a preset voting value, the block chain node is activated, otherwise, the user request is rejected;
s240, providing the activated block link points with the qualification of competing accounting group nodes.
In a further such embodiment, said qualifying a contention as an accounting group node by workload proving comprises:
s310, when the current accounting is started, comparing the activated nodes with continuous workload proofs, wherein the activated nodes with higher workload proofs obtain accounting group qualification, and the nodes without accounting qualification continue to compete for the accounting group qualification in the next round through the workload proofs;
s320, the activated node obtaining the accounting group qualification enters the block-out accounting of the current round until the accounting of the current round is finished, wherein the activated node forbidding entering the block-out accounting of the current round obtains the qualification of entering the next block-out accounting of the current round;
in a further embodiment, the making the node obtaining the accounting group qualification go through round block-patrol accounting, and reward punishment on the node obtaining the accounting group qualification according to a block-out result includes:
s410, obtaining a block output result of the node for block output accounting, wherein when the block output result of the node for block output accounting meets normal requirements, the node is used as a normal block output node, otherwise, the node is used as an abnormal block output node;
s420, providing block-out encryption currency as reward for the normal block-out nodes, recording yellow cards and red cards as punishment for the abnormal block-out nodes, wherein the yellow cards are recorded for one abnormal block-out, the red cards are recorded for two abnormal block-out, and the block-out nodes recorded by the red cards are forbidden to obtain block-out qualification;
and S430, providing rewards of the workload proving competition of the current round for the nodes which participate in the workload proving competition but do not enter the accounting group, wherein the rewards of the workload proving competition of the current round are cryptocurrency.
According to the scheme, a DPOS election mechanism is firstly adopted for creating nodes, a node pledge is created to improve the penalty cost of the nodes for disgust, the nodes are voted and activated to enable more users to participate conveniently, liquidity can be reduced during pledge, the stable increment of the currency price is kept, and the users participate in node network construction more fairly. The POW workload competition mechanism after the node activation enables the block chain network node to have the high decentralization characteristic; the same node cannot continuously enter the accounting group, 51% of effort attack is effectively avoided, and network block-out accounting is safer. And a POW competition accounting group mode is adopted, so that the network efficiency is greatly improved.
The innovation point of the scheme is mainly to solve the problem that the block chain cannot be triangular. By effectively combining the common recognition mechanisms of the POW and the DPOS, the block chain efficiency (TPS) is improved by orders of magnitude on the premise of ensuring high decentralization, safety and fairness. The security and the fairness of the high decentralization of the POW are ensured, and the high efficiency of the DPOS is also ensured. The block chain using the technical scheme of the hybrid consensus mechanism has better commercial application prospect.
Example 2
The block chain mixed consensus data processing system adopts a mixed consensus mechanism combining workload certification and share authorization certification, and comprises the following steps:
the node creating module is used for creating the block chain node of the user through the encrypted currency of the pledge user;
the node activation module is used for voting the node by acquiring the encryption currency of the user on the created node pledge, wherein when the created node meets the lowest voting condition, the node is activated;
a node competition module for qualifying a contention to an activated node as an accounting group node by a workload proof competition;
and the node reward module is used for making the accounting command to perform round patrol block accounting on the nodes acquiring the accounting group qualification, and performing reward and punishment on the nodes acquiring the accounting group qualification according to a block outlet result.
In a further such embodiment, the node creation module comprises:
the pledge setting unit is used for presetting the encrypted currency number of pledges required by the establishment of the block link points;
the pledge collecting unit is used for obtaining a request of a user for creating a block chain node and collecting the encrypted currency of the pledge of the user;
the pledge accounting unit is used for accounting the encrypted currency number of the pledge, wherein when the encrypted currency number of the pledge reaches a preset number, a block chain node is created, otherwise, the user request is rejected;
and the node binding unit is used for binding the created block chain link point with the address of the user.
In a further such embodiment, the node activation module comprises
The voting setting unit is used for presetting the voting value required by the activation block chain link point;
a vote collecting unit, which is used for obtaining the request of the user for activating the block chain node and collecting the encrypted currency of the user pledge as a vote;
the voting accounting unit is used for accounting the encrypted currency value of the pledge as a voting value, wherein when the voting value reaches a preset voting value, the block link node is activated, otherwise, the user request is refused;
an accounting qualification setting unit for qualifying competing accounting group nodes for the activated block link points.
In a further such embodiment, the node contention module includes:
a workload certification competition unit, configured to continue comparison of workload certification for the activated nodes when the current round of accounting starts, where the activated nodes with higher workload certification obtain accounting group qualification, and nodes that do not obtain accounting qualification continue to compete for the next round of accounting group qualification through workload certification;
the block output accounting unit is used for enabling the activated node which obtains the accounting group qualification to enter the block output accounting of the current round until the accounting of the current round is finished, wherein the activated node which is forbidden to enter the block output accounting of the current round obtains the qualification for entering the next block output accounting of the current round;
in a further such embodiment, the node reward module includes:
the block output result calculation unit is used for obtaining the block output result of the node for block accounting, wherein when the block output result of the node for block accounting meets the normal requirement, the node is used as the normal block output node, otherwise, the node is used as the abnormal block output node;
the block awarding and punishing accounting unit is used for providing block encrypted currency as reward for the normal block issuing node and recording yellow cards and red cards as punishment for the abnormal block issuing node, wherein the yellow cards are recorded in one abnormal block issuing process, the red cards are recorded in two abnormal block issuing processes, and the block issuing node recorded by the red cards is forbidden to obtain block qualification;
and the competition reward accounting unit is used for providing rewards of the work amount proving competition of the current round for the nodes which participate in the work amount proving competition but do not enter the accounting group, wherein the rewards of the work amount proving competition of the current round are cryptocurrency.
Example 3
The embodiment of the present invention further includes an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the computer program is used to implement the above block chain hybrid consensus data processing method when executed in the processor, where the method includes:
s100, establishing a block chain node of a pledge user through the encryption currency of the pledge user;
s200, voting is carried out on the node by acquiring the encrypted currency of the user for the created node pledge, wherein when the created node meets the lowest voting condition, the node is activated;
s300, proving the qualification of the activated nodes as accounting group nodes through the workload;
s400, the nodes obtaining the accounting group qualification are subjected to round patrol block accounting, and the nodes obtaining the accounting group qualification are subjected to reward and punishment according to a block outlet result.
Example 4
An embodiment of the present invention further provides a readable storage medium, where a computer program is stored in the readable storage medium, and the computer program is used for implementing the above block chain hybrid consensus data processing method when executed by a processor, where the method includes:
s100, establishing a block chain node of a pledge user through the encryption currency of the pledge user;
s200, voting is carried out on the node by acquiring the encrypted currency of the user for the created node pledge, wherein when the created node meets the lowest voting condition, the node is activated;
s300, proving the qualification of the activated nodes as accounting group nodes through the workload;
s400, the nodes obtaining the accounting group qualification are subjected to polling block accounting in turn, and the nodes obtaining the accounting group qualification are subjected to reward punishment according to a block-out result.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.

Claims (8)

1. A block chain mixed consensus data processing method is characterized in that a mixed consensus mechanism combining workload certification and share authorization certification is adopted, and the method comprises the following steps:
creating a block chain node of a pledge user through the encrypted currency of the pledge user;
voting the node by acquiring the encrypted currency of the user on the created node pledge, wherein when the created node meets the lowest voting condition, the node is activated;
qualifying the activated node as an accounting group node by a competition through workload proof;
the node obtaining the accounting group qualification is subjected to round patrol block accounting, and reward punishment is carried out on the node obtaining the accounting group qualification according to a block output result;
the qualifying of the activated node as a billing group node by a workload proof competition, comprising:
when the current accounting is started, comparing the activated nodes with continued workload proofs, wherein the activated nodes with higher workload proofs acquire accounting group qualification, and the nodes without acquiring accounting qualification continue to compete for the accounting group qualification in the next round through the workload proofs;
enabling the activated nodes obtaining the accounting group qualification to enter the accounting of the current round of block output till the accounting of the current round is finished, wherein the activated nodes forbidden to enter the accounting of the current round of block output are forbidden to obtain the qualification for entering the accounting of the next round of block output;
the order the node that obtains the account keeping group qualification carries out round patrolling out the block account keeping, carries out reward punishment to the node that obtains the account keeping group qualification according to a block result, includes:
obtaining a block output result of a node for block output accounting, wherein when the block output result of the node for block output accounting meets normal requirements, the node is used as a normal block output node, otherwise, the node is used as an abnormal block output node;
providing block-out encryption money as a reward for the normal block-out node, recording yellow cards and red cards as punishments for the abnormal block-out node, wherein the yellow cards are recorded for one abnormal block-out, the red cards are recorded for two abnormal block-out, and the block-out node recorded by the red cards is forbidden to obtain block qualification;
and providing the reward of the current round of workload proving competition for the nodes which participate in the workload proving competition but do not enter the accounting group, wherein the reward of the current round of workload proving competition is cryptocurrency.
2. The method of claim 1, wherein creating the user's block link points from the pledge user's cryptocurrency comprises:
presetting the encrypted currency number of the pledge required by creating the block link points;
acquiring a request of a user for creating a block chain node, and collecting the encrypted currency of the user pledge;
calculating the encrypted currency number of the pledge, wherein when the encrypted currency number of the pledge reaches a preset number, a block chain node is created, otherwise, the user request is rejected;
and binding the created block chain link point with the address of the user.
3. The method of claim 1, wherein voting for the node by obtaining the cryptocurrency of the user to the created node pledge comprises:
presetting a voting value required by activating block link points;
acquiring a request of a user for activating a block link node, and collecting encrypted currency of a user pledge as a vote;
accounting the encrypted currency value of the pledge as a voting value, wherein when the voting value reaches a preset voting value, the block chain node is activated, otherwise, the user request is rejected;
qualifying competing billing group nodes for the activated block link points.
4. A block chain hybrid consensus data processing system, wherein a hybrid consensus mechanism combining workload certification and share authorization certification is adopted, comprising:
the node creating module is used for creating the block chain node of the user through the encrypted currency of the pledge user;
the node activation module is used for voting the node by acquiring the encrypted currency of the user for the created node pledge, wherein when the created node meets the lowest voting condition, the node is activated;
a node competition module for qualifying an activated node as an accounting group node by a workload proof competition;
the node reward module is used for carrying out round patrol block accounting on the nodes acquiring the accounting group qualification through accounting and commanding, and carrying out reward punishment on the nodes acquiring the accounting group qualification according to a block output result;
the qualifying of the activated node as a billing group node by a workload proof competition, comprising:
when accounting starts in the current round, comparing the activated nodes with continued workload proofs, wherein the activated nodes with higher workload proofs obtain accounting group qualifications, and the nodes without accounting qualifications continue to compete for the accounting group qualifications in the next round through the workload proofs;
enabling the activated nodes obtaining the accounting group qualification to enter the accounting of the current round of block output till the accounting of the current round is finished, wherein the activated nodes forbidden to enter the accounting of the current round of block output are forbidden to obtain the qualification for entering the accounting of the next round of block output;
the order the node that obtains the account keeping group qualification carries out round patrolling out the block account keeping, carries out reward punishment to the node that obtains the account keeping group qualification according to a block result, includes:
obtaining a block output result of a node for block output accounting, wherein when the block output result of the node for block output accounting meets normal requirements, the node is used as a normal block output node, otherwise, the node is used as an abnormal block output node;
providing block-out encryption money as a reward for the normal block-out node, recording yellow cards and red cards as punishments for the abnormal block-out node, wherein the yellow cards are recorded for one abnormal block-out, the red cards are recorded for two abnormal block-out, and the block-out node recorded by the red cards is forbidden to obtain block qualification;
and providing rewards of the work amount proving competition of the current round for the nodes which participate in the work amount proving competition but do not enter the accounting group, wherein the rewards of the work amount proving competition of the current round are cryptocurrency.
5. The system of claim 4, wherein the node creation module comprises:
the pledge setting unit is used for presetting the encrypted currency number of pledges required by the establishment of the block link points;
the pledge collecting unit is used for obtaining a request of a user for creating a block chain node and collecting the encrypted currency of the pledge of the user;
the pledge accounting unit is used for accounting the encrypted currency number of the pledge, wherein when the encrypted currency number of the pledge reaches a preset number, a block chain node is created, otherwise, the user request is rejected;
and the node binding unit is used for binding the created block chain link point with the address of the user.
6. The system of claim 4, wherein the node activation module comprises
The voting setting unit is used for presetting the voting value required by the activation block chain link point;
the voting receiving unit is used for acquiring a request of activating the block chain node by a user and receiving the encrypted currency of the user pledge as a vote;
the voting accounting unit is used for accounting the encrypted currency value of the pledge as a voting value, wherein when the voting value reaches a preset voting value, the block chain node is activated, otherwise, the user request is rejected;
an accounting qualification setting unit for qualifying competing accounting group nodes for the activated block link points.
7. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the computer program is executed in the processor to implement the method of any of claims 1 to 3.
8. A storage medium storing a computer program, characterized in that the computer program is executed in a processor for performing the method of any of claims 1 to 3.
CN202210551877.4A 2022-05-18 2022-05-18 Block chain mixed consensus data processing method and system Active CN114925403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210551877.4A CN114925403B (en) 2022-05-18 2022-05-18 Block chain mixed consensus data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210551877.4A CN114925403B (en) 2022-05-18 2022-05-18 Block chain mixed consensus data processing method and system

Publications (2)

Publication Number Publication Date
CN114925403A CN114925403A (en) 2022-08-19
CN114925403B true CN114925403B (en) 2023-04-07

Family

ID=82809895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210551877.4A Active CN114925403B (en) 2022-05-18 2022-05-18 Block chain mixed consensus data processing method and system

Country Status (1)

Country Link
CN (1) CN114925403B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115470292B (en) * 2022-08-22 2023-10-10 深圳市沃享科技有限公司 Block chain consensus method, device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881433A (en) * 2018-06-15 2018-11-23 孙念 Information time controlled released or sending method and device based on block chain
CN108961048A (en) * 2018-05-22 2018-12-07 杭州电子科技大学 A kind of energy trade managing system and method based on DPoS block chain
CN109255597A (en) * 2018-08-30 2019-01-22 杭州复杂美科技有限公司 A kind of common recognition bonusing method, common recognition excitation system, equipment and storage medium
CN109964446A (en) * 2018-06-08 2019-07-02 北京大学深圳研究生院 A kind of common recognition method based on ballot
CN110322196A (en) * 2019-06-21 2019-10-11 迅鳐成都科技有限公司 A kind of warehouse receipt reference management platform based on block chain
CN111563822A (en) * 2020-05-14 2020-08-21 上海简苏网络科技有限公司 DPOS (distributed data processing System) consensus method and system realized by intelligent contracts

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11277390B2 (en) * 2015-01-26 2022-03-15 Listat Ltd. Decentralized cybersecure privacy network for cloud communication, computing and global e-commerce
US20190080369A1 (en) * 2017-09-08 2019-03-14 Open Therapeutics, Llc Systems and methods for providing a decentralized platform for connecting members of an open-science community
CN109242481A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 Information approach, device and computer equipment are pledged based on block chain query
CN113273146B (en) * 2018-07-10 2023-06-02 力士塔有限公司 Decentralized network security privacy network for cloud communication, computing and global e-commerce
CN109522456A (en) * 2018-11-14 2019-03-26 全链通有限公司 The node availability detection generated based on block
CN109560938A (en) * 2019-01-23 2019-04-02 广州微盾科技股份有限公司 Based on the block catenary system for referring to human body biological characteristics identification technology
US20200311816A1 (en) * 2019-03-25 2020-10-01 PetroChain Holdings, Inc. Distributed ledger investment governance platform
CN114207643A (en) * 2019-04-19 2022-03-18 科恩巴斯公司 System and method for blockchain management
US11411721B2 (en) * 2019-09-27 2022-08-09 Cypherium Blockchain Inc. Systems and methods for selecting and utilizing a committee of validator nodes in a distributed system
CN111242619B (en) * 2020-01-09 2023-09-19 易联众信息技术股份有限公司 Alliance chain consensus method introducing supervision mechanism, blockchain network and storage medium
CN111490994B (en) * 2020-04-16 2022-05-27 杭州萌格信息科技有限公司 Consensus mechanism method for combining DPOS between block link point groups and POW in node group

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108961048A (en) * 2018-05-22 2018-12-07 杭州电子科技大学 A kind of energy trade managing system and method based on DPoS block chain
CN109964446A (en) * 2018-06-08 2019-07-02 北京大学深圳研究生院 A kind of common recognition method based on ballot
CN108881433A (en) * 2018-06-15 2018-11-23 孙念 Information time controlled released or sending method and device based on block chain
CN109255597A (en) * 2018-08-30 2019-01-22 杭州复杂美科技有限公司 A kind of common recognition bonusing method, common recognition excitation system, equipment and storage medium
CN110322196A (en) * 2019-06-21 2019-10-11 迅鳐成都科技有限公司 A kind of warehouse receipt reference management platform based on block chain
CN111563822A (en) * 2020-05-14 2020-08-21 上海简苏网络科技有限公司 DPOS (distributed data processing System) consensus method and system realized by intelligent contracts

Also Published As

Publication number Publication date
CN114925403A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
Li et al. Consortium blockchain for secure energy trading in industrial internet of things
Li et al. Credit-based payments for fast computing resource trading in edge-assisted Internet of Things
CN112053043B (en) Block chain-based crowd sensing method and system
CN108805569A (en) Transaction processing method and device, electronic equipment based on block chain
CN108764870A (en) Transaction processing method and device, electronic equipment based on block chain
CN110188137B (en) Integrity-based block chain consensus mechanism
CN110060037B (en) Distributed digital identity system based on block chain
CN110335147A (en) A kind of digital asset Information Exchange System and method based on block chain
CN108428168A (en) A kind of house lease method and system based on block chain technology
CN110896659B (en) Data processing method, node, blockchain network and virtual data carrier
CN110928951B (en) Data sharing and arbitration method based on block chain
CN112765656B (en) Electric car sharing charging credible system and method based on block chain
CN109934662B (en) Shared resource leasing method and device based on block chain and computer equipment
CN113157444A (en) Computing power service authentication method, device and readable storage medium
CN114925403B (en) Block chain mixed consensus data processing method and system
Zhang et al. Electricity trade strategy of regional electric vehicle coalitions based on blockchain
CN111131298A (en) POC (Point of sale) efficient consensus mechanism based on credit decentralization and implementation method
CN113626876A (en) Consensus method based on power grid block chain
Hu et al. Blockchain-enhanced fair and efficient energy trading in industrial internet of things
CN113742761B (en) Digital identity casting method and device
Shekari et al. An introduction to blockchain-based concepts for demand response considering of electric vehicles and renewable energies
CN115225982A (en) Data transmission method and device of distributed energy transaction system
CN107451667A (en) A kind of electric car shares the method for safeguarding income in operation
Sun et al. An efficient and secure trading framework for shared charging service based on multiple consortium blockchains
CN114331708A (en) Spectrum resource transaction method, system, equipment and storage medium based on block chain

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