Hierarchical node trust evaluation method and system for multi-class on-chain social relationship

By employing a hierarchical node trust assessment method, combined with multi-type trust calculation sub-models and dynamic weight adjustment, the issues of differentiation and flexibility in blockchain node trust assessment are resolved, enabling accurate trust assessment and fine-grained permission management for various social relationships.

CN123179374APending Publication Date: 2026-11-27HANGZHOU YUNXIANG NETWORK TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611395400.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing blockchain node trust assessment methods are ill-suited to the diversification of node behavior and the complexity of interaction scenarios. They fail to accurately reflect the trustworthiness of different types of social relationships and lack a direct mapping mechanism with access control policies, resulting in assessments that are neither comprehensive nor flexible.

Method used

A hierarchical node trust assessment method is adopted. By acquiring the historical interaction behavior data and identity authentication status of nodes, a basic trust score is constructed. The weights are calculated based on forwarding rate, integrity, latency, energy factor and entropy weight method. Combined with five types of trust calculation sub-models, the weights are dynamically adjusted to achieve differentiated trust assessment and fine-grained permission management.

Benefits of technology

It enables differentiated trust assessment of various types of on-chain social relationships, dynamically adjusts weights, supports fine-grained permission management, reduces the impact of Sybil attacks and conspiracy attacks, and improves the accuracy and flexibility of assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179374A_ABST
    Figure CN123179374A_ABST
Patent Text Reader

Abstract

The application discloses a kind of layered node trust evaluation methods and systems for multi-class on-chain social relationship.The method comprises: obtaining the historical interaction behavior and identity authentication state of node, calculating basic trust score;Interpretation interaction request to identify social relationship type, call corresponding trust calculation sub-model to obtain scene trust score;Statistical node in preset time window within transaction, consensus, editing behavior frequency, calculate the weight of each type of behavior;Combine basic trust score, scene trust score, editing trust score and behavior weight to solve comprehensive trust score, map to trust level and allocate node access rights accordingly.The application combines layered evaluation architecture and scene differentiation calculation, introduces editing behavior independent evaluation dimension and dynamic weighting mechanism, improves the accuracy and flexibility of trust evaluation, and is suitable for multi-participant, multi-interaction scene blockchain data sharing system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of blockchain data security technology, specifically relating to a hierarchical node trust assessment method and system for various types of on-chain social relationships. Background Technology

[0002] With the deep application of blockchain technology in areas such as data sharing, supply chain collaboration, and financial transactions, node trust assessment in blockchain networks faces the dual challenges of diversified node behavior and complex interaction scenarios. Traditional node trust assessment methods typically rely on direct interaction history or recommendation mechanisms for trust calculation, depending on relatively fixed assessment standards and static weight allocation, making it difficult to adapt to dynamic changes in node behavior.

[0003] However, with the increasing diversity of participating node types and the growing frequency of cross-business interactions, the interaction relationships within blockchain systems have expanded from a single person-to-person model to a complex landscape encompassing various social relationships, including enterprise-to-person, enterprise-to-enterprise, government-to-enterprise, and government-to-person. Against this backdrop, how to implement differentiated trust assessments for different types of social relationships and dynamically adjust permission policies based on node behavioral characteristics has become a key issue facing current blockchain node trust management.

[0004] Existing node trust assessment methods in blockchain environments, such as the PeerTrust model, calculate node trust levels based on factors like satisfaction feedback, historical transaction volume, and feedback credibility. However, they still have the following shortcomings: First, these methods typically employ a uniform trust assessment model, failing to adequately consider the differentiated needs of various social relationship scenarios and thus struggling to accurately reflect the trustworthiness of nodes in different interaction scenarios. Second, the trust values ​​output by existing methods are continuous numerical values, lacking a direct mapping mechanism with access control policies, and thus failing to meet the needs of fine-grained node permission management. Furthermore, the weights of transaction trust, consensus trust, and editing trust in existing methods are mostly preset fixed values. When node behavior patterns change, these fixed weights cannot promptly reflect the overall trustworthiness of the node. Simultaneously, existing methods generally focus on assessing the trustworthiness of transaction and consensus behaviors, rarely considering on-chain data editing as an independent trust assessment dimension. This limited assessment of the trustworthiness of on-chain data editing behavior leads to an incomplete evaluation of nodes responsible for data maintenance. Summary of the Invention

[0005] To address the aforementioned technical problems, this invention provides a hierarchical node trust assessment method and system for various types of on-chain social relationships.

[0006] A hierarchical node trust assessment method for multiple types of on-chain social relationships includes the following steps: Obtain historical interaction data and identity authentication status of nodes, and calculate a basic trust score; Obtain the current interaction request and parse it to identify the social relationship type; Based on the type of social relationship, the corresponding trust calculation sub-model is invoked to calculate the scene trust score; The node behavior data within a preset time window is statistically analyzed and the node behavior weight is calculated. The node behavior data includes the number of transaction behaviors, the number of consensus behaviors, and the number of editing behaviors. The node behavior weight includes the transaction behavior weight, the consensus behavior weight, and the editing behavior weight. Obtain the node's editing behavior history and calculate the editing trust score; A comprehensive trust score is calculated based on the basic trust score, the scene trust score, the node's editing trust score, and the node's behavior weight. The comprehensive trust score is mapped to a preset trust level, and the access permissions of the node are determined based on the trust level.

[0007] As one possible implementation, obtaining the historical interaction behavior data and identity authentication status of nodes and calculating a basic trust score includes the following steps: Collect historical interaction data of the nodes and calculate the forwarding rate factor, integrity factor, latency factor and energy factor respectively; The observation data of the forwarding rate factor, integrity factor, latency factor and energy factor of the node within the preset historical time window are obtained, and the weight coefficient of each factor is calculated by the entropy weight method. Obtain the node's authentication level and determine the authentication quantification factor based on the authentication level; The basic trust score is calculated by weighted summation using forwarding rate factor, integrity factor, latency factor, energy factor, identity authentication quantification factor, and their corresponding weight coefficients, as shown below:

[0008] in, Based on trust score, Forwarding rate factor As an integrity factor, For the time delay factor, As an energy factor, As a quantification factor for identity authentication, , , , , These are the weighting coefficients calculated using the entropy weighting method.

[0009] As one possible implementation, obtaining the current interaction request and parsing to identify the social relationship type includes the following steps: Parse the current interaction request to obtain the initiator node identifier and the receiver node identifier; Based on the initiator node identifier and the receiver node identifier, query the node registration information stored on the blockchain to determine the initiator node type and the receiver node type, which include individual users, enterprise users and government users; The social relationship type is determined based on the combination of the initiator node type and the receiver node type.

[0010] As one possible implementation, the step of calculating the scenario trust score by calling the corresponding trust calculation sub-model based on the identified social relationship type includes the following steps: If the social relationship type is person-to-person, then obtain the set of evaluation nodes that have direct historical interactions with the current node, calculate the behavioral similarity between each evaluation node and the current node using the cosine similarity method, and obtain the direct trust score by combining the historical interaction score; obtain the set of candidate recommendation nodes that have common neighbor relationships with the current node and filter them by the number of historical interactions to obtain the set of recommendation nodes, and calculate the recommendation trust score based on the recommendation evaluation of each recommendation node; calculate the person-to-person scenario trust score based on the direct trust score and the recommendation trust score, as follows:

[0011] in, Assigning a trust score to individuals in a personal setting. For direct trust points, To recommend a trust score, , Preset weighting coefficients; If the social relationship type is business-to-person, then a transaction trust score is obtained based on the number of successful transactions and the total number of transactions in the node's historical transactions, and a service trust score is obtained based on the node's historical complaint rate. The business-to-person scenario trust score is calculated using the transaction trust score and the service trust score, as follows:

[0012] in, Assess the trust level between businesses and individuals in personal settings. As a trust score for transactions, To serve trust scores, , Preset weighting coefficients; If the social relationship type is business-to-business, then an off-chain data acquisition mechanism based on oracles is used to obtain institutional trust scores and cooperation trust scores. Based on the institutional trust scores and cooperation trust scores, the business-to-business scenario trust score is calculated, as follows:

[0013] in, Assess the trust level between businesses and their respective business scenarios. As a score for trust in the system, To build trust in cooperation, , Preset weighting coefficients; If the social relationship type is government-to-enterprise, a compliance trust score is obtained using an oracle-based off-chain data acquisition mechanism. The government-to-enterprise scenario trust score is then calculated based on the compliance trust score and the basic trust score, as shown below:

[0014] in, As a measure of government trust in enterprise scenarios, For compliance trust score, , Preset weighting coefficients; If the social relationship type is government-to-individual, then the identity trust score is determined based on the node's real-name authentication level and the number of qualification authentications, and the behavior trust score is determined based on the node's historical compliance rate and timeliness in government services. The government-to-individual scenario trust score is calculated based on the identity trust score and the behavior trust score, as follows:

[0015] in, As a measure of government trust in personal scenarios, For identity trust score, Assign trust scores based on behavior. , These are preset weighting coefficients.

[0016] As one possible implementation, the statistical analysis of node behavior data within a preset time window and the calculation of node behavior weights include the following steps: Collect all behavior logs of the node within the preset time window, with the current time as the endpoint; The behavior logs are categorized and statistically analyzed according to behavior type to obtain the number of transaction behaviors, the number of consensus behaviors, and the number of edit behaviors. Based on the proportions of the number of transactions, consensus actions, and edit actions, the weights of the transactions, consensus actions, and edit actions are calculated respectively, as follows:

[0017]

[0018]

[0019] in, For the weight of the transaction, For consensus behavior weights, To edit the behavior weights, For the number of transactions, For the number of consensus actions, Number of edit actions.

[0020] As one possible implementation, the method of calculating the behavioral similarity between each evaluation node and the current node using the cosine similarity method, and combining it with historical interaction scores to obtain a direct trust score, includes the following steps: Get the set of evaluation nodes that have direct historical interactions with the current node; For each evaluation node in the set of evaluation nodes, obtain the historical interaction score of that evaluation node for the current node from the historical interaction records stored on the blockchain; The cosine similarity method is used to calculate the behavioral similarity between each evaluation node and the current node, as shown below:

[0021] in, For evaluation nodes With nodes Behavioral similarity, and Evaluation nodes and nodes The rating of the kth common interaction object; Based on behavioral similarity As a weight, for the evaluation node For nodes The direct trust score is calculated by weighting the historical interaction ratings and is represented as follows:

[0022] in, For direct trust points, For the evaluation node set, For evaluation nodes For the current node Historical interaction ratings.

[0023] As one possible implementation, obtaining a set of candidate recommended nodes that share common neighbor relationships with the current node and filtering them through historical interaction counts to obtain a set of recommended nodes, and calculating a recommendation trust score based on the recommendation evaluation of each recommended node, includes the following steps: Obtain the set of candidate recommendation nodes that share common neighbor relationships with the node; Obtain the historical interaction count between each candidate node and the current node, and select candidate recommended nodes whose historical interaction count reaches a preset threshold from the candidate recommended node set to form a recommended node set; Obtain the recommendation evaluation of the current node from each recommendation node in the recommended node set, and calculate the recommendation trust score using the arithmetic mean method, as shown below:

[0024] in, To recommend a trust score, This is the set of recommended nodes after filtering. Recommended nodes For the current node Recommendations and reviews.

[0025] As one possible implementation, obtaining the editing behavior history of a node and calculating an editing trust score includes the following steps: Obtain the node's editing behavior history, which includes the number of successful edits, the total number of edits, and the rate at which edits were rejected or disputed; Based on the number of successful edits in history, the total number of edits in history, and the rejection or dispute ratio, the editor trust score is calculated as follows:

[0026] in, To earn trust points from editors, For historical edit counts, For the number of times the history editor-in-chief, The rate at which edited content is rejected or disputed.

[0027] As one possible implementation, a comprehensive trust score is calculated based on the basic trust score, the scene trust score, the node's editing trust score, and the node's behavior weight, including the following steps: A comprehensive trust score is calculated based on the basic trust score, the scenario trust score, the editing trust score, and the transaction behavior weight, consensus behavior weight, and editing behavior weight, as follows:

[0028] in, To assess overall trust level, Based on trust score, Assess trust in the scenario. To earn trust points from editors, 、 、 These are the weights for transaction behavior, consensus behavior, and editing behavior, respectively.

[0029] As one possible implementation, mapping the comprehensive trust score to a preset trust level and determining the node's access permissions based on the trust level includes the following steps: Multiple trust levels are preset, and each trust level corresponds to a different comprehensive trust score range; The calculated overall trust score is compared with each trust score interval to determine the corresponding trust level; Based on the trust level, the access permissions of the node are determined according to the preset permission rules, and different trust levels correspond to different sets of operation permissions.

[0030] A hierarchical node trust assessment system for multiple types of on-chain social relationships includes: The basic trust assessment module is used to calculate a basic trust score based on the node's historical interaction behavior data and identity authentication status; The scene recognition module is used to parse the current interaction request and identify the type of social relationship; A relationship adaptation module is connected to the scene recognition module. The relationship adaptation module has a built-in trust calculation sub-model that corresponds one-to-one with the social relationship type, which is used to calculate the scene trust score. The dynamic weight calculation module is used to count the number of transactions, consensus actions, and editing actions of a node within a preset time window, and to calculate the weight of each transaction, consensus action, and editing action. The comprehensive evaluation module is connected to the basic trust evaluation module, the relationship adaptation module, and the dynamic weight calculation module, respectively, and is used to receive the basic trust score, the scenario trust score, and each weight, and calculate the comprehensive trust score by combining the node's editing trust score; The permission mapping module, connected to the comprehensive evaluation module, is used to map the comprehensive trust score to a preset trust level and determine the access permissions of the node based on the trust level.

[0031] This invention, by adopting the above technical solutions, has significant technical effects: (1) A basic trust score is constructed by acquiring the historical interaction behavior and identity authentication status of nodes. Based on the historical interaction behavior data of four dimensions, namely forwarding rate factor, integrity factor, latency factor and energy factor, the entropy weight method is used to objectively determine the weight of each factor, so that the calculation of the basic trust score is more comprehensive and objective, and the evaluation bias caused by subjective weighting is avoided. (2) By building five types of trust calculation sub-models, differentiated trust assessment for different social relationship scenarios is realized. Each sub-model sets differentiated assessment factors and weight configurations according to the trust characteristics of the corresponding scenario, so that the assessment results are closer to the actual trust needs of various interaction scenarios. (3) The weights α, β, and γ are dynamically calculated based on the proportion of transaction behavior, consensus behavior, and editing behavior of the node within the time window, so that the weight of the trust score in each dimension in the comprehensive evaluation matches the actual behavior characteristics of the node, thus solving the problem of insufficient adaptability of fixed weights when the node behavior pattern changes. (4) A three-level mapping mechanism from trust score to trust level to permission rules is established to create a direct linkage channel between trust assessment results and access control policies, supporting fine-grained node permission management based on trust level. (5) In the calculation of recommendation trust score in the personal-to-person scenario, only the recommendation evaluation of common neighbor nodes that have had direct historical interaction with the target node for no less than the preset interaction number threshold is adopted. By setting the interaction number threshold, the interference of Sybil attack and collusion attack on recommendation trust evaluation is effectively reduced. Attached Figure Description

[0032] Figure 1 This is a flowchart illustrating the trust assessment method of the present invention; Figure 2 This is a diagram showing the overall architecture of the trust assessment system of this invention. Detailed Implementation

[0033] To clearly illustrate the present invention and make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, so that those skilled in the art can implement them based on the description.

[0034] In the context of this invention, the types of blockchain social relationships involved include five scenarios: C2C (consumer-to-consumer), B2C (business-to-consumer), B2B (business-to-business), G2B (government-to-business), and G2C (government-to-consumer). Their basic meanings are known to those skilled in the art. The edit trust score refers to a quantifiable value of trustworthiness based on operations performed by nodes on the chain, such as data editing, smart contract updates, and metadata modification. The entropy weight method is a multi-index weighting method based on information entropy. Its basic principles are known to those skilled in the art, but those skilled in the art will understand how to apply this technology in this context after reading this application, and will clearly understand the novelty of this technology combined with other features in a specific scenario.

[0035] The technical solution of the present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.

[0036] Example 1: like Figure 1 As shown, the hierarchical node trust assessment method for multiple types of on-chain social relationships provided by this invention includes the following steps: S100: Obtain the historical interaction behavior data and identity authentication status of the node, and calculate the basic trust score; S200: Obtain the current interaction request and parse and identify the social relationship type; S300. Based on the type of social relationship, call the corresponding trust calculation sub-model to calculate the scene trust score; S400. Statistically analyze the node behavior data within a preset time window and calculate the node behavior weight. The node behavior data includes the number of transaction behaviors, the number of consensus behaviors, and the number of editing behaviors. The node behavior weight includes the transaction behavior weight, the consensus behavior weight, and the editing behavior weight. S500: Obtain the historical editing behavior of nodes and calculate the editing trust score; S600. A comprehensive trust score is calculated based on the basic trust score, the scene trust score, the node's editing trust score, and the node's behavior weight. S700: Map the comprehensive trust score to a preset trust level, and determine the node's access permissions based on the trust level.

[0037] In S100, the historical interaction behavior data and identity authentication status of nodes are obtained, and a basic trust score is calculated. Specifically: Historical interaction behavior data of the collected nodes is used. This historical interaction behavior data includes forwarding behavior data, integrity verification data, transmission delay data, and energy consumption data. Forwarding rate factor FF, integrity factor IF, delay factor TF, and energy factor EF are calculated for each. Wherein: Forwarding rate factor , This represents the number of times a node has successfully forwarded data in its history. This represents the total number of historical forwards for the node. Integrity factor , The number of data packets forwarded by the node that have consistent integrity checks; Delay factor TF, when the transmission delay hour, Otherwise, TF = 1, where This is the critical value for time delay. This refers to the actual transmission delay. Energy Factor , The remaining energy of the node. The initial energy of the node; Observational data of the forwarding rate factor, integrity factor, latency factor, and energy factor of the node within a preset historical time window are obtained, an evaluation matrix is ​​constructed, and the observational data of each factor in the evaluation matrix are standardized to obtain standardized index values. ; The weight of each factor observation is calculated using standardized index values, as shown below:

[0038] in, The index weight of the j-th factor in the i-th sample; The information entropy of each factor is calculated based on its weight, and is expressed as follows:

[0039] in, , where n is the number of samples, and when = At 0 o'clock, =0; The weight coefficients of each factor are calculated using the information entropy of each factor, as shown below:

[0040] in, Let be the weight coefficient of the j-th factor, and m be the total number of factors; Obtain the node's authentication level, and determine the authentication quantification factor based on the authentication level. As one possible implementation method, the identity authentication quantification factor The certification levels are preset as follows: Advanced certification corresponds to 1.0, Basic certification corresponds to 0.8, and Uncertified corresponds to 0.5.

[0041] The basic trust score is calculated by weighted summation using forwarding rate factor, integrity factor, latency factor, energy factor, identity authentication quantification factor, and their corresponding weight coefficients, as shown below:

[0042] in, Forwarding rate factor As an integrity factor, For the time delay factor, As an energy factor, As a quantification factor for identity authentication, 、 、 、 、 Let be the weight coefficients calculated using the entropy weight method, and satisfy:

[0043] In S200, the current interaction request is parsed to identify the type of social relationship, specifically as follows: Parse the current interaction request to obtain the initiator node identifier and the receiver node identifier; based on the initiator node identifier and the receiver node identifier, query the node registration information stored on the blockchain to determine the initiator node type and the receiver node type, wherein the node type includes individual users, enterprise users and government users; based on the combination of the initiator node type and the receiver node type, determine the social relationship type.

[0044] If both the initiator and the recipient are individual users, the social relationship type is person-to-person. If the initiator is a corporate user and the recipient is an individual user, the social relationship type is corporate to individual. If both the initiator and the recipient are enterprise users, the social relationship type is enterprise-to-enterprise. If the initiator is a government user and the recipient is a corporate user, then the social relationship type is government to corporate. If the initiator is a government user and the recipient is an individual user, then the social relationship type is government to individual.

[0045] In S300, based on the identified social relationship type, the corresponding trust calculation sub-model is invoked to calculate the scene trust score, specifically: If the social relationship type is person-to-person, then obtain the set of evaluation nodes that have had at least 3 direct historical interactions with node u. For each evaluation node in the set of evaluation nodes. Evaluation nodes are obtained from the historical interaction records between nodes stored on the blockchain. For nodes Historical interaction rating .

[0046] The cosine similarity method is used to calculate the behavioral similarity between evaluation node v and node u, as shown below:

[0047] in, For evaluation nodes With nodes Behavioral similarity, 、 Evaluation nodes and nodes Rate the kth common interaction object.

[0048] Based on behavioral similarity As a weight, for the evaluation node For nodes The direct trust score is calculated by weighting the historical interaction ratings and is represented as follows:

[0049] When the denominator When, define .

[0050] The recommendation trust score is calculated as follows: Obtain the set of candidate recommendation nodes that share common neighbor relationships with node u. Filtering and Nodes There are no less than Second-rate( Nodes that have had direct historical interactions are included in the filtered set of recommended nodes. The recommendation trust score was calculated using the arithmetic mean method.

[0051] Based on the direct trust score and the recommended trust score, the individual-to-individual scenario trust score is calculated and represented as follows:

[0052] If the social relationship type is business-to-individual, then the ratio of the number of successful transactions in the node's historical transactions to the total number of transactions is used as the transaction trust score. The service trust score is calculated by subtracting the historical complaint rate when the node acts as the service recipient from 1. The enterprise's trust score for individual scenarios is calculated based on the transaction trust score and the service trust score, and is expressed as follows:

[0053] If the social relationship type is business-to-business, then an off-chain data acquisition mechanism based on oracles is used to obtain institutional trust scores. and cooperation and trust The institutional trust score is calculated by an oracle from an off-chain enterprise credit information platform, comprehensively considering the enterprise's registration years, administrative penalty records, and litigation records. The cooperation trust score is calculated by an oracle from an off-chain supply chain collaboration platform, comprehensively considering the completion rate and performance evaluation of the enterprise's historical cooperation projects. The oracle employs a multi-data source cross-validation mechanism to verify the authenticity of the off-chain data. Based on the institutional trust score and the cooperation trust score, the enterprise-to-enterprise scenario trust score is calculated, as follows:

[0054] If the social relationship type is government to enterprise, then a compliance trust score is obtained using an oracle-based off-chain data acquisition mechanism. The compliance trust score is calculated by an oracle from an off-chain government regulatory data platform, comprehensively analyzing the company's tax level, environmental compliance rating, and industry qualification certification status. The oracle employs a multi-data source cross-validation mechanism to verify the authenticity of the off-chain data. Based on the compliance trust score and the basic trust score, the government's trust score for the company is calculated, as follows:

[0055] If the social relationship type is government to individual, then the identity trust score is determined based on the node's real-name authentication level and the number of qualification authentications. Behavioral trust scores are determined based on the historical compliance rate and timeliness of nodes in government services. The government's trust score for an individual is calculated based on the identity trust score and the behavior trust score, and is expressed as follows:

[0056] In S400, the node behavior data within a preset time window is statistically analyzed and the node behavior weights are calculated. Specifically: Preset time window The data collection node is set with the current time as the endpoint. In the time window All activity logs within the system; categorize and statistically analyze the activity logs by activity type to obtain the number of transaction activities. Number of consensus actions Number of editing actions ; when At that time, the weights were calculated as follows:

[0057]

[0058]

[0059] in, For the weight of the transaction, For consensus behavior weights, Weights for editing actions; when At that time, set:

[0060] In S500, the historical editing behavior of nodes is obtained and an editing trust score is calculated, specifically as follows: Get the number of successful edits in the history of a node Number of times the history editor-in-chief and the rate at which edited content is rejected or disputed. ,in ; when When, set ; when hour:

[0061] The editor's trust score The value range is [0,1]. If the calculated value exceeds this range, it is truncated to the boundary value.

[0062] In S600, a comprehensive trust score is calculated based on the basic trust score, the scene trust score, the node's editing trust score, and the node's behavior weight, specifically as follows: The comprehensive trust score is calculated by combining the basic trust score, scenario trust score, editing trust score, transaction behavior weight, consensus behavior weight, and editing behavior weight, and is represented as follows:

[0063] in, This is based on a comprehensive trust score.

[0064] In S700, the comprehensive trust score is mapped to a preset trust level, and the node's access permissions are determined based on the trust level, specifically as follows: The preset trust levels include four levels: L1 fully trustworthy, L2 basically trustworthy, L3 partially trustworthy, and L4 untrustworthy, with corresponding trust intervals as follows:

[0065] Using the interval judgment method Map to trust levels, and determine node access permissions based on the output trust levels: L1 level nodes can perform transaction operations, participate in consensus voting, perform on-chain data editing operations, and system management operations; L2 level nodes can perform transaction operations, participate in consensus voting, and perform on-chain data editing operations. When performing system management operations, they need to be temporarily granted operation permissions after being authorized by L1 level nodes through multisignature. Level 3 nodes can only perform transaction and query operations, and cannot participate in consensus voting or editing operations; Level 4 nodes freeze all operation permissions and require re-authentication to restore them.

[0066] Example 2: like Figure 2 As shown, the hierarchical node trust evaluation system for multiple types of on-chain social relationships provided by the present invention includes a basic trust evaluation module 101, a scene recognition module 102, a relationship adaptation module 103, a dynamic weight calculation module 104, a comprehensive evaluation module 105, and a permission mapping module 106.

[0067] The basic trust assessment module 101 is used to calculate a basic trust score based on the node's historical interaction behavior data and identity authentication status. The scene recognition module 102 is used to parse the current interaction request and identify the social relationship type, which includes C2C (person-to-person), B2C (business-to-person), B2B (business-to-business), G2B (government-to-business), and G2C (government-to-person). The relationship adaptation module 103 is connected to the scene recognition module 102. The relationship adaptation module 103 has built-in C2C sub-model, B2C sub-model, B2B sub-model, G2B sub-model and G2C sub-model that correspond one-to-one with the social relationship type, and is used to calculate the scene trust score. The dynamic weight calculation module 104 is used to count the number of transaction actions, consensus actions, and editing actions of a node within a preset time window, and to calculate the weight of the transaction actions, the weight of the consensus actions, and the weight of the editing actions. The comprehensive evaluation module 105 is connected to the basic trust evaluation module 101, the relationship adaptation module 103 and the dynamic weight calculation module 104 respectively, and is used to calculate the comprehensive trust score based on the basic trust score, the scene trust score, the node editing trust score and each weight. The permission mapping module 106 is connected to the comprehensive evaluation module 105 and is used to map the comprehensive trust score to a preset trust level and determine the access permissions of the node according to the trust level.

[0068] As one possible implementation method, the functions of the above modules are the same as the specific implementation of each step in Embodiment 1, and will not be repeated here.

[0069] Various changes and modifications made without departing from the spirit and scope of this invention, and all equivalent technical solutions, also fall within the scope of this invention.

[0070] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0071] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0072] This invention is described with reference to flowchart illustrations and / or block diagrams of the method, terminal device (system), and computer program product according to the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0073] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0074] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0075] It should be noted that: The phrase "an embodiment" or "an embodiment" used in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. Therefore, the phrase "an embodiment" or "an embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment.

[0076] Furthermore, it should be noted that the shapes and names of the parts and components described in the specific embodiments described in this specification may differ. All equivalent or simple variations made to the structure, features, and principles described in this patent concept are included within the protection scope of this patent. Those skilled in the art to which this invention pertains may make various modifications or additions to the described specific embodiments or use similar methods to replace them, as long as they do not depart from the structure of this invention or exceed the scope defined in these claims, they should all fall within the protection scope of this invention.

Claims

1. A hierarchical node trust assessment method for multiple types of on-chain social relationships, characterized in that, Includes the following steps: Obtain historical interaction data and identity authentication status of nodes, and calculate a basic trust score; Obtain the current interaction request and parse it to identify the social relationship type; Based on the type of social relationship, the corresponding trust calculation sub-model is invoked to calculate the scene trust score; The node behavior data within a preset time window is statistically analyzed and the node behavior weight is calculated. The node behavior data includes the number of transaction behaviors, the number of consensus behaviors, and the number of editing behaviors. The node behavior weight includes the transaction behavior weight, the consensus behavior weight, and the editing behavior weight. Obtain the node's editing behavior history and calculate the editing trust score; A comprehensive trust score is calculated based on the basic trust score, the scene trust score, the node's editing trust score, and the node's behavior weight. The comprehensive trust score is mapped to a preset trust level, and the access permissions of the node are determined based on the trust level.

2. The method according to claim 1, characterized in that, The process of acquiring historical interaction data and identity authentication status of nodes and calculating a basic trust score includes the following steps: Collect historical interaction data of the nodes and calculate the forwarding rate factor, integrity factor, latency factor and energy factor respectively; The observation data of the forwarding rate factor, integrity factor, latency factor and energy factor of the node within the preset historical time window are obtained, and the weight coefficient of each factor is calculated by the entropy weight method. Obtain the node's authentication level and determine the authentication quantification factor based on the authentication level; The basic trust score is calculated by weighted summation using forwarding rate factor, integrity factor, latency factor, energy factor, identity authentication quantification factor, and their corresponding weight coefficients, as shown below: in, Based on trust score, Forwarding rate factor As an integrity factor, For the time delay factor, As an energy factor, As a quantification factor for identity authentication, , , , , These are the weighting coefficients calculated using the entropy weighting method.

3. The method according to claim 1, characterized in that, The process of obtaining the current interaction request and parsing it to identify the social relationship type includes the following steps: Parse the current interaction request to obtain the initiator node identifier and the receiver node identifier; Based on the initiator node identifier and the receiver node identifier, query the node registration information stored on the blockchain to determine the initiator node type and the receiver node type, which include individual users, enterprise users and government users; The social relationship type is determined based on the combination of the initiator node type and the receiver node type.

4. The method according to claim 1, characterized in that, The step of calculating the scenario trust score by calling the corresponding trust calculation sub-model based on the identified social relationship type includes the following steps: If the social relationship type is person-to-person, then obtain the set of evaluation nodes that have direct historical interactions with the current node, calculate the behavioral similarity between each evaluation node and the current node using the cosine similarity method, and obtain the direct trust score by combining the historical interaction score; obtain the set of candidate recommendation nodes that have common neighbor relationships with the current node and filter them by the number of historical interactions to obtain the set of recommendation nodes, and calculate the recommendation trust score based on the recommendation evaluation of each recommendation node; calculate the person-to-person scenario trust score based on the direct trust score and the recommendation trust score, as follows: in, Assigning a trust score to individuals in a personal setting. For direct trust points, To recommend a trust score, , Preset weighting coefficients; If the social relationship type is business-to-person, then a transaction trust score is obtained based on the number of successful transactions and the total number of transactions in the node's historical transactions, and a service trust score is obtained based on the node's historical complaint rate. The business-to-person scenario trust score is calculated using the transaction trust score and the service trust score, as follows: in, Assess the trust level between businesses and individuals in personal settings. As a trust score for transactions, To serve trust scores, , Preset weighting coefficients; If the social relationship type is business-to-business, then an off-chain data acquisition mechanism based on oracles is used to obtain institutional trust scores and cooperation trust scores. Based on the institutional trust scores and cooperation trust scores, the business-to-business scenario trust score is calculated, as follows: in, Assess the trust level between businesses and their respective business scenarios. As a score for trust in the system, To build trust in cooperation, , Preset weighting coefficients; If the social relationship type is government-to-enterprise, a compliance trust score is obtained using an oracle-based off-chain data acquisition mechanism. The government-to-enterprise scenario trust score is then calculated based on the compliance trust score and the basic trust score, as shown below: in, As a measure of government trust in enterprise scenarios, For compliance trust score, , Preset weighting coefficients; If the social relationship type is government-to-individual, then the identity trust score is determined based on the node's real-name authentication level and the number of qualification authentications, and the behavior trust score is determined based on the node's historical compliance rate and timeliness in government services. The government-to-individual scenario trust score is calculated based on the identity trust score and the behavior trust score, as follows: in, As a measure of government trust in personal scenarios, For identity trust score, Assign trust scores based on behavior. , These are preset weighting coefficients.

5. The method according to claim 1, characterized in that, The statistical analysis of node behavior data within a preset time window, and the calculation of node behavior weights, includes the following steps: Collect all behavior logs of the node within the preset time window, with the current time as the endpoint; The behavior logs are categorized and statistically analyzed according to behavior type to obtain the number of transaction behaviors, the number of consensus behaviors, and the number of edit behaviors. Based on the proportions of the number of transactions, consensus actions, and edit actions, the weights of the transactions, consensus actions, and edit actions are calculated respectively, as follows: in, For the weight of the transaction, For consensus behavior weights, To edit the behavior weights, For the number of transactions, For the number of consensus actions, Number of edit actions.

6. The method according to claim 4, characterized in that, The method of calculating the behavioral similarity between each evaluation node and the current node using the cosine similarity method, and combining it with historical interaction scores to obtain a direct trust score, includes the following steps: Get the set of evaluation nodes that have direct historical interactions with the current node; For each evaluation node in the set of evaluation nodes, obtain the historical interaction score of that evaluation node for the current node from the historical interaction records stored on the blockchain; The cosine similarity method is used to calculate the behavioral similarity between each evaluation node and the current node, as shown below: in, For evaluation nodes With nodes Behavioral similarity, and Evaluation nodes and nodes The rating of the kth common interaction object; Based on behavioral similarity As a weight, for the evaluation node For nodes The direct trust score is calculated by weighting the historical interaction ratings and is represented as follows: in, For direct trust points, For the evaluation node set, For evaluation nodes For the current node Historical interaction ratings.

7. The method according to claim 4, characterized in that, The process of obtaining a set of candidate recommended nodes that share a common neighbor relationship with the current node, filtering them through historical interaction counts to obtain a set of recommended nodes, and calculating a recommendation trust score based on the recommendation evaluation of each recommended node includes the following steps: Obtain the set of candidate recommendation nodes that share common neighbor relationships with the node; Obtain the historical interaction count between each candidate node and the current node, and select candidate recommended nodes whose historical interaction count reaches a preset threshold from the candidate recommended node set to form a recommended node set; Obtain the recommendation evaluation of the current node from each recommendation node in the recommended node set, and calculate the recommendation trust score using the arithmetic mean method, as shown below: in, To recommend a trust score, This is the set of recommended nodes after filtering. Recommended nodes For the current node Recommendations and reviews.

8. The method according to claim 1, characterized in that, The process of obtaining the editing behavior history of a node and calculating an editing trust score includes the following steps: Obtain the node's editing behavior history, which includes the number of successful edits, the total number of edits, and the rate at which edits were rejected or disputed. Based on the number of successful edits in history, the total number of edits in history, and the rejection or dispute ratio, the editor trust score is calculated as follows: in, To earn trust points from editors, For historical edit counts, For the number of times the history editor-in-chief, The rate at which edited content is rejected or disputed.

9. The method according to claim 1, characterized in that, A comprehensive trust score is calculated based on the basic trust score, the scene trust score, the node's editing trust score, and the node's behavior weight, including the following steps: A comprehensive trust score is calculated based on the basic trust score, the scenario trust score, the editing trust score, and the transaction behavior weight, consensus behavior weight, and editing behavior weight, as follows: in, To assess overall trust level, Based on trust score, Assess trust in the scenario. To earn trust points from editors, 、 、 These are the weights for transaction behavior, consensus behavior, and editing behavior, respectively.

10. The method according to claim 1, characterized in that, The process of mapping the comprehensive trust score to a preset trust level and determining the node's access permissions based on the trust level includes the following steps: Multiple trust levels are preset, and each trust level corresponds to a different comprehensive trust score range; The calculated overall trust score is compared with each trust score interval to determine the corresponding trust level; Based on the trust level, the access permissions of the node are determined according to the preset permission rules, and different trust levels correspond to different sets of operation permissions.

11. A hierarchical node trust evaluation system for multiple types of on-chain social relationships, characterized in that, include: The basic trust assessment module is used to calculate a basic trust score based on the node's historical interaction behavior data and identity authentication status; The scene recognition module is used to parse the current interaction request and identify the type of social relationship; A relationship adaptation module is connected to the scene recognition module. The relationship adaptation module has a built-in trust calculation sub-model that corresponds one-to-one with the social relationship type, which is used to calculate the scene trust score. The dynamic weight calculation module is used to count the number of transactions, consensus actions, and editing actions of a node within a preset time window, and to calculate the weight of each transaction, consensus action, and editing action. The comprehensive evaluation module is connected to the basic trust evaluation module, the relationship adaptation module, and the dynamic weight calculation module, respectively, and is used to receive the basic trust score, the scenario trust score, and each weight, and calculate the comprehensive trust score by combining the node's editing trust score; The permission mapping module, connected to the comprehensive evaluation module, is used to map the comprehensive trust score to a preset trust level and determine the access permissions of the node based on the trust level.

12. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 10.

13. A hierarchical node trust assessment device for multiple types of on-chain social relationships, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 10.