CN113379539A - Committee rights and interests certification consensus method and device based on block chain - Google Patents

Committee rights and interests certification consensus method and device based on block chain Download PDF

Info

Publication number
CN113379539A
CN113379539A CN202010159094.2A CN202010159094A CN113379539A CN 113379539 A CN113379539 A CN 113379539A CN 202010159094 A CN202010159094 A CN 202010159094A CN 113379539 A CN113379539 A CN 113379539A
Authority
CN
China
Prior art keywords
accounting
bookkeeping
candidate
weight
person
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.)
Granted
Application number
CN202010159094.2A
Other languages
Chinese (zh)
Other versions
CN113379539B (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Design Institute Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Design Institute 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 China Mobile Communications Group Co Ltd, China Mobile Group Design Institute Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010159094.2A priority Critical patent/CN113379539B/en
Publication of CN113379539A publication Critical patent/CN113379539A/en
Application granted granted Critical
Publication of CN113379539B publication Critical patent/CN113379539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a block chain-based delegation rights and interests certification consensus method and a device, wherein the method comprises the following steps: in the nodes participating in the bookkeeping, candidate bookkeepers and bookkeepers in the current period are selected based on the weight; after the candidate bookkeeper and the bookkeeper in the current period are selected, bookkeeping is carried out by the bookkeeper in the current period; after accounting is finished, sending a message to inform other verification pools to verify accounting results, and executing a corresponding reward and punishment mechanism on the accounting person in the current period according to the verification results; and sequencing according to the weight of the candidate bookkeeping people, and electing the candidate bookkeeping people with the top rank as new bookkeeping people. According to the embodiment of the invention, the problem that the terminal nodes cannot vote in time can be avoided by selecting the bookkeeping people in the current period and the candidate bookkeeping people in the current period based on the weight, malicious nodes can be effectively eliminated by comparing the difference of the billing results of each bookkeeping terminal, the rights and interests of each bookkeeping terminal are considered during reward and punishment design of the bookkeeping people in the current period, and the enthusiasm of each bookkeeping terminal in the verification pool to participate in billing can be stimulated.

Description

Committee rights and interests certification consensus method and device based on block chain
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a delegation rights and interests certification consensus method and apparatus based on blockchains.
Background
The Delegated Proof of interest consensus algorithm ((DPOS) proposed by Daniel Larimer (BM) in 2014.A blockchain based on Delegated Proof of interest has a voting system, which stakeholders pay their work to third parties. in other words, they can vote to several representatives instead of their protection network. It will soon be evicted and replaced by another node.
In terms of performance, the blockchain that delegates entitlement proofs is more scalable and can handle more transactions per second than workload proofs and entitlement proofs. The DPOS algorithm can effectively solve the problem of consistency consensus of the bookkeeping, and avoids the situations of serious resource waste and conflict with the decentralized thought of the block chain due to pure dependence on computing power. However, the DPOS algorithm still has a bottleneck that cannot be avoided when processing a large number of node nodes, for example, the node nodes cannot vote in time, and cannot be removed in time when a malicious node exists, which causes a long response time.
Disclosure of Invention
Embodiments of the present invention provide a block chain based delegation rights expression consensus method and apparatus that overcome or at least partially solve the above-mentioned problems.
In a first aspect, an embodiment of the present invention provides a block chain-based delegation rights and interests certification consensus method, including:
during initialization, a standard threshold value Y is set in the whole transaction flow, the standard threshold value Y is used for measuring whether an accounting person is a qualified accounting person or not, an initial weight R of the accounting person is set, and during initialization, R is equal to Y;
in the nodes participating in the bookkeeping, candidate bookkeepers and bookkeepers in the current period are selected based on the weight;
after the candidate bookkeeper and the current bookkeeper are elected, bookkeeping is carried out by the current bookkeeper;
after accounting is finished, sending a message to inform other verification pools to verify accounting results, and executing a corresponding reward and punishment mechanism on the accounting person in the current period according to the verification results;
and sequencing according to the weight of the candidate bookkeeping people, and electing the candidate bookkeeping people with the top rank as new bookkeeping people.
Wherein, in the node participating in the accounting, the step of electing candidate accounting people and current accounting people based on the weight value specifically comprises:
when the weight R of the accounting node is not smaller than a first preset threshold of the standard threshold Y, allowing to send a candidate electing accounting person request to other accounting nodes in the same verification pool, and recording the electing number after receiving an 'agreement' instruction replied by other accounting nodes;
within the specified time T, after the number of the 'agreement' instructions received by the accounting nodes reaches a second preset threshold value of the number of all the accounting nodes in the verification pool, determining the accounting nodes as candidate accounting persons, and recording the duration time T of the selected candidate accounting persons;
stopping electing candidate bookkeeping persons within the specified time T after the number of the candidate bookkeeping persons reaches a third preset threshold value of the number of bookkeeping nodes in the verification pool;
after the accounting node is determined as a candidate accounting person, modifying the weight R of the accounting node;
and sequencing all candidate bookkeeping persons according to the weight values, and determining the candidate bookkeeping person with the maximum weight value as the bookkeeping person in the current period.
Wherein, after the accounting node is determined as a candidate accounting person, the step of modifying the weight R specifically comprises:
after the accounting node is determined as a candidate accounting person, modifying the weight R through the following formula:
Figure BDA0002405132090000031
the step of executing a corresponding reward and punishment mechanism to the current bookkeeper according to the verification result specifically includes:
if the result of the bookkeeping is verified to be correct, the weight of the bookkeeper is increased as the reward according to the following formula:
Figure BDA0002405132090000032
if the accounting result is different from most results in the verification pool, reducing the weight of the accounting person as a penalty according to the following formula:
Figure BDA0002405132090000033
in a second aspect, an embodiment of the present invention provides a device for identifying delegation rights and interests based on a block chain, including:
the system comprises a setting module, a transaction processing module and a processing module, wherein the setting module is used for setting a standard threshold value Y in the whole transaction flow during initialization, the standard threshold value Y is used for measuring whether an bookkeeper is a qualified bookkeeper or not, setting an initial weight R of the bookkeeper, and during initialization, R is equal to Y;
the accounting election module is used for electing candidate accounting persons and current-period accounting persons in the nodes participating in accounting on the basis of the weight values;
the accounting module is used for accounting by the bookkeeper in the current period after the candidate bookkeeper and the bookkeeper in the current period finish electing;
the reward and punishment module is used for sending a message to inform other verification pools to verify the accounting result after accounting is finished, and executing a corresponding reward and punishment mechanism on the accounting person in the current period according to the verification result;
and the sequencing module is used for sequencing according to the weight values of the candidate bookkeeping persons, and electing the candidate bookkeeping person with the top rank as a new bookkeeping person.
Wherein, the accounting election module is specifically configured to:
when the weight R of the accounting node is not smaller than a first preset threshold of the standard threshold Y, allowing to send a candidate electing accounting person request to other accounting nodes in the same verification pool, and recording the electing number after receiving an 'agreement' instruction replied by other accounting nodes;
within the specified time T, after the number of the 'agreement' instructions received by the accounting nodes reaches a second preset threshold value of the number of all the accounting nodes in the verification pool, determining the accounting nodes as candidate accounting persons, and recording the duration time T of the selected candidate accounting persons;
stopping electing candidate bookkeeping persons within the specified time T after the number of the candidate bookkeeping persons reaches a third preset threshold value of the number of bookkeeping nodes in the verification pool;
after the accounting node is determined as a candidate accounting person, modifying the weight R of the accounting node;
and sequencing all candidate bookkeeping persons according to the weight values, and determining the candidate bookkeeping person with the maximum weight value as the bookkeeping person in the current period.
After the accounting node is determined as a candidate accounting person, modifying the weight R of the candidate accounting person, specifically:
after the accounting node is determined as a candidate accounting person, modifying the weight R through the following formula:
Figure BDA0002405132090000041
wherein, the reward and punishment module is specifically configured to:
if the result of the bookkeeping is verified to be correct, the weight of the bookkeeper is increased as the reward according to the following formula:
Figure BDA0002405132090000042
if the accounting result is different from most results in the verification pool, reducing the weight of the accounting person as a penalty according to the following formula:
Figure BDA0002405132090000043
in a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the steps of the block chain-based delegation rights certification consensus method as provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the block chain-based delegation rights certification consensus method as provided in the first aspect.
According to the block chain-based delegation rights and interests certification consensus method and device, the problem that terminal nodes cannot vote in time can be solved by selecting the bookkeepers in the current period and the candidate bookkeepers in the current period based on the weight, malicious nodes can be effectively eliminated by comparing the difference of the billing results of each bookkeepers, the rights and interests of each bookkeepers in the current period are considered during design of a reward and punishment algorithm of the bookkeepers in the current period, the problems that the weight of the bookkeepers is too large and too small, the enthusiasm of each bookkeepers in a verification pool can be stimulated, the problems that computing power is low, storage capacity is low, response is not timely due to thin clients in NB-IoT terminal application can be solved, and more application scenes can be generated in the future.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a block chain-based delegation rights and interests certification consensus method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a block chain-based delegation rights certification consensus device according to another embodiment of the present invention;
fig. 3 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
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.
Fig. 1 is a schematic flowchart of a block chain-based delegation rights and interests certification consensus method according to an embodiment of the present invention, including:
step 100, during initialization, setting a standard threshold Y in the whole transaction flow, wherein the standard threshold Y is used for measuring whether an accounting person is a qualified accounting person or not, setting an initial weight R of the accounting person, and during initialization, R is equal to Y;
step 101, selecting candidate bookers and bookers in the nodes participating in bookkeeping based on the weight;
specifically, in the embodiment of the present invention, a node refers to a terminal or a server.
Further, in the nodes participating in accounting, candidate accounting persons and current-period accounting persons are selected based on the weight values, and the method specifically comprises the following steps:
when the weight R of the accounting node is not smaller than a first preset threshold of the standard threshold Y, allowing to send a candidate electing accounting person request to other accounting nodes in the same verification pool, and recording the electing number after receiving an 'agreement' instruction replied by other accounting nodes;
within the specified time T, after the number of the 'agreement' instructions received by the accounting nodes reaches a second preset threshold value of the number of all accounting nodes in the verification pool, determining the accounting nodes as candidate accounting persons, recording the duration T of the selected candidate accounting persons, and within the specified time T, stopping electing the candidate accounting persons after the number of the candidate accounting persons reaches a third preset threshold value of the number of the accounting nodes in the verification pool;
after the accounting node is determined as a candidate accounting person, modifying the weight R of the accounting node;
in one embodiment, its weight R can be modified by the following formula:
Figure BDA0002405132090000061
wherein R is weight, Y is standard threshold, T is specified time, T is the duration of the candidate bookkeeper, Floor is a down-rounding function.
And finally, sequencing all candidate bookkeeping persons according to the weight values, and determining the candidate bookkeeping person with the maximum weight value as the bookkeeping person in the current period.
In one embodiment, the first predetermined threshold is one third, the second predetermined threshold is one half, and the third predetermined threshold is one tenth.
In the embodiment of the invention, the random selection of the bookkeeper avoids the phenomenon that resources are wasted when all bookkeepers carry out calculation, so that hackers cannot smoothly acquire the bookkeeping right, and the safety and the stability of the system are ensured.
Step 102, after the candidate bookkeeper and the current bookkeeper are elected, bookkeeping is carried out by the current bookkeeper;
103, after accounting is finished, sending a message to inform other verification pools to verify accounting results, and executing a corresponding reward and punishment mechanism on the accounting person in the current period according to the verification results;
specifically, after the bookkeeping is finished, the bookkeeper in the current period sends a message to inform other verification pools to verify the bookkeeping result of the bookkeeper in the current period, and a corresponding reward and punishment mechanism is executed on the bookkeeper in the current period according to whether the verification result is correct or not.
In a specific embodiment, the executing a corresponding reward and punishment mechanism to the current bookkeeping person according to the verification result specifically includes:
if the result of the bookkeeping is verified to be correct, the weight of the bookkeeper is increased as the reward according to the following formula:
Figure BDA0002405132090000071
if the accounting result is different from most results in the verification pool, reducing the weight of the accounting person as a penalty according to the following formula:
Figure BDA0002405132090000072
and 104, sequencing according to the weight values of the candidate bookkeeping persons, and electing the candidate bookkeeping person with the top rank as a new bookkeeping person.
Specifically, sorting according to the candidate bookkeeping person weight value R, electing the top candidate bookkeeping person as a new bookkeeping person, and recursively executing the step 101, the step 102 and the step 103.
According to the block chain-based delegation rights and interests certification consensus method provided by the embodiment of the invention, the problem that terminal nodes cannot vote in time can be avoided by selecting the current-stage bookkeeper and the current-stage candidate bookkeeper based on the weight, malicious nodes can be effectively eliminated by comparing the difference of the billing results of each bookkeeper terminal, the rights and interests of each bookkeeper terminal are considered during the reward and punishment algorithm design of the current-stage bookkeeper, the problems that the weight of the bookkeeper terminal is too large and too small, the enthusiasm of each bookkeeper terminal in a verification pool to participate in billing can be stimulated, the problems of low computing power, low storage capacity and untimely response caused by a thin NB-IoT terminal in application can be solved, and more application scenes can be generated in the future.
Fig. 2 is a schematic structural diagram of a block chain-based delegation rights and interests certification consensus apparatus according to another embodiment of the present invention, including: a setup module 210, a billing election module 220, a billing module 230, a reward and punishment module 240, and a ranking module 250, wherein,
the setting module 210 is configured to set a standard threshold Y in the whole transaction flow during initialization, where the standard threshold Y is used to measure whether the bookkeeper is a qualified bookkeeper, and set an initial weight R of the bookkeeper, and when the initial weight R is equal to the initial weight Y;
the accounting election module 220 is used for electing candidate accounting people and current-period accounting people in the accounting nodes based on the weight values;
specifically, in the embodiment of the present invention, a node refers to a terminal or a server.
Further, the accounting election module is specifically configured to:
when the weight R of the accounting node is not smaller than a first preset threshold of the standard threshold Y, allowing to send a candidate electing accounting person request to other accounting nodes in the same verification pool, and recording the electing number after receiving an 'agreement' instruction replied by other accounting nodes;
within the specified time T, after the number of the 'agreement' instructions received by the accounting nodes reaches a second preset threshold value of the number of all the accounting nodes in the verification pool, determining the accounting nodes as candidate accounting persons, and recording the duration time T of the selected candidate accounting persons;
stopping electing candidate bookkeeping persons within the specified time T after the number of the candidate bookkeeping persons reaches a third preset threshold value of the number of bookkeeping nodes in the verification pool;
after the accounting node is determined as a candidate accounting person, modifying the weight R of the accounting node;
in one embodiment, its weight R can be modified by the following formula:
Figure BDA0002405132090000091
wherein R is weight, Y is standard threshold, T is specified time, T is the duration of the candidate bookkeeper, Floor is a down-rounding function.
And finally, sequencing all candidate bookkeeping persons according to the weight values, and determining the candidate bookkeeping person with the maximum weight value as the bookkeeping person in the current period.
The accounting module 230 is used for accounting by the current-period accounting person after the candidate accounting person and the current-period accounting person complete the election;
the reward and punishment module 240 is used for sending a message to inform other verification pools to verify the accounting result after accounting is finished, and executing a corresponding reward and punishment mechanism on the current-period accounting person according to the verification result;
specifically, after the bookkeeping is finished, the bookkeeper in the current period sends a message to inform other verification pools to verify the bookkeeping result of the bookkeeper in the current period, and a corresponding reward and punishment mechanism is executed on the bookkeeper in the current period according to whether the verification result is correct or not.
Further, the reward and punishment module is specifically configured to:
if the result of the bookkeeping is verified to be correct, the weight of the bookkeeper is increased as the reward according to the following formula:
Figure BDA0002405132090000092
if the accounting result is different from most results in the verification pool, reducing the weight of the accounting person as a penalty according to the following formula:
Figure BDA0002405132090000101
and the sorting module 250 is used for sorting according to the weight values of the candidate bookkeeping persons, and electing the candidate bookkeeping person with the top rank as a new bookkeeping person.
Specifically, the candidate bookkeeping persons are sorted according to the candidate bookkeeping person weight R, the candidate bookkeeping person with the top ranking is elected to be a new bookkeeping person, and the operation is performed recursively.
The delegation rights and interests certification consensus device based on the block chain provided by the embodiment of the invention can avoid the problem that terminal nodes cannot vote in time by selecting the bookkeeper in the current period and the candidate bookkeeper in the current period based on the weight, can effectively remove malicious nodes by comparing the difference of the billing results of each bookkeeping terminal, and considers the rights and interests of each bookkeeping terminal during the reward and punishment algorithm design of the bookkeeping terminal, so that the problems of overlarge and undersize weights of the bookkeeping terminals are avoided, the enthusiasm of each bookkeeping terminal in a verification pool to participate in billing can be stimulated, the problems of low computing power, low storage capacity and untimely response caused by thin NB-IoT terminal application can be solved, and more application scenes can be generated in the future.
Fig. 3 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device may include: a processor (processor)310, a communication Interface (communication Interface)320, a memory (memory)330 and a communication bus 340, wherein the processor 310, the communication Interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may invoke a computer program stored on the memory 330 and executable on the processor 310 to perform the block chain based delegation rights attestation consensus method provided by the above-described method embodiments, including, for example: during initialization, a standard threshold value Y is set in the whole transaction flow, the standard threshold value Y is used for measuring whether an accounting person is a qualified accounting person or not, an initial weight R of the accounting person is set, and during initialization, R is equal to Y; in the nodes participating in the bookkeeping, candidate bookkeepers and bookkeepers in the current period are selected based on the weight; after the candidate bookkeeper and the current bookkeeper are elected, bookkeeping is carried out by the current bookkeeper; after accounting is finished, sending a message to inform other verification pools to verify accounting results, and executing a corresponding reward and punishment mechanism on the accounting person in the current period according to the verification results; and sequencing according to the weight of the candidate bookkeeping people, and electing the candidate bookkeeping people with the top rank as new bookkeeping people.
In addition, the logic instructions in the memory 330 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a node, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the delegation rights and interests certification consensus method based on a block chain provided in the foregoing method embodiments, for example, including: during initialization, a standard threshold value Y is set in the whole transaction flow, the standard threshold value Y is used for measuring whether an accounting person is a qualified accounting person or not, an initial weight R of the accounting person is set, and during initialization, R is equal to Y; in the nodes participating in the bookkeeping, candidate bookkeepers and bookkeepers in the current period are selected based on the weight; after the candidate bookkeeper and the current bookkeeper are elected, bookkeeping is carried out by the current bookkeeper; after accounting is finished, sending a message to inform other verification pools to verify accounting results, and executing a corresponding reward and punishment mechanism on the accounting person in the current period according to the verification results; and sequencing according to the weight of the candidate bookkeeping people, and electing the candidate bookkeeping people with the top rank as new bookkeeping people.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a node, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A block chain-based delegation rights and interests certification consensus method is characterized by comprising the following steps:
during initialization, a standard threshold value Y is set in the whole transaction flow, the standard threshold value Y is used for measuring whether an accounting person is a qualified accounting person or not, an initial weight R of the accounting person is set, and during initialization, R is equal to Y;
in the nodes participating in the bookkeeping, candidate bookkeepers and bookkeepers in the current period are selected based on the weight;
after the candidate bookkeeper and the current bookkeeper are elected, bookkeeping is carried out by the current bookkeeper;
after accounting is finished, sending a message to inform other verification pools to verify accounting results, and executing a corresponding reward and punishment mechanism on the accounting person in the current period according to the verification results;
and sequencing according to the weight of the candidate bookkeeping people, and electing the candidate bookkeeping people with the top rank as new bookkeeping people.
2. The block chain-based delegation rights and interests certification consensus method according to claim 1, wherein the step of electing candidate bookers and current bookers from the nodes participating in bookkeeping based on the weight values specifically comprises:
when the weight R of the accounting node is not smaller than a first preset threshold of the standard threshold Y, allowing to send a candidate electing accounting person request to other accounting nodes in the same verification pool, and recording the electing number after receiving an 'agreement' instruction replied by other accounting nodes;
within the specified time T, after the number of the 'agreement' instructions received by the accounting nodes reaches a second preset threshold value of the number of all the accounting nodes in the verification pool, determining the accounting nodes as candidate accounting persons, and recording the duration time T of the selected candidate accounting persons;
stopping electing candidate bookkeeping persons within the specified time T after the number of the candidate bookkeeping persons reaches a third preset threshold value of the number of bookkeeping nodes in the verification pool;
after the accounting node is determined as a candidate accounting person, modifying the weight R of the accounting node;
and sequencing all candidate bookkeeping persons according to the weight values, and determining the candidate bookkeeping person with the maximum weight value as the bookkeeping person in the current period.
3. The block chain-based delegation rights and interests certification consensus method according to claim 2, wherein the step of modifying the weight value R of the bookkeeping node after determining the bookkeeping node as a candidate bookkeeping person specifically comprises:
after the accounting node is determined as a candidate accounting person, modifying the weight R through the following formula:
Figure FDA0002405132080000021
4. the block chain-based delegation rights and interests certification consensus method according to claim 1, wherein the step of executing a corresponding reward and punishment mechanism on a current-period bookkeeper according to the verification result specifically includes:
if the result of the bookkeeping is verified to be correct, the weight of the bookkeeper is increased as the reward according to the following formula:
Figure FDA0002405132080000022
if the accounting result is different from most results in the verification pool, reducing the weight of the accounting person as a penalty according to the following formula:
Figure FDA0002405132080000023
5. a block chain-based delegation rights identification consensus apparatus, comprising:
the system comprises a setting module, a transaction processing module and a processing module, wherein the setting module is used for setting a standard threshold value Y in the whole transaction flow during initialization, the standard threshold value Y is used for measuring whether an bookkeeper is a qualified bookkeeper or not, setting an initial weight R of the bookkeeper, and during initialization, R is equal to Y;
the accounting election module is used for electing candidate accounting persons and current-period accounting persons in the nodes participating in accounting on the basis of the weight values;
the accounting module is used for accounting by the bookkeeper in the current period after the candidate bookkeeper and the bookkeeper in the current period finish electing;
the reward and punishment module is used for sending a message to inform other verification pools to verify the accounting result after accounting is finished, and executing a corresponding reward and punishment mechanism on the accounting person in the current period according to the verification result;
and the sequencing module is used for sequencing according to the weight values of the candidate bookkeeping persons, and electing the candidate bookkeeping person with the top rank as a new bookkeeping person.
6. The device of claim 5, wherein the accounting election module is specifically configured to:
when the weight R of the accounting node is not smaller than a first preset threshold of the standard threshold Y, allowing to send a candidate electing accounting person request to other accounting nodes in the same verification pool, and recording the electing number after receiving an 'agreement' instruction replied by other accounting nodes;
within the specified time T, after the number of the 'agreement' instructions received by the accounting nodes reaches a second preset threshold value of the number of all the accounting nodes in the verification pool, determining the accounting nodes as candidate accounting persons, and recording the duration time T of the selected candidate accounting persons;
stopping electing candidate bookkeeping persons within the specified time T after the number of the candidate bookkeeping persons reaches a third preset threshold value of the number of bookkeeping nodes in the verification pool;
after the accounting node is determined as a candidate accounting person, modifying the weight R of the accounting node;
and sequencing all candidate bookkeeping persons according to the weight values, and determining the candidate bookkeeping person with the maximum weight value as the bookkeeping person in the current period.
7. The device for delegating rights and interests certification consensus based on block chains as claimed in claim 6, wherein the weight R of the candidate bookkeeper is modified after the bookkeeper node is determined to be the candidate bookkeeper, specifically:
after the accounting node is determined as a candidate accounting person, modifying the weight R through the following formula:
Figure FDA0002405132080000031
8. the block chain-based delegation rights certification consensus device of claim 5, wherein the reward punishment module is specifically configured to:
if the result of the bookkeeping is verified to be correct, the weight of the bookkeeper is increased as the reward according to the following formula:
Figure FDA0002405132080000032
if the accounting result is different from most results in the verification pool, reducing the weight of the accounting person as a penalty according to the following formula:
Figure FDA0002405132080000041
9. an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the block chain based delegation rights expression consensus method according to any one of claims 1 to 4 when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, performs the steps of the block chain based delegation rights expression consensus method according to any of claims 1 to 4.
CN202010159094.2A 2020-03-09 2020-03-09 Delegation rights and benefits proving consensus method and device based on block chain Active CN113379539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010159094.2A CN113379539B (en) 2020-03-09 2020-03-09 Delegation rights and benefits proving consensus method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010159094.2A CN113379539B (en) 2020-03-09 2020-03-09 Delegation rights and benefits proving consensus method and device based on block chain

Publications (2)

Publication Number Publication Date
CN113379539A true CN113379539A (en) 2021-09-10
CN113379539B CN113379539B (en) 2024-02-23

Family

ID=77568629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010159094.2A Active CN113379539B (en) 2020-03-09 2020-03-09 Delegation rights and benefits proving consensus method and device based on block chain

Country Status (1)

Country Link
CN (1) CN113379539B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114154994A (en) * 2021-10-29 2022-03-08 海南火链科技有限公司 Super node determination method and device based on block chain and storage medium
CN115081539A (en) * 2022-07-21 2022-09-20 交通运输部科学研究院 Delegation rights and interests certification consensus method and device, electronic equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107578336A (en) * 2017-09-29 2018-01-12 左鹏 Block chain bookkeeping methods based on dynamic equity
CN108564468A (en) * 2018-04-04 2018-09-21 上海金丘信息科技股份有限公司 A kind of common recognition method based on the dynamic equity for trusting member
CN108833483A (en) * 2018-05-22 2018-11-16 四川海纳仁东科技有限公司 Packet-based DPOS agent node selection method
CN109639837A (en) * 2019-01-31 2019-04-16 东南大学 Block chain DPoS common recognition method based on faith mechanism
CN109903155A (en) * 2019-01-14 2019-06-18 无锡一邦网络科技有限公司 IIFT block chain common recognition algorithm
CN110348248A (en) * 2019-07-16 2019-10-18 山西智博睿星科技有限公司 Distributed book keeping operation power generation method in a kind of block chain technology
CN110533402A (en) * 2019-08-22 2019-12-03 珠海得分金融科技有限公司 A kind of book keeping operation common recognition method and system of heterogeneous system
US20200059369A1 (en) * 2017-05-16 2020-02-20 Peking University Shenzhen Graduate School Determining consensus by parallel proof of voting in consortium blockchain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200059369A1 (en) * 2017-05-16 2020-02-20 Peking University Shenzhen Graduate School Determining consensus by parallel proof of voting in consortium blockchain
CN107578336A (en) * 2017-09-29 2018-01-12 左鹏 Block chain bookkeeping methods based on dynamic equity
CN108564468A (en) * 2018-04-04 2018-09-21 上海金丘信息科技股份有限公司 A kind of common recognition method based on the dynamic equity for trusting member
CN108833483A (en) * 2018-05-22 2018-11-16 四川海纳仁东科技有限公司 Packet-based DPOS agent node selection method
CN109903155A (en) * 2019-01-14 2019-06-18 无锡一邦网络科技有限公司 IIFT block chain common recognition algorithm
CN109639837A (en) * 2019-01-31 2019-04-16 东南大学 Block chain DPoS common recognition method based on faith mechanism
CN110348248A (en) * 2019-07-16 2019-10-18 山西智博睿星科技有限公司 Distributed book keeping operation power generation method in a kind of block chain technology
CN110533402A (en) * 2019-08-22 2019-12-03 珠海得分金融科技有限公司 A kind of book keeping operation common recognition method and system of heterogeneous system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HAOYU WANG, 等: "Blockchain-based resource allocation model in fog computing", 《APPLIED SCIENCES》, vol. 9, no. 24, pages 1 - 18 *
陈梦蓉, 等: "基于"奖励制度"的DPoS共识机制改进", 《计算机科学》, vol. 47, no. 2, pages 269 - 275 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114154994A (en) * 2021-10-29 2022-03-08 海南火链科技有限公司 Super node determination method and device based on block chain and storage medium
CN115081539A (en) * 2022-07-21 2022-09-20 交通运输部科学研究院 Delegation rights and interests certification consensus method and device, electronic equipment and readable storage medium
CN115081539B (en) * 2022-07-21 2022-11-15 交通运输部科学研究院 Delegation rights and interests certification consensus method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113379539B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
US10812491B2 (en) Differential security policies in email systems
CN110928951B (en) Data sharing and arbitration method based on block chain
CN111988203B (en) Node election method, device and storage medium
CN113379539A (en) Committee rights and interests certification consensus method and device based on block chain
CN112532587B (en) PeerTrust-based joint consensus evaluation method for DPos
CN103354933A (en) Determining characteristics of participants in a social network
CN110460650B (en) Decision-making method and device for computation unloading in multi-edge server scene
CN111614708A (en) Transaction system based on block chain
CN113988314A (en) Cluster federal learning method and system for selecting client
US8973156B2 (en) Multi-user limited resource allocation processing method and system
CN113420323A (en) Data sharing method and terminal equipment
JP7178421B2 (en) Information processing method, device, program, and recording medium
CN111082990A (en) Block chain consensus method, device, equipment and storage medium
CN111111216A (en) Matching method, device, server and storage medium
CN114710485B (en) Processing method and processing device
CN113472825B (en) NB-IoT terminal transaction processing method and device based on block chain
CN111163055B (en) Weak authentication method and device for non-ground network access
CN114360002A (en) Face recognition model training method and device based on federal learning
CN113742761A (en) Digital identity casting method and device
CN107958142B (en) User account generation method and device
CN107995204A (en) Hadoop framework method for evaluating trust based on Bayes models
CN111600768B (en) Verification and grouping method and device based on rights and interests certification
CN113923275B (en) Block chain negotiation method, electronic device and computer readable storage medium
CN116847113B (en) Video live broadcast transfer method, device, equipment and medium based on cloud architecture module
US11998839B2 (en) Information processing method, apparatus and computer 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