Random notary-based cross-chain data processing system, apparatus and device, and medium
By introducing a random notary mechanism into the cross-chain data processing system and using transaction information matching and notarization information to generate cross-chain fund transfers, the problem of insufficient cross-chain interaction security in the existing technology is solved and higher security is achieved. and reliability.
Patent Information
- Application Number
- CN202410557340.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-08-30
AI Technical Summary
In the face of malicious attacks or fraud, the existing cross-chain interaction method based on third-party notaries cannot guarantee the security of the cross-chain interaction process, resulting in limited network resource interaction in heterogeneous asset chains.
Adopting a cross-chain data processing system based on random notaries, the transaction information is matched between the first user and the second user's chain nodes, and the notarization information of the target third-party user node is used to generate cross-chain fund transfer information to ensure transaction information. security and integrity.
It improves the security of the cross-chain interaction process, prevents malicious attacks and fraud, and ensures the reliability and integrity of data transmission between asset chains.
Smart Images

Figure CN118569987A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cross-chain data processing based on random notaries, and in particular to a cross-chain data processing system, device, equipment and medium based on random notaries. Background Art
[0002] With the development of blockchain technology and digital asset ecosystem, many heterogeneous asset chains have emerged. However, the network resources of heterogeneous asset chains are relatively independent, and the limitations of asset interaction and data operation restrict the further integration of blockchain and digital assets. At present, although the third-party cross-chain interaction method (i.e., notary mechanism) can realize the interaction of heterogeneous asset chains, if the notary is maliciously attacked or fraudulent, the entire cross-chain interaction process may be affected. Therefore, how to better ensure the security of the cross-chain interaction process has become an urgent problem to be solved. Summary of the invention
[0003] The present application provides a cross-chain data processing system, device, equipment and medium based on a random notary to solve the technical problem of better ensuring the security of the cross-chain interaction process.
[0004] In a first aspect, a cross-chain data processing system based on a random notary is provided, including a first chain node of a first user, a second chain node of the first user, a first chain node of a second user, a second chain node of the second user, and a set of third-party user nodes, wherein:
[0005] The first chain node of the first user generates first transaction information according to the current system parameter information, the first security summary information of the first chain node of the first user, the first address of the second chain node of the first user, and the first transaction amount information of the current first transaction; the current first transaction is a transaction between the first chain node of the first user and the second chain node of the first user;
[0006] The second chain node of the second user generates second transaction information according to the current system parameter information, the second security summary information of the second chain node of the second user, the second address of the first chain node of the second user and the second transaction amount information of the current second transaction; the current second transaction is a transaction between the second chain node of the second user and the first chain node of the second user;
[0007] Each third-party user node in the third-party user node set performs transaction information matching on the first transaction information and the second transaction information;
[0008] When the transaction information is successfully matched, the target third-party user node generates cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node; the target third-party user node is a user node in the third-party user node set;
[0009] The first chain node of the first user transfers the data corresponding to the first transaction amount information to the second chain node of the first user based on the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information of the first chain node of the first user, and the second symmetric key information of the second chain node of the second user.
[0010] In a second aspect, a cross-chain data processing device based on a random notary is provided, comprising:
[0011] A first processing module, configured to generate first transaction information according to current system parameter information, first security summary information of a first chain node of a first user, a first address of a second chain node of the first user, and first transaction amount information of a current first transaction; the current first transaction is a transaction between the first chain node of the first user and the second chain node of the first user;
[0012] The second processing module is used to generate second transaction information according to the current system parameter information, the second security summary information of the second user's second chain node, the second address of the second user's first chain node and the second transaction amount information of the current second transaction; the current second transaction is a transaction between the second user's second chain node and the second user's first chain node;
[0013] A third processing module, configured to perform transaction information matching on the first transaction information and the second transaction information;
[0014] The fourth processing module is used to generate cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node when the transaction information is successfully matched; the target third-party user node is a user node in the third-party user node set;
[0015] The fifth processing module is used to transfer the data corresponding to the first transaction amount information to the second chain node of the first user based on the cross-chain funds transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information of the first chain node of the first user, and the second symmetric key information of the second chain node of the second user.
[0016] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned cross-chain data processing system based on random notary when executing the computer program.
[0017] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned cross-chain data processing system based on random notary are implemented.
[0018] In the scheme implemented by the cross-chain data processing system, device, equipment and medium based on the random notary, the first chain node of the first user generates the first transaction information according to the current system parameter information, the first security summary information of the first chain node of the first user, the first address of the second chain node of the first user and the first transaction amount information of the current first transaction, and the second chain node of the second user generates the second transaction information according to the current system parameter information, the second security summary information of the second chain node of the second user, the second address of the first chain node of the second user and the second transaction amount information of the current second transaction, so that each third-party user node in the third-party user node set can match the first transaction information with the second transaction information, and the target third-party user node generates the cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node when the transaction information is successfully matched, so that the first chain node of the first user transfers the data corresponding to the first transaction amount information to the second chain node of the first user according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, and the first symmetric key information of the first chain node of the first user and the second symmetric key information of the second chain node of the second user, which can improve the security of the cross-chain interaction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 This is a schematic diagram of an application environment of a cross-chain data processing system based on a random notary in one embodiment of the present application;
[0021] Figure 2 This is a processing flow diagram of a cross-chain data processing system based on a random notary in one embodiment of the present application;
[0022] Figure 3 This is a structural diagram of a cross-chain data processing device based on a random notary in one embodiment of the present application;
[0023] Figure 4 is a structural schematic diagram of a computer device in one embodiment of the present application;
[0024] Figure 5 It is another structural schematic diagram of a computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] The cross-chain data processing system based on random notaries provided in the embodiments of the present application can be applied in the following aspects: Figure 1 In an application environment, the client communicates with a cross-chain data processing system based on a random notary through a network. The cross-chain data processing system based on a random notary may include but is not limited to a first chain node of a first user, a second chain node of a first user, a first chain node of a second user, a second chain node of a second user, and a set of third-party user nodes.
[0027] Exemplarily, taking the scenario where users (such as the first user and the second user) submit cross-chain data processing through the client as an example, accordingly, the first chain node of the first user can obtain the relevant data of the first user (such as the current system parameter information, the first security summary information of the first chain node of the first user, the first address of the second chain node of the first user, and the first transaction amount information of the current first transaction) through the client, and generate the first transaction information according to the relevant data of the first user; the second chain node of the second user can obtain the relevant data of the second user (such as the current system parameter information, the second security summary information of the second chain node of the second user, the second address of the first chain node of the second user, and the second transaction amount information of the current second transaction) through the client, and generate the first transaction information according to the relevant data of the second user The first transaction information is generated based on the relevant data of the user; the target third-party user node in the third-party user node set can match the first transaction information with the second transaction information; the target third-party user node generates cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node when the transaction information is successfully matched; the first chain node of the first user transfers the first transaction amount information to the second chain node of the first user according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, and the first symmetric key information of the first chain node of the first user and the second symmetric key information of the second chain node of the second user, and feeds back the transfer result to the client. Correspondingly, the client can receive the transfer result from the cross-chain data processing system based on the random notary, and can display the transfer result on the client for the user to query or browse. By adopting the cross-chain data processing method based on the random notary provided in this application, the security of the cross-chain interaction process can be better ensured.
[0028] The client can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The cross-chain data processing system based on random notaries can be implemented using an independent server or a server cluster consisting of multiple servers. The present application is described in detail below through specific embodiments.
[0029] See also Figure 2 As shown, Figure 2 A schematic diagram of a processing flow of a cross-chain data processing system based on a random notary provided in an embodiment of the present application includes the following steps:
[0030] S10: The first chain node of the first user generates first transaction information according to the current system parameter information, the first security summary information of the first chain node of the first user, the first address of the second chain node of the first user and the first transaction amount information of the current first transaction; the current first transaction is a transaction between the first chain node of the first user and the second chain node of the first user.
[0031] Among them, the first chain node of the first user can be understood as the asset account node of the first user on the first asset chain. It is understandable that the first user can also have asset account nodes in other asset chains, such as the second chain node of the first user mentioned below, or the third chain node of the first user on the third asset chain, etc., and this application does not limit this. In other words, the first chain node of the first user and the second chain node of the first user can be asset account nodes of the same user on different asset chains, and the interaction between the first chain node of the first user and the second chain node of the first user is a cross-chain interaction. Optionally, this application takes the first user including the first chain node and the second chain node as an example for illustration, which does not constitute a limitation to this application.
[0032] The current system parameter information can be used to indicate the relevant parameter information of the random notary-based cross-chain data processing system in the current cross-chain interaction process. The current system parameter information can be an encapsulated structure object, which can include but is not limited to system log information, data status information, read and write world status information, etc., and this application does not limit this.
[0033] The first security summary information can be used to indicate the security summary information corresponding to the first chain node of the first user. The determination steps of the first security summary information can refer to the details of the interaction between the first chain node of the first user and the key exchange node mentioned below, which will not be repeated in this application. The first address can be used to indicate the address corresponding to the second chain node of the first user, that is, the destination address of the cross-chain interaction. The first transaction amount information can be used to indicate the transaction amount information between the first chain node of the first user and the second chain node of the first user.
[0034] Optionally, the process in which the first chain node of the first user generates the first transaction information according to the current system parameter information, the first security summary information of the first chain node of the first user, the first address of the second chain node of the first user, and the first transaction amount information of the current first transaction can be referred to the following formula:
[0035] UpTx{ctx,X,PK_A,fee1}→Hash(Tx_A)
[0036] Among them, UpTx can be used to represent the operation of generating transaction information; ctx can be used to represent the current system parameter information; X can be used to represent the first security summary information of the first chain node of the first user; PK_A can be used to represent the first address of the second chain node of the first user; fee1 can be used to represent the first transaction amount information of the current first transaction; Hash(Tx_A) can be used to represent the first transaction information.
[0037] S20: The second chain node of the second user generates second transaction information according to the current system parameter information, the second security summary information of the second chain node of the second user, the second address of the first chain node of the second user and the second transaction amount information of the current second transaction; the current second transaction is a transaction between the second chain node of the second user and the first chain node of the second user.
[0038] Among them, the second chain node of the second user can be understood as the asset account node of the second user on the second asset chain. It is understandable that the second user can also have asset account nodes in other asset chains, such as the first chain node of the second user mentioned below, or the third chain node of the second user on the third asset chain, etc., and this application does not limit this. In other words, the second chain node of the second user and the first chain node of the second user can be asset account nodes of the same user on different asset chains, and the interaction between the second chain node of the second user and the first chain node of the second user is a cross-chain interaction. Optionally, this application takes the second user including the first chain node and the second chain node as an example for illustration, which does not constitute a limitation to this application.
[0039] The second security summary information can be used to indicate the security summary information corresponding to the second chain node of the second user. The determination step of the first security summary information can refer to the details of the interaction between the second chain node of the second user and the key exchange node to be mentioned below, and this application will not repeat them here. The second address can be used to indicate the address corresponding to the first chain node of the second user, that is, the destination address of the cross-chain interaction. The second transaction amount information can be used to indicate the transaction amount information between the second chain node of the second user and the first chain node of the second user. It can be understood that the transaction amount indicated by the second transaction amount information can be the same as the transaction amount indicated by the aforementioned first transaction amount information, and this application does not limit this.
[0040] Optionally, the second chain node of the second user generates the second transaction information according to the current system parameter information, the second security summary information of the second chain node of the second user, the second address of the first chain node of the second user, and the second transaction amount information of the current second transaction, as shown in the following formula:
[0041] UpTx{ctx,Y,PK_B,fee2}→Hash(Tx_B)
[0042] Among them, UpTx can be used to represent the operation of generating transaction information; ctx can be used to represent the current system parameter information; Y can be used to represent the second security summary information of the second chain node of the second user; PK_B can be used to represent the second address of the first chain node of the second user; fee2 can be used to represent the second transaction amount information of the current second transaction; Hash(Tx_B) can be used to represent the second transaction information.
[0043] S30: Each third-party user node in the third-party user node set matches the first transaction information with the second transaction information.
[0044] It should be noted that a third-party user node can obtain multiple transaction information, which may include matching transaction information and unmatched transaction information. Therefore, the third-party user node can filter out matching transaction information from the multiple transaction information so that the matching transactions can be notarized in subsequent steps. This application does not impose any restrictions on this.
[0045] That is, after obtaining the first transaction information and the second transaction information, the third-party user node can match the first transaction information and the second transaction information to determine whether the first transaction information and the second transaction information are matching transactions, and thus determine subsequent operation steps based on the matching result.
[0046] S40: When the transaction information is successfully matched, the target third-party user node generates cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node; the target third-party user node is a user node in the third-party user node set.
[0047] The target third-party user node can be a third-party user selected from the third-party user node set by the data processing module mentioned below for matching and notarizing the above transaction. It is understandable that the target third-party user can be a third-party user currently randomly selected from the third-party user node set, and this application does not limit this.
[0048] The cross-chain funds transfer information can be used to indicate that when the first transaction information and the second transaction information are mutually matching transactions, the information is used for the two transactions (i.e., the current first transaction and the current second transaction) to perform cross-chain interaction. Optionally, the cross-chain funds transfer information can be understood as a transaction voucher for the cross-chain interaction between the two transactions. It can be understood that the transaction voucher can be the only voucher for the cross-chain interaction. In other words, after the target third party generates the above cross-chain funds transfer information for the two transactions, other transaction information will no longer match the first transaction information and the second transaction information, and this application does not limit this.
[0049] It is understandable that the process of matching transaction information in the cross-chain data processing system based on random notaries may also include the following steps:
[0050] S41: When the transaction information is successfully matched, the target third-party user node obtains current time information from the current system parameter information;
[0051] S42: The target third-party user node obtains the target signature information of the target third-party user node and the transaction matching private key information of the target third-party user node in the transaction information matching process from the target notarization information;
[0052] S43: The target third-party user node generates cross-chain fund transfer information according to the current system parameter information, the current time information, the target signature information, the transaction matching private key information, the first transaction information and the second transaction information.
[0053] Among them, the current time information can be used to indicate the system time information corresponding to the current cross-chain interaction, such as a timestamp. The target signature information can be used to indicate the signature information of the target third-party node. The transaction matching private key information can be used to indicate the private key information corresponding to the target third-party node in the transaction information matching process, and this application does not limit this.
[0054] Optionally, the target third-party user node generates the cross-chain funds transfer information according to the current system parameter information, current time information, target signature information, transaction matching private key information, first transaction information and second transaction information by the method shown in the following formula, which can be seen in the following formula:
[0055] MatchTx{ctx,SignTx(Hash(Tx_A),Hash(Tx_B),ts,Psk)}→Hash(M_TxAB)
[0056] Among them, MatchTx can be used to represent the operation of generating cross-chain fund transfer information; ctx can be used to represent the current system parameter information; SignTx can be used to represent the target signature information in the target notarization information corresponding to the target third-party user node; Hash(Tx_A) can be used to represent the first transaction information; Hash(Tx_B) can be used to represent the second transaction information; ts can be used to represent the timestamp in the current system parameter information; Psk can be used to represent the transaction matching signature private key information in the target notarization information corresponding to the target third-party user node; Hash(M_TxAB) can be used to represent cross-chain fund transfer information.
[0057] For steps S41-S43, when the transaction information is successfully matched, the target third-party user node obtains the current time information from the current system parameter information, so that the target third-party user node can obtain the target signature information of the target third-party user node from the target notarization information, as well as the transaction matching private key information of the target third-party user node during the transaction information matching process, thereby enabling the target third-party user node to generate cross-chain funds transfer information according to the current system parameter information, current time information, target signature information, transaction matching private key information, first transaction information, and second transaction information, and then in the subsequent cross-chain interaction process, more secure cross-chain interaction can be performed based on the cross-chain funds transfer information.
[0058] Optionally, the cross-chain data processing system based on random notary also includes a data processing module, wherein:
[0059] S401: Each third-party user node in the third-party user node set signs the cross-chain fund transfer information using the corresponding private key signature information to obtain a third-party user signature information set;
[0060] S402: Each third-party user node in the third-party user node set determines a third-party user broadcast information set according to the identification information of the current transaction, the cross-chain fund transfer information, and the third-party signature information set corresponding to each third-party user node in the third-party user signature information set;
[0061] S403: The data processing module obtains target third-party user broadcast information that meets preset conditions from the third-party user broadcast information set;
[0062] S404: The data processing module uses the third-party user node corresponding to the target third-party user broadcast information as a reference third-party user node;
[0063] S405: The other third-party user nodes in the third-party user node set except the reference third-party user node verify the reference third-party user node according to the third-party user node public key information, cross-chain fund transfer information and target third-party user broadcast information corresponding to the third-party user node set;
[0064] S406: When the verification result is true, the data processing module uses the reference third-party user node as the target third-party user node.
[0065] Among them, the third-party user signature information set may include one or more third-party user signature information, which can be used to indicate the signature information obtained after the third-party user signs the cross-chain fund transfer information with a private key. It is understandable that after the third-party user signs, he can determine whether he is the notary of the current cross-chain interaction process, that is, whether he is the above-mentioned target third-party user according to the preset conditions in the subsequent steps, and this application does not limit this.
[0066] Optionally, each third-party user node in the third-party user node set signs the cross-chain fund transfer information using the corresponding private key signature information to obtain the third-party user signature information set. The process can be seen in the following formula:
[0067] SIG(Seed1, Prk)→SIGi
[0068] Among them, SIG can be used to indicate the operation of signing; Seed1 can be used to indicate cross-chain fund transfer information. Seed1 is used here to indicate the cross-chain fund transfer information for example description only and does not constitute a limitation to this application; Prk can be used to indicate the private key signature information corresponding to the third-party user node; SIGi can be used to indicate the third-party user signature information.
[0069] The third-party user broadcast information set may include one or more third-party user broadcast information, which may be used to indicate that the third-party user broadcasts the signature information. Optionally, each third-party user node in the third-party user node set determines the third-party user broadcast information set based on the identification information of the current transaction, the cross-chain fund transfer information, and the third-party signature information set corresponding to each third-party user node in the third-party user signature information set, as shown in the following formula:
[0070] Proof(seed1, SIGi, r1) → CR
[0071] Among them, Proof can be used to indicate the broadcast operation; Seed1 can be used to indicate cross-chain fund transfer information. Seed1 is used here to indicate the cross-chain fund transfer information for example description only and does not constitute a limitation to this application; SIGi can be used to indicate third-party user signature information; r1 can be used to indicate the identification information of the current transaction; CR can be used to indicate third-party user broadcast information.
[0072] The target third-party user broadcast information can be used to indicate the third-party user broadcast information that meets the preset conditions. The preset condition can be understood as a sorting condition, that is, no matter what result the third-party user broadcast information produces, the notary for this cross-chain interaction will be selected, and the signing agent, that is, the target third-party user, will be finally determined. This application does not limit this. The reference third-party user node can be used to indicate the third-party user node corresponding to the third-party user broadcast information that meets the preset conditions.
[0073] Optionally, the data processing module uses the third-party user node corresponding to the target third-party user broadcast information as the reference third-party user node, which can be seen in the following formula:
[0074] If CR i ∈P→choose Ni as Ns
[0075]
[0076] Among them, if CR i ∈P can be used to represent the operation of determining the target third-party user broadcast information that meets the preset conditions in the third-party user broadcast information set, CR i can be used to indicate the i-th third-party user broadcast information in the third-party user broadcast information set, i can be used to indicate the index in the third-party user broadcast information set, and P can be used to indicate a preset condition; choose Ni as Ns can be used to indicate the operation of taking the third-party user node corresponding to the target third-party user broadcast information as the reference third-party user node, Ni can be used to indicate the third-party user node corresponding to the target third-party user broadcast information, and Ns can be used to indicate the reference third-party user node; st can be used to indicate a constraint condition; It can be used to indicate that all third-party user broadcast information is third-party user broadcast information in the third-party user broadcast information set, and {CR^} can be used to indicate the third-party user broadcast information set.
[0077] After determining the reference third-party user node, other third-party user nodes in the third-party user node set except the reference third-party user node can also verify the reference third-party user node, that is, perform secondary consensus to determine the accuracy of the reference third-party user node, thereby further improving the security of the cross-chain interaction process. This application does not impose any restrictions on this.
[0078] Optionally, the process in which the other third-party user nodes in the third-party user node set except the reference third-party user node verify the reference third-party user node according to the third-party user node public key information, cross-chain fund transfer information and target third-party user broadcast information corresponding to the third-party user node set can be seen in the following formula:
[0079] Verify(Seed1, CR, PK)
[0080] Among them, Verify can be used to represent the verification operation; Seed1 can be used to represent cross-chain fund transfer information; CR can be used to represent the target third-party user broadcast information; PK can be used to represent the third-party user node public key information corresponding to the third-party user node set.
[0081] It can be understood that when the verification result is true, that is, the secondary consensus result shows that the reference third-party user node is indeed the notary. At this time, the data processing module can use the reference third-party user node as the target third-party user node, so that the cross-chain interaction process can be notarized through the target third-party user node in subsequent steps. This application does not impose any restrictions on this.
[0082] For steps S401-S406, each third-party user node in the third-party user node set signs the cross-chain fund transfer information using the corresponding private key signature information to obtain a third-party user signature information set, so that each third-party user node in the third-party user node set determines the third-party user broadcast information set according to the identification information of the current transaction, the cross-chain fund transfer information, and the third-party signature information set corresponding to each third-party user node in the third-party user signature information set, so that the data processing module obtains the target third-party user broadcast information that meets the preset conditions from the third-party user broadcast information set, so that the data processing module uses the third-party user node corresponding to the target third-party user broadcast information as the reference third-party user node, and then the other third-party user nodes in the third-party user node set except the reference third-party user node verify the reference third-party user node according to the third-party user node public key information, cross-chain fund transfer information and target third-party user broadcast information corresponding to the third-party user node set, and the data processing module uses the reference third-party user node as the target third-party user node when the verification result is true, so that in the subsequent process, the cross-chain interaction process can be notarized through the target third-party user node, which is conducive to improving the security of the cross-chain interaction process.
[0083] S50: The first chain node of the first user transfers the data corresponding to the first transaction amount information to the second chain node of the first user based on the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information of the first chain node of the first user, and the second symmetric key information of the second chain node of the second user.
[0084] Among them, the data corresponding to the first transaction amount information can be used to indicate the data that the first user needs to interact across chains, that is, the data transferred by the first user's first chain node through the cross-chain interaction process, that is, the data obtained by the first user's second chain node through the cross-chain interaction process. The first symmetric key information can be the symmetric key determined by the first user node and the second user node through the key exchange node. The second symmetric key information can be the symmetric key determined by the second user node and the first user node through the key exchange node. The first symmetric key and the second symmetric key can be the same key corresponding to different users, and this application does not limit this.
[0085] Optionally, the cross-chain data processing system based on random notaries also includes a key exchange node, wherein:
[0086] S501: The first chain node of the first user determines first mapping parameter information according to the first user private key information and the first user public key information of the first chain node of the first user, and the exchange node public key information and the exchange node private key information of the key exchange node;
[0087] S502: The first chain node of the first user determines the first intermediate key information according to the first mapping parameter information, the first random parameter and the first chain node public key information of the first user;
[0088] S503: The second chain node of the second user determines the second mapping parameter information according to the second user private key information and the second user public key information of the second chain node of the second user, and the exchange node public key information and the exchange node private key information of the key exchange node;
[0089] S504: The second chain node of the second user determines the second intermediate key information according to the second mapping parameter information, the second random parameter, and the second chain node public key information of the second user;
[0090] S505: The key exchange node determines the shared key factor according to the first random parameter and the second random parameter, verifies the first chain node of the first user according to the first intermediate key information, and verifies the second chain node of the second user according to the second intermediate key information;
[0091] S506: When the verification result is true, the first chain node of the first user determines first security summary information according to the third random parameter, the shared key factor and the first random parameter, and sends the first security summary information to the second chain node of the second user;
[0092] S507: When the verification result is true, the second chain node of the second user determines second security summary information according to the fourth random parameter, the shared key factor and the second random parameter, and sends the second security summary information to the first chain node of the first user.
[0093] Among them, the first mapping parameter information can be used to indicate the mapping parameters between the first user and the key exchange node, and the mapping parameters can be used to reflect the relationship between the first user and the key exchange node, and this application does not limit this. Optionally, the first chain node of the first user determines the process of the first mapping parameter information according to the first user private key information and the first user public key information of the first chain node of the first user, and the exchange node public key information and the exchange node private key information of the key exchange node, which can be seen in the following formula:
[0094] h1=H1(SK_a, PK_a, Csk, Cpk)
[0095] Among them, h1 can be used to represent the first mapping parameter information; H1 can be used to represent the operation of determining the mapping parameter information; SK_a can be used to represent the first user private key information of the first chain node of the first user; PK_a can be used to represent the first user public key information of the first chain node of the first user; Csk can be used to represent the exchange node public key information of the key exchange node; Cpk can be used to represent the exchange node private key information of the key exchange node.
[0096] The first intermediate key information can be used to indicate an intermediate form of key information determined by the first user node, and this application does not limit this. Optionally, the first chain node of the first user determines the first intermediate key information according to the first mapping parameter information, the first random parameter and the first chain node public key information of the first user, and the process can be referred to as follows:
[0097] AY1=H2(h1,l A , r A , PK_a)
[0098] Among them, AY1 can be used to represent the first intermediate key information; H2 can be used to represent the operation of determining the intermediate key information; h1 can be used to represent the first mapping parameter information; l A Can be used to represent a random integer included in the first random parameter; r A It can be used to represent a random number included in the first random parameter; PK_a can be used to represent the first chain node public key information of the first user.
[0099] The second mapping parameter information can be used to indicate the mapping parameters between the second user and the key exchange node, and the mapping parameters can be used to reflect the relationship between the second user and the key exchange node, which is not limited in this application. Optionally, the second user's second chain node determines the second mapping parameter information according to the second user's second chain node's second user private key information and second user public key information, and the exchange node public key information and exchange node private key information of the key exchange node, as shown in the following formula:
[0100] h2=H1(SK_b,PK_b,Csk,Cpk)
[0101] Among them, h2 can be used to represent the second mapping parameter information; H1 can be used to represent the operation of determining the mapping parameter information; SK_b can be used to represent the second user private key information of the second chain node of the second user; PK_b can be used to represent the second user public key information of the second chain node of the second user; Csk can be used to represent the exchange node public key information of the key exchange node; Cpk can be used to represent the exchange node private key information of the key exchange node.
[0102] The second intermediate key information can be used to indicate an intermediate form of key information determined by the second user node, and this application does not limit this. Optionally, the process of the first chain node of the second user determining the second intermediate key information according to the second mapping parameter information, the second random parameter and the second user's second chain node public key information can be seen in the following formula:
[0103] BY1=H2(h,l B , r B , PK_b)
[0104] Wherein, BY1 may be used to represent the second intermediate key information; H2 may be used to represent the operation of determining the intermediate key information; h2 may be used to represent the second mapping parameter information; l B Can be used to represent a random integer included in the second random parameter; r B It can be used to represent a random number included in the second random parameter; PK_b can be used to represent the second chain node public key information of the second user.
[0105] The shared key factor can be used to indicate a key factor determined by the key exchange node for sharing by the first user and the second user, and this application does not limit this. Optionally, the key exchange node determines the shared key factor based on the first random parameter and the second random parameter, as shown in the following formula:
[0106] x0=l A l B mod p
[0107] Among them, x0 can be used to represent the shared key factor; l A Can be used to represent a random integer included in the first random parameter; B It can be used to represent a random integer included in the second random parameter; mod p can be used to represent a modulo p operation. It should be noted that modulo p operations are often used in encryption, decryption, key exchange and other fields; in the field of shared keys, modulo p operations can enable both parties to a transaction to exchange keys securely over an insecure communication channel. For details, please refer to the detailed description of modulo p in the key exchange algorithm of permutable rational functions of semigroups, which will not be repeated in this application.
[0108] The first security summary information may be summary information generated by the first user to ensure the security of cross-chain interaction. Optionally, the first chain node of the first user determines the first security summary information according to the third random parameter, the shared key factor and the first random parameter, as shown in the following formula:
[0109]
[0110] Wherein, X can be used to represent the first security summary information; R h can be used to represent a complete key system with the aforementioned h() mapping; r A Can be used to represent a random number included in the first random parameter; It can be used to represent the operation of permutable rational functions on the third random parameter and the shared key factor, M A can be used to represent the third random parameter, and x0 can be used to represent the shared key factor.
[0111] The second security summary information may be summary information generated by the second user to ensure the security of cross-chain interaction. Optionally, the second user's second chain node determines the second security summary information according to the fourth random parameter, the shared key factor and the second random parameter, as shown in the following formula:
[0112]
[0113] Wherein, Y can be used to represent the second security summary information; R h can be used to represent a complete key system with the aforementioned h() mapping; r B Can be used to represent a random number included in the second random parameter; It can be used to represent the operation of permutable rational functions on the shared key factors through the fourth random parameter, M B It can be used to represent the fourth random parameter, and x0 can be used to represent the shared key factor. It should be noted that the specific content of performing permutable rational functions can refer to the detailed description of the module p in the key exchange algorithm of permutable rational functions of semigroups, and this application will not repeat it here.
[0114] Correspondingly, the first chain node of the first user receives the second security summary information sent by the second chain node of the second user; the first chain node of the first user determines the first symmetric key information according to the second security summary information and the shared key factor. After the first chain node of the first user receives the second security summary information, the second security summary information can be decrypted to obtain a reference random number. If the reference random number is the same as the random number r included in the aforementioned second random parameter, B If they are the same, the first chain node of the first user can calculate the symmetric key according to a permutable rational function (such as called the first permutable rational function) obtained by decryption, and this application does not impose any restrictions on this.
[0115] Optionally, the process of the first chain node of the first user determining the first symmetric key information may refer to the following steps:
[0116]
[0117] Wherein, K1 can be used to represent the first symmetric key information; can be used to represent the operation of a permutable rational function on the first permutable rational function through a fourth random parameter, M B can be used to represent the fourth random parameter, can be used to represent the first permutable rational function, M A It can be used to represent the third random parameter, and x0 can be used to represent the shared key factor. It should be noted that the operation of the permutable rational function on the first permutable rational function through the fourth random parameter can obtain the same result as the operation of the permutable rational function on the shared key factor through the fourth random parameter and the third random parameter, and can also obtain the same result as the operation of the permutable rational function on another permutable rational function (such as the second permutable rational function) through the third random parameter, and can also obtain the same result as the operation of the permutable rational function on the shared key factor through the third random parameter and the fourth random parameter, and the present application does not limit this.
[0118] Correspondingly, the second chain node of the second user receives the first security summary information sent by the first chain node of the first user; the second chain node of the second user determines the second symmetric key information according to the first security summary information and the shared key factor. After the second chain node of the second user receives the first security summary information, the first security summary information can be decrypted to obtain a reference random number. If the reference random number is the same as the random number r included in the aforementioned first random parameter, A If the two functions are the same, the second chain node of the second user can calculate the symmetric key according to a permutable rational function (ie, the second permutable rational function) obtained by decryption, and the present application does not impose any limitation on this.
[0119] Optionally, the process of the second chain node of the second user determining the second symmetric key information may refer to the following steps:
[0120]
[0121] Wherein, K2 can be used to represent the second symmetric key information; can be used to represent the operation of a permutable rational function on a second permutable rational function through a third random parameter, M A can be used to represent the third random parameter, can be used to represent the second permutable rational function, M BIt can be used to represent the fourth random parameter, and x0 can be used to represent the shared key factor. It should be noted that the operation of the second permutable rational function by the third random parameter can obtain the same result as the operation of the shared key factor by the third random parameter and the fourth random parameter, or the same result as the operation of the first permutable rational function by the fourth random parameter, or the same result as the operation of the shared key factor by the fourth random parameter and the third random parameter, and the present application does not limit this.
[0122] For steps S501-S507, the first chain node of the first user determines the first mapping parameter information according to the first user private key information and the first user public key information of the first chain node of the first user, and the exchange node public key information and the exchange node private key information of the key exchange node, so that the first chain node of the first user determines the first intermediate key information according to the first mapping parameter information, the first random parameter and the first chain node public key information of the first user; the second chain node of the second user determines the second mapping parameter information according to the second user private key information and the second user public key information of the second chain node of the second user, and the exchange node public key information and the exchange node private key information of the key exchange node, so that the second chain node of the second user determines the second intermediate key information according to the second mapping parameter information, the second random parameter and the second chain node public key information of the second user, so that the key exchange node determines the second intermediate key information according to the first The shared key factor is determined by using a random parameter and a second random parameter, and the first chain node of the first user is verified according to the first intermediate key information, and the second chain node of the second user is verified according to the second intermediate key information, so that when the verification result of the first chain node of the first user is true, the first security summary information is determined according to the third random parameter, the shared key factor and the first random parameter, and the first security summary information is sent to the second chain node of the second user, and when the verification result of the second chain node of the second user is true, the second security summary information is determined according to the fourth random parameter, the shared key factor and the second random parameter, and the second security summary information is sent to the first chain node of the first user, which is conducive to determining the first symmetric key information and the second symmetric key information according to the first security summary information and the second security summary information in subsequent steps to improve the security of the cross-chain interaction process.
[0123] It is understandable that the process of cross-chain interaction in the cross-chain data processing system based on random notaries may also include the following steps:
[0124] S51: The first chain node of the first user transfers the data corresponding to the first transaction amount information to the first fund pool of the target third-party user node on the first chain according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information and the second symmetric key information, and generates first transfer information;
[0125] S52: The second chain node of the second user transfers the data corresponding to the second transaction amount information to the second fund pool of the target third-party user node on the second chain according to the cross-chain fund transfer information, the current system parameter information, the second transaction amount information, the first symmetric key information and the second symmetric key information, and generates second transfer information;
[0126] S53: The second chain node of the first user obtains data corresponding to the first transaction amount information from the second fund pool according to the first transfer information, the current system parameter information, the first symmetric key information, and the second symmetric key information, and generates first cross-chain extraction information;
[0127] S54: The first chain node of the second user obtains data corresponding to the second transaction amount information from the first fund pool according to the second transfer information, the current system parameter information, the first symmetric key information and the second symmetric key information, and generates the second cross-chain extraction information
[0128] Among them, the first transfer information can be used to indicate the transfer information obtained after the first chain node of the first user transfers funds. That is to say, after the first chain node of the first user pays the funds required for cross-chain interaction, the above-mentioned first transfer information can be obtained. The first transfer information can also be understood as a fund order generated by the cross-chain interaction process. The way in which the first chain node of the first user generates a fund order (such as the first fund order, i.e., the first transfer information) after paying the funds for cross-chain interaction is the only way to generate the first fund order.
[0129] Optionally, the process in which the first chain node of the first user generates the first transfer information according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information and the second symmetric key information can be seen in the following formula:
[0130] PayTx{ctx, Hash(M_TxAB), fee1, K1, K2}→Hash(Pay_TxA)
[0131] Among them, PayTx is used to represent the operation of generating the first transfer information; ctx is used to represent the current system parameter information; Hash(M_TxAB) is used to represent the cross-chain fund transfer information; fee1 is used to represent the first transaction amount information; K1 is used to represent the first symmetric key information; K2 is used to represent the second symmetric key information; Hash(Pay_TxA) is used to represent the first transfer information.
[0132] The second transfer information can be used to indicate the transfer information obtained after the second chain node of the second user transfers funds. In other words, the second chain node of the second user can obtain the above-mentioned second transfer information after paying the funds required for cross-chain interaction. The second transfer information can also be understood as a fund order generated by the cross-chain interaction process. The way in which the second chain node of the second user generates a fund order (such as the second fund order, i.e., the second transfer information) after paying the funds for cross-chain interaction is the only way to generate the second fund order.
[0133] Optionally, the second chain node of the second user generates the second transfer information according to the cross-chain fund transfer information, the current system parameter information, the second transaction amount information, the first symmetric key information and the second symmetric key information, as shown in the following formula:
[0134] PayTx{ctx, Hash(M_TxAB), fee2, K1, K2}→Hash(Pay_TxB)
[0135] Among them, PayTx is used to indicate the operation of generating the second transfer information; ctx is used to indicate the current system parameter information; Hash(M_TxAB) is used to indicate the cross-chain fund transfer information; fee2 is used to indicate the second transaction amount information; K1 is used to indicate the first symmetric key information; K2 is used to indicate the second symmetric key information; Hash(Pay_TxB) is used to indicate the second transfer information.
[0136] The first cross-chain extraction information can be used to indicate the cross-chain extraction information generated after the second chain node of the first user extracts the cross-chain interaction funds from the fund pool of the target third-party user node. Optionally, the process of the second chain node of the first user generating the first cross-chain extraction information according to the first transfer information, the current system parameter information, the first symmetric key information and the second symmetric key information can be seen in the following formula:
[0137] ProofTx{ctx, Hash(Pay_TxA), K1, K2}→Hash(Prf_TxA)
[0138] Among them, ProofTx can be used to represent the operation of generating the first cross-chain extraction information; ctx can be used to represent the current system parameter information; Hash(Pay_TxA) can be used to represent the first transfer information; K1 is used to represent the first symmetric key information; K2 is used to represent the second symmetric key information; Hash(Prf_TxA) can be used to represent the first cross-chain extraction information.
[0139] The data corresponding to the second transaction amount information can be used to indicate the data that the second user needs to interact across the chain, that is, the data transferred by the second user's second chain node through the cross-chain interaction process, that is, the data obtained by the second user's first chain node through the cross-chain interaction process. It is understandable that in order to balance the funds after the cross-chain interaction, the first transaction amount and the second transaction amount can be the same, so that the data corresponding to the first transaction amount information and the data corresponding to the second transaction amount can be the same, thereby achieving a balance of income and expenditure for the target third party's fund pool on the two chains. Optionally, the first chain node of the first user can also interact across chains with multiple user nodes on the second chain (such as the second chain node of the second user and the second chain node of the third user, etc.), and this application does not limit this.
[0140] The second cross-chain extraction information can be used to indicate the cross-chain extraction information generated after the first chain node of the second user extracts the cross-chain interaction funds from the fund pool of the target third-party user node. Optionally, the process of the first chain node of the second user generating the second cross-chain extraction information according to the second transfer information, the current system parameter information, the first symmetric key information and the second symmetric key information can be seen in the following formula:
[0141] ProofTx{ctx, Hash(Pay_TxB), K1, K2}→Hash(Prf_TxB)
[0142] Among them, ProofTx can be used to represent the operation of generating the second cross-chain extraction information; ctx can be used to represent the current system parameter information; Hash(Pay_TxB) can be used to represent the second transfer information; K1 is used to represent the first symmetric key information; K2 is used to represent the second symmetric key information; Hash(Prf_TxB) can be used to represent the second cross-chain extraction information.
[0143] Optionally, the fund order destruction process in the cross-chain data processing system based on random notaries may include the following steps:
[0144] S541: The target third-party user node obtains the destruction signature information corresponding to the target third-party user node;
[0145] S542: When the target third-party user node obtains the first cross-chain extraction information, the target third-party user node generates first destruction information according to the first cross-chain extraction information, the current system parameter information and the destruction signature information;
[0146] S543: When the target third-party user node obtains the second cross-chain extraction information, it generates second destruction information according to the second cross-chain extraction information, the current system parameter information and the destruction signature information.
[0147] Among them, the destruction signature information can be the signature information corresponding to the destruction process of the fund order by the target third-party node. Optionally, the destruction signature information can be the same as the notarization signature information of other target third-party nodes in the cross-chain interaction process, and this application does not limit this. Optionally, the target third-party user node can generate signature information based on the current system parameter information, endorsement information and current time information. The specific process can be seen in the following formula:
[0148] SignTx{ctx,*,*,ts}→Hash(Si_Tx*)
[0149] Among them, SignTx can be used to indicate the operation of signing by the target third-party node; ctx can be used to indicate the current system parameter information; * can be used to indicate the endorsement information of the target third-party node; ts can be used to indicate the current time information; Hash(Si_Tx*) can be used to indicate the signature information of the target third-party node. It can be understood that the above-mentioned destruction signature information can be Hash(Si_Tx*), and this application does not limit this.
[0150] The first destruction information can be used to indicate the destruction information generated by the third-party user node based on the first cross-chain extraction information. Optionally, the process of the target third-party user node generating the first destruction information based on the first cross-chain extraction information, the current system parameter information and the destruction signature information can be seen in the following formula:
[0151] DestoryTx{ctx, Hash(Si_Tx*), Hash(Prf_TxA)}→Hash(De_TxA)
[0152] Among them, DestoryTx can be used to indicate the process of generating destruction information; ctx can be used to indicate the current system parameter information; Hash(Si_Tx*) can be used to indicate the destruction signature information; Hash(Prf_TxA) can be used to indicate the first cross-chain extraction information; Hash(De_TxA) can be used to indicate the first destruction information.
[0153] The second destruction information can be used to indicate the destruction information generated by the third-party user node based on the second cross-chain extraction information. Optionally, the target third-party user node generates the second destruction information based on the second cross-chain extraction information, the current system parameter information and the destruction signature information, as shown in the following formula:
[0154] DestoryTx{ctx, Hash(Si_Tx*), Hash(Prf_TxB)}→Hash(De_TxB)
[0155] Among them, DestoryTx can be used to indicate the process of generating destruction information; ctx can be used to indicate the current system parameter information; Hash(Si_Tx*) can be used to indicate the destruction signature information; Hash(Prf_TxB) can be used to indicate the second cross-chain extraction information; Hash(De_TxB) can be used to indicate the second destruction information.
[0156] It is understandable that each step of the cross-chain interaction has a strict time limit. If a timeout occurs, the current cross-chain interaction step will return to the previous step and return the current step to empty. Optionally, the data processing module in the cross-chain data processing system based on the random notary can generate timeout processing information based on the current system parameter information and the target timeout information. For example, the method for processing the timeout phenomenon can be found in the following formula:
[0157] Timeout{ctx, Timeout}→Hash(empty)
[0158] Among them, Timeout can be used to indicate the process of generating timeout processing information; ctx can be used to indicate the current system parameter information; Timeout can be used to indicate target timeout information; Hash (empty) can be used to indicate timeout processing information, that is, empty hash, and this application does not impose any restrictions on this.
[0159] It can be seen that in the above scheme, the first chain node of the first user generates the first transaction information according to the current system parameter information, the first security summary information of the first chain node of the first user, the first address of the second chain node of the first user, and the first transaction amount information of the current first transaction, and the second chain node of the second user generates the second transaction information according to the current system parameter information, the second security summary information of the second chain node of the second user, the second address of the first chain node of the second user, and the second transaction amount information of the current second transaction, so that each third-party user node in the third-party user node set can match the first transaction information with the second transaction information, and the target third-party user node generates cross-chain funds transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node when the transaction information is successfully matched, so that the first chain node of the first user transfers the data corresponding to the first transaction amount information to the second chain node of the first user according to the cross-chain funds transfer information, the current system parameter information, the first transaction amount information, and the first symmetric key information of the first chain node of the first user and the second symmetric key information of the second chain node of the second user, which can improve the security of the cross-chain interaction process.
[0160] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0161] In one embodiment, a cross-chain data processing device based on a random notary is provided, and the cross-chain data processing device based on a random notary corresponds one-to-one to the cross-chain data processing method based on a random notary in the above embodiment. Figure 3 As shown, the cross-chain data processing device based on random notary includes a first processing module 101, a second processing module 102, a third processing module 103, a fourth processing module 104 and a fifth processing module 105. Each functional module is described in detail as follows:
[0162] The first processing module 101 is used to generate first transaction information according to the current system parameter information, the first security summary information of the first chain node of the first user, the first address of the second chain node of the first user and the first transaction amount information of the current first transaction; the current first transaction is a transaction between the first chain node of the first user and the second chain node of the first user;
[0163] The second processing module 102 is used to generate second transaction information according to the current system parameter information, the second security summary information of the second user's second chain node, the second address of the second user's first chain node and the second transaction amount information of the current second transaction; the current second transaction is a transaction between the second user's second chain node and the second user's first chain node;
[0164] The third processing module 103 is used to match the first transaction information with the second transaction information;
[0165] The fourth processing module 104 is used to generate cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node when the transaction information is successfully matched; the target third-party user node is a user node in the third-party user node set;
[0166] The fifth processing module 105 is used to transfer the data corresponding to the first transaction amount information to the second chain node of the first user based on the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information of the first chain node of the first user and the second symmetric key information of the second chain node of the second user.
[0167] In one embodiment, the processing module 105 is specifically used to transfer the data corresponding to the first transaction amount information to the first fund pool of the target third-party user node on the first chain according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information and the second symmetric key information, and generate the first transfer information; transfer the data corresponding to the second transaction amount information to the second fund pool of the target third-party user node on the second chain according to the cross-chain fund transfer information, the current system parameter information, the second transaction amount information, the first symmetric key information and the second symmetric key information, and generate the second transfer information; obtain the data corresponding to the first transaction amount information from the second fund pool according to the first transfer information, the current system parameter information, the first symmetric key information and the second symmetric key information, and generate the first cross-chain extraction information; obtain the data corresponding to the second transaction amount information from the first fund pool according to the second transfer information, the current system parameter information, the first symmetric key information and the second symmetric key information, and generate the second cross-chain extraction information.
[0168] In one embodiment, the processing module 104 is specifically used to sign the cross-chain funds transfer information using the corresponding private key signature information to obtain a third-party user signature information set; determine the third-party user broadcast information set according to the identification information of the current transaction, the cross-chain funds transfer information, and the third-party signature information set corresponding to each third-party user node in the third-party user signature information set; obtain the target third-party user broadcast information that meets the preset conditions from the third-party user broadcast information set; use the third-party user node corresponding to the target third-party user broadcast information as a reference third-party user node; verify the reference third-party user node according to the third-party user node public key information, cross-chain funds transfer information and target third-party user broadcast information corresponding to the third-party user node set; when the verification result is true, use the reference third-party user node as the target third-party user node.
[0169] In one embodiment, the processing module 104 is specifically used to, when the transaction information is successfully matched, obtain the current time information from the current system parameter information; obtain the target signature information of the target third-party user node and the transaction matching private key information of the target third-party user node in the transaction information matching process from the target notarization information; generate cross-chain fund transfer information according to the current system parameter information, the current time information, the target signature information, the transaction matching private key information, the first transaction information and the second transaction information; wherein the target third-party user node generates the cross-chain fund transfer information according to the current system parameter information, the current time information, the target signature information, the transaction matching private key information, the first transaction information and the second transaction information by the method shown in the following formula:
[0170] MatchTx{ctx,SignTx(Hash(Tx_A),Hash(Tx_B),ts,Psk)}→Hash(M_TxAB)
[0171] Among them, MatchTx is used to represent the operation of generating cross-chain fund transfer information; ctx is used to represent the current system parameter information; SignTx is used to represent the target signature information; Hash(Tx_A) is used to represent the first transaction information; Hash(Tx_B) is used to represent the second transaction information; ts is used to represent the current time information; Psk is used to represent the transaction matching private key information; Hash(M_TxAB) is used to represent the cross-chain fund transfer information.
[0172] In one embodiment, the processing module 105 is specifically used to determine the first mapping parameter information according to the first user private key information and the first user public key information of the first chain node of the first user, and the exchange node public key information and the exchange node private key information of the key exchange node; determine the first intermediate key information according to the first mapping parameter information, the first random parameter and the first chain node public key information of the first user; determine the second mapping parameter information according to the second user private key information and the second user public key information of the second chain node of the second user, and the exchange node public key information and the exchange node private key information of the key exchange node; determine the second mapping parameter information according to the second mapping parameter information, the second random parameter and the second chain node of the second user public key information, determine the second intermediate key information; determine the shared key factor according to the first random parameter and the second random parameter, and verify the first chain node of the first user according to the first intermediate key information, and verify the second chain node of the second user according to the second intermediate key information; when the verification result is true, determine the first security summary information according to the third random parameter, the shared key factor and the first random parameter, and send the first security summary information to the second chain node of the second user; when the verification result is true, determine the second security summary information according to the fourth random parameter, the shared key factor and the second random parameter, and send the second security summary information to the first chain node of the first user.
[0173] In one embodiment, the processing module 105 is specifically used to receive second security summary information sent from a second chain node of a second user; determine first symmetric key information based on the second security summary information and a shared key factor; receive first security summary information sent from a first chain node of a first user; determine second symmetric key information based on the first security summary information and a shared key factor.
[0174] In one embodiment, the processing module 105 is specifically used to generate the first transfer information according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information and the second symmetric key information;
[0175] PayTx{ctx, Hash(M_TxAB), fee, K1, K2}→Hash(Pay_TxA)
[0176] Among them, PayTx is used to represent the operation of generating the first transfer information; ctx is used to represent the current system parameter information; Hash(M_TxAB) is used to represent the cross-chain fund transfer information; fee is used to represent the first transaction amount information; K1 is used to represent the first symmetric key information; K2 is used to represent the second symmetric key information; Hash(Pay_TxA) is used to represent the first transfer information.
[0177] In one embodiment, the processing module 105 is specifically used to obtain the destruction signature information corresponding to the target third-party user node; when the first cross-chain extraction information is obtained, the first destruction information is generated according to the first cross-chain extraction information, the current system parameter information and the destruction signature information; when the second cross-chain extraction information is obtained, the second destruction information is generated according to the second cross-chain extraction information, the current system parameter information and the destruction signature information.
[0178] The present application provides a cross-chain data processing device based on a random notary. The first chain node of the first user generates first transaction information according to the current system parameter information, the first security summary information of the first chain node of the first user, the first address of the second chain node of the first user, and the first transaction amount information of the current first transaction. The second chain node of the second user generates second transaction information according to the current system parameter information, the second security summary information of the second chain node of the second user, the second address of the first chain node of the second user, and the second transaction amount information of the current second transaction. Each third-party user node in the third-party user node set can match the first transaction information with the second transaction information, and the target third-party user node generates cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node when the transaction information is successfully matched, so that the first chain node of the first user transfers the data corresponding to the first transaction amount information to the second chain node of the first user according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, and the first symmetric key information of the first chain node of the first user and the second symmetric key information of the second chain node of the second user, which can improve the security of the cross-chain interaction process.
[0179] For the specific definition of the cross-chain data processing device based on random notaries, please refer to the definition of the cross-chain data processing method based on random notaries above, which will not be repeated here. Each module in the above cross-chain data processing device based on random notaries can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0180] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client through a network connection. When the computer program is executed by the processor, it realizes the functions or steps of the service side of a cross-chain data processing method based on a random notary.
[0181] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it realizes the functions or steps of the client side of a cross-chain data processing method based on a random notary.
[0182] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0183] Generate first transaction information according to current system parameter information, first security summary information of the first chain node of the first user, first address of the second chain node of the first user, and first transaction amount information of the current first transaction; the current first transaction is a transaction between the first chain node of the first user and the second chain node of the first user;
[0184] Generate second transaction information according to the current system parameter information, the second security summary information of the second user's second chain node, the second address of the second user's first chain node, and the second transaction amount information of the current second transaction; the current second transaction is a transaction between the second user's second chain node and the second user's first chain node;
[0185] Performing transaction information matching on the first transaction information and the second transaction information;
[0186] In the case where the transaction information is successfully matched, the cross-chain fund transfer information is generated according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node; the target third-party user node is a user node in the third-party user node set;
[0187] According to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information of the first chain node of the first user and the second symmetric key information of the second chain node of the second user, the data corresponding to the first transaction amount information is transferred to the second chain node of the first user.
[0188] The present application provides a computer device, which generates first transaction information according to current system parameter information, first security summary information of a first user's first chain node, a first address of the first user's second chain node, and first transaction amount information of a current first transaction, and generates second transaction information according to current system parameter information, second security summary information of a second user's second chain node, a second address of the second user's first chain node, and second transaction amount information of a current second transaction, and can match transaction information of the first transaction information and the second transaction information, and when the transaction information matches successfully, generates cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and target notarization information corresponding to the target third-party user node, so that according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, and the first symmetric key information of the first user's first chain node and the second symmetric key information of the second user's second chain node, the data corresponding to the first transaction amount information is transferred to the second chain node of the first user, thereby improving the security of the cross-chain interaction process.
[0189] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0190] Generate first transaction information according to current system parameter information, first security summary information of the first chain node of the first user, first address of the second chain node of the first user, and first transaction amount information of the current first transaction; the current first transaction is a transaction between the first chain node of the first user and the second chain node of the first user;
[0191] Generate second transaction information according to the current system parameter information, the second security summary information of the second user's second chain node, the second address of the second user's first chain node, and the second transaction amount information of the current second transaction; the current second transaction is a transaction between the second user's second chain node and the second user's first chain node;
[0192] Performing transaction information matching on the first transaction information and the second transaction information;
[0193] In the case where the transaction information is successfully matched, the cross-chain fund transfer information is generated according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node; the target third-party user node is a user node in the third-party user node set;
[0194] According to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information of the first chain node of the first user and the second symmetric key information of the second chain node of the second user, the data corresponding to the first transaction amount information is transferred to the second chain node of the first user.
[0195] The present application provides a computer-readable storage medium, which generates first transaction information according to current system parameter information, first security summary information of a first user's first chain node, a first address of a second user's second chain node, and first transaction amount information of a current first transaction, and generates second transaction information according to current system parameter information, second security summary information of a second user's second chain node, a second address of a second user's first chain node, and second transaction amount information of a current second transaction, and can match transaction information of the first transaction information and the second transaction information, and when the transaction information matches successfully, generates cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and target notarization information corresponding to a target third-party user node, thereby transferring data corresponding to the first transaction amount information to the second chain node of the first user according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, and the first symmetric key information of the first chain node of the first user and the second symmetric key information of the second chain node of the second user, thereby improving the security of the cross-chain interaction process.
[0196] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions on the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0197] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0198] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0199] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A cross-chain data processing system based on random notary, applied to blockchain, characterized in that: The cross-chain data processing system based on random notary includes a first chain node of a first user, a second chain node of the first user, a first chain node of a second user, a second chain node of the second user, and a third-party user node set, wherein: The first chain node of the first user generates first transaction information according to current system parameter information, first security summary information of the first chain node of the first user, first address of the second chain node of the first user and first transaction amount information of the current first transaction; the current first transaction is a transaction between the first chain node of the first user and the second chain node of the first user; The second chain node of the second user generates second transaction information according to the current system parameter information, the second security summary information of the second chain node of the second user, the second address of the first chain node of the second user and the second transaction amount information of the current second transaction; the current second transaction is a transaction between the second chain node of the second user and the first chain node of the second user; Each third-party user node in the third-party user node set performs transaction information matching on the first transaction information and the second transaction information; When the transaction information is successfully matched, the target third-party user node generates cross-chain fund transfer information according to the current system parameter information, the first transaction information, the second transaction information, and the target notarization information corresponding to the target third-party user node; the target third-party user node is a user node in the third-party user node set; The first chain node of the first user transfers the data corresponding to the first transaction amount information to the second chain node of the first user based on the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information of the first chain node of the first user, and the second symmetric key information of the second chain node of the second user.
2. The cross-chain data processing system based on random notary according to claim 1 is characterized in that: in, The first chain node of the first user transfers the data corresponding to the first transaction amount information to the first fund pool of the target third-party user node on the first chain according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information and the second symmetric key information, and generates first transfer information; The second chain node of the second user transfers the data corresponding to the second transaction amount information to the second fund pool of the target third-party user node on the second chain according to the cross-chain fund transfer information, the current system parameter information, the second transaction amount information, the first symmetric key information and the second symmetric key information, and generates second transfer information; The second chain node of the first user obtains data corresponding to the first transaction amount information from the second fund pool according to the first transfer information, the current system parameter information, the first symmetric key information and the second symmetric key information, and generates first cross-chain extraction information; The first chain node of the second user obtains data corresponding to the second transaction amount information from the first fund pool according to the second transfer information, the current system parameter information, the first symmetric key information and the second symmetric key information, and generates second cross-chain extraction information.
3. The cross-chain data processing system based on random notary according to claim 2 is characterized in that: The random notary-based cross-chain data processing system also includes a data processing module, wherein: Each third-party user node in the third-party user node set signs the cross-chain fund transfer information using the corresponding private key signature information to obtain a third-party user signature information set; Each third-party user node in the third-party user node set determines a third-party user broadcast information set according to the identification information of the current transaction, the cross-chain fund transfer information, and a third-party signature information set corresponding to each third-party user node in the third-party user signature information set; The data processing module obtains target third-party user broadcast information that meets preset conditions from the third-party user broadcast information set; The data processing module uses the third-party user node corresponding to the target third-party user broadcast information as a reference third-party user node; The other third-party user nodes in the third-party user node set except the reference third-party user node verify the reference third-party user node according to the third-party user node public key information corresponding to the third-party user node set, the cross-chain fund transfer information and the target third-party user broadcast information; When the verification result is true, the data processing module uses the reference third-party user node as the target third-party user node.
4. The cross-chain data processing system based on random notary according to claim 3 is characterized in that: in, When the transaction information is successfully matched, the target third-party user node obtains current time information from the current system parameter information; The target third-party user node obtains the target signature information of the target third-party user node and the transaction matching private key information of the target third-party user node in the transaction information matching process from the target notarization information; The target third-party user node generates cross-chain fund transfer information according to the current system parameter information, the current time information, the target signature information, the transaction matching private key information, the first transaction information, and the second transaction information; The target third-party user node generates cross-chain fund transfer information according to the current system parameter information, the current time information, the target signature information, the transaction matching private key information, the first transaction information and the second transaction information by the method shown in the following formula: MatchTx{ctx,SignTx(Hash(Tx_A),Hash(Tx_B),ts,Psk)}→Hash(M_TxAB) Among them, MatchTx is used to represent the operation of generating cross-chain fund transfer information; ctx is used to represent the current system parameter information; SignTx is used to represent the target signature information; Hash(Tx_A) is used to represent the first transaction information; Hash(Tx_B) is used to represent the second transaction information; ts is used to represent the current time information; Psk is used to represent the transaction matching private key information; Hash(M_TxAB) is used to represent the cross-chain fund transfer information.
5. The cross-chain data processing system based on random notary according to claim 4 is characterized in that: The random notary-based cross-chain data processing system also includes a key exchange node, wherein: The first chain node of the first user determines the first mapping parameter information according to the first user private key information and the first user public key information of the first chain node of the first user, and the exchange node public key information and the exchange node private key information of the key exchange node; The first chain node of the first user determines the first intermediate key information according to the first mapping parameter information, the first random parameter and the first chain node public key information of the first user; The second chain node of the second user determines the second mapping parameter information according to the second user private key information and the second user public key information of the second chain node of the second user, and the exchange node public key information and the exchange node private key information of the key exchange node; The second chain node of the second user determines the second intermediate key information according to the second mapping parameter information, the second random parameter and the second chain node public key information of the second user; The key exchange node determines a shared key factor according to the first random parameter and the second random parameter, verifies the first chain node of the first user according to the first intermediate key information, and verifies the second chain node of the second user according to the second intermediate key information; When the verification result is true, the first chain node of the first user determines first security summary information according to the third random parameter, the shared key factor and the first random parameter, and sends the first security summary information to the second chain node of the second user; When the verification result is true, the second chain node of the second user determines second security summary information according to the fourth random parameter, the shared key factor and the second random parameter, and sends the second security summary information to the first chain node of the first user.
6. The cross-chain data processing system based on random notary according to claim 5 is characterized in that: in, The first chain node of the first user receives second security summary information sent from the second chain node of the second user; The first chain node of the first user determines first symmetric key information according to the second security summary information and the shared key factor; The second chain node of the second user receives the first security summary information sent from the first chain node of the first user; The second chain node of the second user determines second symmetric key information according to the first security summary information and the shared key factor.
7. The cross-chain data processing system based on random notary according to claim 6 is characterized in that: in, The first chain node of the first user generates first transfer information according to the cross-chain fund transfer information, the current system parameter information, the first transaction amount information, the first symmetric key information and the second symmetric key information by the method shown in the following formula; PayTx{ctx,Hash(M_TxAB),fee,K1,K2}→Hash(Pay_TxA) Among them, PayTx is used to represent the operation of generating the first transfer information; ctx is used to represent the current system parameter information; Hash(M_TxAB) is used to represent the cross-chain fund transfer information; fee is used to represent the first transaction amount information; K1 is used to represent the first symmetric key information; K2 is used to represent the second symmetric key information; Hash(Pay_TxA) is used to represent the first transfer information.
8. The cross-chain data processing system based on random notary according to any one of claims 1 to 7, characterized in that: in, The target third-party user node obtains the destruction signature information corresponding to the target third-party user node; When the target third-party user node obtains the first cross-chain extraction information, the target third-party user node generates first destruction information according to the first cross-chain extraction information, the current system parameter information and the destruction signature information; When the target third-party user node obtains the second cross-chain extraction information, the target third-party user node generates second destruction information according to the second cross-chain extraction information, the current system parameter information and the destruction signature information.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processing method of the cross-chain data processing system based on a random notary is implemented as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processing method of the cross-chain data processing system based on a random notary is implemented as described in any one of claims 1 to 8.
