CN116074311A - Alliance chain consensus method and device based on trust degree grading and terminal equipment - Google Patents

Alliance chain consensus method and device based on trust degree grading and terminal equipment Download PDF

Info

Publication number
CN116074311A
CN116074311A CN202211550949.XA CN202211550949A CN116074311A CN 116074311 A CN116074311 A CN 116074311A CN 202211550949 A CN202211550949 A CN 202211550949A CN 116074311 A CN116074311 A CN 116074311A
Authority
CN
China
Prior art keywords
node
consensus
data
trust
chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211550949.XA
Other languages
Chinese (zh)
Inventor
程凯
陈连栋
杨超
张磊
申培培
刘咸通
辛晓鹏
赵林丛
高丽芳
刘子州
刘玮
张纬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Information and Telecommunication Branch of State Grid Hebei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Information and Telecommunication Branch of State Grid Hebei Electric Power 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 State Grid Corp of China SGCC, Information and Telecommunication Branch of State Grid Hebei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202211550949.XA priority Critical patent/CN116074311A/en
Publication of CN116074311A publication Critical patent/CN116074311A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/30Decision processes by autonomous network management units using voting and bidding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a coalition chain consensus method and device based on trust degree grading and terminal equipment. The method comprises the following steps: acquiring a historical behavior record of each node in a alliance chain; determining a contribution value of each node in the alliance chain based on the historical behavior record of each node; based on the contribution value of each node in the alliance chain and the preset value of each node, carrying out weighted summation to determine the trust degree of each node; based on the trust degree of each node, carrying out trust degree grading on each node, and selecting consensus nodes of a alliance chain; and carrying out consensus of the alliance chain based on the selected consensus nodes. The invention can give consideration to the data security and transparency of the alliance chain, and ensure the data security and the supervision performance of the alliance chain.

Description

Alliance chain consensus method and device based on trust degree grading and terminal equipment
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a trust level-based federation chain consensus method, device and terminal equipment.
Background
With the development of blockchain technology, a coalition chain disposed among a plurality of systems is being applied. Such as digital government, smart grid, intelligent transportation, etc., the alliance chain needs to be set between multiple systems of government, grid, bank, tax, real estate, etc.
In a coalition chain which is jointly arranged by a plurality of systems, the data consensus is completely transparent, so that the coalition chain is in a complete supervision state, but the private data of the coalition chain can be revealed, and the problem of data security exists. The privacy protection is carried out in the data consensus process, so that the privacy data of the alliance chain can be safely stored, leakage is avoided, but the data consensus process of the alliance chain can not be supervised, and traceability is poor. How to balance federated chain data the security and transparency need to be resolved.
Disclosure of Invention
The invention provides a trust-grading-based alliance chain consensus method, a trust-grading-based alliance chain consensus device and terminal equipment, which can give consideration to the data security and transparency of an alliance chain and ensure the data security and the supervision performance of the alliance chain.
In a first aspect, the present invention provides a trust-hierarchy-based federation chain consensus method, including: acquiring a historical behavior record of each node in a alliance chain; determining a contribution value of each node in the alliance chain based on the historical behavior record of each node; based on the contribution value of each node in the alliance chain and the preset value of each node, carrying out weighted summation to determine the trust degree of each node; based on the trust degree of each node, carrying out trust degree grading on each node, and selecting consensus nodes of a alliance chain; and carrying out consensus of the alliance chain based on the selected consensus nodes.
In one possible implementation manner, based on the contribution value of each node in the coalition chain and the preset value of each node, the method further comprises, before determining the trust degree of each node, the steps of: randomly generating preset values of all nodes; or receiving authentication values of all nodes input by a user; the preset value of each node is determined based on the authentication value of each node.
In one possible implementation, determining a contribution value of each node in the federation chain based on the historical behavior record of each node includes: for any node, counting the number of normal transactions and abnormal transactions in the historical behavior record of the node; the contribution value of the node in the coalition chain is determined based on the number of transactions normal and transactions abnormal.
In one possible implementation, the trust level classification is performed on each node based on the trust level of each node, and selecting a consensus node of the federation chain includes: ordering the nodes based on the trust degree of the nodes; carrying out trust degree grading on each node according to the set percentage; and determining the node of the first trust level as a consensus node.
In one possible implementation, the method further includes: and determining the nodes of the second trust level as data nodes, wherein the data nodes are used for storing privacy data of the alliance chain.
In one possible implementation, performing consensus of the federation chain based on the selected consensus nodes includes: if the storage of the private data is determined, a first request is sent to the selected consensus node, wherein the first request is used for requesting verification of the private data; receiving a first response returned by each consensus node, wherein the first response comprises a verification result of the privacy data; determining whether the privacy data is successfully consensus based on the first response returned by each consensus node; if yes, storing the privacy data to the data node.
In one possible implementation, the first response further includes an identification of the data node storing the private data; storing the private data to the data node, comprising: determining each data node for storing the private data based on the first response returned by each consensus node; splitting the privacy data into a plurality of data packets based on the number of each data node; and storing the data packets to each data node respectively.
In a second aspect, an embodiment of the present invention provides a trust-hierarchy-based federation chain consensus apparatus, including: the communication module is used for acquiring the historical behavior record of each node in the alliance chain; the processing module is used for determining the contribution value of each node in the alliance chain based on the historical behavior record of each node; based on the contribution value of each node in the alliance chain and the preset value of each node, carrying out weighted summation to determine the trust degree of each node; based on the trust degree of each node, carrying out trust degree grading on each node, and selecting consensus nodes of a alliance chain; and carrying out consensus of the alliance chain based on the selected consensus nodes.
In a possible implementation manner, the processing module is further configured to randomly generate preset values of each node; or the communication module is also used for receiving authentication values of all nodes input by a user; and the processing module is also used for determining preset values of the nodes based on the authentication values of the nodes.
In one possible implementation manner, the processing module is specifically configured to count, for any node, the number of normal transactions and abnormal transactions in the historical behavior record of the node; the contribution value of the node in the coalition chain is determined based on the number of transactions normal and transactions abnormal.
In one possible implementation manner, the processing module is specifically configured to sort the nodes based on the trust level of each node; carrying out trust degree grading on each node according to the set percentage; and determining the node of the first trust level as a consensus node.
In one possible implementation, the processing module is further configured to determine a node of the second trust level as a data node, where the data node is configured to store privacy data of the federation chain.
In one possible implementation manner, the processing module is specifically configured to send a first request to the selected consensus node if it is determined to store the private data, where the first request is used to request verification of the private data; receiving a first response returned by each consensus node, wherein the first response comprises a verification result of the privacy data; determining whether the privacy data is successfully consensus based on the first response returned by each consensus node; if yes, storing the privacy data to the data node.
In one possible implementation, the first response further includes an identification of the data node storing the private data; the processing module is specifically used for determining each data node for storing the private data based on the first response returned by each consensus node; splitting the privacy data into a plurality of data packets based on the number of each data node; and storing the data packets to each data node respectively.
In a third aspect, an embodiment of the present invention provides a terminal device, including a memory storing a computer program and a processor for calling and running the computer program stored in the memory to perform the steps of the method according to the first aspect and any possible implementation manner of the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to the first aspect and any one of the possible implementations of the first aspect.
The invention provides a coalition chain consensus method, a coalition chain consensus device and terminal equipment based on trust degree grading. On one hand, the privacy of the consensus node is ensured, so that the consensus flow of the alliance chain is protected; on the other hand, the user can acquire the condition of the consensus node through a preset value, so that the consensus node can be supervised, and the traceability of the alliance chain is improved. Therefore, the invention can give consideration to the data security and transparency of the alliance chain, and ensure the data security and the supervision performance of the alliance chain.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow diagram of a federated chain consensus method based on trust hierarchy provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a trust-hierarchy-based federation chain consensus device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In the description of the present invention, "/" means "or" unless otherwise indicated, for example, A/B may mean A or B. "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. Further, "at least one", "a plurality" means two or more. The terms "first," "second," and the like do not limit the number and order of execution, and the terms "first," "second," and the like do not necessarily differ.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules but may, alternatively, include other steps or modules not listed or inherent to such process, method, article, or apparatus.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following description will be made with reference to the accompanying drawings of the present invention by way of specific embodiments.
As shown in FIG. 1, the embodiment of the invention provides a coalition chain consensus method based on trust level grading. The execution subject is a coalition chain consensus device. The alliance chain consensus method comprises steps S101-S105.
S101, acquiring historical behavior records of all nodes in the alliance chain.
S102, determining contribution values of all nodes in the alliance chain based on historical behavior records of all nodes.
As a possible implementation manner, for any node, the coalition chain consensus device can count the number of normal transactions and abnormal transactions in the historical behavior record of the node; the contribution value of the node in the coalition chain is determined based on the number of transactions normal and transactions abnormal.
Illustratively, if the node transaction is normal, the federation chain consensus means may increment the contribution value by one. If the node transaction is abnormal, the coalition chain consensus device may decrease the contribution value by one.
And S103, carrying out weighted summation based on the contribution value of each node in the alliance chain and the preset value of each node, and determining the trust degree of each node.
As a possible implementation, before step S103, the federation chain consensus device may randomly generate preset values for each node.
As another possible implementation manner, before step S103, the federation chain consensus device may receive the authentication value of each node input by the user; the preset value of each node is determined based on the authentication value of each node.
S104, carrying out trust degree grading on each node based on the trust degree of each node, and selecting the consensus node of the alliance chain.
As a possible implementation manner, the coalition chain consensus device may sort the nodes based on the trust degree of the nodes; carrying out trust degree grading on each node according to the set percentage; and determining the node of the first trust level as a consensus node.
Optionally, the federation chain consensus device may determine the node of the second trust level as a data node, where the data node is configured to store the privacy data of the federation chain.
S105, performing the consensus of the alliance chain based on the selected consensus nodes. Alternatively, step S105 may be embodied as steps S1051-S1054.
S1051, if the private data is determined to be stored, a first request is sent to the selected consensus node.
In some embodiments, the first request is for requesting verification of private data.
S1052, receiving the first response returned by each consensus node.
In some embodiments, the first response includes a verification result of the private data.
In some embodiments, the first response further includes an identification of the data node storing the private data.
S1053 based on the first response returned by each consensus node, it is determined whether the privacy data consensus is successful.
And S1054, if yes, storing the privacy data to the data node.
As one possible implementation, the federation chain consensus means may store the private data based on steps A1-A3.
A1, determining each data node for storing the private data based on the first response returned by each consensus node.
A2, splitting the privacy data into a plurality of data packets based on the number of each data node.
A3, storing the data packets to each data node.
The invention provides a coalition chain consensus method, a coalition chain consensus device and terminal equipment based on trust degree grading. On one hand, the privacy of the consensus node is ensured, so that the consensus flow of the alliance chain is protected; on the other hand, the user can acquire the condition of the consensus node through a preset value, so that the consensus node can be supervised, and the traceability of the alliance chain is improved. Therefore, the invention can give consideration to the data security and transparency of the alliance chain, and ensure the data security and the supervision performance of the alliance chain.
It should be noted that, in order to achieve the controllable and manageable of the blockchain, the core link is a consensus mechanism. The common knowledge mechanism of the traditional public chain/alliance chain/private chain has the characteristics of equality, peer-to-peer and randomness, and is difficult to support the control of the block chain nodes. The invention can select the consensus node through setting the preset value and can also determine the current consensus node based on the set value by setting the user, thereby being convenient for tracing. Thus forming a reliable weak centralized rapid consensus mechanism, balancing the consensus transparency and efficiency, and guaranteeing the availability of the blockchain platform
It should be noted that, the invention is based on a multi-layer link architecture and a data model, based on a node trust evaluation system with multiple dimensions such as public trust, historical behavior and the like of a service network node, introduces random probability, designs a consensus node selection algorithm, proposes a consensus mechanism based on trust degree grading, and balances fairness and consensus efficiency of the selection of the consensus nodes. Meanwhile, a network layer communication protocol of transaction issuing, consensus negotiation, data synchronization and other processes is designed aiming at the communication differentiation among alliance chain nodes, global node communication frequency is optimized, local communication ordering is realized, and communication resource consumption is reduced.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The following are device embodiments of the invention, for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 2 shows a schematic structural diagram of a trust-hierarchy-based federation chain consensus device according to an embodiment of the present invention.
The coalition chain consensus device 200 comprises a communication module 201 and a processing module 202.
And the communication module 201 is used for acquiring the historical behavior record of each node in the alliance chain.
A processing module 202, configured to determine a contribution value of each node in the coalition chain based on the historical behavior record of each node; based on the contribution value of each node in the alliance chain and the preset value of each node, carrying out weighted summation to determine the trust degree of each node; based on the trust degree of each node, carrying out trust degree grading on each node, and selecting consensus nodes of a alliance chain; and carrying out consensus of the alliance chain based on the selected consensus nodes.
In a possible implementation manner, the processing module 202 is further configured to randomly generate preset values of each node; or, the communication module 201 is further configured to receive an authentication value of each node input by a user; the processing module 202 is further configured to determine a preset value of each node based on the authentication value of each node.
In one possible implementation, the processing module 202 is specifically configured to count, for any node, the number of transaction norms and transaction anomalies in the historical behavior record of the node; the contribution value of the node in the coalition chain is determined based on the number of transactions normal and transactions abnormal.
In one possible implementation, the processing module 202 is specifically configured to sort the nodes based on the trust level of each node; carrying out trust degree grading on each node according to the set percentage; and determining the node of the first trust level as a consensus node.
In one possible implementation, the processing module 202 is further configured to determine the node of the second trust level as a data node, where the data node is configured to store privacy data of the federation chain.
In one possible implementation manner, the processing module 202 is specifically configured to send, if it is determined to store the private data, a first request to the selected consensus node, where the first request is used to request verification of the private data; receiving a first response returned by each consensus node, wherein the first response comprises a verification result of the privacy data; determining whether the privacy data is successfully consensus based on the first response returned by each consensus node; if yes, storing the privacy data to the data node.
In one possible implementation, the first response further includes an identification of the data node storing the private data; the processing module 202 is specifically configured to determine each data node storing the private data based on the first response returned by each consensus node; splitting the privacy data into a plurality of data packets based on the number of each data node; and storing the data packets to each data node respectively.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 3, the terminal device 300 of this embodiment includes: a processor 301, a memory 302 and a computer program 303 stored in said memory 302 and executable on said processor 301. The steps of the method embodiments described above, such as steps 101 to 105 shown in fig. 1, are implemented when the processor 301 executes the computer program 303. Alternatively, the processor 301 may implement the functions of the modules/units in the above-described embodiments of the apparatus when executing the computer program 303, for example, the functions of the communication module 201 and the processing module 202 shown in fig. 2.
Illustratively, the computer program 303 may be partitioned into one or more modules/units that are stored in the memory 302 and executed by the processor 301 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 303 in the terminal device 300. For example, the computer program 303 may be divided into the communication module 201 and the processing module 202 shown in fig. 2.
The processor 301 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 302 may be an internal storage unit of the terminal device 300, such as a hard disk or a memory of the terminal device 300. The memory 302 may also be an external storage device of the terminal device 300, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 300. Further, the memory 302 may also include both an internal storage unit and an external storage device of the terminal device 300. The memory 302 is used for storing the computer program as well as other programs and data required by the terminal. The memory 302 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. A trust-grading-based alliance chain consensus method is characterized by comprising the following steps:
acquiring a historical behavior record of each node in a alliance chain;
determining a contribution value of each node in the alliance chain based on the historical behavior record of each node;
based on the contribution value of each node in the alliance chain and the preset value of each node, carrying out weighted summation to determine the trust degree of each node;
based on the trust degree of each node, carrying out trust degree grading on each node, and selecting the consensus node of the alliance chain;
and carrying out consensus of the alliance chain based on the selected consensus node.
2. The trust-hierarchy-based federation chain consensus method according to claim 1, wherein the determining the trust of each node by performing weighted summation based on the contribution value of each node in the federation chain and a preset value of each node further comprises:
randomly generating preset values of all nodes; or alternatively, the process may be performed,
receiving authentication values of all nodes input by a user; the preset value of each node is determined based on the authentication value of each node.
3. The trust hierarchy based federation chain consensus method according to claim 1, wherein the determining a contribution value of each node in the federation chain based on the historical behavior record of each node comprises:
for any node, counting the number of normal transactions and abnormal transactions in the historical behavior record of the node;
a contribution value of the node in the coalition chain is determined based on the number of transaction norms and transaction anomalies.
4. The trust-hierarchy-based federation chain consensus method according to claim 1, wherein the performing trust hierarchy on each node based on the trust of each node, selecting a consensus node of the federation chain, comprises:
ordering the nodes based on the trust degree of the nodes;
carrying out trust degree grading on each node according to the set percentage;
and determining the node of the first trust level as a consensus node.
5. The trust-hierarchy-based federation chain consensus method according to claim 4, further comprising:
and determining the node of the second trust level as a data node, wherein the data node is used for storing the privacy data of the alliance chain.
6. The trust-hierarchy-based federation chain consensus method according to claim 4, wherein the performing the federation chain consensus based on the selected consensus nodes comprises:
if the private data is determined to be stored, a first request is sent to the selected consensus node, wherein the first request is used for requesting to verify the private data;
receiving a first response returned by each consensus node, wherein the first response comprises a verification result of the privacy data;
determining whether the privacy data is successfully consensus based on a first response returned by each consensus node;
if yes, storing the privacy data to a data node.
7. The trust-hierarchy-based federation chain consensus method according to claim 6, wherein the first response further comprises an identification of a data node storing the privacy data;
the storing the private data to a data node includes:
determining each data node for storing the privacy data based on the first response returned by each consensus node;
splitting the privacy data into a plurality of data packets based on the number of the data nodes;
and storing the data packets to the data nodes respectively.
8. A trust-hierarchy-based federation chain consensus device, comprising:
the communication module is used for acquiring the historical behavior record of each node in the alliance chain;
the processing module is used for determining the contribution value of each node in the alliance chain based on the historical behavior record of each node; based on the contribution value of each node in the alliance chain and the preset value of each node, carrying out weighted summation to determine the trust degree of each node; based on the trust degree of each node, carrying out trust degree grading on each node, and selecting the consensus node of the alliance chain; and carrying out consensus of the alliance chain based on the selected consensus node.
9. A terminal device, characterized in that it comprises a memory storing a computer program and a processor for calling and running the computer program stored in the memory to perform the method according to any of claims 1-7.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any of the preceding claims 1 to 7.
CN202211550949.XA 2022-12-05 2022-12-05 Alliance chain consensus method and device based on trust degree grading and terminal equipment Pending CN116074311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211550949.XA CN116074311A (en) 2022-12-05 2022-12-05 Alliance chain consensus method and device based on trust degree grading and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211550949.XA CN116074311A (en) 2022-12-05 2022-12-05 Alliance chain consensus method and device based on trust degree grading and terminal equipment

Publications (1)

Publication Number Publication Date
CN116074311A true CN116074311A (en) 2023-05-05

Family

ID=86182906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211550949.XA Pending CN116074311A (en) 2022-12-05 2022-12-05 Alliance chain consensus method and device based on trust degree grading and terminal equipment

Country Status (1)

Country Link
CN (1) CN116074311A (en)

Similar Documents

Publication Publication Date Title
WO2020205044A1 (en) Blockchain-based resource allocation method and apparatus
CN109376008A (en) A kind of distribution method and device of virtual resource
CN111383021A (en) Node management method, device, equipment and medium based on block chain network
CN109727132A (en) Acquisition methods, device, electronic equipment and the storage medium of block chain common recognition node
CN113518005B (en) Block consensus method, device, equipment and storage medium
CN113935835B (en) Transaction data processing method, device, equipment and storage medium
CN110505228B (en) Edge cloud architecture-based big data processing method, system, medium and device
EP3817333B1 (en) Method and system for processing requests in a consortium blockchain
CN110599144B (en) Network access method and device for blockchain nodes
CN111723159A (en) Data verification method and device based on block chain
CN110011960A (en) Data sharing method, system, server and readable storage medium storing program for executing based on block chain
CN112491900A (en) Abnormal node identification method, device, equipment and medium
CN111582935A (en) Block chain-based integral mutual identification method and system
Kaur et al. A novel blockchain model for securing IoT based data transmission
CN111680282B (en) Node management method, device, equipment and medium based on block chain network
CN112037055B (en) Transaction processing method, device, electronic equipment and readable storage medium
CN112181599A (en) Model training method, device and storage medium
CN116703601A (en) Data processing method, device, equipment and storage medium based on block chain network
CN116074311A (en) Alliance chain consensus method and device based on trust degree grading and terminal equipment
CN114978651B (en) Privacy calculation evidence-storing method and device, electronic equipment and storage medium
CN110619023A (en) Water source detection data chaining method and device of Internet of things by combining block chains
CN115913734A (en) User authority management method, device and equipment applied to alliance chain
CN113327169B (en) Claims settlement method and device based on block chain and electronic equipment
CN112039893B (en) Private transaction processing method and device, electronic equipment and readable storage medium
CN111369246A (en) Calling authentication method and device of intelligent contract, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination