Method, transaction transmission method, and device for establishing a cross-chain system based on trust evaluation
By calculating the comprehensive trust value of blockchain nodes, selecting high-trustworthy nodes to establish a trusted cross-chain system, the problem of trust islands between blockchain systems is solved, and the interoperability of cross-chain data and value is achieved.
Patent Information
- Application Number
- CN202310566040.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2043-05-18
AI Technical Summary
The mutual isolation between blockchain systems leads to trust islands, making it difficult to establish a reliable trust relationship, and the mutual communication and mutual trust between cross-chain data and value cannot be achieved.
By calculating the communication credibility, time credibility, transaction credibility and historical credibility of blockchain nodes, a comprehensive trust value is generated, and a high-trustworthy node is selected as the initial relay chain node, and a verifiable random function is used to evaluate nodes and pass trust to establish a trusted cross-chain system.
It realizes safe and efficient interoperability between blockchains, ensures the stable operation of cross-chain systems, and realizes mutual trust and interoperability between values and information between multiple blockchains.
Smart Images

Figure CN116582550B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain technology and relates to a method for establishing a cross-chain system based on trust evaluation, a transaction transmission method and related devices. Background Art
[0002] While blockchain technology has made significant strides, with some blockchain projects already operational, the overall development of blockchain technology currently sees each blockchain remaining a closed, vertical, and independent system. Such individual blockchains are prone to forming trust silos. With the application of blockchain technology in various fields, the business requirements of blockchain networks in various scenarios are becoming increasingly complex, necessitating the establishment of trust relationships between blockchain nodes and interoperability based on mutual trust. However, current cross-chain technology struggles to establish reliable trust relationships between blockchain nodes, making cross-chain processes difficult to conduct without the necessary trust. Consequently, data and value between blockchains cannot be shared. Establishing trust between cross-chain blockchain nodes, ensuring that the entire cross-chain system can operate based on this trust, and enabling interoperability through trusted cross-chain technology, is crucial to the further development of blockchain technology. This will allow blockchain technology to bring greater value to society.
[0003] Through the above analysis, the problems and defects of the existing technology are: the mutual isolation between blockchain systems makes it impossible for the trust values of nodes in the cross-chain system to communicate and circulate, and it is difficult to judge whether the nodes are trustworthy, making it difficult for different blockchains to communicate and trust data. Summary of the Invention
[0004] The present invention provides a method for establishing a cross-chain system based on trust evaluation, a transaction transmission method, and related devices, which can safely and efficiently establish a trusted cross-chain system between independent blockchains, realize node evaluation and trust transmission through a trust model, ensure the safe and stable operation of the cross-chain system, and realize the mutual trust and exchange of value and information between multiple blockchains.
[0005] In a first aspect, the present application provides a method for establishing a cross-chain system based on trust evaluation, comprising:
[0006] Calculating parameter information of cross-chain nodes in each blockchain, wherein the parameter information includes at least one of communication credibility, time credibility, transaction credibility, and history credibility;
[0007] Obtaining a comprehensive trust value for each cross-chain node based on the parameter information;
[0008] Determining an initial relay chain node based on the comprehensive trust value;
[0009] A final relay chain node is selected from the initial relay chain nodes, and the final relay chain nodes constitute a cross-chain system.
[0010] The step of calculating the parameter information of the cross-chain nodes in each blockchain includes:
[0011] Calculate the communication credibility of cross-chain nodes: T com =t normal / t total , where t normal It indicates the time it takes for a cross-chain node to communicate with other nodes normally after joining the cross-chain system. total Indicates the total time the node has been added to the cross-chain system;
[0012] Calculate the time credibility of cross-chain nodes: Where t is the time it takes for a node to join the cross-chain system, and parameter a (a∈Z) is the time control factor;
[0013] Calculate the transaction credibility of the cross-chain node: T trans =b·(tx / tx1+c / c1)·t / t1, where b is the correlation coefficient, tx is the number of packaged transactions the node participates in after joining the cross-chain system, tx1 is the number of transactions determined by the entire system after the node joins the cross-chain system, c is the number of times the node participates in consensus verification, c1 is the number of times the system reaches consensus, t is the time the node experiences after joining the cross-chain system, and t1 is the control factor that can control T trans growth rate;
[0014] Calculating the historical credibility of cross-chain nodes includes: calculating the fluctuation value:
[0015]
[0016] Determine historical credibility based on volatility values:
[0017]
[0018] Among them, n represents the number of recorded node trust values, represents the average value of n trust values, h i represents the trust value of node i, D is the fluctuation value, ξ is the threshold, T h Indicates historical credibility.
[0019] The step of obtaining the comprehensive trust value of each cross-chain node based on the parameter information includes:
[0020] The parameter information is integrated and updated using the following formula to obtain the comprehensive trust value of each cross-chain node:
[0021] T=w1T com +w2T time +w3T trans +w4T h ;
[0022] Among them, w i Represents the weight of each part, T com Indicates the communication credibility of cross-chain nodes, T time Indicates the time credibility of the cross-chain node, T trans Indicates the transaction credibility of the cross-chain node, T h Indicates historical credibility.
[0023] The step of determining the initial relay chain node based on the comprehensive trust value includes:
[0024] Based on the comprehensive trust value, cross-chain nodes are divided into high-trust nodes, ordinary nodes, low-trust nodes and malicious nodes;
[0025] Use high-trust nodes, ordinary nodes, and low-trust nodes as initial relay chain nodes.
[0026] The steps of selecting a final relay chain node from the initial relay chain nodes and forming a cross-chain system with the final relay chain node include:
[0027] Each initial relay chain node generates a verifiable random function certificate based on the first random number and its own private key;
[0028] Each initial relay node performs a mapping operation on its corresponding verifiable random function proof to obtain a second random number;
[0029] Normalizing the second random number to obtain a third random number;
[0030] Each initial relay node calculates the probability of being selected in this round based on the corresponding comprehensive trust value;
[0031] Determining whether the corresponding initial relay node can be selected as a relay node for the next round based on the third random number and the probability of being selected;
[0032] The elected initial relay node broadcasts the verifiable random function proof, the second random number, and the third random number;
[0033] Other initial relay nodes verify the received information, and the initial relay nodes that pass the verification serve as the final relay chain nodes to form a cross-chain system.
[0034] In a second aspect, the present application provides a transaction delivery method, the method comprising:
[0035] The relay chain in the cross-chain system obtains transaction information of the source blockchain from the transaction pool; wherein the cross-chain system is obtained based on the component method of the cross-chain system described in any of the above items;
[0036] Verify the existence of transaction information;
[0037] If the verification passes, it means that the transaction in the source blockchain has been executed, and the transmission information in the transaction information and the signature information of the relay node in the relay chain are sent to the target blockchain;
[0038] The target blockchain parses and verifies the signature of the received information and completes the transaction through internal consensus.
[0039] Before the relay chain in the cross-chain system obtains the transaction information of the source blockchain from the transaction pool, the following steps are included:
[0040] The source blockchain executes the cross-chain transaction to generate the corresponding transaction block;
[0041] The source blockchain generates a corresponding transmission message according to the cross-chain information interaction transmission protocol and signs the message using the requesting node in the source blockchain;
[0042] The source blockchain sends the signed transfer message to the relay chain’s transaction pool.
[0043] In a third aspect, the present application provides a device for establishing a cross-chain system based on trust evaluation, comprising:
[0044] A parameter information calculation module, configured to calculate parameter information of cross-chain nodes in each blockchain, wherein the parameter information includes at least one of communication credibility, time credibility, transaction credibility, and historical credibility;
[0045] A trust value calculation module, configured to obtain a comprehensive trust value of each cross-chain node based on the parameter information;
[0046] An initial relay chain node confirmation module, configured to determine an initial relay chain node based on the comprehensive trust value;
[0047] A selection module is used to select a final relay chain node from the initial relay chain nodes, and the final relay chain nodes constitute a cross-chain system.
[0048] In a fourth aspect, the present application provides a transaction delivery device, comprising:
[0049] An acquisition module, configured to acquire transaction information of a source blockchain from a transaction pool using a relay chain in a cross-chain system; wherein the cross-chain system is obtained based on the component method of the cross-chain system described in any of the above embodiments;
[0050] Verification module, used to verify the existence of transaction information;
[0051] The sending module, if the verification passes, indicates that the transaction in the source blockchain has been executed. The sending module sends the transmission information in the transaction information and the signature information of the relay node in the relay chain to the target blockchain;
[0052] The processing module is used to parse and verify the signature of the received information using the target blockchain and complete the transaction through internal consensus.
[0053] The method for establishing a cross-chain system based on trust assessment in this application calculates parameter information of cross-chain nodes in each blockchain, including at least one of communication credibility, time credibility, transaction credibility, and historical credibility; obtains a comprehensive trust value for each cross-chain node based on this parameter information; determines an initial relay chain node based on this comprehensive trust value; and selects a final relay chain node from the initial relay chain nodes, with the final relay chain nodes forming the cross-chain system. This method securely and efficiently establishes a trusted cross-chain system between mutually independent blockchains, implements node evaluation and trust transfer through a trust model, ensures the secure and stable operation of the cross-chain system, and enables the mutual trust and exchange of value and information between multiple blockchains. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 This is a flowchart of the first embodiment of the method for establishing a cross-chain system based on trust evaluation in this application;
[0055] Figure 2 This is a schematic diagram of the cross-chain model structure;
[0056] Figure 3 This is a flowchart of the first embodiment of the transaction delivery method of the present application;
[0057] Figure 4 This is a schematic diagram of the structure of an embodiment of the device for establishing a cross-chain system based on trust evaluation in the present application;
[0058] Figure 5 It is a structural diagram of an embodiment of the transaction transmission device of the present application. DETAILED DESCRIPTION
[0059] In order to further illustrate the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The aforementioned and other technical contents, features and effects of the present invention can be clearly presented in the following detailed description of the specific embodiments with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The attached drawings are only for reference and illustration purposes and are not intended to limit the technical solutions of the present invention.
[0060] See Figure 1 , Figure 1 This is a flowchart of the first embodiment of the method for establishing a cross-chain system based on trust evaluation in this application, which specifically includes:
[0061] Step S11: Calculate parameter information of cross-chain nodes in each blockchain, where the parameter information includes at least one of communication credibility, time credibility, transaction credibility, and history credibility.
[0062] Specifically, calculate the communication credibility of cross-chain nodes: T com =t normal / t total , where t normal It indicates the time it takes for a cross-chain node to communicate with other nodes normally after joining the cross-chain system. total Indicates the total time the node has joined the cross-chain system.
[0063] Calculate the time credibility of cross-chain nodes: Where t is the time a node experiences after joining the cross-chain system, and parameter a (a∈Z) is the time control factor; T can be adjusted by adjusting the value of a. time The growth rate of a is larger, T time The slower the growth rate.
[0064] Calculate the transaction credibility of the cross-chain node: T trans =b·(tx / tx1+c / c1)·t / t1, where b is the correlation coefficient, tx is the number of packaged transactions the node participates in after joining the cross-chain system, tx1 is the number of transactions determined by the entire system after the node joins the cross-chain system, c is the number of times the node participates in consensus verification, c1 is the number of times the system reaches consensus, t is the time the node experiences after joining the cross-chain system, and t1 is the control factor that can control T trans growth rate.
[0065] Calculating the historical credibility of cross-chain nodes includes: calculating the fluctuation value:
[0066]
[0067] Determine historical credibility based on the fluctuation value D:
[0068]
[0069] Among them, n represents the number of recorded node trust values, represents the average value of n trust values, h i represents the trust value of node i, D is the fluctuation value, ξ is the threshold, T h Indicates historical credibility.
[0070] Step S12: Obtaining the comprehensive trust value of each cross-chain node based on the parameter information.
[0071] The comprehensive trust value of a cross-chain node is the trust value of each blockchain node calculated based on the node’s performance in the cross-chain system.
[0072] In one embodiment, the parameter information is integrated and updated using the following formula to obtain the comprehensive trust value of each cross-chain node:
[0073] T=w1T com +w2T time +w3T trans +w4T h ;
[0074] Among them, w i Represents the weight of each part, T com Indicates the communication credibility of cross-chain nodes, T time Indicates the time credibility of the cross-chain node, T trans Indicates the transaction credibility of the cross-chain node, T h Indicates historical credibility.
[0075] The system obtains the trust value of each node by monitoring and calculating each node, uploads it to the chain through consensus, broadcasts it to all member nodes of the chain, and then regularly updates and maintains it.
[0076] Step S13: Determine the initial relay chain node based on the comprehensive trust value.
[0077] Based on the comprehensive trust value, cross-chain nodes are divided into high-trust nodes, ordinary nodes, low-trust nodes and malicious nodes. The details are shown in the following table (1):
[0078] Node trust domain Trust value distribution Highly trusted nodes 0.8≤T≤1 Ordinary nodes 0.5≤T<0.8 Low Trust Node 0<T<0.5 Malicious nodes T=0
[0079] Table (1)
[0080] Malicious nodes cannot participate in relay chain elections and can only exist in the source blockchain. Low-trust nodes have a very low probability of being selected as relay chain nodes. Even if elected, they can only act as observer nodes in the relay chain and cannot participate in the cross-chain consensus verification process. Therefore, high-trust nodes, ordinary nodes, and low-trust nodes are used as initial relay chain nodes.
[0081] Step S14: Select the final relay chain node from the initial relay chain nodes, and the final relay chain nodes constitute a cross-chain system.
[0082] Specifically, the system determines a threshold τ, which determines the total number of relay chain nodes expected to be elected in this round of the algorithm. The system generates a first random number s that is recognized by the entire network and broadcasts it throughout the cross-chain network. Each initial relay chain node generates a verifiable random function (VRF) proof based on the first random number s and its own private key sk. Each initial relay node performs a mapping operation on its corresponding VRF proof to obtain a second random number random. Specifically, each node maps its generated VRF function proof through a hash function, outputting a random value random with random properties. The second random number random is normalized to obtain a third random number; each initial relay node calculates the probability of being selected in this round based on the corresponding comprehensive trust value; based on the third random number and the probability of being selected, it is determined whether the corresponding initial relay node can be elected as the relay node for the next round; the elected initial relay node broadcasts the verifiable random function proof, the second random number, and the third random number; other initial relay nodes verify the received information, and the initial relay node that passes the verification serves as the final relay chain node to form a cross-chain system.
[0083] In one embodiment, each initial relay node calculates the probability p of being selected in this round according to the corresponding comprehensive trust value in the following manner:
[0084]
[0085] C is the combined calculation, T is the node trust value (for the convenience of calculation, the trust value is uniformly expanded by 100 times and rounded), ω is the weight, expressed as ω = τ / T1, τ is the threshold determined by the system in step 1, T1 is the sum of the trust of all nodes, and k is 0.
[0086] The election and formation of the relay chain involves selecting nodes from the blockchain system as relay chain nodes. Previous election algorithms have used node computing power or the number of tokens held by a node as a benchmark. However, the present invention's election algorithm uses node trust as the basis for elections, integrating the VRF random function to ensure that nodes with higher trust values are more likely to be randomly selected.
[0087] The solution of this application will securely and efficiently establish a trusted cross-chain system between independent blockchains, realize node evaluation and trust transmission through the trust model, ensure the safe and stable operation of the cross-chain system, and realize the mutual trust and exchange of value and information between multiple blockchains.
[0088] The technical solution of the present invention is further described below in conjunction with embodiments.
[0089] Step 1: Please combine Figure 2, initialized on the original chain, blockchains A, B, and C are added to the cross-chain network, each blockchain is assigned an ID, and the node information contained in each blockchain is recorded, as shown in Table (2). At this time, the multi-dimensional credibility module starts to run, and by monitoring each blockchain node, the communication credibility, time credibility, transaction credibility, and historical credibility of each node are calculated.
[0090] Table (2) Unique ID of each blockchain
[0091] Blockchain ID Contains nodes A 01 100 B 02 200 C 03 300
[0092] Step 2: Based on step 1, the communication credibility, time credibility, transaction credibility, and historical credibility of each node are integrated and updated to calculate the comprehensive trust value of the node. Nodes are assigned to different trust domains according to their comprehensive trust values, and are divided into high-trust nodes, ordinary nodes, low-trust nodes, and malicious nodes.
[0093] Step 3: Select a relay chain node based on the node trust value information in step 2. Specifically, calculate the random seed generated by each node, use the binomial distribution and the node trust value to calculate the probability of the node being selected, and compare the random seed with the calculated probability of selection. If the random seed is greater than the probability of selection, the node is selected into the relay chain.
[0094] Step 4: Verify the result of step 3. If the result is verified, the selected node will eventually join the relay chain and broadcast the relevant information to all nodes in the cross-chain system. The specific information is shown in Table (3):
[0095] Table (3) Relay chain node information
[0096]
[0097] Step 5: The selected nodes that have passed the verification in step 4 communicate with each other to form a relay blockchain R, which is responsible for maintaining the stability of the cross-chain system;
[0098] Step 6: After the relay node election is complete, cross-chain data exchange can begin. The relay chain connects the various blockchains in the cross-chain system. The source blockchain, relay chain, and target blockchain begin to operate, helping to package, transmit, and verify transactions between blockchains.
[0099] The solution of this application will securely and efficiently establish a trusted cross-chain system between independent blockchains, realize node evaluation and trust transmission through the trust model, ensure the safe and stable operation of the cross-chain system, and realize the mutual trust and exchange of value and information between multiple blockchains.
[0100] Please attend Figure 3 , this application also provides a transaction delivery method, specifically including:
[0101] Step S31: The relay chain in the cross-chain system obtains the transaction information of the source blockchain from the transaction pool.
[0102] Among them, the cross-chain system is based on the above Figure 1 The component method of the cross-chain system is obtained.
[0103] Specifically, in this embodiment, the source blockchain initiates a cross-chain request, and the relay chain and target blockchain respond to the request. The source blockchain executes the cross-chain transaction and generates the corresponding transaction block. The source blockchain generates the corresponding transmission message according to the cross-chain information exchange transmission protocol and signs the message using the requesting node in the source blockchain. The source blockchain sends the signed transmission message to the relay chain's transaction pool, waiting for the relay chain to perform relevant verification processing. The relay chain in the cross-chain system obtains the source blockchain's transaction information from the transaction pool, performs the corresponding parsing, and verifies the signature.
[0104] Step S32: Verify the existence of the transaction information.
[0105] Specifically, the relay chain takes out the parsed transaction content, performs the relay chain's PBFT consensus on it, and verifies the existence of the transaction through SPV technology.
[0106] Step S33: If the verification passes, it means that the transaction in the source blockchain has been executed, and the transmission information in the transaction information and the signature information of the relay node in the relay chain are sent to the target blockchain.
[0107] If the verification passes, indicating that the transaction in the source blockchain has indeed been pre-executed, the transmission message will be submitted to the target blockchain and signed by the relay node. After the relay chain consensus is completed, the incentive distribution will be carried out.
[0108] Step S34: The target blockchain parses and verifies the signature of the received information and completes the transaction through internal consensus.
[0109] After receiving the message from the relay chain, the target blockchain parses and verifies the message, and completes the corresponding transaction through its own internal consensus; after the transaction is completed, the corresponding receipt is sent, and the entire cross-chain operation is completed.
[0110] For details, please combine Figure 2 The specific transaction process is as follows:
[0111] 1. Blockchain A initiates a cross-chain request, and relay chain R and blockchain B respond to the request.
[0112] 2. Blockchain A pre-executes the cross-chain transaction and generates the corresponding transaction block.
[0113] 3. Blockchain A sends the signed transmission message to the transaction pool of the relay chain, waiting for the relay chain R to perform relevant verification processing;
[0114] 4. The relay chain R takes the message from the source blockchain from its own transaction pool, performs corresponding parsing and verifies the signature;
[0115] 5. The relay chain extracts the parsed transaction content, performs PBFT consensus on it, and verifies the existence of the transaction using SPV technology.
[0116] 6. If the verification passes, it indicates that the transaction in blockchain A has indeed been pre-executed. The transmission message will be submitted to blockchain B and signed by the relay node. After the consensus of relay chain R is completed, the incentive distribution will be carried out;
[0117] 7. After receiving the message from relay chain R, blockchain B parses and verifies the message, and completes the corresponding transaction through its internal consensus;
[0118] 8. After all transactions are completed, the corresponding receipt will be sent, the entire cross-chain operation is completed, and cross-chain information interaction is realized between blockchain A and blockchain B.
[0119] The solution of this application will securely and efficiently establish a trusted cross-chain system between independent blockchains, realize node evaluation and trust transmission through the trust model, ensure the safe and stable operation of the cross-chain system, and realize the mutual trust and exchange of value and information between multiple blockchains.
[0120] See Figure 4 , Figure 4 This is a schematic diagram of the structure of an embodiment of a device for establishing a cross-chain system based on trust evaluation in the present application, comprising: a parameter information calculation module 41, a trust value calculation module 42, an initial relay chain node confirmation module 43, and a selection module 44. The parameter information calculation module 41 is used to calculate the parameter information of the cross-chain nodes in each blockchain, wherein the parameter information includes at least one of communication credibility, time credibility, transaction credibility, and historical credibility; the trust value calculation module 42 is used to obtain a comprehensive trust value for each cross-chain node based on the parameter information; the initial relay chain node confirmation module 43 is used to determine the initial relay chain node based on the comprehensive trust value; and the selection module 44 is used to select the final relay chain node from the initial relay chain nodes, and the final relay chain node constitutes the cross-chain system.
[0121] See Figure 5 , Figure 5This is a schematic diagram of the structure of an embodiment of a transaction transmission device of the present application, comprising: an acquisition module 51, a verification module 52, a sending module 53 and a processing module 54. The acquisition module 51 is used to obtain the transaction information of the source blockchain from the transaction pool using the relay chain in the cross-chain system; wherein the cross-chain system is based on Figure 1 The component method of the cross-chain system is obtained; the verification module 52 is used to verify the existence of the transaction information; if the verification is passed, it means that the transaction in the source blockchain has been executed, and the sending module 53 sends the transmission information in the transaction information and the signature information of the relay node in the relay chain to the target blockchain; the processing module 54 is used to use the target blockchain to parse and verify the received information, and complete the transaction through internal consensus.
[0122] The above is only an implementation method of the present invention and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for establishing a cross-chain system based on trust evaluation, characterized in that: include: Calculating parameter information of cross-chain nodes in each blockchain, wherein the parameter information includes at least one of communication credibility, time credibility, transaction credibility, and history credibility; Obtaining a comprehensive trust value for each cross-chain node based on the parameter information; Determining an initial relay chain node based on the comprehensive trust value; Selecting a final relay chain node from the initial relay chain nodes, and the final relay chain nodes forming a cross-chain system; The steps of selecting a final relay chain node from the initial relay chain nodes and forming a cross-chain system with the final relay chain node include: Each initial relay chain node generates a verifiable random function certificate based on the first random number and its own private key; Each initial relay node performs a mapping operation on its corresponding verifiable random function proof to obtain a second random number; Normalizing the second random number to obtain a third random number; Each initial relay node calculates the probability of being selected in this round based on the corresponding comprehensive trust value; Determining whether the corresponding initial relay node can be selected as a relay node for the next round based on the third random number and the probability of being selected; The elected initial relay node broadcasts the verifiable random function proof, the second random number, and the third random number; Other initial relay nodes verify the received information, and the initial relay nodes that pass the verification serve as the final relay chain nodes to form a cross-chain system.
2. The method according to claim 1, characterized in that The step of obtaining the comprehensive trust value of each cross-chain node based on the parameter information includes: The parameter information is integrated and updated using the following formula to obtain the comprehensive trust value of each cross-chain node: <h2 style=";text-align:left;direction:ltr">T = w1T<h2 style=";text-align:left;direction:ltr"> com <h2 style=";text-align:left;direction:ltr"> +w2T<h2 style=";text-align:left;direction:ltr"> time <h2 style=";text-align:left;direction:ltr"> +w3T<h2 style=";text-align:left;direction:ltr"> trans <h2 style=";text-align:left;direction:ltr"> +w4T<h2 style=";text-align:left;direction:ltr"> h <h2 style=";text-align:left;direction:ltr"> ; Among them, w i Represents the weight of each part, T com Indicates the communication credibility of cross-chain nodes, T time Indicates the time credibility of the cross-chain node, T trans Indicates the transaction credibility of the cross-chain node, T h Indicates historical credibility.
3. The method according to claim 1, characterized in that The step of determining an initial relay chain node based on the comprehensive trust value includes: Based on the comprehensive trust value, cross-chain nodes are divided into high-trust nodes, ordinary nodes, low-trust nodes and malicious nodes; Use high-trust nodes, ordinary nodes, and low-trust nodes as initial relay chain nodes.
4. A transaction delivery method, characterized in that: The method comprises: The relay chain in the cross-chain system obtains transaction information of the source blockchain from the transaction pool; wherein the cross-chain system is obtained based on the method described in any one of claims 1 to 3 above; Verify the existence of transaction information; If the verification passes, it means that the transaction in the source blockchain has been executed, and the transmission information in the transaction information and the signature information of the relay node in the relay chain are sent to the target blockchain; The target blockchain parses and verifies the signature of the received information and completes the transaction through internal consensus.
5. The method according to claim 4, characterized in that Before the relay chain in the cross-chain system obtains the transaction information of the source blockchain from the transaction pool, it includes: The source blockchain executes the cross-chain transaction to generate the corresponding transaction block; The source blockchain generates a corresponding transmission message according to the cross-chain information interaction transmission protocol and signs the message using the requesting node in the source blockchain; The source blockchain sends the signed transfer message to the relay chain’s transaction pool.
6. A device for establishing a cross-chain system based on trust evaluation, characterized in that: include: A parameter information calculation module, configured to calculate parameter information of cross-chain nodes in each blockchain, wherein the parameter information includes at least one of communication credibility, time credibility, transaction credibility, and historical credibility; A trust value calculation module, configured to obtain a comprehensive trust value of each cross-chain node based on the parameter information; An initial relay chain node confirmation module, configured to determine an initial relay chain node based on the comprehensive trust value; A selection module, configured to select a final relay chain node from the initial relay chain nodes, wherein the final relay chain node constitutes a cross-chain system; The steps of selecting a final relay chain node from the initial relay chain nodes and forming a cross-chain system with the final relay chain node include: Each initial relay chain node generates a verifiable random function certificate based on the first random number and its own private key; Each initial relay node performs a mapping operation on its corresponding verifiable random function proof to obtain a second random number; Normalizing the second random number to obtain a third random number; Each initial relay node calculates the probability of being selected in this round based on the corresponding comprehensive trust value; Determining whether the corresponding initial relay node can be selected as a relay node for the next round based on the third random number and the probability of being selected; The elected initial relay node broadcasts the verifiable random function proof, the second random number, and the third random number; Other initial relay nodes verify the received information, and the initial relay nodes that pass the verification serve as the final relay chain nodes to form a cross-chain system.
7. A transaction delivery device, characterized in that: include: An acquisition module, configured to acquire transaction information of a source blockchain from a transaction pool using a relay chain in a cross-chain system; wherein the cross-chain system is obtained based on the method described in any one of claims 1 to 3 above; Verification module, used to verify the existence of transaction information; The sending module, if the verification passes, indicates that the transaction in the source blockchain has been executed. The sending module sends the transmission information in the transaction information and the signature information of the relay node in the relay chain to the target blockchain; The processing module is used to parse and verify the signature of the received information using the target blockchain and complete the transaction through internal consensus.
Citation Information
Patent Citations
Cross-chain consensus method and system for trust establishment, storage medium and application
CN113098689A
Multi-mode trust cross-chain consensus method and system, medium, equipment and terminal
CN115499129A