A multi-mode trust cross-chain consensus method, system, medium, device and terminal
Through the multi-modal trust cross-chain consensus method based on the blockchain trust model, the problem of dynamic changes in blockchain trust relationships is solved, efficient cross-chain interconnection between blockchains is achieved, security and timeliness are enhanced, and promotion The value transfer between blockchains.
Patent Information
- Application Number
- CN202210666597.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-06-14
AI Technical Summary
Existing blockchain cross-chain technology faces trust issues, including hash time locks that require high trustworthiness, single points of failure in the notary mechanism, high relay/side chain costs and low timeliness, and the inability to dynamically adjust trust relationships. , causing cross-chain data exchange and value circulation to be blocked.
Adopting a multi-mode trust cross-chain consensus method based on the blockchain trust model, by building a trust committee, combining fuzzy theory and probability distribution, calculating the trust value, flexibly switching cross-chain modes to meet the cross-chain needs of different trust relationships, and utilizing cross-chain The chain mounting structure improves interoperability timeliness.
It realizes the dynamic adjustment of trust relationships between blockchains, avoids the defects of a single model, enhances system security and operational efficiency, and promotes value transfer and data sharing between blockchains.
Smart Images

Figure CN115499129B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain cross-chain technology and blockchain application technology, and in particular to a multi-mode trust cross-chain consensus method, system, medium, device and terminal. Background Art
[0002] At present, with the application of blockchain technology in energy big data, government affairs, data sharing and other fields, blockchain types adapted to various scenarios are gradually prospering. On the one hand, each ledger is isolated from each other, forming a data island, which brings challenges to inter-chain data access and consistency collaboration. On the other hand, each blockchain ledger is highly autonomous, each has its own implementation mechanism and economic system, which makes the security of blockchain-related technologies uneven, resulting in the inability of cross-chain parties to establish a trust relationship.
[0003] In order to solve the above problems and ensure the security of cross-chain interoperability, for the first cross-chain problem, the current cross-chain solutions mainly include hash time locks, notary mode and relay / side chain solutions. However, hash time locks can simply realize the exchange of assets under the chain, but this requires a high degree of trust between the two parties of the asset exchange, and once there is a node that frantically initiates off-chain exchange, it will seriously block the operation of the main business of the blockchain. The second type of notary mechanism relies on the trusted identity of the notary to ensure the cross-chain of the blockchain. Once the notary is malicious, it will seriously lead to the operation of cross-chain operations and the possibility of single point failure. The third type has a high maintenance space cost due to the high cost of maintaining relays and side chains, and the timeliness of cross-chain will be greatly reduced. In addition, the fixation of the consensus node of the relay chain platform will also reduce its security. For the second inter-chain trust problem, one type of solution is to set up a centralized management agency to manage the trust of the blockchain. It is simple and easy to implement, but the disadvantage is that the trust is completely placed on an intermediary, which is too centralized; the other solution is to establish trust through agreed rules. The disadvantage is that there are too many uncertain factors and the issues to be considered are also very complicated. Therefore, due to the constant changes in trust, the current blockchain cross-chain mechanism cannot dynamically change according to the degree of trust of each organization, making it difficult to meet the requirements of cross-chain data access between blockchain systems with different trust relationships, hindering the circulation of data and value between blockchains.
[0004] In blockchain ledgers of various scenarios, as trust relationships continue to change, how to dynamically switch cross-chain solutions based on changes in trust relationships and meet the cross-chain needs of different trust relationships in a multi-modal symbiotic environment is a technical difficulty that needs to be solved urgently.
[0005] Through the above analysis, the problems and defects of the prior art are as follows:
[0006] (1) Hash time locks require a high level of trust between the two parties in the asset exchange, and once there are nodes that frantically initiate off-chain exchanges, it will seriously block the operation of the main blockchain business.
[0007] (2) The notary mechanism relies on the notary’s trusted identity to ensure cross-chain blockchain. Once the notary is malicious, it will seriously affect the operation of cross-chain operations and there is a possibility of single point failure.
[0008] (3) The cost of maintaining relays and side chains is high, the timeliness of cross-chain will be greatly reduced, and the fixation of the consensus nodes of the relay chain platform will also reduce its security.
[0009] (4) The trust in the blockchain trust management method of establishing a centralized management agency is too centralized; and there are too many uncertainties in establishing trust through agreed rules, and the issues to be considered are also very complex.
[0010] (5) The current cross-chain mechanism of blockchain cannot change dynamically according to the degree of trust between each other, making it difficult to meet the requirements of cross-chain data access between blockchain systems with different trust relationships, hindering the flow of data and value between blockchains. Summary of the invention
[0011] In response to the problems existing in the prior art, the present invention provides a multi-mode trust cross-chain consensus method, system, medium, device and terminal, and in particular, relates to a multi-mode trust cross-chain consensus method, system, medium, device and terminal based on a blockchain trust model.
[0012] The present invention is implemented as follows: a multi-mode trust cross-chain consensus method, the multi-mode trust cross-chain consensus method includes: based on the network status, blockchain system security, node data consistency and node evil rate during the operation of the blockchain, a blockchain security trust model is constructed, the trust components of each system are determined in combination with fuzzy theory and probability distribution, and the trust value of the system is obtained by weight and sum. Based on this model, a multi-mode trust symbiotic environment between chains is constructed. By designing a multi-mode cross-chain consensus mode, it can be flexibly switched between direct cross-chain, intermediary cross-chain and committee cross-chain modes to meet the cross-chain interconnection between systems with different trust relationships, and the cross-chain mounting structure is used to improve the interoperability timeliness.
[0013] Initialize the blockchain basic platform and build a trust committee; collect trust model parameters and calculate trust values; query and compare trust values and build trust relationships; select cross-chain mode based on trust relationships; complete cross-chain consensus and mount it on the chain.
[0014] Furthermore, the multi-mode trust cross-chain consensus method includes the following steps:
[0015] Step 1: Initialize the blockchain infrastructure: When the nodes and accounts on the blockchain have been initialized and hold the corresponding number of tokens, public and private key pairs, and addresses, and the centralized trust management has a blockchain ledger backed by a trusted third party, a high trust threshold is assigned based on the trust level of the trusted third-party authority; mainly through initialization, the necessary foundation is provided for subsequent trust modeling and multi-mode cross-chain.
[0016] Step 2: Build a trust committee: Select the top 2n nodes as candidate members of the trust committee based on the number of tokens held by the nodes on each blockchain; after the cross-chain demand node broadcasts the random seed, the 2n nodes calculate the VRF verifiable random function value, and finally obtain the top n nodes that meet the requirements as the trust committee C t ; Mainly through building a trust committee, establishing the implementation entity of trust measurement, and subsequently completing the trust measurement of the target chain.
[0017] Step 3: Obtain various parameter data to calculate trust values and establish trust: Trust Committee C t All nodes in the blockchain begin to collect parameter data on communication trust, security trust, data trust, historical trust, rewards and punishments, and participation trust in the blockchain; the main trust committee calculates and integrates the trust value through the various parameters obtained, establishes a trust relationship, and provides a trust basis for subsequent multi-mode cross-chain.
[0018] Step 4: Evaluate the trust relationship of the target chain based on the trust value calculated by the trust model, and select different cross-chain solutions. This is mainly to use the trust relationship basis obtained in the above steps to adapt different cross-chain solutions, so as to improve the cross-chain rate through the trust relationship.
[0019] Furthermore, the parameter data in step three includes:
[0020] (1) Communication trust data:
[0021] Trust Committee C t The nodes in the cross-chain target chain send heartbeat packets to communicate with the nodes in the cross-chain target chain, and calculate the trust value using the constructed logical model based on the sent heartbeat packets and the collected data.
[0022] The subjective logical framework is used for calculation, and the communication trust triple T = {b, d, un} is defined, where b represents the situation where the communication interaction between nodes of different blockchains is evaluated as trusted, d represents the situation where the communication interaction between nodes of different blockchains is evaluated as untrusted, and un represents the communication interaction between nodes of different blockchains; {b, d, un} ∈ [0, 1], and b + d + un = 1. Following the trust model based on the subjective logical framework, the communication trust T of the blockchain security trust model is obtained. comThe calculation formula is as follows:
[0023]
[0024] in,
[0025] Among them, s represents the communication success situation when different blockchains send communication packets to each other, and f represents the communication failure situation when different blockchain nodes send communication packets to each other.
[0026] (2) Participation Trust Data:
[0027] Trust Committee C t The nodes in the cross-chain target chain obtain the block data of the blockchain, analyze the block producers of the first n blocks, calculate the block participation, and derive the participation trust according to the trust model:
[0028] Engagement is defined as:
[0029]
[0030] Among them, num block Indicates the total number of blocks obtained by the node in the recent period, num min Indicates the number of nodes participating in data acquisition in the blocks acquired in the most recent period;
[0031] Set engagement thresholds When the participation of the blockchain system exceeds the participation threshold It means that the blockchain is on-chain through the consensus of the majority of nodes. The larger the value of θ, the higher the security and credibility of the blockchain. part The calculation formula is described as follows:
[0032]
[0033] in, represents the participation threshold, and θ represents the consensus participation of blockchain nodes.
[0034] (3) Data trust data:
[0035] Trust Committee C t The nodes in obtain the block data of the blockchain in the cross-chain target chain and analyze the synchronization rate of the obtained block data; if the network synchronization rate of the blockchain is calculated, the data trust value under the corresponding synchronization rate is calculated through the normal distribution random function:
[0036] Data consistency trust value T data The calculation formula is described as follows:
[0037]
[0038] Among them, x represents the proportion of the latest blocks of another blockchain obtained by the blockchain; σ is the variance of the random variable, which is taken as 0.2.
[0039] (4) Secure Trust Data: Trust Committee C t The nodes in the chain obtain various system parameters and trust ratings that have been set or implemented in the cross-chain target chain, and build a fuzzy evaluation matrix; assign weight values to each part according to its importance, and calculate security trust data.
[0040] (5) Reward and Punishment Data: Trust Committee C t The nodes in the chain obtain the attack conditions recorded in the cross-chain target chain and the normal and safe operation of the system. According to the set of attack conditions and the impact of the attack on trust, the trust impact value is calculated to obtain the reward and punishment trust.
[0041] As the safe operation time of the blockchain system t increases, the trust value of the blockchain system will increase accordingly; re Defined as the trust reward, it increases with the increase of safe operation time, T re The description is as follows:
[0042]
[0043] Among them, β>1, r>1, It is expressed as the trust improvement parameter, which means the speed of trust improvement; t represents the safe operation time of the blockchain system;
[0044] The blockchain system security attack category vector P is defined as follows: P = (P 1 ,P 2 ,P 3 ,P 4 ,…,P n ), where P i Represents a certain attack type in the blockchain system and defines the attack severity set P i , P i =(p i1 ,p i2 ,p i3 ,p i4 ,…,p im ), where pij represents the i The j-th level of attack in this security attack category will have different trust value change sets for different attack levels.
[0045] Define the penalty trust value T punish as follows:
[0046]
[0047] Among them, γ im Indicates that the blockchain system is affected by P i In the case of a security attack of the type, it is the impact of the trust value at the mth severity level, w i Indicates the impact of the i-th attack category on the security of the blockchain system.
[0048] (6) Historical Trust Data: Trust Committee C t The nodes in the blockchain continuously update and iterate their trust values according to the growth of cross-chain operations. Based on the time decay factor, the nodes use the previous n historical trust values to calculate the historical trust value according to the historical trust model.
[0049] Record the historical trust value list of the blockchain system, denoted as TL history , TL history =[t h1 ,t h2 ,t h3 ,t h4 ,…,t hn ], t hi They respectively represent the distribution of the trust values calculated for the i-th time by the blockchain system before the trust values are updated at the current time point; different proportions of the historical trust values will be assigned according to the fluctuations of the historical trust values.
[0050] The formula for calculating the fluctuation D of the historical trust values in the historical trust value list is as follows:
[0051]
[0052] Among them, t h Represents the average value of the historical trust value of the blockchain system, t hi It is the i-th trust value among the first n trust values.
[0053] Define parameter α, α represents the threshold of trust value fluctuation, and the weight distribution of historical trust value and current trust value is as follows:
[0054]
[0055] Among them, t h represents the average value of the n historical trust values before the current trust value, and When the fluctuation is greater than α, it means that the change is large, and the currently calculated trust value is used as the main weight; when the fluctuation is less than α, it means that the change is relatively stable, and the current historical trust value is used as the main weight.
[0056] (7) Trust Integration: Trust Committee C tThe nodes in the network will integrate the acquired trust data according to the trust model integration solution to obtain the final trust value, and then upload it to the chain through consensus to complete the trust assessment.
[0057] Trust integration is the combination of trust values obtained from each part, and the current value of trust value T is obtained. current :
[0058] T current =w 1 T com +w 2 T part +w 4 T data +w 3 T sec +w 4 (T re -T punish );
[0059] Among them, w i Represents the weight of each part of the trust value, T com ,T part ,T data ,T sec ,T re ,T punish are the trust values of each part respectively.
[0060] According to the method described by historical trust, based on the fluctuation of historical trust value D, the final trust value T is calculated according to the ratio of historical and current trust values. The calculation method is as follows:
[0061]
[0062] The Trust Building Committee calculates the final blockchain system security trust value, uploads it to the chain through consensus, broadcasts it to all member nodes of the chain, and then performs regular maintenance and updates.
[0063] Furthermore, the security trust evaluation method includes:
[0064] The comprehensive fuzzy evaluation method of fuzzy logic is used to calculate the trust value T of the security attribute of the blockchain system. sec :
[0065] (1) Establishing a comprehensive evaluation factor set
[0066] Establish a set of comprehensive evaluation factors for the security indicators of the blockchain system, U = (u 1 ,u 2 ,u 3 ,u 4 ,...,u m ), where ui represent the safety evaluation index factors mentioned above.
[0067] (2) Establishing an evaluation set for comprehensive evaluation
[0068] For the m blockchain security evaluation index factors defined in step (1), set their respective security comprehensive evaluation sets, represented by V as follows: V = (v 1 ,v 2 ,v 3 ,v 4 ,...,v n ), where vj represents the j-th comprehensive evaluation rating of the comprehensive evaluation index set ui in U.
[0069] (3) Perform fuzzy evaluation on single factors to obtain the evaluation matrix
[0070] For the evaluation indicators and comprehensive evaluation set established above, for the single factor u i Perform fuzzy evaluation and obtain the evaluation matrix R, R i =(r i1 ,r i2 ,r i3 ,r i4 ,...,r in ), where m single factor evaluation sets R 1 , R 2 , R 3 ,…,R m Composition evaluation matrix R m*n , becomes a fuzzy comprehensive evaluation matrix, as shown below:
[0071]
[0072] Among them, r ij Indicates that for the evaluation index U i Rated V for j The membership degree of r i1 +r i2 +...+r ij +r i(j+1) +...+r in =1, and the membership degree is defined as the rating ratio when rating the blockchain system.
[0073] (4) Allocating weights to security attribute index factors
[0074] Obtain the fuzzy evaluation matrix, determine the weight value assigned to the security trust value of each evaluation indicator according to the importance of each security attribute to the blockchain system, and obtain the weight vector value A, which is described as follows: A = (a 1 ,a 2 ,a 3 ,a 4 ,...,am ), where a i For the evaluation index set u i How important is the security of the blockchain system? 1 +a 2 +a 3 +a 4 +…+a n =1.
[0075] (5) Synthetic evaluation vector
[0076] After determining the single factor evaluation matrix R and the weight vector A of the fourth factor in step 4, the fuzzy vector A on U is transformed into the fuzzy vector B on V through comprehensive fuzzy operation. The formula is expressed as follows:
[0077]
[0078] in, It is called comprehensive evaluation synthesis operator. Here, the present invention takes is the matrix multiplication operation.
[0079] (6) Calculate the security trust value
[0080] Determine the rating score S = (s 1 ,s 2 ,s 3 ,s 4 ,...,s n ), T is calculated by the following formula sec , obtain the final blockchain security parameter trust value;
[0081]
[0082] Furthermore, in step 4, the trust relationship of the target chain is evaluated according to the trust value calculated by the trust model, and different cross-chain solutions are selected, including:
[0083] (1) Centralized Trust
[0084] 1) Same trusted third party
[0085] 1. Two nodes a and Node b Direct cross-chain interoperability between Node a and Node b Initiate a reset transaction with each other, and automatically roll back in the event of timeout or malicious behavior in the subsequent process;
[0086] 2. Reset the transaction if and only if the signatures of two nodes are obtained a and Sig b To take effect;
[0087] 3.Node a Randomly generate a password Key;
[0088] 4.Node a In chain B 1 Initiate a cross-chain transaction on the b Node's signature Sig b To take effect, Node b In chain B 2 Initiate a cross-chain transaction on the Node. The cross-chain transaction only requires the input of the Key. After the verification is successful, a Node's signature Sig a will take effect;
[0089] 5. Transactions are conducted on their respective blockchains for consensus;
[0090] 6. After the transaction is completed, the two nodes obtain the transaction SPV proof on their respective blockchains;
[0091] 7. After successfully verifying the SPV proof, send a cross-chain redemption transaction request;
[0092] 8.Node a In order to get the funds, the correct Key will be entered;
[0093] 9.Node b After getting the Key, use the Key and your own signature Sig b , in chain B 2 Verify the Key on the server;
[0094] 10. After verification, Node a and Node b They will each receive the corresponding transfer assets, completing the atomic direct cross-chain exchange.
[0095] 11. If the correct key and signature information are not provided within the timeout period, the transaction will be automatically withdrawn.
[0096] 2) Different trusted third parties
[0097] 1.Node a Initiate a cross-chain transaction request, CA Notary forwards the request, and asks Node b agree;
[0098] 2.Node b Agree to the cross-chain transaction request, and the CA notary forwards the consent request;
[0099] 3. Notary is in Nodea and Node b Create an account on the blockchain;
[0100] 4.Node a and Node b Initiate transfers to the notary respectively;
[0101] 5. Pass transaction consensus and conduct SPV verification;
[0102] 6. After verification, cross-chain transaction is completed using atomic settlement.
[0103] (2) Distributed Trust
[0104] 1) Trust threshold
[0105] Define three trust thresholds τ, μ, and δ, where τ represents the initial security trust value of a blockchain system that can participate in cross-chain interoperability, and μ represents the security trust value of a blockchain that can participate in cross-chain interoperability. When the security trust value exceeds μ, cross-chain operations can be performed using the cross-chain committee. Similarly, δ means that when the blockchain security trust value exceeds it, it meets the requirements for direct cross-chain operations, and cross-chain operations are completed directly through cross-chain operations between nodes.
[0106] 2) Same trust domain
[0107] There are different cross-chain methods according to the level of trust domain formed: one is direct cross-chain, and the other is committee consensus cross-chain. When both blockchain systems are in a trust domain with a high trust value δ, the direct cross-chain method is used; when they are in a trust domain with a low trust value μ, the committee cross-chain method is used.
[0108] 3) Trust bias
[0109] A high trust value indicates that the blockchain is highly trustworthy, while a low trust value indicates that the blockchain is less trustworthy. A blockchain with a high trust value can directly cross chains to a blockchain with a low trust value, while a blockchain with a low trust value can cross chains to a blockchain with a high trust value without trust. The committee cross-chain method is used for verification and decision-making.
[0110] 4) Indirect Trust
[0111] When in B 1 There is B in the blockchain trust list 2 and B 4 , while B 1 Only B is in the blockchain trust list 3 The notary cross-chain process includes:
[0112] 1. First, blockchain B 1 If there is a need for cross-chain, broadcast to the blockchain it trusts in the entire network;
[0113] 2. Because B 2 Trust B 3 , received B 1 After the cross-chain broadcast, reply B 2 Trust list and sign it;
[0114] 3. After receiving the trust list of feedback B 1 Calculate the trust value and verify B 3 Credibility;
[0115] 4.B 1 Initiate a cross-chain transaction, similarly to B 2 After verification, it will also be sent to B 3 Initiate a cross-chain request;
[0116] 5. Verify and confirm cross-chain transactions through SPV;
[0117] 6. After verification, the atomic swap settlement is completed;
[0118] 5) Multi-chain and cross-chain.
[0119] a) Committee elections
[0120] A committee cross-chain solution is adopted by mapping the nodes in the cross-chain blockchain set to the committee nodes.
[0121] A hash collision scheme based on assets and computational difficulty is proposed. When there is a cross-chain request, a random number is broadcast to trigger the election operation of the cross-chain committee. Members who want to compete to become members of the cross-chain committee node need to pledge tokens. According to the pledged tokens, the difficulty value P is calculated according to the token pledge.
[0122]
[0123] Among them, [] is the rounding function, ρ is the difficulty factor, M is the total number of tokens on the chain, and m* is the token held by the node.
[0124] The hash collision value is calculated based on the random number, difficulty value P and the self-incrementing variable nance, and the first n nodes that meet the difficulty are used as member nodes of the cross-chain committee.
[0125] The block-producing nodes are elected. The committee nodes calculate the VRF verifiable random function based on the committee random number, and the committee nodes with the highest ranking are compared and sorted to become the block-producing nodes.
[0126] b) Committee Share Allocation
[0127] The algorithm for allocating the number of shares of members in the committee is as follows:
[0128] Algorithm 1: Committee Node Share Algorithm
[0129] Define trustSum = 0, trust is the blockchain trust value array
[0130] initialization
[0131] 1) fori = 1, 2, ... ndo
[0132] 2) trustSum+=trust[i]
[0133] 3)endfor
[0134] 4)fori=1,2,…,ndo
[0135] 5)
[0136] 6) end for
[0137] c) Committee Re-election
[0138] 1. Periodic reorganization with the periodic update of blockchain security trust value;
[0139] 2. The occurrence of serious blockchain security incidents leads to reorganization.
[0140] d) Blockchain exit and entry
[0141] 1. Blockchain joins cross-chain
[0142] When the security trust value of the blockchain system reaches the threshold μ and there is a cross-chain demand, a cross-chain joining request is made; after the consensus of the cross-chain committee, it is eligible to join the cross-chain committee; after the consensus is reached, it does not directly join the cross-chain committee according to the share allocation, but waits until the reorganization of the mentioned committee begins, and then participates in the cross-chain blockchain set through weight distribution.
[0143] 2. Blockchain exits cross-chain
[0144] As the blockchain system runs, the blockchain system no longer needs cross-chain operations. In this case, a withdrawal request to the cross-chain committee needs to be approved by the consensus of the cross-chain committee. After the current cycle ends, the blockchain will be excluded during the reorganization. The current blockchain system does not participate in the cross-chain. When the cross-chain committee detects that the blockchain of a committee member has security issues or malicious behavior, the elected master node will submit a removal request. After receiving the removal request, the committee will execute the removal operation and start the reorganization of the committee as a new cycle.
[0145] e) Cross-chain mounting structure
[0146] For general cross-chain operations, it is necessary to go through many node consensuses. Therefore, in order to achieve better real-time performance, verifiability of transaction data and system security, the present invention will propose a new cross-chain structure to further improve the cross-chain efficiency and effectiveness of blockchain. After the cross-chain transaction data is passed by consensus in the cross-chain committee, it will be directly packaged with the most recent consensus block, and the transaction ledger data will be mounted on the new block. This will not only reduce the time of a main chain consensus, improve speed and efficiency, but also achieve good query efficiency of transaction data, but its security needs to be guaranteed by cross-chain consensus.
[0147] Furthermore, the trust relationship of the target chain is evaluated according to the trust value calculated by the trust model in step 4, and different cross-chain solutions are selected, specifically including:
[0148] (1) Centralized Trust:
[0149] 1) Same trusted third party
[0150] Blockchain B 1 and B 2 They are two blockchains that are authorized and certified by the same high-trust CA authority. They are initially given a high trust value in centralized trust, and a strong trust relationship is established between the two blockchains.
[0151] When blockchain chain B 1 Node on a , initiate a cross-chain operation request, and the target chain replies with a response; Node a and Node b Direct cross-chain interoperability between Node a and Node b Initiate a reset transaction between each other. In the subsequent process, it will be automatically rolled back in case of timeout and malicious behavior. The reset transaction will be reset only when the signatures of two nodes are obtained. a and Sig b To take effect; Node a A random password Key is generated and stored in chain B 1 Initiate a cross-chain transaction on the b Node's signature Sig b Node b In chain B 2 Initiate a cross-chain transaction on the Node. The cross-chain transaction only requires the input of the Key, and after the verification is passed, a Node's signature Sig aThe transaction will take effect; the transaction consensus is carried out on the respective blockchains. After the transaction is completed, the two nodes obtain the transaction SPV proof on their respective blockchains, and send a cross-chain redemption transaction request after verifying the SPV proof successfully; Node a Enter the correct Key to obtain cross-chain information; Node b After obtaining the Key, use the Key and your own signature Sig b , in chain B 2 After the verification is passed, Node a and Node b The corresponding transfer assets are obtained respectively to complete the atomic direct cross-chain exchange; if the correct key and signature information are not provided within the timeout period, the transaction will be automatically withdrawn.
[0152] 2) Different trusted third parties
[0153] Blockchain B 3 Authorized and certified by a CA authority at a lower trust level, a high trust value is initially assigned in centralized trust, and a strong trust relationship is established between the two blockchains.
[0154] When blockchain B 1 Nodea on the network initiates a cross-chain transaction request, and CA Notary forwards the request and asks Node c Agree; Node c Agree to the cross-chain transaction request, CA notary forwards the consent request; Notary uses 1 and B 3 The account initiates a cross-chain transaction to the notary. After the transaction consensus is completed, the notary conducts SPV verification. After the verification is passed, the two blockchains B 1 and blockchain B 3 Cross-chain settlement is carried out on the
[0155] (2) Distributed Trust
[0156] 1) Same trust domain
[0157] Blockchain B 4 and B 5 It is a third party and has no authoritative organization to conduct authorization and certification. It needs to establish a trust relationship after trust evaluation through a trust model. 4 and blockchain B 5 The trust committee on each blockchain obtains the parameter data related to the trust model, calculates the trust value of the corresponding target chain and performs interactive verification; when the calculated trust value T ≥ δ, it is considered that blockchain B 4 and B 5 There is a strong trust relationship between them, and a direct cross-chain approach is adopted.
[0158] Blockchain B 4 Node d Initiate a cross-chain transaction request, blockchain B 5 Receive the request and verify it. After verification, return a response agreeing to the cross-chain operation; Node d Initiate a cross-chain transaction on blockchain B 4 After consensus is reached, an SPV transaction certificate is generated and the SPV certificate and transaction information are sent to blockchain B. 5 ; Verify the SPV proof, and after verification, the consensus is uploaded to the chain to complete the cross-chain.
[0159] 2) Indirect Trust
[0160] Blockchain B 4 , B 5 and B 6 It is a third party and has no authoritative organization to conduct authorization and certification. It needs to establish a trust relationship after trust evaluation through a trust model. 4 and blockchain B 5 The trust committee on each blockchain obtains the parameter data related to the trust model, calculates the trust value of the corresponding target chain and performs interactive verification; when the calculated trust value T ≥ δ, it is considered that blockchain B 4 and B 5 There is a strong trust relationship between blockchain B 5 and B 6 There is a strong trust relationship, but B 4 and B 6 Isolation and no trust relationship; when B 4 and B 6 When cross-chain is required, an indirect cross-chain method is used.
[0161] Blockchain B 4 Node d When initiating a cross-chain transaction request, broadcast to the entire network to obtain blockchain B 6 In the case of B 5 After receiving the request, the trusted blockchain B 6 The response is returned, node Node d After receiving the broadcast message response, it verifies and then sends a cross-chain transaction request; Blockchain B 5 Receive the request and verify it. After verification, send it to B 6 After sending the cross-chain request, the Node will return the cross-chain operation response in turn; d Initiate a cross-chain transaction on blockchain B 4 After consensus is reached, an SPV transaction certificate is generated and the SPV certificate and transaction information are sent to blockchain B.5 , verify the SPV certificate; after verification, consensus is uploaded to the chain; when blockchain B 5 After completing the cross-chain transaction, an SPV transaction certificate is generated and sent to blockchain B along with the transaction information. 6 , B 6 The SPV proof is verified, and after verification, the consensus is uploaded to the chain to complete the cross-chain.
[0162] 3) Committee cross-chain
[0163] Blockchain B 4 , B 5 and B 6 It is a third party and has no authoritative organization to conduct authorization and certification. It needs to establish a trust relationship after trust evaluation through the trust model. When no broadcast response is received after the indirect trust broadcast, or when a blockchain with trust deviation needs to cross the chain and the trust evaluation value of some blockchains is within the range of [μ,δ], the committee cross-chain method is adopted.
[0164] The committee cross-chain method requires the formation of a cross-chain committee, which uses a hash collision algorithm for committee election. According to the number of tokens held by nodes on the blockchain participating in the cross-chain, the hash collision difficulty is determined based on the election algorithm, and the hash values are calculated and judged to see whether they meet the difficulty requirements. According to the committee's share allocation algorithm, the number of nodes participating in the cross-chain blockchain in the cross-chain committee is allocated. 1 , B 2 and B 3 The trust values of the blockchains are 0.6, 0.8, and 1.0 respectively. According to the share allocation, the cross-chain committee share allocation ratio is Num(B 1 ,B 2 ,B 3 )=3:4:5; Cross-chain Node d Broadcast a random seed. After receiving the broadcast seed, the nodes in the cross-chain committee calculate the VRF random proof. According to the proof sorting, select the first master node to initiate the cross-chain transaction and conduct cross-chain consensus in the cross-chain committee. Using the PBFT consensus algorithm, when the cross-chain committee node receives the consensus verification of 2 / 3 of the nodes in the Prepare stage and Commit stage respectively, it enters the Reply stage. Send the cross-chain consensus result to blockchain B. 5 and B 6 , followed by the latest block mounted on the target blockchain according to the cross-chain mounting structure to complete the cross-chain.
[0165] Another object of the present invention is to provide a multi-mode trust cross-chain consensus system applying the multi-mode trust cross-chain consensus method, wherein the multi-mode trust cross-chain consensus system comprises:
[0166] Blockchain infrastructure initialization module: When the nodes and accounts on the blockchain have been initialized and hold the corresponding number of tokens, public and private key pairs, and addresses, the centralized trust management of the blockchain ledger with a trusted third party guarantee endorsement is assigned a high trust threshold according to the trust level of the trusted third-party authority;
[0167] Construct a trust committee module to select the top 2n nodes as candidate members of the trust committee based on the number of tokens held by the nodes on their respective blockchains; after the cross-chain demand node broadcasts the random seed, the 2n nodes calculate the VRF verifiable random function value, and finally obtain the top n nodes that meet the requirements as the trust committee C t ;
[0168] The trust value calculation and trust establishment module is used to obtain various parameter data to calculate the trust value and establish trust; the trust committee C t All nodes in the blockchain begin to collect parameter data on communication trust, security trust, data trust, historical trust, rewards and punishments, and participation trust in the blockchain;
[0169] The cross-chain solution selection module is used to evaluate the trust relationship of the target chain according to the trust value calculated by the trust model, and select different cross-chain solutions.
[0170] Another object of the present invention is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the multi-mode trust cross-chain consensus method.
[0171] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the multi-mode trust cross-chain consensus method.
[0172] Another object of the present invention is to provide an information data processing terminal, which is used to implement the multi-mode trust cross-chain consensus system.
[0173] In combination with the above technical solutions and the technical problems solved, please analyze the advantages and positive effects of the technical solutions to be protected by the present invention from the following aspects:
[0174] First, in view of the technical problems existing in the above-mentioned prior art and the difficulty of solving the problems, the technical solutions to be protected by the present invention and the results and data during the research and development process are closely combined to analyze in detail and deeply how the technical solutions of the present invention solve the technical problems, and some creative technical effects brought about after solving the problems. The specific description is as follows:
[0175] This paper proposes a new blockchain trust model, and proposes and designs a multi-mode trust cross-chain mechanism based on this trust model. This paper solves the cross-chain interconnection between blockchains under different trust relationships by formulating a complete blockchain trust model, multi-mode cross-chain rules and committee construction mechanism.
[0176] Second, considering the technical solution as a whole or from the perspective of the product, the technical effects and advantages of the technical solution to be protected by the present invention are described in detail as follows:
[0177] The present invention evaluates the blockchain system by constructing a trust model, can establish different trust relationships according to the evaluation results, and design a multi-mode cross-chain consensus solution. On the one hand, it avoids the defects of a single cross-chain model, and at the same time adds trust constraints to ensure the safety of system operations, so that the ledgers can communicate, interconnect and trust each other, realize the value transfer between the ledgers, solve the ledger island problem, and promote the development of the blockchain industry.
[0178] Third, as auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in the following important aspects:
[0179] The expected benefits and commercial value of the technical solution of the present invention after transformation are:
[0180] After the technology transformation of the present invention, each independent blockchain system can establish a trust relationship based on a trust model, realize the interconnection, intercommunication and mutual recognition between blockchain ledgers, solve the problem of data islands, realize data sharing, promote the flow of value on the blockchain, form a larger system, and better play the value of blockchain technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0181] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0182] Figure 1 It is a flow chart of a multi-mode trust cross-chain consensus method provided by an embodiment of the present invention;
[0183] Figure 2 is a system design diagram provided by an embodiment of the present invention;
[0184] Figure 3 is a schematic diagram of the same trusted third party provided in an embodiment of the present invention;
[0185] Figure 4 is the same trusted third party process diagram provided by the embodiment of the present invention;
[0186] Figure 5 This is a schematic diagram of different trusted third parties at the same level provided by an embodiment of the present invention;
[0187] Figure 6 This is a schematic diagram of different trusted third parties at different levels provided by an embodiment of the present invention;
[0188] Figure 7 is a diagram of a centralized notary process provided by an embodiment of the present invention;
[0189] Figure 8 is a schematic diagram of the same trust domain provided by an embodiment of the present invention;
[0190] Fig. 9 is a schematic diagram of indirect trust provided by an embodiment of the present invention;
[0191] Fig.10 is an indirect trust process diagram provided by an embodiment of the present invention;
[0192] Fig.11 It is a schematic diagram of committee trust provided by an embodiment of the present invention;
[0193] Fig.12 It is a committee cross-chain flow chart provided by an embodiment of the present invention;
[0194] Fig.13 is a committee reorganization flow chart provided by an embodiment of the present invention;
[0195] Fig.14 is a schematic diagram of a cross-chain mounting structure provided by an embodiment of the present invention;
[0196] Fig.15 It is a schematic diagram of committee share allocation provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0197] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0198] In view of the problems existing in the prior art, the present invention provides a multi-mode trust cross-chain consensus method, system, medium, device and terminal. The present invention is described in detail below with reference to the accompanying drawings.
[0199] 1. Explanatory Examples In order to enable those skilled in the art to fully understand how to implement the present invention, this section provides an illustrative example that expands and describes the technical solution of the claims.
[0200] Prerequisite: Blockchain B 1 , B 2 and B 3Represent different blockchain ledgers in the centralized mode, B 1 and B 2 It is authorized by the same high-trust CA trusted institution, B 3 It is authorized by a CA trusted institution at a lower trust level. Blockchain B 4 , B 5 and B 6 They represent different blockchains in a distributed mode. Each blockchain has different implementation mechanisms and economic systems. a Node b and Node c Represents blockchain B 1 , B 2 and B 3 The nodes that need to cross the chain are similar to the nodes Node d Node e and Node f Represents blockchain B 4 , B 5 and B 6 Cross-chain nodes are required, and each account or node holds the token of its own blockchain. 1 , B 2 , B 3 The three blockchains are centrally managed by a trusted third party and are more trustworthy; B 4 , B 5 and B 6 The three blockchains are isolated from each other and have no trust relationship between them. In order to cope with the cross-chain requirements between blockchains under complex trust relationships, the present invention is proposed.
[0201] like Figure 1 As shown, the multi-mode trust cross-chain consensus method provided by the embodiment of the present invention includes the following steps:
[0202] S101, initialize the blockchain basic platform and build a trust committee;
[0203] S102, collecting trust model parameters and calculating trust values;
[0204] S103, querying and comparing trust values and establishing a trust relationship;
[0205] S104, select a cross-chain mode based on the trust relationship;
[0206] S105, cross-chain consensus is completed and mounted on the chain.
[0207] The specific process of the embodiment of the present invention is as follows: Figure 1 As shown, the process of establishing a cross-chain mode of trust based on blockchain provided by an embodiment of the present invention is as follows:
[0208] Step 1: Initialize blockchain infrastructure. Assume that the nodes and accounts on the blockchain have been initialized and hold the corresponding number of tokens, public and private key pairs, and addresses. At the same time, the centralized trust management has a blockchain ledger endorsed by a trusted third party, and a high trust threshold is assigned according to the trust level of the trusted third-party authority.
[0209] Step 2: Build a trust committee. According to the number of tokens held by the nodes on each blockchain, select the first 2n nodes as candidate members of the trust committee, then broadcast the random seed across the chain demand nodes, and then 2n nodes calculate the VRF verifiable random function value, and finally obtain the first n nodes that meet the requirements as the trust committee C t .
[0210] Step 3: Obtain various parameter data to calculate trust values and establish trust. Trust Committee C t All nodes in the blockchain begin to collect parameter data on communication trust, security trust, data trust, historical trust, rewards and punishments, and participation trust in the blockchain.
[0211] Communication Trust Data: Trust Committee C t The nodes in the cross-chain target chain send heartbeat packets to communicate with the nodes in the cross-chain target chain, and calculate the trust value based on the sent heartbeat packets and the collected data using the previously built logical model.
[0212] Engagement Trust Data: Trust Committee C t The nodes in obtain the block data of the blockchain in the cross-chain target chain, analyze the block producers of the first n blocks, calculate the block participation, and derive the participation trust based on the trust model.
[0213] Data Trust Data: Trust Committee C t The nodes in the cross-chain target chain obtain the block data of the blockchain, analyze the synchronization rate of the obtained block data, and calculate the network synchronization rate of the blockchain. The data trust value under the corresponding synchronization rate is calculated through the Lie normal distribution random function.
[0214] Secure Trust Data: Trust Committee C t The nodes in the chain obtain various system parameters and trust ratings that have been set or implemented in the cross-chain target chain, build a fuzzy evaluation matrix, assign weight values to each part according to its importance, and calculate security trust data.
[0215] Reward and Punishment Data: Trust Committee C tThe nodes in the chain obtain the attack conditions recorded in the cross-chain target chain and the normal and safe operation of the system. According to the set of attack conditions set in advance and the impact of the attack on trust, the trust impact value, that is, the reward and punishment trust, is calculated.
[0216] Historical Trust Data: Trust Committee C t The nodes in the blockchain continuously update and iterate their trust values according to the growth of cross-chain operations. Based on the time decay factor, the nodes use the previous n historical trust values to calculate the historical trust value according to the historical trust model.
[0217] Trust Integration: Trust Committee C t The nodes in the network will integrate the acquired trust data according to the trust model integration solution to obtain the final trust value, and then upload it to the chain through consensus to complete the trust assessment.
[0218] Step 4: According to the trust value calculated by the trust model, evaluate the trust relationship of the target chain and select different cross-chain solutions. The details are explained in detail below.
[0219] Centralized Trust:
[0220] 1) Same trusted third party
[0221] As described in the premise, blockchain B 1 and B 2 They are two blockchains that are authorized and certified by the same high-trust CA authority and have a high degree of trust. Therefore, they are initially given a high trust value in centralized trust, and a strong trust relationship is established between the two blockchains.
[0222] When blockchain chain B 1 Node on a , initiate a cross-chain operation request, the target chain replies, and then the node a and Node b Direct cross-chain interoperability between nodes a and Node b Initiate a reset transaction between each other. In the subsequent process, it will be automatically rolled back in case of timeout and malicious behavior. The reset transaction will be reset only when the signatures of two nodes are obtained. a and Sig b To take effect, then Node a A random password Key is generated and stored in chain B 1 Initiate a cross-chain transaction on the b Node's signature Sig b To take effect, Node b In chain B 2Initiate a cross-chain transaction on the Node. The cross-chain transaction only requires the input of the Key. After the verification is successful, a Node's signature Sig a The transaction will then be processed on their respective blockchains for consensus. After the transaction is completed, the two nodes will obtain the SPV proof of the transaction on their respective blockchains, and after verifying the SPV proof successfully, they will send a cross-chain redemption transaction request. a In order to obtain cross-chain information, the correct Key will be entered; Node b After getting the Key, use the Key and your own signature Sig b , in chain B 2 After the verification is passed, Node a and Node b The corresponding transfer assets will be obtained respectively, completing the atomic direct cross-chain exchange. If the correct key and signature information are not provided within the timeout period, the transaction will be automatically withdrawn.
[0223] 2) Different trusted third parties
[0224] As described in the premise, blockchain B 3 It is authorized and certified by a CA authority at a lower trust level and has a higher degree of trust. Therefore, it is initially given a high trust value in centralized trust, and a strong trust relationship is established between the two blockchains.
[0225] When blockchain B 1 Nodea on the network initiates a cross-chain transaction request, and CA Notary forwards the request and asks Node c Agree; Node c Agree to the cross-chain transaction request, CA notary forwards the consent request; Notary uses 1 and B 3 The account initiates a cross-chain transaction to the notary. After the transaction consensus is completed, the notary conducts SPV verification. After the verification is passed, the two blockchains B 1 and blockchain B 3 Cross-chain settlement is carried out on the
[0226] Distributed Trust
[0227] 1) Same trust domain
[0228] As described in the premise, blockchain B 4 and B 5 It belongs to a third party and has no authoritative organization for authorization and certification. It needs to be evaluated through a trust model and then establish a trust relationship. 4 and blockchain B 5The trust committee on each blockchain obtains the parameter data related to the trust model, calculates the trust value of the corresponding target chain and performs interactive verification. When the calculated trust value T≥δ, the present invention considers that the blockchain B 4 and B 5 There is a strong trust relationship between them, and a direct cross-chain approach is adopted.
[0229] Blockchain B 4 Node d Initiate a cross-chain transaction request, blockchain B 5 Receive the request and verify it. After verification, return a response agreeing to the cross-chain operation. Then Node d Initiate a cross-chain transaction on blockchain B 4 After consensus is reached, an SPV transaction certificate is generated and the SPV certificate is sent to blockchain B along with the transaction information. 5 , verify the SPV proof, and after the verification is passed, the consensus is uploaded to the chain to complete the cross-chain.
[0230] 2) Indirect Trust
[0231] As described in the premise, blockchain B 4 , B 5 and B 6 It belongs to a third party and has no authoritative organization for authorization and certification. It needs to be evaluated through a trust model and then establish a trust relationship. 4 and blockchain B 5 The trust committee on each blockchain obtains the parameter data related to the trust model, calculates the trust value of the corresponding target chain and performs interactive verification. When the calculated trust value T≥δ, the present invention considers that the blockchain B 4 and B 5 There is a strong trust relationship between them. Similarly, blockchain B 5 and B 6 There is also a strong trust relationship, but B 4 and B 6 Isolation and no trust relationship. 4 and B 6 When cross-chain is required, an indirect cross-chain method is used.
[0232] Blockchain B 4 Node d When initiating a cross-chain transaction request, it will first broadcast to the entire network to obtain blockchain B 6 In the case of B 5 After receiving the request, the trusted blockchain B 6 The response is returned, node Node d After receiving the broadcast message response, it verifies and then sends a cross-chain transaction request. Blockchain B5 Receive the request and verify it. After verification, send it to B 6 Send a cross-chain request, and then return a response agreeing to the cross-chain operation. Then Node d Initiate a cross-chain transaction on blockchain B 4 After consensus is reached, an SPV transaction certificate is generated and the SPV certificate is sent to blockchain B along with the transaction information. 5 , verify the SPV proof, and after verification, the consensus is uploaded to the chain. 5 After completing the cross-chain transaction, an SPV transaction certificate is also generated and sent to blockchain B along with the transaction information. 6 , B 6 The SPV proof is verified, and after the verification is passed, the consensus is uploaded to the chain to complete the cross-chain.
[0233] 3) Committee cross-chain
[0234] As described in the premise, blockchain B 4 , B 5 and B 6 It belongs to a third party and has no authoritative organization for authorization and certification. It needs to be evaluated through a trust model and then establish a trust relationship. When no broadcast response is received after an indirect trust broadcast, or when a blockchain with trust deviation needs to cross-chain and the trust evaluation value of some blockchains is within the range of [μ,δ], the committee cross-chain method is used.
[0235] The committee cross-chain method requires the establishment of a cross-chain committee. In order to ensure the high availability of the cross-chain committee nodes, the hash collision algorithm of the committee election is adopted. According to the number of tokens held by the nodes on the blockchain participating in the cross-chain, the hash collision difficulty is determined according to the above election algorithm. Then the hash values are calculated respectively and it is determined whether they meet the difficulty requirements. Then, according to the committee's share allocation algorithm, the number of nodes participating in the cross-chain blockchain in the cross-chain committee is allocated. Assuming B 1 , B 2 and B 3 The trust values of the blockchains are 0.6, 0.8, and 1.0 respectively. According to the share allocation, the cross-chain committee share allocation ratio is Num(B 1 ,B 2 ,B 3 )=3:4:5, such as Fig.15 As shown. Then the cross-chain node Node dA random seed is broadcasted. After receiving the broadcasted seed, the nodes in the cross-chain committee calculate the VRF random proof, and then select the first master node to initiate the cross-chain transaction according to the proof sorting. The cross-chain consensus is carried out in the cross-chain committee. Using the PBFT consensus algorithm, when the cross-chain committee node receives the consensus verification of 2 / 3 of the nodes in the Prepare stage and the Commit stage respectively, it enters the Reply stage and sends the cross-chain consensus result to blockchain B. 5 and B 6 , followed by the latest block mounted on the target blockchain according to the cross-chain mounting structure to complete the cross-chain.
[0236] The process of the multi-mode cross-chain model based on the blockchain trust model proposed in this invention is as follows:
[0237] Phase 1: Blockchain Trust Model
[0238] At present, the security level and trustworthiness of blockchain systems cannot be generalized, because for cross-chain operations, the security and trustworthiness of a blockchain system will determine whether it performs the corresponding cross-chain operations. This invention proposes a security trust model based on blockchain, the purpose of which is to build a multi-mode and multi-level trust system, provide a corresponding trust domain division basis for subsequent cross-chain operations, and on this basis, select different cross-chain modes in a multi-mode symbiotic trust environment. The following chapter will introduce and analyze the construction of the trust model from the aspects of communication trust, data consistency trust, security parameter trust, historical trust, and reward and punishment trust.
[0239] 1. Communication trust
[0240] The present invention defines a communication trust triple T = {b, d, un}, where b represents the situation where the communication interaction between nodes of different blockchains is evaluated as trusted, d represents the situation where the communication interaction between nodes of different blockchains is evaluated as untrusted, and un represents the situation where the communication interaction between nodes of different blockchains is evaluated as uncertain trust due to uncertain factors such as data loss, and {b, d, un} ∈ [0, 1], and b + d + un = 1. The present invention can obtain the communication trust T of the blockchain security trust model com , the calculation formula is as follows:
[0241]
[0242] in,
[0243] Among them, s represents the communication success situation when different blockchains send communication packets to each other. Similarly, f represents the communication failure situation when different blockchain nodes send communication packets to each other.
[0244] 2. Participation Trust
[0245] Participation is the percentage of different block producers in the most recent n blocks in the blockchain system. Based on the above description, the percentage of nodes participating in consensus block production, i.e. participation, is defined as follows:
[0246]
[0247] Among them, num block Indicates the total number of blocks obtained by the node in the recent period, num min Indicates the number of nodes participating in data acquisition in the blocks obtained in the most recent period (note that duplicate block-producing nodes are not included).
[0248] Need to set a participation threshold When the participation of the blockchain system exceeds the participation threshold This means that the blockchain is on-chain through the consensus of the majority of nodes. It can be considered that the larger the value of θ, the higher the security and credibility of the blockchain. part The calculation formula is described as follows:
[0249]
[0250] in, represents the participation threshold, and θ represents the consensus participation of blockchain nodes.
[0251] 3. Data Trust
[0252] The present invention proposes a blockchain system data consistency trust. Due to the incomplete synchronization problem of the blockchain network, the present invention can give a synchronization expectation E x The mean is 2 / 3, and since the block structure and data format in the same blockchain are similar, the present invention will approximately consider it to belong to the probability normal distribution, and the data consistency trust value T data The calculation formula is described as follows:
[0253]
[0254] Among them, x represents the proportion of the latest blocks of another blockchain obtained by the blockchain. σ is the variance of the random variable, which is taken as 0.2.
[0255] 4. Security and Trust
[0256] The present invention focuses on several security parameter attributes that have a relatively important impact on its blockchain system and conducts security trust assessment, including: consensus algorithm security, identity authentication, access control, encryption system and privacy, cryptographic algorithm, anonymity, anti-attack ability and other factors. However, these factors cannot be quantitatively evaluated with certainty, so the present invention uses a comprehensive fuzzy evaluation method of fuzzy logic to calculate the trust value T of the blockchain system security attribute sec The specific steps and descriptions are as follows:
[0257] Step 1: Establish a comprehensive evaluation factor set
[0258] First, a set of comprehensive evaluation factors for the security index of the blockchain system is established in the present invention, U = (u 1 ,u 2 ,u 3 ,u 4 ,...,u m ), where ui represents the security evaluation index factors mentioned above, that is, the security of the consensus algorithm and other related factors mentioned above.
[0259] Step 2: Establish an evaluation set for comprehensive evaluation
[0260] For the m blockchain security evaluation index factors defined in step 1, set their respective security comprehensive evaluation sets, represented by V as follows: V = (v 1 ,v 2 ,v 3 ,v 4 ,...,v n ), where v j Represents the comprehensive evaluation index set u in U i The j-th comprehensive evaluation rating of
[0261] Step 3: Perform fuzzy evaluation on single factors to obtain the evaluation matrix
[0262] For the evaluation indicators and comprehensive evaluation set established above, for the single factor u i Perform fuzzy evaluation and obtain the evaluation matrix R, R i =(r i1 ,r i2 ,r i3 ,r i4 ,...,r in ), where m single factor evaluation sets R 1 , R 2 , R 3 ,…,R m Composition evaluation matrix R m*n , becomes a fuzzy comprehensive evaluation matrix, as shown below:
[0263]
[0264] Among them, r ij Indicates that for the evaluation index U i Rated V for j The membership degree is the proportion of the evaluation level, and r i1 +r i2 +...+r ij +r i(j+1) +...+r in =1, the present invention defines the membership as the rating ratio when rating the blockchain system.
[0265] Step 4: Assign weights to security attribute indicators
[0266] The fuzzy evaluation matrix is obtained, and then according to the importance of each security attribute to the blockchain system, the present invention determines the weight value assigned to the security trust value of each evaluation indicator, and obtains the weight vector value A, which is described as follows: A = (a 1 ,a 2 ,a 3 ,a 4 ,...,a m ), where a i For the evaluation index set u i How important is the security of the blockchain system? 1 +a 2 +a 3 +a 4 +…+a n =1.
[0267] Step 5: Synthesize the evaluation vector
[0268] After determining the single factor evaluation matrix R in step 3 and the factor weight vector A in step 4, the fuzzy vector A on U is transformed into the fuzzy vector B on V through fuzzy transformation, that is, comprehensive fuzzy operation. The specific formula is expressed as:
[0269]
[0270] in, It is called comprehensive evaluation synthesis operator. Here, the present invention takes is the matrix multiplication operation.
[0271] Step 6: Calculate the security trust value
[0272] In order to determine the final blockchain security trust value, we must first determine the rating score S = (s 1 ,s 2 ,s 3 ,s 4 ,...,sn ), which requires determining the maximum score of each factor according to its importance, and finally calculating T through the following formula sec :
[0273]
[0274] Get the final blockchain security parameter trust value.
[0275] 5. Rewards and Punishments
[0276] The present invention sets the safe operation time t of the blockchain system. As the safe operation time t of the blockchain system increases, the trust value of the blockchain system will also increase accordingly. re Defined as trust reward, it will increase with the increase of safe operation time, T re The specific description is as follows:
[0277]
[0278] Among them, β>1, r>1, It is expressed as the trust enhancement parameter, which means the speed of trust enhancement; t represents the safe operation time of the blockchain system. The parameters need to be adjusted appropriately according to different application scenarios to meet different needs.
[0279] The present invention defines the blockchain system security attack category vector P as follows: P = (P 1 ,P 2 ,P 3 ,P 4 ,…,P n ), where P i Represents a certain attack type in the blockchain system and defines the attack severity set P i , P i =(p i1 ,p i2 ,p i3 ,p i4 ,…,p im ), where p ij Indicates that it has been i The j-th level of attack in this security attack category will have different trust value change sets for different attack levels.
[0280] Therefore, the present invention defines the penalty trust value T punish as follows:
[0281]
[0282] γ im Indicates that the blockchain system is affected by P iIn the case of a security attack of the type, it is the impact of the trust value at the mth severity level, w i Indicates the impact of the i-th attack category on the security of the blockchain system.
[0283] 6. Historical Trust
[0284] Trust relationships have the characteristic of time decay, and there is a trust aging calculation factor λ. As time goes by, the trust relationship between entities will gradually fade. The present invention is defined as follows: The present invention records the historical trust value list of the blockchain system, recorded as TL history , TL history =[t h1 ,t h2 ,t h3 ,t h4 ,…,t hn ], t hi They represent the distribution of the trust values calculated for the i-th time by the blockchain system before the trust values are updated at the current time point. The present invention assigns different proportions to the historical trust values according to the fluctuations of the historical trust values, so that they are more in line with the requirements of trust changes.
[0285] Calculate the fluctuation of the historical trust values in the historical trust value list. The formula for calculating the fluctuation D is as follows:
[0286]
[0287] Among them, t h Represents the average value of the historical trust value of the blockchain system, t hi It is the i-th trust value among the first n trust values.
[0288] The present invention defines a parameter α, which represents the threshold of the trust value fluctuation, so the weight distribution of the historical trust value and the current trust value is as follows:
[0289]
[0290] Among them, t h represents the average value of the n historical trust values before the current trust value, and When the fluctuation is greater than α, it means that the change is large, and the currently calculated trust value is used as the main weight; when the fluctuation is less than α, it means that the change is relatively stable, and the current historical trust value is used as the main weight.
[0291] 7. Trust Integration
[0292] Therefore, the present invention can perform the final trust integration of the above factors.
[0293] According to the trust model designed and described in the present invention, the present invention can clearly understand that the influence weights of various partial trust values on the final trust value are different.
[0294] Trust integration is the combination of trust values obtained from each part. First, the current value of the trust value T is obtained. current , the specific calculation method is described as follows:
[0295] T current =w 1 T com +w 2 T part +w 4 T data +w 3 T sec +w 4 (T re -T punish )
[0296] Among them, w i Represents the weight of each part of the trust value, T com ,T part ,T data ,T sec ,T re ,T punish They are the trust values of each part introduced above.
[0297] According to the method described by historical trust, based on the fluctuation of historical trust value D, the final trust value T is calculated according to the ratio of historical and current trust values. The calculation method is as follows:
[0298]
[0299] The Trust Building Committee calculates the final blockchain system security trust value, uploads it to the chain through consensus, broadcasts it to all member nodes of the chain, and then regularly maintains and updates it.
[0300] 8. Trust Update
[0301] Since the scheme designed by the present invention establishes a trust building committee as the initiator and executor of the trust measurement, the update scheme designed by the present invention takes the period of committee construction as an update period c, updates and iterates the blockchain trust value it maintains, calculates the latest trust value, and serves the subsequent multi-mode cross-chain mode. Updating in this fixed periodic manner is obviously not enough. Obviously, this will cause the trust building committee to reflect certain sensitive trust influencing factors in a timely manner. Therefore, the present invention also needs to provide real-time updates to a certain extent for different situations. Therefore, the present invention should update the trust of the system when it detects that the blockchain system has been seriously attacked. At the same time, the above-mentioned historical trust situation is considered to allocate trust weights and update trust. Therefore, the trust update is partially consistent with the committee update.
[0302] Phase 2: Multi-mode trust cross-chain consensus mechanism
[0303] Since the trustworthiness of the institutions to which the energy big data storage chain belongs is different, each has its own trust management model, and there is also a division between distributed trust and centralized trust. Distributed trust has no endorsement guarantee like a country or a trusted third party, which will lead to the inability to confirm the trustworthiness of the other party during the cross-chain operation; similarly, in centralized trust, there is usually a national authority or a trusted third party to endorse and guarantee, and to uniformly manage trust, so as to facilitate arbitration decisions when conflicts occur, and to increase the degree of trust by means of national rights, technical authority or legal weapons. This forms a complex and changeable trust relationship between energy big data storage chains. The present invention proposes a multi-mode trust cross-chain solution, which uses a trust model to establish a trust relationship, and selects a corresponding cross-chain mode that meets its trust requirements according to the strength of the trust relationship, thereby reducing the impact of a single cross-chain mode on cross-chains under different trust relationships and improving cross-chain efficiency. A detailed description is given below.
[0304] 1. Centralized Trust
[0305] 1) Same trusted third party
[0306] In centralized trust, when the trust certificate is directly guaranteed and issued by the same organization, the trust relationship diagram is as follows: Figure 3 As shown, they can be classified into the same trust domain. In the same trust domain, they are all managed and issued trust certificates by a trusted third party. The trust chain level is the same, so direct cross-chain communication is used for cross-chain interoperation. The following process diagram is shown Figure 4 As shown:
[0307] 1. Two nodes a and Node b Direct cross-chain interoperability between nodes aand Node b Initiate a reset transaction with each other, and automatically roll back in the event of timeout or malicious behavior in the subsequent process;
[0308] 2. Reset the transaction if and only if the signatures of two nodes are obtained a and Sig b To take effect;
[0309] 3.Node a Randomly generate a password Key;
[0310] 4.Node a In chain B 1 Initiate a cross-chain transaction on the b Node's signature Sig b To take effect, Node b In chain B 2 Initiate a cross-chain transaction on the Node. The cross-chain transaction only requires the input of the Key. After the verification is successful, a Node's signature Sig a will take effect;
[0311] 5. Transactions are conducted on their respective blockchains for consensus;
[0312] 6. After the transaction is completed, the two nodes obtain the transaction SPV proof on their respective blockchains;
[0313] 7. After successfully verifying the SPV proof, send a cross-chain redemption transaction request;
[0314] 8.Node a In order to get the funds, the correct Key will be entered;
[0315] 9.Node b After getting the Key, use the Key and your own signature Sig b , in chain B 2 Verify the Key on the server;
[0316] 10. After verification, Node a and Node b They will each receive the corresponding transfer assets, completing the atomic direct cross-chain exchange.
[0317] 11. If the correct key and signature information are not provided within the timeout period, the transaction will be automatically withdrawn.
[0318] 2) Different trusted third parties
[0319] In centralized trust, for different trusted third parties, due to the existence of different levels in the trust chain, there are two different trust relationship situations. The trust relationship diagram is as follows: Figure 5 and Figure 6 shown. Figure 5 In the figure, we can see that two CA (Certification Authority) organizations at the same trust level are jointly certified by a root trust organization, and the two blockchains whose trust certificates are issued by the CA organization are also at the same trust level. Figure 6 As can be seen in the figure, the two blockchain systems are issued trust certificates by CA organizations at two different trust levels. The two blockchains are at different trust levels, resulting in a trust bias.
[0320] This indirect trust relationship is different from the situation of the same trusted third party. It stipulates that the blockchain system set in the same trusted third party is in the same trust domain, while different trusted third parties are in different trust domains. Because its trust relationship is bifurcated according to the trust chain, the trusted third-party authority that issues the trust certificate at this layer cannot know this indirect trust situation. Therefore, a higher-level authority is needed to act as a notary and use the trust relationship chain to become the guarantor and arbitrator of cross-chain interoperability. Therefore, notary technology is used for cross-chain interoperability. The notary cross-chain process uses the trusted identity of the notary Notary as an intermediary to coordinate cross-chain operations. The cross-chain process is as follows: Figure 7 As shown:
[0321] 1.Node a Initiate a cross-chain transaction request, CA Notary forwards the request, and asks Node b agree;
[0322] 2.Node b Agree to the cross-chain transaction request, and the CA notary forwards the consent request;
[0323] 3. Notary is in Node a and Node b Create an account on the blockchain;
[0324] 4.Node a and Node b Initiate transfers to the notary respectively;
[0325] 5. Pass transaction consensus and conduct SPV verification;
[0326] 6. After verification, cross-chain transaction is completed using atomic settlement.
[0327] 2. Distributed Trust
[0328] The distributed trust mentioned in the present invention mainly describes the trust relationship between independent blockchain systems without the endorsement and guarantee of a trusted third-party authority, forming a situation similar to the trust relationship between people. The present invention uses the blockchain security trust model described above to model the trust relationship and build a multi-mode symbiotic trust environment between blockchains with different trust values.
[0329] 1) Trust threshold
[0330] In the process of trust establishment, there is a process of trust value initialization. Therefore, an initial value is assigned to the trust value of each blockchain. After that, the trust value will continue to change according to the operation and attack of the blockchain system and other related factors. Therefore, when a blockchain has a cross-chain demand and needs to join the cross-chain blockchain set, its security trust value should be constrained by a corresponding threshold. The initial cross-chain blockchain cannot be given a high trust value, because it is impossible to understand the security and feasibility of an unknown blockchain system. It takes a long time to run and monitor the blockchain system to slowly establish a reliable trust relationship.
[0331] Therefore, the present invention defines three trust thresholds τ, μ, and δ, where τ represents the initial security trust value of a blockchain system that can participate in cross-chain interoperability, μ represents the security trust value of a blockchain that can participate in cross-chain interoperability, and when the security trust value exceeds μ, cross-chain can be performed using the cross-chain committee. Similarly, δ means that when the blockchain security trust value exceeds it, it meets the requirements for direct cross-chain operations, and cross-chain operations are completed directly through cross-chain operations between nodes.
[0332] 2) Same trust domain
[0333] It is similar to the cross-chain of the same trust domain in centralized trust, but in centralized trust, there is a trusted third party to endorse and guarantee, while in distributed trust, there is no trusted third party, so each blockchain system needs to maintain its own trust chain. The system trust domain mentioned here means that the deviation of the blockchain security trust value is within a certain range and meets the trust value within the trust threshold δ mentioned in the previous section. The present invention simply discusses only two situations, mainly including the trust value within the low trust threshold μ and the trust situation within the high trust threshold δ. The high trust threshold is mainly aimed at the situation where the trust deviation between the two parties is not large and a strong trust relationship has been formed. The trust relationship diagram is as follows Figure 8 As shown:
[0334] Here, according to the level of trust domain formed, there are different cross-chain methods: one is direct cross-chain, and the other is committee consensus cross-chain. When both blockchain systems are in a trust domain with a high trust value δ, the direct cross-chain method is used. The process is similar to the centralized method and will not be described here; when in a trust domain with a low trust value μ, the committee cross-chain method is used. The committee cross-chain method will be explained in detail in the next section on trust deviation.
[0335] 3) Trust bias
[0336] Trust bias is the general situation in multiple trust relationships. Because in general, the trust relationship between the two parties is unequal. If one party trusts the other party, it cannot be inferred that the other party also trusts it. Therefore, there are high and low trust values. How to cross the chain from high trust value to low trust value, and how to cross the chain from low trust value to high trust value, this section will explain in detail.
[0337] As assumed in the present invention, a high trust value indicates that the blockchain is highly trustworthy. On the contrary, a low trust value indicates that the blockchain is less trustworthy. A blockchain with a high trust value can directly cross the chain to a blockchain with a low trust value, while a blockchain with a low trust value crosses the chain to a blockchain with a high trust value without trust. Therefore, users or nodes in the blockchain need to jointly decide, that is, to verify and decide by consensus. Verifying it with more nodes makes the solution more secure and effective. Fig. 9 shown.
[0338] The process is described in detail here. The specific details of each module, committee election, committee member reorganization, committee joining and exiting, and committee share allocation will be explained in detail in the extended multi-chain cross-chain. Fig.10 shown.
[0339] 4) Indirect Trust
[0340] Indirect trust, as the name implies, means that there is no direct trust relationship between the two blockchain systems, which means that the blockchain system does not maintain the trust relationship with the other party and cannot judge its trustworthiness. However, there is another blockchain system that maintains a trust relationship with the blockchain system, and the trust value is high. In this case, the other blockchain system can be used as an intermediary to transfer the cross-chain request to the blockchain system through the intermediary blockchain, and let it act as an intermediate springboard to complete the cross-chain operation. The schematic diagram of the indirect trust architecture is as follows: Fig.11 shown.
[0341] In this case, the cross-chain is similar to the centralized trust in which the CA authority acts as the notary, except that the notary here is replaced by a third blockchain system trusted by the blockchain, which acts as an intermediary to directly cross the chain with the two blockchains to achieve the notary cross-chain. A broadcast request is required. The specific process is shown in the figure. The present invention assumes that in B 1 There is B in the blockchain trust list 2 and B 4 , while B 1 Only B is in the blockchain trust list 3 The notary cross-chain process is as follows Fig.12 shown.
[0342] 1. First, blockchain B 1 If there is a need for cross-chain, broadcast to the blockchain it trusts in the entire network;
[0343] 2. Because B 2 Trust B 3 , received B 1 After the cross-chain broadcast, reply B 2 Trust list and sign it;
[0344] 3. After receiving the trust list of feedback B 1 Calculate the trust value and verify B 3 Credibility;
[0345] 4.B 1 Initiate a cross-chain transaction, similarly to B 2 After verification, it will also be sent to B 3 Initiate a cross-chain request;
[0346] 5. Verify and confirm cross-chain transactions through SPV;
[0347] 6. After verification, the atomic swap settlement is completed.
[0348] 5) Multi-chain cross-chain
[0349] The cross-chain scenarios described in this section that establish trust relationships based on trust values are all cross-chain scenarios between two blockchains. Next, the present invention will expand it to a multi-chain cross-chain model. The present invention will design a committee approach to perform cross-chain operations. Because the scheme of the present invention is based on a cross-chain committee to complete the corresponding cross-chain operations, the present invention will then describe in detail the election of committee members, the allocation of committee member shares, the re-election of the committee, and the exit and entry of the cross-chain blockchain.
[0350] a) Committee elections
[0351] The present invention adopts a committee cross-chain solution, which is a process of mapping nodes in a cross-chain blockchain set to committee nodes. In a blockchain system, how to map nodes in a cross-chain blockchain set to nodes in a cross-chain committee, taking into account the activity of the nodes and utilizing the randomness of node elections to ensure the stability and security of the system operation is a key issue.
[0352] Therefore, the present invention proposes a hash collision scheme based on assets and computational difficulty. First, when there is a cross-chain request, a random number is broadcast to trigger the election operation of the cross-chain committee. Due to the need for cross-chain operations, the cross-chain committee nodes are required to be sufficiently active, and cannot always be down and unresponsive. In addition, if there is any malicious behavior, it needs to be punished accordingly and the corresponding deposit must be deducted. This scheme is similar to POW.
[0353] First, those who want to compete to become members of the cross-chain committee node need to pledge tokens. Then, based on the situation of the pledged tokens and the amount of pledged tokens, the difficulty value P is calculated according to the following formula.
[0354]
[0355] Among them, [] is the rounding function, ρ is the difficulty factor, M is the total number of tokens on the chain, and m* is the token held by the node.
[0356] Then, the hash collision value is calculated based on the random number, difficulty value P and the self-incrementing variable nance, and the first n nodes that meet the difficulty are used as member nodes of the cross-chain committee.
[0357] Then the block-producing nodes are elected. The committee nodes calculate the Verifiable Random Function (VRF) based on the committee random number mentioned above. The committee node with the highest ranking becomes the block-producing node through comparison and sorting.
[0358] b) Committee Share Allocation
[0359] The allocation of committee node shares in the blockchain system is also a crucial part. It is a guarantee of fairness and security in the cross-chain process of the committee. It allows each blockchain to occupy a seat in the cross-chain committee, and participants have a say in the cross-chain process. Similarly, the same applies to the joining and exit of blockchains in the committee.
[0360] Section 3 introduces the blockchain security trust model in detail. The member share allocation of the committee is based on the trust value calculated by the blockchain security trust model to establish a trust relationship as an importance ratio. The algorithm for allocating the number of members in the committee is as follows:
[0361] Algorithm 1: Committee Node Share Algorithm
[0362] Define trustSum = 0, trust is the blockchain trust value array
[0363] initialization
[0364] 1) fori = 1, 2, ... ndo
[0365] 2) trustSum+=trust[i]
[0366] 3)endfor
[0367] 4)fori=1,2,…,ndo
[0368] 5)
[0369] 6) end for
[0370] c) Committee Re-election
[0371] One problem with the relay chain approach is that the relay chains they build are fixed, that is, there is no competition between nodes in selecting which node to participate in the cross-chain consensus. Once there is a serious malicious situation, the system will not be able to operate. Therefore, the committee cross-chain approach of the present invention will adopt regular committee re-election.
[0372] The flow chart of committee re-election is as follows Fig.13 shown.
[0373] Although re-election can ensure security, in this solution, the security trust value of the blockchain will continue to change with the operation of the blockchain system, and the share of the blockchain will also change accordingly, which will cause frequent reorganization of the committee, resulting in a lot of overhead. Therefore, the timing of reorganization should be well controlled. This invention will analyze this part in the experimental simulation. The following is the situation of committee reorganization:
[0374] 1. Periodic reorganization with the periodic update of blockchain security trust value;
[0375] 2. The occurrence of serious blockchain security incidents leads to reorganization.
[0376] However, the solution of the present invention is based on the relationship between assets and trust, and the random number is generated by the master node and through VRF random hashing, which meets the requirements of the present invention.
[0377] d) Blockchain exit and entry
[0378] Due to the changes in the demand for cross-chain blockchains and the occurrence of security issues during the operation of blockchain systems, there are cases where blockchains are added to cross-chain collections, voluntarily withdrawn, and removed. This will be explained below.
[0379] 1. Blockchain joins cross-chain
[0380] As the blockchain system is running safely, it is also accumulating trust. When the security trust value of the blockchain system reaches the threshold μ and there is a cross-chain demand, a cross-chain joining request is made, and then it is qualified to join the cross-chain committee after the consensus is agreed. However, after the consensus is reached, it does not directly join the cross-chain committee according to the share allocation, but waits until the committee reorganization mentioned in the previous section begins, that is, after the consensus of the previous cycle is completed or after the next trust update, it can participate in the cross-chain blockchain set through weight allocation.
[0381] 2. Blockchain exits cross-chain
[0382] Similarly, as the blockchain system runs, some blockchain systems no longer need cross-chain operations. In this case, they can submit a withdrawal request to the cross-chain committee. Just like when they join the cross-chain set, they also need the consensus of the cross-chain committee to be passed. After the current cycle ends, the blockchain will be excluded from the reorganization. However, there may be a special situation where the current blockchain system does not participate in the cross-chain. For example, the blockchain is attacked or there are malicious nodes doing evil, but it does not withdraw from the cross-chain set, refuse to serve, or do evil. At this time, when the cross-chain committee detects that there are security issues or evil situations in the blockchain of the committee members, the elected master node will submit a removal request. After receiving the removal request, the committee will execute the removal operation and start the committee reorganization as a new cycle.
[0383] e) Cross-chain mounting structure
[0384] There is a common problem in the current mainstream cross-chain technology solutions, which is the real-time problem of blockchain. Although many blockchain systems have tried to use some relatively excellent consensus algorithms and improve block size and other solutions to speed up the block generation speed of the blockchain system, so that the blockchain can synchronize consensus relatively quickly and in real time.
[0385] For general cross-chain operations, it is necessary to go through many node consensuses. The first is the consensus on the change of the ledger status on the source blockchain; the second is the consensus on transaction confirmation and verification of transaction data in the cross-chain committee; the third is the consensus on the need to change the ledger data of the target blockchain after the cross-chain transaction confirmation is completed. Therefore, in order to achieve better real-time performance, verifiability of transaction data and system security, the present invention will propose a new cross-chain structure to further improve the cross-chain efficiency and effectiveness of the blockchain. The mounting structure diagram is shown in the figure below. Fig.14 shown.
[0386] like Fig.14 As shown in the figure, after the cross-chain transaction data is passed by consensus in the cross-chain committee, it will be directly packaged with the most recent consensus block, and the transaction ledger data will be mounted on the newly released block. This not only reduces the time of a main chain consensus, improves speed and efficiency, but also can well realize the query efficiency of transaction data. However, its security needs to be guaranteed by cross-chain consensus.
[0387] The multi-mode trust cross-chain consensus system provided by the embodiment of the present invention includes:
[0388] Blockchain infrastructure initialization module: When the nodes and accounts on the blockchain have been initialized and hold the corresponding number of tokens, public and private key pairs, and addresses, the centralized trust management of the blockchain ledger with a trusted third party guarantee endorsement is assigned a high trust threshold according to the trust level of the trusted third-party authority;
[0389] Construct a trust committee module to select the top 2n nodes as candidate members of the trust committee based on the number of tokens held by the nodes on their respective blockchains; after the cross-chain demand node broadcasts the random seed, the 2n nodes calculate the VRF verifiable random function value, and finally obtain the top n nodes that meet the requirements as the trust committee C t ;
[0390] The trust value calculation and trust establishment module is used to obtain various parameter data to calculate the trust value and establish trust; the trust committee C t All nodes in the blockchain begin to collect parameter data on communication trust, security trust, data trust, historical trust, rewards and punishments, and participation trust in the blockchain;
[0391] The cross-chain solution selection module is used to evaluate the trust relationship of the target chain according to the trust value calculated by the trust model, and select different cross-chain solutions.
[0392] 2. Application Examples: In order to prove the creativity and technical value of the technical solution of the present invention, this section provides application examples of the technical solution of the claims on specific products or related technologies.
[0393] With the in-depth application of blockchain technology, many blockchain platforms such as energy big data storage chains and government data chains have emerged. However, due to the high degree of autonomy of the blockchain system, they are all independent ledgers, and it is difficult for the chains to communicate and trust each other. Through the blockchain trust model proposed in the present invention, the trust relationship of the blockchain system is constructed according to whether it has a trusted third-party endorsement authorization, and consensus is stored on the chain. Subsequently, different cross-chain schemes are selected according to the query trust relationship for cross-chain operations, so as to realize the circulation and mutual trust and recognition of data between data chains and government chains with different trust relationships.
[0394] 3. Evidence of the effects of the embodiments. The embodiments of the present invention have achieved some positive effects during the development or use process, and indeed have great advantages over the prior art. The following content is described in conjunction with the data, charts, etc. of the test process.
[0395] Hash time lock Notary Mode Sidechain / Relay The present invention distributed no no yes Semi-distributed Scalability generally generally good good Security generally generally good good Timeliness good good Low good Node Update no no no yes
[0396] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0397] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A multi-mode trust cross-chain consensus method, characterized in that: The multi-mode trust cross-chain consensus method includes: building a blockchain security trust model based on the network status, blockchain system security, node data consistency and node malicious rate during the operation of the blockchain, combining fuzzy theory and probability distribution to determine the trust components of each system, and using weights and obtaining the trust value of the system; building an inter-chain multi-mode trust symbiotic environment based on this model, and by designing a multi-mode cross-chain consensus mode, it can flexibly switch between direct cross-chain, intermediary cross-chain and committee cross-chain modes to meet the cross-chain interconnection between systems with different trust relationships, and use the cross-chain mounting structure to improve the interoperability timeliness; The multi-mode trust cross-chain consensus method comprises the following steps: Step 1: Initialize the blockchain infrastructure: When the nodes and accounts on the blockchain have been initialized and hold the corresponding number of tokens, public and private key pairs, and addresses, and the centralized trust management has a blockchain ledger endorsed by a trusted third party, a high trust threshold is assigned according to the trust level of the trusted third-party authority; Step 2: Build a trust committee: Select the top 2n nodes as candidate members of the trust committee based on the number of tokens held by the nodes on each blockchain; after the cross-chain demand node broadcasts the random seed, the 2n nodes calculate the VRF verifiable random function value, and finally obtain the top n nodes that meet the requirements as the trust committee C t ; Step 3: Obtain various parameter data to calculate trust values and establish trust: Trust Committee C t All nodes in the blockchain begin to collect parameter data on communication trust, security trust, data trust, historical trust, rewards and punishments, and participation trust in the blockchain; Step 4: Evaluate the trust relationship of the target chain based on the trust value calculated by the trust model, and select different cross-chain solutions; The parameter data in step 3 include: (1) Communication trust data: Trust Committee C t The nodes in the cross-chain target chain send heartbeat packets to communicate with the nodes in the cross-chain target chain, and calculate the trust value using the constructed logical model based on the sent heartbeat packets and the collected data; The subjective logical framework is used for calculation, and the communication trust triple T = {b, d, un} is defined, where b represents the situation where the communication interaction between nodes of different blockchains is evaluated as trusted, d represents the situation where the communication interaction between nodes of different blockchains is evaluated as untrusted, and un represents the communication interaction between nodes of different blockchains; {b, d, un} ∈ [0, 1], and b + d + un = 1. Following the trust model based on the subjective logical framework, the communication trust T of the blockchain security trust model is obtained. com The calculation formula is as follows: in, Among them, s represents the communication success when different blockchains send communication packets to each other, and f represents the communication failure when different blockchain nodes send communication packets to each other; (2) Participation Trust Data: Trust Committee C t The nodes in the cross-chain target chain obtain the block data of the blockchain, analyze the block producers of the first n blocks, calculate the block participation, and derive the participation trust based on the trust model: Among them, num block Indicates the total number of blocks obtained by the node in the recent period, num min Indicates the number of nodes participating in data acquisition in the blocks acquired in the most recent period; Set engagement thresholds When the participation of the blockchain system exceeds the participation threshold This means that the blockchain is on-chain through the consensus of the majority of nodes. The larger the value of θ, the higher the security and credibility of the blockchain. , it means that the blockchain may have been controlled by the node, the security and feasibility cannot be determined, and the trust value will become 0; the participation trust value T part The calculation formula is described as follows: in, represents the participation threshold, and θ represents the consensus participation of blockchain nodes; (3) Data trust data: Trust Committee C t The nodes in the cross-chain target chain obtain the block data of the blockchain and analyze the synchronization rate of the obtained block data; if the network synchronization rate of the blockchain is calculated, the data trust value under the corresponding synchronization rate is calculated by the normal distribution random function, and the data consistency trust value T data The calculation formula is described as follows: Among them, x represents the proportion of the latest blocks of another blockchain obtained by the blockchain; σ is the variance of the random variable, which is taken as 0.2; (4) Secure Trust Data: Trust Committee C t The nodes in the chain obtain various system parameters and trust ratings that have been set or implemented in the cross-chain target chain, and build a fuzzy evaluation matrix; assign weight values to each part according to its importance, and calculate security trust data; (5) Reward and Punishment Data: Trust Committee C t The nodes in the chain obtain the attack conditions recorded in the cross-chain target chain and the normal and safe operation of the system. According to the set of attack conditions and the impact of the attack on trust, the trust impact value is calculated to obtain the reward and punishment trust. As the safe operation time of the blockchain system t increases, the trust value of the blockchain system will increase accordingly; re Defined as the trust reward, it increases with the increase of safe operation time, T re The description is as follows: Among them, β>1, r>1, It is expressed as the trust enhancement parameter, which means the speed of trust enhancement; t represents the safe operation time of the blockchain system; the parameters need to be adjusted appropriately according to different application scenarios to meet different needs; The definition of blockchain system security attack category vector P is as follows: P = (P1, P2, P3, P4, ..., P n ), where P i Represents a certain attack type in the blockchain system and defines the attack severity set P i , P i =(p i1 ,p i2 ,p i3 ,p i4 ,…,p im ), where p ij Indicates that the i The attack degree of the jth level in this security attack category, different attack degrees will have different trust value change sets; Define the penalty trust value T punish as follows: Among them, γ im Indicates that the blockchain system is affected by P i In the case of a security attack of the type, it is the impact of the trust value at the mth severity level, w i Indicates the impact of the i-th attack category on the security of the blockchain system; (6) Historical trust data: Trust Committee C t The trust values of the nodes in the chain are constantly updated and iterated according to the growth of cross-chain operations. According to the time decay factor, the previous n historical trust values are used to calculate the historical trust value according to the historical trust model. Record the historical trust value list of the blockchain system, denoted as TL history , TL history =[t h1 ,t h2 ,t h3 ,t h4 ,…,t hn ], t hi They represent the distribution of the trust values calculated for the i-th time by the blockchain system before the trust values are updated at the current time point. Different proportions of historical trust values will be assigned according to the fluctuations of historical trust values. The formula for calculating the fluctuation D of the historical trust values in the historical trust value list is as follows: Among them, t h Represents the average value of the historical trust value of the blockchain system, t hi It is the i-th trust value among the first n trust values; Define parameter α, α represents the threshold of trust value fluctuation, and the weight distribution of historical trust value and current trust value is as follows: Among them, t h represents the average value of the n historical trust values before the current trust value, and When the fluctuation is greater than α, it means that the change is large, and the current calculated trust value is used as the main weight; when the fluctuation is less than α, it means that the change is relatively stable, and the current historical trust value is used as the main weight; (7) Trust Integration: Trust Committee C t The nodes in the blockchain integrate the acquired trust data according to the trust model integration solution to obtain the final trust value, and complete the trust evaluation by uploading it to the blockchain through consensus. Trust integration is the combination of trust values obtained from each part, and the current value of trust value T is obtained. current : T current =w1T com +w2T part +w4T data +w3T sec +w4(T re -T punish ); Among them, w i Represents the weight of each part of the trust value, T com ,T part ,T data ,T sec ,T re ,T punish They are the trust values of each part; According to the method described by historical trust, based on the fluctuation of historical trust value D, the final trust value T is calculated according to the ratio of historical and current trust values. The calculation method is as follows: The Trust Building Committee calculates the final blockchain system security trust value, uploads it to the chain through consensus, broadcasts it to all member nodes of the chain, and then performs regular maintenance and updates.
2. The multi-mode trust cross-chain consensus method according to claim 1, characterized in that: The security trust evaluation method comprises: The comprehensive fuzzy evaluation method of fuzzy logic is used to calculate the trust value T of the security attribute of the blockchain system. sec : (1) Establishing a comprehensive evaluation factor set Establish a set of comprehensive evaluation factors for the security indicators of the blockchain system, U = (u1, u2, u3, u4, ..., u m ), where u i They represent the safety evaluation index factors mentioned above respectively; (2) Establishing an evaluation set for comprehensive evaluation For the m blockchain security evaluation index factors defined in step (1), set their respective security comprehensive evaluation sets, represented by V as follows: V = (v1, v2, v3, v4, ..., v n ), where vj represents the comprehensive evaluation index set u in U i The jth comprehensive evaluation rating; (3) Perform fuzzy evaluation on single factors to obtain the evaluation matrix For the evaluation indicators and comprehensive evaluation set established above, for the single factor u i Perform fuzzy evaluation and obtain the evaluation matrix R, Ri = (ri1, ri2, ri3, ri4, ..., rin), where m single factor evaluation sets R1, R2, R3, ..., R m Composition evaluation matrix R m*n , becomes a fuzzy comprehensive evaluation matrix, as shown below: Among them, r ij Indicates that for the evaluation index U i Rated V for j The membership degree of r i1 +r i2 +...+r ij +r i(j+1) +...+r in =1, the membership is defined as the rating ratio when rating the blockchain system; (4) Allocating weights to security attribute index factors Obtain the fuzzy evaluation matrix, determine the weight value assigned to the security trust value of each evaluation indicator according to the importance of each security attribute to the blockchain system, and obtain the weight vector value A, which is described as follows: A = (a1, a2, a3, a4, ..., am), where a i For the evaluation index set u i The importance of blockchain system security, and a1+a2+a3+a4+…+a n =1; (5) Synthetic evaluation vector After determining the single factor evaluation matrix R and the weight vector A of the fourth factor in step 4, the fuzzy vector A on U is transformed into the fuzzy vector B on V through comprehensive fuzzy operation. The formula is expressed as follows: in, It is called the comprehensive evaluation synthesis operator. is the matrix multiplication operation; (6) Calculate the security trust value Determine the rating score S = (s1, s2, s3, s4, ..., s n ), the obtained trust value is reduced to a certain value between [0,1], and T is calculated by the following formula sec , obtain the final blockchain security parameter trust value; 3. The multi-mode trust cross-chain consensus method according to claim 1, characterized in that: In step 4, the trust value calculated according to the trust model is used to evaluate the trust relationship of the target chain, and different cross-chain solutions are selected, including: (1) Centralized Trust 1) Same trusted third party 1. Two nodes a and Node b Direct cross-chain interoperability between Node a and Node b Initiate a reset transaction with each other, and automatically roll back in the event of timeout or malicious behavior in the subsequent process; 2. Reset the transaction if and only if the signatures of two nodes are obtained a and Sig b To take effect; 3.Node a Randomly generate a password Key; 4.Node a Initiate a cross-chain transaction on chain B1. This cross-chain transaction only requires providing the correct Key and Node b Node's signature Sig b To take effect, Node b Initiate a cross-chain transaction on chain B2. The cross-chain transaction only requires input of the key. After verification, the transaction is completed with Node a Node's signature Sig a will take effect; 5. Transactions are conducted on their respective blockchains for consensus; 6. After the transaction is completed, the two nodes obtain the transaction SPV proof on their respective blockchains; 7. After verifying the SPV proof successfully, send a cross-chain redemption transaction request; 8.Node a In order to get the funds, the correct Key will be entered; 9.Node b After getting the Key, use the Key and your own signature Sig b , verify the Key on chain B2; 10. After verification, Node a and Node b They will obtain the corresponding transfer assets and complete the atomic direct cross-chain exchange; 11. If the correct key and signature information are not provided within the timeout period, the transaction will be automatically withdrawn; 2) Different trusted third parties 1.Node a Initiate a cross-chain transaction request, CA Notary forwards the request, and asks Node b agree; 2.Node b Agree to the cross-chain transaction request, and the CA notary forwards the consent request; 3. Notary is in Node a and Node b Create an account on the blockchain; 4.Node a and Node b Initiate transfers to the notary respectively; 5. Pass transaction consensus and conduct SPV verification; 6. After verification, cross-chain is completed using atomic settlement; (2) Distributed Trust 1) Trust threshold Define three trust thresholds τ, μ, δ, where τ represents the initial security trust value of a blockchain system that can participate in cross-chain interoperation, μ represents the security trust value of a blockchain that can participate in cross-chain interoperation. When the security trust value exceeds μ, cross-chain can be performed using the cross-chain committee. Similarly, δ means that when the blockchain security trust value exceeds it, it meets the requirements for direct cross-chain operation, and the cross-chain operation is completed directly through cross-chain operations between nodes. 2) Same trust domain There are different cross-chain methods according to the level of trust domain formed: one is direct cross-chain, and the other is committee consensus cross-chain. When both blockchain systems are in a trust domain with a high trust value δ, the direct cross-chain method is used; when they are in a trust domain with a low trust value μ, the committee cross-chain method is used. 3) Trust bias A high trust value means that the blockchain is highly trustworthy, while a low trust value means that the blockchain is less trustworthy. A blockchain with a high trust value can directly cross chains to a blockchain with a low trust value, while a blockchain with a low trust value can cross chains to a blockchain with a high trust value without trust. This is verified and decided by consensus. 4) Indirect Trust When B2 and B4 are in the B1 blockchain trust list, and only B3 is in the B1 blockchain trust list; the notary cross-chain process includes:
1. First, blockchain B1 has a cross-chain requirement and broadcasts to the blockchains it trusts in the entire network; 2. Because B2 trusts B3, after receiving the cross-chain broadcast from B1, it replies with B2’s trust list and signs it; 3. After receiving the feedback trust list, B1 calculates the trust value and verifies the credibility of B3; 4. B1 initiates a cross-chain transaction. Similarly, B2 will also initiate a cross-chain request to B3 after verification.
5. Verify and confirm cross-chain transactions through SPV; 6. After verification, the atomic swap settlement is completed; 5) Multi-chain and cross-chain; a) Committee elections Adopting a committee cross-chain solution by mapping nodes in the cross-chain blockchain set to committee nodes; A hash collision scheme based on assets and computational difficulty is proposed. When there is a cross-chain request, a random number is broadcast to trigger the election operation of the cross-chain committee. Members who want to compete to become members of the cross-chain committee node need to pledge tokens. According to the pledged tokens, the difficulty value P is calculated according to the token pledge. Where [] is the rounding function, ρ is the difficulty factor, M is the total number of tokens on the chain, and m* is the token held by the node; Calculate the hash collision value based on the random number, difficulty value P and the self-incrementing variable nance, and use the first n nodes that meet the difficulty as member nodes of the cross-chain committee; The block-producing nodes are elected. The committee nodes calculate the VRF verifiable random function based on the committee random number. The committee nodes with the highest ranking are compared and sorted to become the block-producing nodes. b) Committee Share Allocation The algorithm for allocating the number of shares of members in the committee is as follows: Algorithm 1: Committee Node Share Algorithm Define trustSum = 0, trust is the blockchain trust value array initialization 1) for i=1,2,…n do 2) trustSum+=trust[i] 3) end for 4) for i=1,2,…,n do 5) 6) end for c) Committee Re-election 1. Periodic reorganization with the periodic update of blockchain security trust value; 2. The occurrence of serious blockchain security incidents and the realization of reorganization; d) Blockchain exit and entry 1. Blockchain joins cross-chain When the security trust value of the blockchain system reaches the threshold μ and there is a cross-chain demand, a cross-chain joining request is made; after the consensus of the cross-chain committee, it is eligible to join the cross-chain committee; after the consensus is reached, it does not directly join the cross-chain committee according to the share allocation, but waits until the mentioned committee reorganization begins, and then participates in the cross-chain blockchain set through weight allocation; 2. Blockchain exits cross-chain As the blockchain system runs, the blockchain system no longer needs cross-chain operations. Then, a withdrawal request is submitted to the cross-chain committee, which needs to be approved by the cross-chain committee. After the current cycle ends, the blockchain will be excluded during the reorganization. The current blockchain system does not participate in cross-chain. When the cross-chain committee detects that the blockchain of the committee member has security issues or malicious behavior, the elected master node will submit a removal request. After receiving the removal request, the committee will execute the removal operation and start the committee reorganization as a new cycle. e) Cross-chain mounting structure The first is the consensus on the change of the ledger status on the source blockchain; the second is the consensus on transaction confirmation and verification of transaction data in the cross-chain committee; the third is the consensus on the need to change the ledger data of the target blockchain after the cross-chain transaction confirmation is completed.
4. The multi-mode trust cross-chain consensus method according to claim 1, characterized in that: The trust value calculated according to the trust model in step 4 evaluates the trust relationship of the target chain and selects different cross-chain solutions, which specifically include: (1) Centralized Trust: 1) Same trusted third party Blockchains B1 and B2 are two blockchains that are authorized and authenticated by the same high-trust CA authority. They are initially given a high trust value in centralized trust, and a strong trust relationship is established between the two blockchains. When the node Node on blockchain B1 a , initiate a cross-chain operation request, and the target chain replies with a response; Node a and Node b Direct cross-chain interoperability between Node a and Node b Initiate a reset transaction between each other. In the subsequent process, it will be automatically rolled back in case of timeout and malicious behavior. The reset transaction will be reset only when the signatures of two nodes are obtained. a and Sig b To take effect; Node a A random password Key is generated and a cross-chain transaction is initiated on chain B1. The cross-chain transaction only requires the correct Key and Node b Node's signature Sig b Node b Initiate a cross-chain transaction on chain B2. The cross-chain transaction only requires input of the key. After verification, the transaction is completed with Node a Node's signature Sig a The transaction will take effect; the transaction consensus is carried out on the respective blockchains. After the transaction is completed, the two nodes obtain the transaction SPV proof on their respective blockchains, and send a cross-chain redemption transaction request after verifying the SPV proof successfully; Node a Enter the correct Key to obtain cross-chain information; Node b After obtaining the Key, use the Key and your own signature Sig b , verify the Key on chain B2; after verification, Node a and Node b Obtain the corresponding transfer assets respectively and complete the atomic direct cross-chain exchange; if the correct key and signature information are not provided within the timeout period, the transaction will be automatically withdrawn; 2) Different trusted third parties Blockchain B3 is authorized and authenticated by a CA authority at a lower trust level, and is initially given a high trust value in centralized trust, establishing a strong trust relationship between the two blockchains; When node Nodea on blockchain B1 initiates a cross-chain transaction request, the CA notary Notary forwards the request and asks Node c Agree; Node c Agree to the cross-chain transaction request, and the CA notary Notary forwards the consent request; Notary uses the accounts on blockchains B1 and B3 to initiate a cross-chain transaction to the notary Notary. After the transaction consensus is completed, the notary performs SPV verification. After the verification is passed, cross-chain settlement is performed on blockchains B1 and B3 respectively; (2) Distributed Trust 1) Same trust domain Blockchains B4 and B5 belong to third parties and have no authoritative organization for authorization and certification. They need to establish a trust relationship through trust evaluation based on the trust model. When the trust committees on blockchains B4 and B5 obtain parameter data related to the trust model, calculate the trust value of the corresponding target chain and perform interactive verification; when the calculated trust value T≥δ, it is considered that there is a strong trust relationship between blockchains B4 and B5, and a direct cross-chain approach is adopted. Node on blockchain B4 d Initiate a cross-chain transaction request, blockchain B5 receives the request and verifies it, and returns a response agreeing to the cross-chain operation after the verification is passed; Node d Initiate a cross-chain transaction, verify the transaction on blockchain B4, generate an SPV transaction certificate after consensus is reached, and send the SPV certificate together with the transaction information to blockchain B5; verify the SPV certificate, and after verification, consensus is reached on the chain to complete the cross-chain transaction; 2) Indirect Trust Blockchains B4, B5 and B6 belong to third parties and have no authoritative organization for authorization and certification. They need to establish a trust relationship through trust evaluation based on the trust model. When the trust committees on blockchains B4 and B5 obtain parameter data related to the trust model, calculate the trust value of the corresponding target chain and perform interactive verification. When the calculated trust value T≥δ, it is considered that there is a strong trust relationship between blockchains B4 and B5. There is a strong trust relationship between blockchains B5 and B6, but B4 and B6 are isolated from each other and have no trust relationship. When B4 and B6 need to cross chains, an indirect cross-chain method is used. Node on blockchain B4 d When initiating a cross-chain transaction request, the information of blockchain B6 is broadcast to the entire network. B5 receives the request information and responds with the information of the trusted blockchain B6. d After receiving the broadcast message response, it verifies and then sends a cross-chain transaction request; blockchain B5 receives the request and verifies it. After the verification is passed, it sends a cross-chain request to B6, and then returns a response agreeing to the cross-chain operation in turn; Node d Initiate a cross-chain transaction, verify the transaction on blockchain B4, generate an SPV transaction certificate after consensus is on the chain, send the SPV certificate together with the transaction information to blockchain B5 for verification; after verification, consensus is on the chain; when the cross-chain transaction is completed on blockchain B5, generate an SPV transaction certificate, send the SPV certificate together with the transaction information to blockchain B6, B6 verifies the SPV certificate, after verification, consensus is on the chain, and the cross-chain is completed; 3) Committee cross-chain Blockchains B4, B5 and B6 belong to third parties and have no authoritative organization for authorization and certification. They need to establish a trust relationship after trust evaluation through the trust model. When no broadcast response is received after indirect trust broadcast, or when blockchains with trust deviations need to cross chains and the trust evaluation values of some blockchains are within the range of [μ, δ], the committee cross-chain method is adopted. The committee cross-chain method requires the formation of a cross-chain committee, which uses a hash collision algorithm for committee election, based on the number of tokens held by the nodes on the blockchain participating in the cross-chain; according to the election algorithm, the hash collision difficulty is determined, and the hash values are calculated and judged whether they meet the difficulty requirements; according to the committee's share allocation algorithm, the number of nodes participating in the cross-chain blockchain in the cross-chain committee is allocated. When the trust values of the B1, B2, and B3 blockchains are 0.6, 0.8, and 1.0 respectively, the cross-chain committee share allocation ratio is Num(B1, B2, B3) = 3:4:5 according to the share allocation; the cross-chain node Node d A random seed is broadcasted. After receiving the broadcasted seed, the nodes in the cross-chain committee calculate the VRF random proof. According to the proof sorting, the first master node is selected to initiate the cross-chain transaction and the cross-chain consensus is performed in the cross-chain committee. Using the PBFT consensus algorithm, when the cross-chain committee node receives the consensus verification from 2 / 3 of the nodes in the Prepare stage and the Commit stage respectively, it enters the Reply stage. The cross-chain consensus result is sent to blockchains B5 and B6, and the latest block is mounted on the target blockchain according to the cross-chain mounting structure to complete the cross-chain.
5. A multi-mode trust cross-chain consensus system using the multi-mode trust cross-chain consensus method according to any one of claims 1 to 4, characterized in that: The multi-mode trust cross-chain consensus system includes: Blockchain infrastructure initialization module: When the nodes and accounts on the blockchain have been initialized and hold the corresponding number of tokens, public and private key pairs, and addresses, the centralized trust management of the blockchain ledger with a trusted third party guarantee endorsement is assigned a high trust threshold according to the trust level of the trusted third-party authority; Construct a trust committee module to select the top 2n nodes as candidate members of the trust committee based on the number of tokens held by the nodes on their respective blockchains; after the cross-chain demand node broadcasts the random seed, the 2n nodes calculate the VRF verifiable random function value, and finally obtain the top n nodes that meet the requirements as the trust committee C t ; The trust value calculation and trust establishment module is used to obtain various parameter data to calculate the trust value and establish trust; the trust committee C t All nodes in the blockchain begin to collect parameter data on communication trust, security trust, data trust, historical trust, rewards and punishments, and participation trust in the blockchain; The cross-chain solution selection module is used to evaluate the trust relationship of the target chain based on the trust value calculated by the trust model and select different cross-chain solutions.
6. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the multi-mode trust cross-chain consensus method as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the multi-mode trust cross-chain consensus method as described in any one of claims 1 to 4.
8. An information data processing terminal, characterized in that: The information data processing terminal is used to implement the multi-mode trust cross-chain consensus system as described in claim 5.
