Block chain network node trust evaluation method, system and device and medium

Through the elliptic curve digital signature algorithm and trust value calculation method, combined with time-sensitive functions and consensus mechanisms, the problem of inaccurate trust evaluation in edge networks is solved, efficient trust evaluation and dynamic trust management of blockchain network nodes are realized, and improved Assessment accuracy and timeliness.

CN118803797AInactive Publication Date: 2024-10-18INNER MONGOLIA UNIV OF TECH

Patent Information

Application Number
CN202410872654.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In edge networks, existing technologies cannot effectively implement trust assessment of blockchain network nodes, resulting in malicious devices possibly misleading the cloud control center through false information, leading to misjudgments and less objective and accurate trust assessments.

Method used

The elliptic curve digital signature algorithm is used for node verification, the direct and indirect trust values ​​of the nodes are calculated, and the comprehensive trust value is obtained through weighted addition. It combines the time-sensitive function and the trust-based consensus mechanism, and uses the blockchain to store and verify the trust evaluation results. , realize the timeliness and authenticity of trust value, and introduce trust decay and recovery mechanism.

Benefits of technology

It improves the accuracy and objectivity of trust assessment, reduces erroneous assessments caused by personal subjective judgment, ensures the timeliness and authenticity of trust values, and dynamically adjusts the trust values ​​of nodes through trust decay and recovery mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803797A_ABST
    Figure CN118803797A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of Internet of Things, and discloses a trust evaluation method, system and device for a block chain network node and a medium, and the method comprises the steps: carrying out the direct verification of a to-be-verified block chain network node through employing an elliptic curve digital signature algorithm; after the identity verification is passed, a key is generated and broadcasted to the whole network, and the timestamps of the opposite sides are checked; if the check is passed, starting to calculate the trust value of the evaluation node to the evaluated node; calculating a direct trust value and an indirect trust value of the node A to the node B; and respectively weighting and adding the direct trust value and the indirect trust value to obtain a comprehensive trust value. When the weights occupied by the direct trust and the indirect trust in the comprehensive trust value are calculated, in order to avoid the influence caused by subjective thoughts, a method for increasing the stability coefficient is provided, wrong evaluation caused by personal subjective judgment is effectively avoided, the influence caused by evaluation errors is reduced, and the calculated result is more objective and fair.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of Internet of Things, and specifically relates to a trust evaluation method, system, device and medium for blockchain network nodes. Background Art

[0002] At present, 5G technology and the Internet of Things have entered a period of rapid development. In the face of the challenge of massive data, traditional cloud computing can no longer meet the increasing computing needs, so edge computing is widely used under this condition. In addition, a large number of IoT devices are deployed in the edge network. These devices are used to collect user data, which will cause very serious trust issues in the process. In the process of data collection and transmission, there are some malicious devices that may interfere with normal operations through various malicious means, including but not limited to publishing false information, spreading harmful content, or causing partial data loss. Therefore, it is very important to select reliable nodes. Under normal circumstances, the trust evaluation system feedbacks information under the condition of collecting and analyzing the historical behavior of the node, and uses mathematical methods to predict the future behavior of the node. However, in real applications, some malicious devices may mislead the cloud control center by submitting false feedback information, causing it to make wrong judgments.

[0003] The patent application with the publication number CN116367163A and the name of the patent application is a consensus method for data sharing based on edge computing of the Internet of Vehicles, which includes collecting information and building data blocks; defining the factors affecting the trust value of shared data vehicles, and the trust value includes a reward mechanism and a penalty mechanism; giving a definition, applying an evaluation algorithm to evaluate the trust value of the vehicle; designing the proxy node election rules for edge nodes; and determining the consensus process plan for data sharing. Although this patent application evaluates the credibility of shared data, it cannot achieve an objective and accurate evaluation of the trust value. Summary of the invention

[0004] The purpose of the present invention is to provide a trust assessment method, system, device and medium for blockchain network nodes, which adopts a combination of edge computing and blockchain technology to propose a trust assessment model using edge computing and blockchain technology in a complex edge network. This method improves the accuracy of trust assessment, improves the trust value of each node in the network, and solves the problem of being unable to achieve objective and accurate trust assessment.

[0005] To achieve the above object, the technical solution adopted by the present invention is:

[0006] In a first aspect, the present invention provides a trust evaluation method for a blockchain network node, comprising:

[0007] S1: Use the elliptic curve digital signature algorithm to directly verify the blockchain network nodes that need to be verified;

[0008] S2: After the identity authentication is passed, a key is generated and broadcast to the entire network, and the other party's timestamp is checked; if the check is passed, the trust value of the evaluating node for the evaluated node is calculated. The evaluating node is a trusted node in the blockchain network, and the evaluated node is a node to be evaluated in the blockchain network;

[0009] S3: Calculate the direct trust value of node A for node B, where node A is the evaluation node and node B is the evaluated node;

[0010] S4: Calculate the indirect trust value of node A for node B;

[0011] S5: Weightedly add the direct trust value and the indirect trust value to obtain a comprehensive trust value.

[0012] Optionally, in step S2, the timestamp calculation formula is:

[0013]

[0014] Where T(t) is the trust value at time t, T 0 is the initial trust value, is the attenuation parameter.

[0015] Optionally, in step S3, the calculation formula of the direct trust value is:

[0016]

[0017] Where a is the number of successful interactions between node A and node B, b is the number of failed interactions between node A and node B, DT ab is the trust value of node A for node B;

[0018] In step S4, the calculation formula of the indirect trust value is:

[0019]

[0020] Among them, k is the neighbor node, T kB is the trust value of the neighboring node for the evaluated node, W k is the trust value of the neighbor node itself, T Ak is the direct trust value of node A to neighbor node k, n is the number of suitable neighbor nodes, IT AB is the indirect trust value of node A for node B.

[0021] Optionally, the comprehensive trust value calculation formula is:

[0022] Trust=D*φ+I*θ

[0023] Among them, Trust represents the comprehensive trust value, D represents the direct trust value, I represents the indirect trust value, φ is the weight of the direct trust value in the comprehensive trust value, θ is the weight of the indirect trust in the comprehensive trust value, and φ+θ=1.

[0024] Optionally, the method further includes step S6, wherein step S6 is specifically:

[0025] Broadcast the trust evaluation result obtained in step S5 to each node of the blockchain network;

[0026] Other nodes in the blockchain network store the results of this trust evaluation in their own blocks, sort the collected node information according to the trust value, and determine the node with the highest trust value;

[0027] All trust evaluation results are packaged by the node with the highest trust value. After packaging into its own block, it is broadcast to each node of the blockchain network with its own private key.

[0028] All other nodes in the blockchain network use the public key to verify the broadcast information; after verification, the block is recorded in the blockchain.

[0029] Optionally, the method further includes the step of adjusting the trust value of each node:

[0030] When a node has improper behavior or spreads false information in the blockchain network, other nodes will have less trust in the node; when a node loses or conceals some information during information dissemination, other nodes will have less trust in the node; when a node does not participate in the sharing and dissemination of information in the network for a period of time, it will be judged as a passive node, and other nodes will have less trust in the node;

[0031] By continuously performing well, completing tasks, and providing accurate data information, other nodes will increase their trust in the node. If a node actively participates in information sharing in the network and disseminates information comprehensively and correctly, other nodes will increase their trust in the node. If a node actively participates in interactions in the network and gradually becomes an active node, other nodes will increase their trust in the node.

[0032] Optionally, the method further comprises the step of querying the trust value of the node requesting interaction:

[0033] When querying the trust value, the requesting interacting node establishes a trust relationship with the requested node and accesses the requested node’s information;

[0034] The requested node checks the trust value information stored by itself to check whether there is any interaction record;

[0035] If there is an interaction record, the corresponding trust value will be returned to the requested node; if there is no interaction record, the neighbor node that interacts with itself will query the trust value record of the requesting interaction node to obtain an indirect trust value. Based on the trust value information found, it is determined whether to interact with the requesting interaction node. If it agrees to interact with the requesting interaction node, the trust value is calculated and a new trust relationship is established.

[0036] In a second aspect, the present invention provides a trust evaluation device for a blockchain network node, comprising:

[0037] A direct verification module is used to directly verify the blockchain network nodes that need to be verified using the elliptic curve digital signature algorithm;

[0038] The judgment module generates a key and broadcasts it to the entire network after the identity verification is passed, and checks the other party's timestamp; if the verification is passed, it starts to calculate the trust value of the evaluation node for the evaluated node, where the evaluation node is a trusted node in the blockchain network, and the evaluated node is a node to be evaluated in the blockchain network;

[0039] A direct trust value calculation module, used to calculate the direct trust value of node A for node B, wherein node A is an evaluation node and node B is an evaluated node;

[0040] An indirect trust value calculation module, used to calculate the indirect trust value of node A for node B;

[0041] The comprehensive trust value calculation module is used to perform weighted addition of the direct trust value and the indirect trust value to obtain a comprehensive trust value.

[0042] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the trust assessment method for the blockchain network node when executing the computer program.

[0043] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the trust assessment method for the blockchain network node are implemented.

[0044] Compared with the prior art, the present invention has the following beneficial effects:

[0045] The present invention provides a trust evaluation method combining edge computing with blockchain. By respectively evaluating the direct trust value and indirect trust value of node A for node B, it effectively avoids erroneous evaluations due to personal subjective judgments, reduces the impact of evaluation errors, and makes the calculation results more objective and fair.

[0046] Furthermore, the present invention adds a time-sensitive function and a trust-based consensus mechanism when calculating the trust value, which more effectively ensures the timeliness and authenticity of the obtained trust value.

[0047] Furthermore, the present invention adds methods for trust decay, trust recovery and trust value query. When a node loses part of the information or conceals part of the information during information transmission, the trust of other nodes in the node decreases. When a node does not participate in the sharing and transmission of information in the network for a period of time, it is judged as a passive node, so that the node can better update the trust value information and make an accurate judgment on whether to interact. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The drawings described herein are for illustration purposes only and are not intended to limit the scope of the present disclosure in any way.

[0049] Figure 1 This is a structural diagram of the cloud edge and zone combined blockchain of the present invention.

[0050] Figure 2 It is a trust evaluation flow chart of the present invention.

[0051] Figure 3 This is a flow chart of the trust-based consensus mechanism of the present invention.

[0052] Figure 4 This is a flow chart of the trust value query method. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0054] The present invention is described in detail below with reference to the accompanying drawings.

[0055] like Figures 1 to 4 The trust evaluation method of a blockchain network node of the present invention shown includes the following steps:

[0056] S1: Use the Elliptic Curve Digital Signature Algorithm (ECDSA) to directly verify the node to be verified;

[0057] Randomly select a private key in the range of 1 to n, input the private key into the generator of the elliptic curve subgroup, and multiply it with the base point of the elliptic curve subgroup to obtain the public key; use the hash function to calculate the hash value h of the message to be signed; select a random number k, use the random number k to locate a random point R on the elliptic curve, and record the x-coordinate r of this point; the signature proof calculation formula is:

[0058] s=k -1 *(h+r*d)(mod n)

[0059] Among them, s is the signature proof, k is a random number, h is the hash message, and r is the x-coordinate of the elliptic curve point.

[0060] S2: After the identity authentication is passed, a key is generated and broadcast to the entire network to check the other party's timestamp; if the check is passed, the trust value of the evaluating node for the evaluated node is calculated; the evaluating node is the trusted node in the blockchain network, and the evaluated node is the node to be evaluated in the blockchain network;

[0061] S3: Calculate the direct trust value of node A for node B, where node A is the evaluation node and node B is the evaluated node. The calculation formula for the direct trust value is:

[0062]

[0063] Where a is the number of successful interactions between node A and node B, b is the number of failed interactions between node A and node B, DT ab is the trust value of node A for node B;

[0064] S4: Calculate the indirect trust value of node A for node B:

[0065]

[0066] Among them, k is the neighbor node, T kB is the trust value of the neighboring node for the evaluated node, W k is the trust value of the neighbor node itself, T Ak is the direct trust value of node A to neighbor node k, n is the number of suitable neighbor nodes, IT AB is the indirect trust value of node A to node B;

[0067] S5: Weightedly add the direct trust value and the indirect trust value to obtain a comprehensive trust value.

[0068] The trust evaluation method of the present invention can avoid erroneous evaluation caused by personal subjective judgment and reduce the impact caused by evaluation errors by respectively evaluating the direct trust value and indirect trust value of node A to node B.

[0069] Example 1

[0070] In this embodiment, the cloud-edge network architecture is first built and combined with the blockchain. Figure 1 As shown in Figure 1, the cloud-edge-end architecture is divided into three layers: cloud layer, edge layer, and terminal layer. The terminal layer is responsible for collecting data and uploading it to the edge layer. The edge nodes in the edge layer are divided into two categories: one is the blockchain network composed of trustworthy nodes, and the other is nodes that have not passed verification and have not joined the blockchain. The nodes in the blockchain process and analyze the data and then upload it to the cloud layer. The blockchain nodes in the cloud layer use their own powerful computing power to handle the complex calculations. The data is then transferred to the edge layer, and edge computing is used to improve the response speed.

[0071] Based on the distributed edge computing IoT architecture of blockchain, a trust evaluation model is established to perform trust evaluation and subsequent trust value calculation on nodes in the edge network. The specific method is as follows:

[0072] When a node enters the network for the first time, the node's identity is verified and the ID trust value is checked;

[0073] If the identity authentication is successful, a key is generated and broadcast to the entire network, and then the other party's timestamp is checked;

[0074] If the timestamp is verified, the trust value of the evaluating node for the evaluated node will be calculated. When calculating the trust value, a time-sensitive function and a trust-based consensus mechanism are introduced.

[0075] The specific steps are as follows:

[0076] The present invention uses the elliptic curve digital signature algorithm for direct verification. Assuming there are two nodes A and B, node A is the evaluation node and node B is the evaluated node, then the process of node A authenticating node B is as follows:

[0077] In the key generation phase, the prover node B randomly selects a private key d in the range of 1 to n, and then calculates the public key using the following formula:

[0078] Q=d*g

[0079] Where Q is the public key, d is the private key, and g is the generator (base point) of the elliptic curve subgroup.

[0080] During the signature generation phase, the prover uses the SHA256 hash function to calculate the hash value h of the message m to be signed.

[0081] h=H(m)

[0082] The prover selects a random number k from the range of n-1, then uses the random number he selected to locate a random point R on the elliptic curve and records the x-coordinate r of this point.

[0083] r=Rx

[0084] R=k*g

[0085] The signature proof is calculated using the following formula:

[0086] s=k -1 *(h+r*d)(mod n)

[0087] Where s is the signature proof, k is a random number, h is the hash message, and r is the x-coordinate of the elliptic curve point.

[0088] The random point at r and the signature proof s form a signature (r, s), which is concatenated with the message m and forwarded to the verifier A. If one of r and s is 0, a random number k is reselected from the range of n-1.

[0089] After receiving the message m and the signature value (r, s), verifier A performs the following calculation:

[0090] s1=s -1 (mod n)

[0091] Where s1 is the modular inverse of s.

[0092] The position of a random point R′ on the curve is calculated using the following formula:

[0093] R′=(h*s1)*g+(r*s1)*Q

[0094] Finally, r′ is calculated to determine whether r′ is equal to r. If they are equal, the identity authentication is successful.

[0095] r′=R′.x

[0096] Where r′ is the x coordinate of the random point R′.

[0097] After the identity verification is passed, the key is generated and broadcast to the entire network, and then the other party’s timestamp is checked. If the check is passed, the comprehensive trust value of the evaluating node for the evaluated node is calculated.

[0098] The comprehensive trust value is divided into two parts: direct trust and indirect trust.

[0099] At the same time, there are three situations in these trust relationships: trust, distrust and uncertainty, which are represented by α, β and γ respectively. We set α+β+γ=1 according to the situation.

[0100] During the calculation process, this embodiment adds a time-sensitive function, as shown below:

[0101]

[0102] Where T(t) represents the trust value at time t, T 0 represents the initial trust value, Represents the attenuation parameter, which is determined according to the application scenario of the actual problem.

[0103] The trust value is calculated based on historical interaction records and decays as time goes by.

[0104] In this embodiment, the number of successful and failed interactions between nodes A and B are a and b respectively, direct trust is represented by D, and the trust value of node A for node B is represented by DT ab , which follows the β distribution, so DT ab ~β(a+1, b+1), from which we can get the direct trust value of node A for node B:

[0105]

[0106] When the direct trust value is not sufficient to fully express the trust relationship between each other, an indirect trust calculation method is needed.

[0107] In the calculation of indirect trust value, the node adopts a special calculation method, the specific steps of which include:

[0108] First, we need to find the neighboring nodes of the evaluated node and perform a direct trust evaluation on this node. Then we need to obtain the trust value of the neighboring nodes for the evaluated node. The obtained trust value can be used as an indirect trust value. It is calculated according to the following formula:

[0109]

[0110] Among them, IT AB is the indirect trust value of node A for node B, k is the neighbor node, T kB is the trust value of neighbor node k for the evaluated node B, W k is the trust value of neighbor node k itself, T Ak is the direct trust value of node A to neighbor node k, where W k ≠T Ak , n is the number of suitable neighbor nodes.

[0111] The comprehensive trust value is calculated according to the following formula:

[0112] Trust=D*φ+I*θ

[0113] Among them, Trust represents the comprehensive trust value, D represents the direct trust value, I represents the indirect trust value, φ represents the weight of the direct trust value in the comprehensive trust value, and θ represents the weight of the indirect trust in the comprehensive trust value.

[0114] Where φ+θ=1. The values ​​of φ and θ need to be set according to the actual situation. In different real-world application scenarios, the requirements for trust values ​​are different, so the weights are also different. In the traditional relatively stable static weight setting algorithm, it is mainly determined based on experience. Optionally, φ and θ are both fixed to 0.5.

[0115] Since trust is subjective, different evaluators will have different subjective opinions about the same person being evaluated based on their own judgment, which will lead to different proportions of the calculated direct trust value and indirect trust value in the final comprehensive trust value.

[0116] Therefore, the present invention proposes a method of adding a stability coefficient based on the fact that the evaluators have different reference standards. The specific steps are as follows:

[0117] First set the stability factor η is the standard deviation of the trust value, ε is the average of the trust value, and the larger the value of S is, the larger the difference in the trust value is, that is, the worse the stability is; conversely, the better the stability is. The weight calculation formula of φ and θ is as follows:

[0118]

[0119] Among them, S D and S I They represent the stability coefficients of direct trust value and indirect trust value respectively.

[0120] According to the above formula, when the stability of the direct trust value is poor, the weight of the indirect trust value is larger, that is, the evaluation node is more inclined to the judgment of other nodes on the evaluated node; when the stability of the indirect trust value is poor, the weight of the direct trust value is larger, that is, the evaluation node is more inclined to its own subjective judgment.

[0121] Example 2

[0122] This embodiment also adds a trust-based consensus mechanism (Proof of Trust, PoT) when calculating the trust value. This mechanism is based on the trust value. Figure 3 As shown, the specific steps are as follows:

[0123] First, after both parties complete identity verification, the evaluator conducts a trust assessment on the person being evaluated and broadcasts the assessment results to the entire network.

[0124] Secondly, other nodes in the network will store this message in their own blocks, and then sort the information they have collected according to the trust value to obtain the node with the highest trust value.

[0125] Again, the node will package all the evaluation information into its own block and broadcast it to the entire network using its own private key.

[0126] All other nodes then verify the message using the public key.

[0127] Finally, after verification, the block is recorded in the blockchain.

[0128] In the trust-based consensus mechanism, the present invention adds a trust value decay and recovery method. This is an important content, especially when facing a large number of nodes in the Internet of Things, it can effectively respond to changes in the trust value of the node.

[0129] Trust decay refers to a period of time when a node participates in some malicious events, which leads to the node engaging in some malicious behavior. The specific behaviors are as follows:

[0130] Negative events: When a node behaves improperly or spreads false information in the network, other nodes will have less trust in the node.

[0131] Information loss: When a node loses or conceals some information during information transmission, other nodes will have less trust in the node.

[0132] Long-term inactivity: When the node does not participate in the sharing and dissemination of information in the network for a period of time, it will be judged as a passive node, which will also cause other nodes to have a lower level of trust in the node.

[0133] In view of the above trust decay situation, the present invention has formulated the following method for restoring trust value, the specific contents are as follows:

[0134] Trust building: Nodes reestablish trust by continuing to perform well, completing tasks, and providing accurate data information.

[0135] Information sharing: The node actively participates in information sharing in the network and disseminates information in a comprehensive and correct manner.

[0136] Participation in activities: The node actively participates in interactions in the network, collects and records information, and gradually becomes an active node.

[0137] Trust decay and recovery are important parts of the trust consensus mechanism process, affecting the interaction of nodes in the network and the stability of direct and indirect trust in calculating trust values.

[0138] In addition, the present invention also adds a trust value query method. Before the two nodes interact, the evaluating node can actively query the trust value of the evaluated node. Figure 4 As shown, the query method is as follows:

[0139] Assume that there are two nodes A and B. A is the requesting node and B is the requested node. Node A requests to interact with B, that is, to establish a trust relationship with B and access B's information.

[0140] Before agreeing to the interaction request, B first queries the trust value and checks the trust value information stored by itself to see if there is any previous interaction record.

[0141] If yes, the corresponding trust value will be returned to node B; if no, the trust value record of node A for the neighboring node interacting with itself will be queried to obtain the indirect trust value.

[0142] According to the found trust value information, determine whether to interact with node A.

[0143] If you agree to interact with A, the trust value is calculated and a new trust relationship is established.

[0144] Example 3

[0145] Based on a trust evaluation method for a blockchain network node in Example 1, a trust evaluation device for a blockchain network node is disclosed, including:

[0146] A direct verification module is used to directly verify the node to be verified using the elliptic curve digital signature algorithm;

[0147] The judgment module is used to generate a key and broadcast it to the entire network after the identity authentication is passed, and check the other party's timestamp; if it passes, it starts to calculate the trust value of the evaluating node for the evaluated node;

[0148] The direct trust value calculation module is used to calculate the direct trust value of node A for node B:

[0149]

[0150] Where a is the number of successful interactions between node A and node B, b is the number of failed interactions between node A and node B, DT ab is the trust value of node A for node B;

[0151] The indirect trust value calculation module is used to calculate the indirect trust value of node A for node B:

[0152]

[0153] Among them, IT AB is the indirect trust value of node A for node B, k is the neighbor node, T kB is the trust value of neighbor node k for the evaluated node B, W k is the trust value of neighbor node k itself, T Ak is the direct trust value of node A to neighbor node k, where W k ≠T Ak , n is the number of suitable neighbor nodes;

[0154] The comprehensive trust value calculation module is used to perform weighted addition of the direct trust value and the indirect trust value to obtain a comprehensive trust value.

[0155] Example 4

[0156] The purpose of this embodiment is to provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the trust assessment method for blockchain network nodes mentioned in Embodiment 1 are implemented.

[0157] Example 5

[0158] The purpose of this embodiment is to provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the trust assessment method of the blockchain network node are implemented.

[0159] The steps involved in the devices of the above embodiments 3, 4 and 5 correspond to those of the method embodiment 1. For the specific implementation methods, please refer to the relevant description part of embodiment 1.

[0160] The present invention provides an identity authentication method, a signature certification method, a trust value calculation method, a trust-based consensus mechanism, a trust decay and recovery method, and a trust value query method. A trust evaluation model is established through a technical solution combining edge computing and blockchain. Based on the trust value, data is collected from trusted nodes, and a time-sensitive function is introduced to perform more detailed optimization in calculating the trust value, thereby improving the accuracy of the model in trust evaluation of nodes.

[0161] In addition, the present invention combines the characteristics of edge computing and blockchain, and uses this method to perform trust assessment on edge devices. The level of the assessment result can determine the authority of the edge device, thereby reducing the risks brought by malicious edge devices.

[0162] It should be understood by those skilled in the art that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0163] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0164] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0165] Unless otherwise specified, the working modes or control modes involved in the above embodiments are all conventional working modes or control modes in the art.

[0166] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Other modifications or equivalent substitutions made to the technical solution of the present invention by ordinary technicians in the field should be included in the scope of the claims of the present invention as long as they do not depart from the spirit and scope of the technical solution of the present invention.

Claims

1. A trust evaluation method for a blockchain network node, characterized in that: include: S1: Use the elliptic curve digital signature algorithm to directly verify the blockchain network nodes that need to be verified; S2: After the identity authentication is passed, a key is generated and broadcast to the entire network, and the other party's timestamp is checked; if the check is passed, the trust value of the evaluating node for the evaluated node is calculated. The evaluating node is a trusted node in the blockchain network, and the evaluated node is a node to be evaluated in the blockchain network; S3: Calculate the direct trust value of node A for node B, where node A is the evaluation node and node B is the evaluated node; S4: Calculate the indirect trust value of node A for node B; S5: Weightedly add the direct trust value and the indirect trust value to obtain a comprehensive trust value.

2. The trust evaluation method for blockchain network nodes according to claim 1, characterized in that: In step S2, the timestamp calculation formula is: Among them, T(t) is the trust value at time t, T0 is the initial trust value, is the attenuation parameter.

3. The trust evaluation method for blockchain network nodes according to claim 1, characterized in that: In step S3, the calculation formula of the direct trust value is: Where a is the number of successful interactions between node A and node B, b is the number of failed interactions between node A and node B, DT ab is the trust value of node A for node B; In step S4, the calculation formula of the indirect trust value is: Among them, k is the neighbor node, T kB is the trust value of the neighboring node for the evaluated node, W k is the trust value of the neighbor node itself, T Ak is the direct trust value of node A to neighbor node k, n is the number of suitable neighbor nodes, IT AB is the indirect trust value of node A for node B.

4. The trust evaluation method for blockchain network nodes according to claim 3 is characterized in that: The comprehensive trust value calculation formula is: Trust=D*φ+I*θ Among them, Trust represents the comprehensive trust value, D represents the direct trust value, I represents the indirect trust value, φ is the weight of the direct trust value in the comprehensive trust value, θ is the weight of the indirect trust in the comprehensive trust value, and φ+θ=1.

5. The trust evaluation method for blockchain network nodes according to claim 1, characterized in that: The method further comprises step S6, wherein step S6 is specifically: Broadcast the trust evaluation result obtained in step S5 to each node of the blockchain network; Other nodes in the blockchain network store the results of this trust evaluation in their own blocks, sort the collected node information according to the trust value, and determine the node with the highest trust value; All trust evaluation results are packaged by the node with the highest trust value. After packaging into its own block, it is broadcast to each node of the blockchain network with its own private key. All other nodes in the blockchain network use the public key to verify the broadcast information; after verification, the block is recorded in the blockchain.

6. The trust evaluation method for blockchain network nodes according to claim 5 is characterized in that: The method also includes the step of adjusting the trust value of each node: When a node has improper behavior or spreads false information in the blockchain network, other nodes will have less trust in the node; when a node loses or conceals some information during information dissemination, other nodes will have less trust in the node; when a node does not participate in the sharing and dissemination of information in the network for a period of time, it will be judged as a passive node, and other nodes will have less trust in the node; By continuously performing well, completing tasks, and providing accurate data information, other nodes will increase their trust in the node. If a node actively participates in information sharing in the network and disseminates information comprehensively and correctly, other nodes will increase their trust in the node. If a node actively participates in interactions in the network and gradually becomes an active node, other nodes will increase their trust in the node.

7. The trust evaluation method for blockchain network nodes according to claim 5, characterized in that: The method also includes the step of querying the trust value of the node requesting interaction: When querying the trust value, the requesting interacting node establishes a trust relationship with the requested node and accesses the requested node’s information; The requested node checks the trust value information stored by itself to check whether there is any interaction record; If there is an interaction record, the corresponding trust value is returned to the requested node; If there is no interaction record, the neighbor node that interacts with itself will query the trust value record of the requesting interaction node to obtain the indirect trust value. Based on the trust value information found, it is determined whether to interact with the requesting interaction node. If it agrees to interact with the requesting interaction node, the trust value is calculated and a new trust relationship is established.

8. A trust evaluation device for a blockchain network node, characterized in that: include: A direct verification module is used to directly verify the blockchain network nodes that need to be verified using the elliptic curve digital signature algorithm; The judgment module generates a key and broadcasts it to the entire network after the identity authentication is passed, and checks the other party's timestamp; If the check is passed, the trust value of the evaluating node for the evaluated node will be calculated. The evaluating node is the trusted node in the blockchain network, and the evaluated node is the node to be evaluated in the blockchain network. A direct trust value calculation module, used to calculate the direct trust value of node A for node B, wherein node A is an evaluation node and node B is an evaluated node; An indirect trust value calculation module, used to calculate the indirect trust value of node A for node B; The comprehensive trust value calculation module is used to perform weighted addition of the direct trust value and the indirect trust value to obtain a comprehensive trust value.

9. An electronic device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the trust assessment method for a blockchain network node as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the trust assessment method for a blockchain network node according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Block chain-based edge computing terminal security access authentication method

    CN114598521A

Cited By

  • Trust management method and system of intelligent water conservancy all-in-one machine based on double-layer block chain

    CN120301627A

  • Trust Management Method and System for Smart Water Conservancy Integrated Machine Based on Two-Layer Blockchain

    CN120301627B

  • System, method, device, and medium for calculating trust scores for OT assets

    WO2026156883A1