Intellectual property transaction method and system based on IPBFT algorithm

By using a combination of IPBFT algorithm and Raft algorithm in blockchain intellectual property transactions, the problem of low consensus efficiency is solved, the security and availability of the transaction system are improved, and a more fair and transparent transaction environment is achieved.

CN118608286APending Publication Date: 2024-09-06HAINAN UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410745467.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing consensus algorithm in blockchain intellectual property transactions has low consensus efficiency and poor consensus technology availability and performance, resulting in low security and reliability of the transaction environment.

Method used

Adopting an intellectual property transaction method based on the IPBFT algorithm, the blockchain network is divided into several transaction consensus groups through the node grouping algorithm. Combined with the hybrid reputation mechanism scoring strategy and the Raft algorithm, a two-stage IPBFT intra-group consensus and an inter-group Raft consensus are performed to improve Transaction efficiency and security.

Benefits of technology

It improves the consensus efficiency and availability of the trading system, enhances the fairness and transparency of transactions, builds a more secure and stable intellectual property trading environment, and protects the rights and interests of all parties to the transaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608286A
    Figure CN118608286A
Patent Text Reader

Abstract

The invention belongs to the technical field of intellectual property transaction, and discloses an intellectual property transaction method and system based on an IPBFT algorithm. The method comprises the following steps: receiving an intellectual property transaction request based on an intellectual property transaction platform, and grouping a plurality of nodes; obtaining a plurality of standard intellectual property transaction consensus groups according to a mixed reputation mechanism scoring strategy; performing two-stage IPBFT intra-group consensus on the intellectual property transaction request by using an IPBFT consensus algorithm; after the intra-group consensus of the two stages of IPBFT succeeds, performing inter-group Raft consensus on the intellectual property transaction request by using a Raft algorithm; and after the Raft consensus among the groups succeeds, returning a corresponding intellectual property transaction consensus result to the client, and uploading the intellectual property transaction consensus result. According to the method, the problems of low consensus efficiency of a consensus algorithm, poor availability and performance of a consensus technology and low security and reliability of a transaction environment in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intellectual property transaction, and specifically relates to an intellectual property transaction method and system based on the IPBFT algorithm. Background Art

[0002] With the continuous development of information technology, intellectual property (IP) transactions have become one of the important economic activities in the world. However, there are many problems with the traditional IP transaction model, including low transaction efficiency, opaque transaction process and high transaction costs. Therefore, it is particularly important to study an efficient, secure and transparent IP transaction method. With the rise of blockchain technology, blockchain-based IP transactions have begun to attract widespread attention. As a decentralized distributed ledger technology, blockchain has the characteristics of being tamper-proof, transparent and traceable, providing a new idea for solving the trust problem in IP transactions. In blockchain, the consensus algorithm is the core to ensure the security and effectiveness of transactions.

[0003] In recent years, most scholars have proposed optimizations for the blockchain PBFT consensus algorithm, focusing on simplifying processes and introducing other mechanisms. However, it still cannot meet the performance requirements of existing digital asset transactions. The existing PBFT consensus algorithm has low consensus efficiency, poor consensus technology availability and performance, and low security and reliability of the intellectual property transaction environment. Summary of the invention

[0004] In order to solve the problems existing in the prior art of low consensus efficiency of consensus algorithms, poor availability and performance of consensus technologies, and low security and reliability of transaction environments, the present invention aims to provide an intellectual property transaction method and system based on the IPBFT algorithm.

[0005] The technical solution adopted by the present invention is:

[0006] A method for intellectual property transaction based on the IPBFT algorithm comprises the following steps:

[0007] Based on the intellectual property transaction platform, receive the intellectual property transaction request sent by the client, and use the node grouping algorithm to group several nodes of the blockchain network to obtain several corresponding intellectual property transaction consensus groups;

[0008] According to the hybrid reputation mechanism scoring strategy, the reputation value of each node in the intellectual property transaction consensus group is obtained, and the supervisory nodes in the intellectual property transaction consensus group are selected according to the reputation value, and malicious nodes are removed to obtain the corresponding standard intellectual property transaction consensus groups;

[0009] According to the intellectual property transaction type of the intellectual property transaction request, the intellectual property transaction request is sent to the corresponding standard intellectual property transaction consensus group, and based on a fixed master node, the IPBFT consensus algorithm is used in each standard intellectual property transaction consensus group to conduct a two-stage IPBFT intra-group consensus;

[0010] After the two-stage IPBFT intra-group consensus is successful, inter-group Raft consensus is performed based on the supervisory node and using the Raft algorithm among all standard intellectual property transaction consensus groups;

[0011] After the inter-group Raft consensus is successful, the corresponding intellectual property transaction consensus result is returned to the client, and the intellectual property transaction consensus result is uploaded to the chain using the blockchain network.

[0012] Furthermore, the node grouping algorithm is an IFCM clustering algorithm.

[0013] Furthermore, based on the intellectual property transaction platform, the intellectual property transaction request sent by the client is received, and the IFCM clustering algorithm is used to group several nodes of the blockchain network to obtain several corresponding intellectual property transaction consensus groups, including the following steps:

[0014] Based on the intellectual property transaction platform, receiving the intellectual property transaction request sent by the client;

[0015] Collect attribute information and behavior data of all nodes in the blockchain network and construct corresponding feature vectors;

[0016] Initialize the fuzzy clustering parameters of the IFCM clustering algorithm and generate several initial cluster centers;

[0017] Based on the node's feature vector, randomly initialize each node's membership to each intellectual property transaction consensus group to generate an initial membership matrix;

[0018] Based on the feature vector of the node, the initial membership matrix is ​​updated according to the Euclidean distance from each node to each initial cluster center to obtain an updated membership matrix;

[0019] According to the updated membership matrix, several initial cluster centers are updated to obtain several updated cluster centers;

[0020] Iteratively update the membership matrix and cluster centers until the condition of minimizing the objective function is met, and the optimal membership matrix and several optimal cluster centers are obtained;

[0021] According to the Euclidean distance from each node to each optimal cluster center, the nodes are divided into corresponding intellectual property transaction consensus groups, and a number of initial intellectual property transaction consensus groups with the number of nodes equal to the average value are obtained;

[0022] The optimal cluster center of each initial intellectual property transaction consensus group is fine-tuned until the difference between the membership matrix before and after the adjustment is less than a threshold, and then several final intellectual property transaction consensus groups are output.

[0023] Furthermore, the hybrid reputation mechanism scoring strategy is composed of the entropy weight method and the reputation mechanism scoring strategy.

[0024] Furthermore, according to the hybrid reputation mechanism scoring strategy, the reputation value of each node in the intellectual property transaction consensus group is obtained, and according to the reputation value, the supervisory node in the intellectual property transaction consensus group is selected, and the malicious nodes are removed to obtain the corresponding several standard intellectual property transaction consensus groups, including the following steps:

[0025] Based on the hybrid reputation mechanism scoring strategy, the entropy weight method is used to obtain the honest behavior weight and malicious behavior weight of the nodes in the intellectual property transaction consensus group;

[0026] Obtain the node's reputation value based on the honest behavior weight and malicious behavior weight, and set the node reputation value update strategy;

[0027] According to the reputation value, all nodes in the intellectual property transaction consensus group are sorted, the nodes with the highest reputation value are used as supervisory nodes, and the nodes with reputation values ​​below the reputation value threshold are removed as malicious nodes to obtain the corresponding standard intellectual property transaction consensus group;

[0028] Traverse all intellectual property transaction consensus groups, repeat the above steps, and obtain the corresponding standard intellectual property transaction consensus groups.

[0029] Furthermore, based on the hybrid reputation mechanism scoring strategy, the entropy weight method is used to obtain the honest behavior weight and malicious behavior weight of the nodes in the intellectual property transaction consensus group, including the following steps:

[0030] Set a first evaluation matrix of honest behavior indicators of nodes and a second evaluation matrix of malicious behavior indicators;

[0031] Normalizing each column in the first evaluation matrix and the second evaluation matrix to obtain a first normalized evaluation matrix and a second normalized evaluation matrix;

[0032] Obtaining information entropy of each column in the first normalized evaluation matrix and the second normalized evaluation matrix;

[0033] According to the ratio of information entropy to total information entropy, the honest behavior weight of each honest behavior indicator and the malicious behavior weight of each malicious behavior indicator are obtained.

[0034] Furthermore, according to the honest behavior weight and the malicious behavior weight, the reputation value of the node is obtained, and a node reputation value update strategy is set, including the following steps:

[0035] According to the honest behavior weight of the honest behavior index, the honest behavior is graded and a corresponding reward behavior table is established; and according to the malicious behavior weight of the malicious behavior index, the malicious behavior is graded and a corresponding punishment behavior table is established;

[0036] According to the reward behavior table, obtain the reward value of the node in the current consensus stage, and according to the penalty behavior table, obtain the penalty value of the node in the current consensus stage;

[0037] Obtain the corresponding reputation value based on the reward and penalty values ​​of the node in the current consensus stage;

[0038] Introduce the hyperbolic tangent function and set the node reputation update strategy.

[0039] Furthermore, according to the intellectual property transaction type of the intellectual property transaction request, the intellectual property transaction request is sent to the corresponding standard intellectual property transaction consensus group, and based on a fixed master node, in each standard intellectual property transaction consensus group, the IPBFT consensus algorithm is used to perform a two-stage IPBFT intra-group consensus, including the following steps:

[0040] According to the intellectual property transaction type of the intellectual property transaction request, the intellectual property transaction request is sent to the corresponding standard intellectual property transaction consensus group;

[0041] Based on the fixed master node in the standard intellectual property transaction consensus group of the same intellectual property transaction type, the IPBFT consensus algorithm is used to broadcast the pre-prepared message to the central node of other standard intellectual property transaction consensus groups and other slave nodes in the group;

[0042] Based on the central node and slave nodes in the standard intellectual property transaction consensus group, the validity of the pre-prepared message is verified. After the validity verification is passed, the preparation state is entered, and the nodes in the same standard intellectual property transaction consensus group send preparation messages to other nodes;

[0043] Based on the nodes of the standard intellectual property transaction consensus group, after receiving a preset number of preparation messages, the validity of the preparation messages and the node identity are verified. After the validity and node identity verification are passed, the two-stage IPBFT group consensus is successful and a consensus transaction message is generated.

[0044] Furthermore, after the two-stage IPBFT intra-group consensus is successful, the inter-group Raft consensus is performed based on the supervisory node and the Raft algorithm is used among all standard intellectual property transaction consensus groups, and the corresponding intellectual property transaction consensus result is returned to the client, including the following steps:

[0045] After the two-stage IPBFT group consensus is successful, a leader election is conducted to vote for a leader node from a number of candidate nodes in the standard intellectual property transaction consensus group;

[0046] Based on the leader node, it receives the consensus transaction messages of the two-stage IPBFT intra-group consensus, performs inter-group Raft consensus, converts the consensus transaction messages into log entries, and broadcasts the log entries to the follower nodes and supervisor nodes;

[0047] Based on the follower node, the log entry is appended to the local log and a confirmation message is sent to the leader node and the supervisor node;

[0048] After both the supervisory node and the leader node receive a preset number of confirmation messages, the supervisory node reviews the leader node. If the review is passed, the inter-group Raft consensus is successful.

[0049] An intellectual property trading system based on the IPBFT algorithm is used to implement an intellectual property trading method. The system includes an intellectual property trading platform and several clients. The several clients are all connected to the intellectual property trading platform for communication. The intellectual property trading platform is provided with a blockchain network, and the intellectual property trading platform includes a node grouping unit, a node standardization processing unit, an intra-group consensus unit, an inter-group consensus unit, and a consensus result chain unit.

[0050] The beneficial effects of the present invention are:

[0051] The present invention discloses an intellectual property transaction method and system based on an IPBFT algorithm. Combining the Byzantine fault tolerance characteristics of a PBFT algorithm and the efficient consistency of a Raft algorithm, an IPBFT consensus algorithm is proposed to process intellectual property transaction requests in parallel. By grouping double-layer consensus, the communication complexity of the system is reduced, and the consensus efficiency is improved. Intellectual property consensus transactions are effectively grouped according to different types, and the network and resource allocation are more accurately adjusted to meet the needs of different types of transactions, thereby improving the availability and performance of the system. A hybrid reputation mechanism scoring strategy is used to score nodes, which more accurately reflects the contribution and reputation of the nodes in the transaction process, thereby improving the fairness and transparency of the transaction, building a safer and more stable intellectual property transaction environment, and effectively protecting the rights and interests of all parties to the transaction. The reliability of the consensus is guaranteed by the monitoring strategy of the supervisory node of the Raft algorithm.

[0052] Other beneficial effects of the present invention will be further described in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flowchart of the intellectual property transaction method based on the IPBFT algorithm in the present invention.

[0054] Figure 2 It is a structural block diagram of the intellectual property transaction system based on the IPBFT algorithm in the present invention. DETAILED DESCRIPTION

[0055] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments.

[0056] Embodiment 1:

[0057] like Figure 1 As shown, this embodiment provides an intellectual property transaction method based on the IPBFT algorithm, comprising the following steps:

[0058] S1: Based on the intellectual property transaction platform, the intellectual property transaction request sent by the client is received, and the Improved Fuzzy C-Means (IFCM) clustering algorithm is used to group several nodes of the blockchain network to obtain several corresponding intellectual property transaction consensus groups, including the following steps:

[0059] S1-1: Based on the intellectual property transaction platform, receiving the intellectual property transaction request sent by the client;

[0060] Functions of the intellectual property trading platform:

[0061] In the intellectual property trading platform, taking patent trading as an example, first, the intellectual property trading platform will collect transaction needs; communicate with buyers and sellers to understand their needs and intentions;

[0062] Then, the trading platform uses smart contract technology to find suitable buyers and sellers to match transactions based on the collected demand information; evaluate and price the patents to ensure that the transaction price is fair and reasonable. Once a transaction is reached, the transaction information will be submitted to the blockchain server;

[0063] The blockchain server receives and broadcasts transaction requests, spreading them to each node in the network; after the nodes reach a consensus, the transaction information will be recorded in the blockchain ledger; anyone can view the transaction record, and it cannot be changed, ensuring the immutability and transparency of the transaction;

[0064] At the same time, the trading platform will synchronize the transaction results to the transaction participants and regulators, including sending transaction confirmation information to buyers and sellers, and reporting the transaction status to the regulator;

[0065] Finally, the transaction information is submitted to relevant institutions such as the Intellectual Property Office or the legal department for filing, i.e. recording and verification; the filing information includes the name of the transferor, the name of the transferee, the contract number, the patent authorization number, the transaction price, the transaction time, etc.;

[0066] S1-2: Collect attribute information and behavior data of all nodes in the blockchain network and construct corresponding feature vectors;

[0067] The feature vector may include intellectual property types, such as intellectual property patent types, intellectual property trademark types, intellectual property work types, intellectual property copyright types, and intellectual property types in other fields. The cluster center in each group is the primary node, and the rest are replica nodes.

[0068] S1-3: Initialize the fuzzy clustering parameters of the IFCM clustering algorithm and generate several initial cluster centers;

[0069] In the intellectual property transaction environment, the characteristics and behaviors of nodes are diverse and complex, which makes the node grouping strategy an important part of ensuring the stability and security of the transaction system. In order to adapt to the diversity of the intellectual property transaction environment, the node grouping strategy of the entire blockchain network adopts the node grouping strategy of the IFCM clustering algorithm.

[0070] S1-4: Based on the node's feature vector, randomly initialize each node's membership to each intellectual property transaction consensus group, generate an initial membership matrix, and ensure that the sum of each node's membership to each group is 1;

[0071] S1-5: Based on the node feature vector, the initial membership matrix is ​​updated according to the Euclidean distance from each node to each initial cluster center to obtain the updated membership matrix U ij ={μ ij ,i∈N,j∈C}, where μ ij is the updated membership of the i-th node to the j-th cluster center, i is the node indicator, N is the total number of nodes, j is the cluster center indicator, C is the total number of cluster centers, and the formula is:

[0072]

[0073] In the formula, μ ij is the updated membership of the i-th node to the j-th cluster center; x i is the i-th node; c j is the jth cluster center; c k is the kth cluster center; k is the cluster center indicator; m is the fuzziness hyperparameter;

[0074] S1-6: According to the updated membership matrix, several initial cluster centers are updated to obtain several updated cluster centers. The formula is:

[0075]

[0076] Where c' jis the jth updated cluster center; μ ij is the updated membership of the i-th node to the j-th cluster center; m is the fuzziness hyperparameter;

[0077] When the characteristics or behaviors of nodes change, the node membership can be recalculated based on the node grouping strategy, and the node grouping can be adjusted in time to ensure the accuracy and stability of the grouping results;

[0078] S1-7: Iteratively update the membership matrix and cluster centers until the condition of minimizing the objective function is met, and the optimal membership matrix and several optimal cluster centers are obtained;

[0079] S1-8: According to the Euclidean distance from each node to each optimal cluster center, the nodes are divided into corresponding intellectual property transaction consensus groups to obtain a number of initial intellectual property transaction consensus groups with the number of nodes equal to the average value, including the following steps:

[0080] S1-8-1: According to the Euclidean distance from each node to each optimal cluster center, divide the nodes into corresponding intellectual property transaction consensus groups, and calculate the number of nodes ClusterSizes in each intellectual property transaction consensus group;

[0081] S1-8-2: Calculate the average number of nodes in each intellectual property transaction consensus group AvgClusterSize;

[0082] S1-8-3: For the IP transaction consensus group whose number of nodes ClusterSizes exceeds the average value AvgClusterSize, traverse each node in the group and check for each node whether it is far enough away from the cluster center of the current group to ensure that the group still maintains a certain degree of compactness after removing it;

[0083] S1-8-4: Find a node suitable for removal, remove it from the current intellectual property transaction consensus group, and assign the removed node to an intellectual property transaction consensus group that is closer to it;

[0084] S1-8-4: Repeat the above steps until a number of initial intellectual property transaction consensus groups with a number of nodes equal to the average value are obtained;

[0085] S1-9: fine-tune the optimal cluster center of each initial intellectual property transaction consensus group until the difference between the membership matrix before and after the adjustment is less than the threshold, and then output several final intellectual property transaction consensus groups; the intellectual property transaction consensus groups include the intellectual property patent transaction consensus group, the intellectual property trademark transaction consensus group, the intellectual property copyright transaction consensus group, and other intellectual property transaction consensus groups in various fields;

[0086] In the clustering process, the IFCM clustering algorithm divides the nodes into multiple groups by minimizing the objective function, ensuring that the sum of the distances between every two nodes in the group is minimized, more accurately adjusting the network and resource allocation to meet the needs of different types of transactions, and improving the availability and performance of the system; when some nodes fail or are attacked, other nodes are more likely to cooperate with each other and reach a consensus, enhancing the system's fault tolerance to failures and attacks; the IFCM clustering algorithm ensures that the number of nodes in each group is equal after grouping, ensuring load balancing, so that each subgroup can process requests at a similar speed, improving the overall performance of the system;

[0087] S2: According to the hybrid reputation mechanism scoring strategy composed of the entropy weight method and the reputation mechanism scoring strategy, the reputation value of the node in each intellectual property transaction consensus group is obtained, and according to the reputation value, the supervisory node in the intellectual property transaction consensus group is selected, and the malicious nodes are removed to obtain the corresponding several standard intellectual property transaction consensus groups, including the following steps:

[0088] S2-1: Based on the hybrid reputation mechanism scoring strategy, the entropy weight method is used to obtain the honest behavior weight and malicious behavior weight of the nodes in the intellectual property transaction consensus group, including the following steps:

[0089] S2-1-1: Set the first evaluation matrix of the node's honest behavior indicators and the second evaluation matrix of the malicious behavior indicators; in detail, compare the importance of each indicator according to the relative proportion, and then construct the evaluation matrix. The number in each cell represents the comparison of the importance of the row indicator relative to the column indicator; for example,

[0090] The importance of properly auditing transactions to accurate identity verification is 3:1, as shown in Table 1:

[0091] Table 1 Node evaluation matrix

[0092] index Properly review transactions Accurate identity verification Comply with legal rules Properly review transactions 1 3 2 Accurate identity verification 1 / 3 1 1 / 2 Comply with legal rules 1 / 2 2 1

[0093] In intellectual property transactions, honest behavior indicators include indicators of correct transaction review, accurate identity verification, and compliance with legal rules;

[0094] S2-1-2: Normalize each column in the first evaluation matrix and the second evaluation matrix to obtain the first normalized evaluation matrix and the second normalized evaluation matrix; in detail, use the critical value method to normalize, find the maximum and minimum values ​​of each column, subtract the minimum value from each element, and divide it by the difference between the maximum and minimum values ​​to obtain a normalized matrix:

[0095] S2-1-3: Obtain the information entropy of each column in the first normalized evaluation matrix and the second normalized evaluation matrix. The formula is:

[0096]

[0097] In the formula, E i' is the information entropy of the i'th indicator; i' is the indicator quantity; j' is the evaluation matrix column indicator quantity; n is the total number of indicators; p i'j' is the normalized value of the i'th indicator in the j'th column;

[0098] S2-1-4: According to the ratio of information entropy to total information entropy, obtain the honest behavior weight of each honest behavior indicator and the malicious behavior weight of each malicious behavior indicator. The smaller the information entropy, the greater the weight. The formula is:

[0099]

[0100] In the formula, w i' is the weight of the i'th indicator;

[0101] Combining the entropy weight method with the reputation mechanism, the entropy weight method is used to quantitatively evaluate the various behaviors of nodes and determine their corresponding weights in intellectual property transactions, so as to formulate reward and punishment measures more objectively, more accurately reward nodes that abide by the rules and participate in good faith, and punish nodes that deliberately violate the rules and disrupt the transaction order;

[0102] The entropy weight method is used to quantitatively evaluate each node's behavior and determine the corresponding weight in the intellectual property transaction, so as to formulate reward and punishment measures more objectively, more accurately reward nodes that abide by the rules and participate in good faith, and punish nodes that deliberately violate the rules and disrupt the transaction order, as shown in Table 2:

[0103] Table 2 Entropy and weight of each node index

[0104] index Normalize and correctly review transactions Normalized accurate identity verification Normalization and compliance with legal rules Information Entropy Weight Properly review transactions 2 / 5 8 / 15 3 / 5 0.861 0.410 Accurate identity verification 0 1 / 3 1 / 5 0.886 0.336 Comply with legal rules 1 / 6 1 1 / 2 0.914 0.254

[0105] S2-2: According to the honest behavior weight and malicious behavior weight, obtain the node's reputation value and set the node reputation value update strategy, including the following steps:

[0106] S2-2-1: Based on the honest behavior weights of the honest behavior indicators, the honest behaviors are graded and a corresponding reward behavior table is established. Based on the malicious behavior weights of the malicious behavior indicators, the malicious behaviors are graded and a corresponding penalty behavior table is established.

[0107] The greater the weight of the indicator, the greater the integrity level and the greater the reward value. After a round of consensus, the behavior information is converted into corresponding reward records. For example, the object node may receive 3 rewards at the first integrity level, 1 reward at the second integrity level, and 2 rewards at the third integrity level, as shown in Table 3:

[0108] Table 3 Reward behavior rating table

[0109] index Properly review transactions Accurate identity verification Comply with legal rules Integrity level 1 2 3

[0110] S2-2-2: According to the reward behavior table, obtain the reward value of the node in the current consensus stage, and according to the penalty behavior table, obtain the penalty value of the node in the current consensus stage;

[0111] S2-2-3: According to the reward and penalty values ​​of the node in the current consensus stage, the corresponding reputation value is obtained. The formula is:

[0112]

[0113] In the formula, is the reputation value of node i" at iteration number t; is the reward value of honest behavior level L; is the count of the integrity behavior level L; is the penalty value of malicious behavior level L'; is the count of malicious behavior level L'; i" is the node indicator; t is the iteration number indicator; L is the honest behavior level; L' is the malicious behavior level;

[0114] The honest and malicious behaviors of nodes are associated with the factors of efficient and normal operation of the blockchain. The new reputation value of the node is calculated based on the reward value and the penalty value. When the node performs well, its reputation value will be improved, thereby improving its status and weight in the system, and when the node performs poorly, its reputation value will decrease.

[0115] S2-2-4: Introduce the hyperbolic tangent function and set the node reputation update strategy. The formula is:

[0116]

[0117] In the formula, is the updated reputation value of node i" at iteration number t+1; α is the upper limit of the reputation value; k is the slope parameter; is the reputation value of node i" at iteration number t;

[0118] Prevent the consensus participant nodes from gaining too much reputation and becoming a "super node". When the range is from 0 to 5, k = 1, and α = 1, the reputation value obtained by the node will experience a period of rapid growth. As the number of verifications increases, the reputation value obtained by the node will gradually increase slowly and eventually tend to be constant;

[0119] The total reputation value of all nodes is set to 0. Once the reputation value of a node is found to be less than 0, the node is judged as a malicious node and permanently excluded from the consensus node. It will not participate in the next round of consensus, thus achieving the purpose of screening nodes; some malicious nodes that are better disguised (sending inconsistent information to all other nodes) can still survive, but they can be tolerated by the mechanism of the consensus algorithm;

[0120] S2-3: Sort all nodes in the intellectual property transaction consensus group according to the reputation value, use the node with the highest reputation value as the supervisory node, and remove the nodes with a reputation value lower than the reputation value threshold as malicious nodes to obtain the corresponding standard intellectual property transaction consensus group;

[0121] S2-4: Traverse all intellectual property transaction consensus groups, repeat the above steps, and obtain the corresponding standard intellectual property transaction consensus groups;

[0122] A hybrid reputation scoring strategy is used to score nodes, and the entropy weight method is used to determine the corresponding weights of nodes. A reward and punishment behavior table is established and its reputation value is calculated, which more accurately reflects the contribution and reputation of nodes in the transaction process, thereby improving the fairness and transparency of the transaction system. The replica node list is updated and sorted by reputation value, and the nodes with the highest reputation in each cluster are selected as supervisory nodes, and malicious nodes with reputation values ​​below the threshold are eliminated, thus building a safer and more stable intellectual property transaction environment and effectively protecting the rights and interests of all parties to the transaction.

[0123] S3: According to the intellectual property transaction type of the intellectual property transaction request, the intellectual property transaction request is sent to the corresponding standard intellectual property transaction consensus group, and based on a fixed master node, in each standard intellectual property transaction consensus group, the Improved Practical Byzantine Fault Tolerance (IPBFT) consensus algorithm is used to perform a two-stage IPBFT intra-group consensus, including the following steps:

[0124] S3-1: according to the intellectual property transaction type of the intellectual property transaction request, sending the intellectual property transaction request to the corresponding standard intellectual property transaction consensus group;

[0125] S3-2: Based on the fixed master node in the standard intellectual property transaction consensus group of the same intellectual property transaction type, the IPBFT consensus algorithm is used to broadcast the pre-prepared message to the central node of other standard intellectual property transaction consensus groups and other slave nodes in the group;

[0126] The two-stage IPBFT intra-group consensus simplifies the three stages of the traditional PBFT consensus into two stages to reduce communication overhead and improve performance. Each node joining the network needs to determine an initial view number, which is used to distinguish different views so that the master node can be correctly identified when the view is switched. The node also needs to maintain a mapping table between views and master nodes.

[0127] The prepared message identifies the current view number, transaction order (i.e., sequence number), master node ID, message sent by the client, and message digest. The message digest is usually calculated using a hash function, which is an algorithm that maps input data of any length to a fixed-length hash value. The generated digest is unique and irreversible, meaning that the original data cannot be deduced from the digest.

[0128] S3-3: Based on the central node and slave nodes in the standard intellectual property transaction consensus group, verify the validity of the pre-prepared message, including verifying whether the summary in the received message is consistent with the summary generated by itself, the correctness of the transaction content, and whether the transaction authority is authorized. After the validity verification is passed, it enters the preparation state, and the nodes in the same standard intellectual property transaction consensus group send preparation messages to other nodes;

[0129] S3-4: After receiving a preset number of prepare messages, the nodes based on the standard intellectual property transaction consensus group verify the validity of the prepare messages and the node identity. After the validity and node identity verification are passed, the two-stage IPBFT group consensus succeeds and generates a consensus transaction message;

[0130] S4: After the two-stage IPBFT intra-group consensus is successful, inter-group Raft consensus is performed based on the supervisory node and using the Raft algorithm among all standard intellectual property transaction consensus groups, including the following steps:

[0131] S4-1: After the two-stage IPBFT group consensus is successful, the leader election is carried out, and the leader node is selected by voting from several candidate nodes in the standard intellectual property transaction consensus group; during the entire consensus process, the supervisory node is used to receive and copy transaction data, but does not directly participate in the leader election and voting. The identities of other nodes are three types: leader node, follower node and candidate node; when a node joins the system, the committee decides whether there is a leader node. If there is a leader node, the role of the node will be a follower node. There is always only one leader node in the system;

[0132] S4-2: Based on the leader node, it receives the consensus transaction message of the two-stage IPBFT intra-group consensus, performs inter-group Raft consensus, converts the consensus transaction message into a log entry, and broadcasts the log entry to the follower node and the supervisor node;

[0133] S4-3: Based on the follower node, append the log entry to the local log and send a confirmation message to the leader node and the supervisor node;

[0134] S4-4: After both the supervisory node and the leader node receive the preset number of confirmation messages, the supervisory node reviews the leader node. After the review is passed, the inter-group Raft consensus is successful;

[0135] In the Raft algorithm, the system nodes are divided into three roles: leader, follower and candidate; the leader decides whether to store new log messages and has the right to send data; the Raft consensus node role can change between leader, follower and candidate as conditions continue to change. There is only one leader at any time. When a node joins the system, the committee decides whether there is a leader. If there is, the role of the node is a follower. In the case that the leader does not communicate with other nodes, the committee elects a leader again, and the follower becomes a candidate. The candidate will send a voting request to other nodes to apply to become the new leader. If the candidate receives confirmation messages from more than half of the nodes within a period of time, the candidate will be selected as the leader, and other nodes will be converted from candidates to followers.

[0136] In the log replication phase, all transactions are packaged by the leader to generate blocks and broadcast messages to followers. The leader in the Raft algorithm is a strong leader; when more than half of the followers respond, the leader will send a confirmation message to all nodes and submit the block to the chain. If the leader node is a malicious node and sends false messages to followers, it will affect the consistency of the consensus process. This embodiment introduces a supervisory node to supervise the behavior of the leader node;

[0137] To ensure the effectiveness of supervision, the supervisory node exists anonymously in the Raft algorithm and does not participate in the leader election. The supervisory node follows the leader as a follower to prevent the leader from defrauding them. After receiving messages from the leader and the follower, the supervisory node verifies the signature and compares the signature content to determine whether there is malicious behavior. When the master node group executes the Raft consensus, the supervisory node's supervision strategy is divided into three stages: evidence collection, evidence presentation, and verification:

[0138] Evidence collection phase:

[0139] At this stage, the supervisory node will actively collect messages and signatures from various nodes; these messages include heartbeat information, submission logs, and voting requests; the supervisory node will verify whether the messages sent by the leader node are the same and whether the signature of each message is correct;

[0140] Evidence presentation phase:

[0141] After collecting enough evidence, the supervisory node needs to package the evidence into a verification message and send it to other nodes. This includes organizing the collected messages and signatures into an understandable form and broadcasting this information to other nodes. The presentation of evidence needs to have a clear structure and reasonable logic so that other nodes can correctly understand and judge.

[0142] Verification phase:

[0143] Once the evidence is presented to other nodes, they need to verify whether there are inconsistencies or contradictions in the public keys and other information of the nodes with malicious behavior in the evidence; if the evidence is sufficient and consistent, the nodes can reach a consensus that the behavior of certain nodes is malicious and make a decision on whether to delete these nodes with malicious behavior;

[0144] S5: After the inter-group Raft consensus is successful, the corresponding intellectual property transaction consensus result is returned to the client, and the intellectual property transaction consensus result is uploaded to the blockchain network.

[0145] Combining the Byzantine fault tolerance characteristics of the PBFT algorithm and the efficient consistency of the Raft algorithm, an IPBFT algorithm is proposed to process transaction requests in parallel. Through grouping double-layer consensus, the first layer is reached by the nodes in each group executing the two-stage PBFT algorithm, and the second layer is reached by the master node and the central node of each group executing the Raft algorithm. The communication complexity of the system is reduced and the consensus efficiency is improved. The leader node of the Raft algorithm consensus is supervised at the terminal layer through the monitoring strategy of the supervisory node, and the reliability of the consensus is guaranteed through mechanisms such as evidence collection, evidence presentation and verification.

[0146] Embodiment 2:

[0147] like Figure 2 As shown, this embodiment provides an intellectual property transaction system based on the IPBFT algorithm, which is used to implement the intellectual property transaction method. The system includes an intellectual property transaction platform and several clients, and the several clients are all connected to the intellectual property transaction platform in communication. The intellectual property transaction platform is provided with a blockchain network, and the intellectual property transaction platform includes a node grouping unit, a node standardization processing unit, an intra-group consensus unit, an inter-group consensus unit, and a consensus result chain unit;

[0148] The intellectual property transaction platform receives intellectual property transaction requests sent by clients, reaches consensus on the intellectual property transaction requests, and uses the blockchain network to upload the intellectual property transaction consensus results to the chain;

[0149] A node grouping unit, used to group several nodes of the blockchain network using a node grouping algorithm to obtain several corresponding intellectual property transaction consensus groups;

[0150] The node standardization processing unit is used to obtain the reputation value of the nodes in each intellectual property transaction consensus group according to the hybrid reputation mechanism scoring strategy, and select the supervisory nodes in the intellectual property transaction consensus group according to the reputation value, and remove malicious nodes to obtain a number of corresponding standard intellectual property transaction consensus groups;

[0151] The intra-group consensus unit is used to send the intellectual property transaction request to the corresponding standard intellectual property transaction consensus group according to the intellectual property transaction type of the intellectual property transaction request, and based on a fixed master node, use the IPBFT consensus algorithm in each standard intellectual property transaction consensus group to perform a two-stage IPBFT intra-group consensus;

[0152] The inter-group consensus unit is used to conduct inter-group Raft consensus among all standard intellectual property transaction consensus groups after the two-stage IPBFT intra-group consensus is successful, based on the supervisory node and using the Raft algorithm;

[0153] The consensus result chain unit is used to return the corresponding intellectual property transaction consensus result to the client after the inter-group Raft consensus is successful, and use the blockchain network to chain the intellectual property transaction consensus result.

[0154] The present invention is not limited to the above optional implementations, and anyone can derive other various forms of products under the enlightenment of the present invention. The above specific implementations should not be understood as limiting the scope of protection of the present invention. The scope of protection of the present invention should be based on the definition in the claims, and the description can be used to interpret the claims.

Claims

1. A method for intellectual property transaction based on IPBFT algorithm, Features: The steps include: Based on the intellectual property transaction platform, receive the intellectual property transaction request sent by the client, and use the node grouping algorithm to group several nodes of the blockchain network to obtain several corresponding intellectual property transaction consensus groups; According to the hybrid reputation mechanism scoring strategy, the reputation value of each node in the intellectual property transaction consensus group is obtained, and the supervisory nodes in the intellectual property transaction consensus group are selected according to the reputation value, and malicious nodes are removed to obtain the corresponding standard intellectual property transaction consensus groups; According to the intellectual property transaction type of the intellectual property transaction request, the intellectual property transaction request is sent to the corresponding standard intellectual property transaction consensus group, and based on a fixed master node, the IPBFT consensus algorithm is used in each standard intellectual property transaction consensus group to conduct a two-stage IPBFT intra-group consensus; After the two-stage IPBFT intra-group consensus is successful, inter-group Raft consensus is performed based on the supervisory node and using the Raft algorithm among all standard intellectual property transaction consensus groups; After the inter-group Raft consensus is successful, the corresponding intellectual property transaction consensus result is returned to the client, and the intellectual property transaction consensus result is uploaded to the chain using the blockchain network.

2. According to the IPBFT algorithm-based intellectual property transaction method of claim 1, Features: The node grouping algorithm is the IFCM clustering algorithm.

3. According to the intellectual property transaction method based on the IPBFT algorithm according to claim 2, Features: Based on the intellectual property transaction platform, an intellectual property transaction request sent by a client is received, and the IFCM clustering algorithm is used to group several nodes of the blockchain network to obtain several corresponding intellectual property transaction consensus groups, including the following steps: Based on the intellectual property transaction platform, receiving the intellectual property transaction request sent by the client; Collect attribute information and behavior data of all nodes in the blockchain network and construct corresponding feature vectors; Initialize the fuzzy clustering parameters of the IFCM clustering algorithm and generate several initial cluster centers; Based on the node's feature vector, randomly initialize each node's membership to each intellectual property transaction consensus group to generate an initial membership matrix; Based on the feature vector of the node, the initial membership matrix is ​​updated according to the Euclidean distance from each node to each initial cluster center to obtain an updated membership matrix; According to the updated membership matrix, several initial cluster centers are updated to obtain several updated cluster centers; Iteratively update the membership matrix and cluster centers until the condition of minimizing the objective function is met, and the optimal membership matrix and several optimal cluster centers are obtained; According to the Euclidean distance from each node to each optimal cluster center, the nodes are divided into corresponding intellectual property transaction consensus groups, and a number of initial intellectual property transaction consensus groups with the number of nodes equal to the average value are obtained; The optimal cluster center of each initial intellectual property transaction consensus group is fine-tuned until the difference between the membership matrix before and after the adjustment is less than a threshold, and then several final intellectual property transaction consensus groups are output.

4. According to the intellectual property transaction method based on the IPBFT algorithm according to claim 1, Features: The hybrid reputation mechanism scoring strategy is composed of the entropy weight method and the reputation mechanism scoring strategy.

5. According to the IPBFT algorithm-based intellectual property transaction method of claim 4, Features: According to the hybrid reputation mechanism scoring strategy, the reputation value of each node in the intellectual property transaction consensus group is obtained, and the supervisory node in the intellectual property transaction consensus group is selected according to the reputation value, and malicious nodes are removed to obtain the corresponding standard intellectual property transaction consensus groups, including the following steps: Based on the hybrid reputation mechanism scoring strategy, the entropy weight method is used to obtain the honest behavior weight and malicious behavior weight of the nodes in the intellectual property transaction consensus group; Obtain the node's reputation value based on the honest behavior weight and malicious behavior weight, and set the node reputation value update strategy; According to the reputation value, all nodes in the intellectual property transaction consensus group are sorted, the nodes with the highest reputation value are used as supervisory nodes, and the nodes with reputation values ​​below the reputation value threshold are removed as malicious nodes to obtain the corresponding standard intellectual property transaction consensus group; Traverse all intellectual property transaction consensus groups, repeat the above steps, and obtain the corresponding standard intellectual property transaction consensus groups.

6. According to the IPBFT algorithm-based intellectual property transaction method of claim 5, Features: Based on the hybrid reputation mechanism scoring strategy, the entropy weight method is used to obtain the honest behavior weight and malicious behavior weight of the nodes in the intellectual property transaction consensus group, including the following steps: Set a first evaluation matrix of honest behavior indicators of nodes and a second evaluation matrix of malicious behavior indicators; Normalizing each column in the first evaluation matrix and the second evaluation matrix to obtain a first normalized evaluation matrix and a second normalized evaluation matrix; Obtaining information entropy of each column in the first normalized evaluation matrix and the second normalized evaluation matrix; According to the ratio of information entropy to total information entropy, the honest behavior weight of each honest behavior indicator and the malicious behavior weight of each malicious behavior indicator are obtained.

7. According to the IPBFT algorithm-based intellectual property transaction method of claim 6, Features: According to the honest behavior weight and malicious behavior weight, the reputation value of the node is obtained, and the node reputation value update strategy is set, including the following steps: According to the honest behavior weight of the honest behavior index, the honest behavior is graded and a corresponding reward behavior table is established; and according to the malicious behavior weight of the malicious behavior index, the malicious behavior is graded and a corresponding punishment behavior table is established; According to the reward behavior table, obtain the reward value of the node in the current consensus stage, and according to the penalty behavior table, obtain the penalty value of the node in the current consensus stage; Obtain the corresponding reputation value based on the reward and penalty values ​​of the node in the current consensus stage; Introduce the hyperbolic tangent function and set the node reputation update strategy.

8. According to the IPBFT algorithm-based intellectual property transaction method of claim 1, Features: According to the intellectual property transaction type of the intellectual property transaction request, the intellectual property transaction request is sent to the corresponding standard intellectual property transaction consensus group, and based on a fixed master node, in each standard intellectual property transaction consensus group, the IPBFT consensus algorithm is used to perform a two-stage IPBFT intra-group consensus, including the following steps: According to the intellectual property transaction type of the intellectual property transaction request, the intellectual property transaction request is sent to the corresponding standard intellectual property transaction consensus group; Based on the fixed master node in the standard intellectual property transaction consensus group of the same intellectual property transaction type, the IPBFT consensus algorithm is used to broadcast the pre-prepared message to the central node of other standard intellectual property transaction consensus groups and other slave nodes in the group; Based on the central node and slave nodes in the standard intellectual property transaction consensus group, the validity of the pre-prepared message is verified. After the validity verification is passed, it enters the preparation state, and the nodes in the same standard intellectual property transaction consensus group send preparation messages to other nodes; Based on the nodes of the standard intellectual property transaction consensus group, after receiving a preset number of preparation messages, the validity of the preparation messages and the node identity are verified. After the validity and node identity verification are passed, the two-stage IPBFT group consensus is successful and a consensus transaction message is generated.

9. According to the IPBFT algorithm-based intellectual property transaction method of claim 8, Features: After the two-stage IPBFT intra-group consensus is successful, the inter-group Raft consensus is performed based on the supervisory node and the Raft algorithm is used among all standard intellectual property transaction consensus groups, and the corresponding intellectual property transaction consensus results are returned to the client, including the following steps: After the two-stage IPBFT group consensus is successful, a leader election is conducted to vote for a leader node from a number of candidate nodes in the standard intellectual property transaction consensus group; Based on the leader node, it receives the consensus transaction messages of the two-stage IPBFT intra-group consensus, performs inter-group Raft consensus, converts the consensus transaction messages into log entries, and broadcasts the log entries to the follower nodes and supervisor nodes; Based on the follower node, the log entry is appended to the local log and a confirmation message is sent to the leader node and the supervisor node; After both the supervisory node and the leader node receive a preset number of confirmation messages, the supervisory node reviews the leader node. If the review is passed, the inter-group Raft consensus is successful.

10. An intellectual property transaction system based on the IPBFT algorithm, used to implement the intellectual property transaction method as described in any one of claims 1 to 9, Features: The system includes an intellectual property trading platform and several clients, and the several clients are all connected to the intellectual property trading platform in communication. The intellectual property trading platform is provided with a blockchain network, and the intellectual property trading platform includes a node grouping unit, a node standardization processing unit, an intra-group consensus unit, an inter-group consensus unit, and a consensus result chain unit.

Citation Information

Cited By

  • On-chain data security verification method and system

    CN119276514A

  • Intellectual property transaction platform user behavior monitoring method based on smart contract

    CN119558945A

  • User behavior monitoring method of intellectual property trading platform based on smart contract

    CN119558945B