A method and system for verifying signature security based on cross-chain transactions of blockchain
By introducing verification signature services in cross-blockchain transactions, parsing transaction requests, querying account assets, and generating and verifying transfer requests, the problem of high transaction risks and difficult to resolve abnormal transactions is solved, and the safety and normal progress of cross-chain transactions are achieved. .
Patent Information
- Application Number
- CN202210211750.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-03-04
AI Technical Summary
The lack of verification signature services in cross-blockchain transactions leads to high transaction risks, private key nodes are easy to lose, and nodes cannot effectively assist each other, making abnormal transactions difficult to resolve.
Provides a blockchain-based cross-chain transaction signature security method that communicates with the signature verification server through the trading platform, parses transaction requests, queries account assets, generates transfer requests, calculates hash values, performs signature verification, and performs signature verification through accounts Transfer funds to ensure the security and normal flow of transactions.
It reduces the risk of cross-chain transactions, ensures the security of transaction information and the protection of user information, maintains the normal conduct of cross-chain transactions, and improves the reliability and security of the transaction process.
Smart Images

Figure CN114565385B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device and system for verifying signature security based on blockchain cross-chain transactions. Background Art
[0002] In existing payment scenarios, cross-blockchain transactions often rely on the assistance of third-party platforms. In blockchain cross-chain transaction scenarios, there is no verification signature service to verify the signature of the transaction process in cross-chain transaction scenarios for cross-chain transactions facilitated by the transaction nodes of the intermediate transaction platform. The private key nodes are managed by themselves and are prone to loss, causing losses. On the other hand, the nodes cannot form effective mutual assistance to facilitate the completion of abnormal transactions.
[0003] There are technical problems in the existing technology that cross-chain transactions have high transaction risks and transaction anomalies are difficult to resolve. Summary of the invention
[0004] This application provides a method, device and system for verifying signature security based on blockchain cross-chain transactions, which solves the technical problem that cross-chain transactions have high transaction risks and transaction anomalies are difficult to resolve. It achieves the technical effect of maintaining the normal progress of cross-chain transactions based on blockchain technology while protecting user information and transaction information.
[0005] In view of the above problems, the present application provides a method, device and system for verifying the security of signatures based on cross-chain transactions of blockchain.
[0006] In a first aspect, the present application provides a method for verifying signature security based on blockchain cross-chain transactions, wherein the method is applied to a trading platform, the trading platform is communicatively connected to a signature verification server, and the method includes: obtaining a first transaction request from a first user, wherein the first user is a first blockchain user, the transaction object of the first transaction request is a second user, and the second user is a second blockchain user; performing request parsing according to the first transaction request to obtain a first parsing result; performing a first account asset query of the first user in the first blockchain according to the first parsing result to obtain a first feedback result, and performing a second account asset query of the second user in the second blockchain according to the first parsing result to obtain a second feedback result; when the first feedback result and the second feedback result simultaneously meet the first preset requirement, generating a first transfer request and calculating a hash value; sending the calculated hash value and the proxy signature identification information to the signature verification server for signature verification to obtain a first feedback signature result; the first transfer request and the first feedback signature result are sent to the signature verification server for signature verification to obtain a first feedback signature result. Packaging and encapsulating; transferring money to the first trading platform account through the first account according to the first packaging and encapsulation result to obtain a first transfer transaction result; transferring money to the second trading platform account through the second account according to the first packaging and encapsulation result to obtain a second transfer transaction result, wherein the first trading platform account is the account of the trading platform in the first blockchain under the current node, and the second trading platform account is the account of the trading platform in the second blockchain under the current node; generating a second transfer request according to the first transfer transaction result and the second transfer transaction result, and sending it to the signature verification server for signature verification after performing hash value calculation to obtain a second feedback signature result; packaging and encapsulating the second transfer request and the second feedback signature result; transferring money to the fourth account through the first trading platform account according to the second packaging and encapsulation result, and transferring money to the third account through the second trading platform according to the second packaging and encapsulation result, wherein the fourth account is the account of the second user in the first blockchain, and the third account is the account of the first user in the second blockchain.
[0007] On the other hand, the present application provides a system for verifying signature security based on blockchain cross-chain transactions, wherein the system includes: a first obtaining unit: the first obtaining unit is used to obtain a first transaction request of a first user, wherein the first user is a first blockchain user, the transaction object of the first transaction request is a second user, and the second user is a second blockchain user; a second obtaining unit: the second obtaining unit is used to perform request parsing according to the first transaction request to obtain a first parsing result; a third obtaining unit: the third obtaining unit is used to perform a first account asset query of the first user in the first blockchain according to the first parsing result to obtain a first feedback result, and perform a second account asset query of the second user in the second blockchain according to the first parsing result to obtain a second feedback result; a first generating unit: the first generating unit is used to generate a first transfer request and calculate a hash value when the first feedback result and the second feedback result meet the first preset requirement at the same time; a fourth obtaining unit: the fourth obtaining unit is used to send the calculated hash value and the proxy signature identification information to the signature verification server for signature verification to obtain a first feedback signature result; a first encapsulation unit: the first encapsulation unit is used to encapsulate the first transfer request and the first feedback signature The fifth obtaining unit: the fifth obtaining unit is used to transfer money to the first trading platform account through the first account according to the first packaging result, obtain the first transfer transaction result, and transfer money to the second trading platform account through the second account according to the first packaging result, and obtain the second transfer transaction result, wherein the first trading platform account is the account of the trading platform under the current node in the first blockchain, and the second trading platform account is the account of the trading platform under the current node in the second blockchain; the sixth obtaining unit: the sixth obtaining unit is used to generate a second transfer request according to the first transfer transaction result and the second transfer transaction result, and send it to the signature verification server for signature verification after performing hash value calculation to obtain a second feedback signature result; the second packaging unit: the second packaging unit is used to package and package the second transfer request and the second feedback signature result; the first execution unit: the first execution unit is used to transfer money to the fourth account through the first trading platform account according to the second packaging result, and transfer money to the third account through the second trading platform according to the second packaging result, wherein the fourth account is the account of the second user in the first blockchain, and the third account is the account of the first user in the second blockchain.
[0008] In a third aspect, the present application provides a device for verifying signature security, which includes a processor and a memory; the memory is used for storing; and the processor is used for executing the method described in any one of claims 1 to 7 by calling.
[0009] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0010] By adopting a verification signature security method based on blockchain cross-chain transactions, the technical problem that cross-chain transactions have high transaction risks and transaction anomalies are difficult to resolve is solved. The technical effect of maintaining the normal progress of cross-chain transactions based on blockchain technology while protecting user information and transaction information is achieved.
[0011] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 A flowchart of a method for verifying signature security based on cross-chain transactions in blockchain is provided for this application;
[0013] Figure 2 A schematic diagram of the process of obtaining a first transfer transaction result and a second transfer transaction result in a method for verifying signature security based on cross-chain transactions of blockchain in this application;
[0014] Figure 3 A flowchart of a method for verifying signature security based on blockchain cross-chain transactions in this application, in which the verification results of the first and second blockchains are determined to be passed and then the funds are transferred to the third and fourth accounts;
[0015] Figure 4 A flowchart of a method for verifying signature security based on blockchain cross-chain transactions for determining a fourth transfer request to perform a transfer operation is provided for this application;
[0016] Figure 5 A structural diagram of a verification signature security system based on blockchain cross-chain transactions for this application;
[0017] Figure 6 This is a schematic diagram of the structure of an exemplary electronic device of the present application.
[0018] Explanation of the figure marks: first obtaining unit 11, second obtaining unit 12, third obtaining unit 13, first generating unit 14, fourth obtaining unit 15, first encapsulation unit 16, fifth obtaining unit 17, sixth obtaining unit 18, first encapsulation unit 19, first execution unit 20, electronic device 300, memory 301, processor 302, communication interface 303, bus architecture 304. DETAILED DESCRIPTION
[0019] This application provides a method, device and system for verifying signature security based on blockchain cross-chain transactions, which solves the technical problem that cross-chain transactions have high transaction risks and transaction anomalies are difficult to resolve. It achieves the technical effect of maintaining the normal progress of cross-chain transactions based on blockchain technology while protecting user information and transaction information.
[0020] Application Overview
[0021] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0022] Cross-blockchain transactions often rely on the assistance of third-party platforms. Cross-chain transactions facilitated by intermediate trading platforms do not have a verification signature service to manage private key nodes, which can easily lead to loss. The nodes are unable to form effective mutual assistance, leading to the completion of abnormal transactions.
[0023] The existing technology has solved the technical problem that cross-chain transactions have high transaction risks and transaction anomalies are difficult to resolve.
[0024] In response to the above technical problems, the overall idea of the technical solution provided by this application is as follows:
[0025] The present application provides a method for verifying signature security based on cross-chain transactions of blockchain, wherein the method is applied to a trading platform, the trading platform is communicatively connected with a signature verification server, and the method includes: obtaining a first transaction request of a first user; obtaining a first parsing result; obtaining a first feedback result, obtaining a second feedback result; generating a first transfer request and calculating a hash value; obtaining a first feedback signature result; packaging and encapsulating the first transfer request and the first feedback signature result; obtaining a first transfer transaction result, obtaining a second transfer transaction result; obtaining a second feedback signature result; packaging and encapsulating the second transfer request and the second feedback signature result; transferring money to a fourth account through the first trading platform account according to the second packaging and encapsulation result, and transferring money to a third account through the second trading platform according to the second packaging and encapsulation result.
[0026] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically described below in conjunction with the drawings in the specification.
[0027] Embodiment 1
[0028] like Figure 1 As shown, the present application provides a method for verifying signature security based on blockchain cross-chain transactions, wherein the method is applied to a trading platform, the trading platform is communicatively connected with a signature verification server, and the method includes:
[0029] S100: Obtain a first transaction request from a first user, wherein the first user is a first blockchain user, the transaction object of the first transaction request is a second user, and the second user is a second blockchain user;
[0030] Specifically, the first user and the second user are both users of the trading platform, that is, to realize the capital flow of different trading chains on the same trading platform, the first and second users are users who are authenticated on the trading platform and have trading accounts. Briefly speaking, the trading platform is a capital flow trading platform, which can be a bank, or an online banking platform such as JD.com and Alipay, or other capital transaction and circulation platforms. The first blockchain and the second blockchain are two independent blockchains. The first and second blockchains do not represent a specific blockchain, and can be specifically analyzed according to actual conditions. The blockchain is essentially a decentralized database. In other words, there is a technical solution for collectively maintaining a reliable database in a decentralized and trustless manner. The first user and the second user are in different blockchains and there is a transaction demand between the two users. Briefly substitute and explain, for example, there is a trading platform, the trading platform has two blockchains, A chain and B chain, A chain user X and B chain user Y need to conduct cross-chain asset transactions, A chain user X initiates a cross-chain asset transaction request to transaction node J1, requesting a cross-chain transaction with B chain user Y.
[0031] S200: performing request parsing according to the first transaction request to obtain a first parsing result;
[0032] Specifically, the first transaction request is a transaction request issued by the first user, and the transaction object requested is the second user. The trading platform parses the first transaction request, and the result obtained is the first parsing result. Combined with the further explanation in the above substitution example, the cross-chain asset transaction request is parsed, and the fields obtained by parsing are as follows: transaction ID, user X's A chain account C, A chain transaction asset amount, user X's B chain account C', user Y's B chain account D, B chain transaction asset amount, user Y's A chain account D'. The substitution explanation is to add specific scenarios for the understanding of the method steps, without making specific scenario restrictions. The field information obtained by the analysis is not unique and needs to be specifically determined based on the transaction request information.
[0033] S300: querying the assets of the first account of the first user in the first blockchain according to the first parsing result to obtain a first feedback result, and querying the assets of the second account of the second user in the second blockchain according to the first parsing result to obtain a second feedback result;
[0034] Specifically, the trading platform uses the first parsing result to query assets. In simple terms, it is to determine whether the assets in the transaction request account can satisfy the asset transaction request, that is, the requested transaction amount is not greater than the user's asset amount. The feedback result is that the transaction can be carried out; the feedback result is that the requested transaction amount is greater than the user's asset amount. The first feedback result and the second feedback result are the same. Combined with the above substitution example, the transaction node J1 needs to initiate a request to query the account asset balance to the A chain and the B chain. The transaction node J1 queries the A chain for the asset balance of account C (account C of the A chain where user X is located), and the transaction node J1 queries the B chain for the asset balance of account D (account D of the B chain where user Y is located). The request contains the data obtained by the first parsing result, and the A chain and the B chain feedback the query results respectively. The A chain feedbacks the asset balance balance1 of account C; the B chain feedbacks the asset balance balance2 of account D; the transaction node J1 verifies the asset balance. Check if the balance 1 of the asset in the A-chain account C is greater than the A-chain transaction asset amount obtained by the request resolution. If so, the transaction continues; otherwise, an error is reported and the exit is made. Check if the balance 2 of the asset in the B-chain account D is greater than the B-chain transaction asset amount obtained by the request resolution. If so, the transaction continues; otherwise, an error is reported and the exit is made.
[0035] S400: When the first feedback result and the second feedback result both meet the first preset requirement, generate a first transfer request and calculate a Hash value;
[0036] Specifically, when the first feedback result and the second feedback result both determine the continuation of the transaction, that is, the first feedback result and the second feedback result both meet the first preset requirement, the blockchain technology is used on the capital flow platform to ensure the security, independence and anonymity of the data. Therefore, the blockchain technology is often based on consensus specifications and protocols, such as the hash algorithm. The hash algorithm is a one-way cryptographic system, that is, it is an irreversible mapping from plaintext to ciphertext during the encryption process. This application mainly uses the hash algorithm to verify the data. After encryption using the hash algorithm, a ciphertext with the same length is obtained. The ciphertexts are compared, and the consistency proves the verification result. In particular, it is explained that the hash algorithm inputs plaintext of any length, and the output ciphertext length is always fixed. The known ciphertext situation cannot be reversed to obtain the plaintext. Combined with the above substitution example, it is further explained that the transaction node J1 generates a transfer request initiated to user X of chain A and user Y of chain B and calculates the hash value. The specific request information can be divided into two items: Request 1, transaction node J1 initiates a transfer request to user X of chain A: (transfer out: user X's account C of chain A, transfer in: transaction node J1's account J in chain A, amount) when Hash1=hash(transfer out: user X's account C of chain A, transfer in: transaction node J1's account J in chain A, amount); Request 2, transaction node J1 initiates a transfer request to user Y of chain B: (transfer out: user Y's account D of chain B, transfer in: transaction node J1's account J' in chain B, amount) when Hash2=hash(transfer out: user Y's account D of chain B, transfer in: transaction node J1's account J' in chain B, amount). The use of hash algorithm based on blockchain technology further ensures the security and independence of transaction information, protects user privacy, and enables data verification to be carried out without exposure or leakage.
[0037] S500: Send the calculated Hash value and the proxy signature identification information to the signature verification server for signature verification, and obtain a first feedback signature result;
[0038] Specifically, the signature verification server is a cryptographic security product that implements digital signature and signature verification based on PKI (Public Key Infrastructure) and digital certificate technology. Combined with the above substitution example, the signature verification server receives data from chain A, which are the hash value Hash1 to be signed and the proxy signature identifier 0. It is particularly noted that 1 represents proxy signature and 0 represents self-signature. The signature verification server receives data from chain B, which are the hash value Hash2 to be signed and the proxy signature identifier 0. After receiving the hash value and the proxy signature identifier information, the signature verification server performs signature verification: the identity of the transaction node J1 is verified to be authentic and valid through the entity identifier (IP address) that sends the request; the proxy signature identifier is 0, which is self-signed. According to the signature verification process, the identity is proved to be authentic and valid, and the key of the transaction node J1 is called according to the chain identifier to sign the hash value to be signed. If the identity is incorrect, an error is reported and the server exits. Signature result 1: Call the A-chain key Ar1 of transaction node J1 to sign the Hash1 value to be signed on the A-chain; Signature result 2: Call the B-chain key Br1 of transaction node J1 to sign the Hash2 value to be signed on the B-chain; The signature verification server returns "Signature result 1" and "Signature result 2" to the transaction node J1. The use of the signature verification server can effectively ensure the confidentiality, integrity, non-repudiation and traceability of key business information.
[0039] S600: Packaging the first transfer request and the first feedback signature result;
[0040] Specifically, the results are packaged and encapsulated, and further explained in combination with the above substitution example, after receiving the signature result, the transaction node J1 packages the transfer confirmation request and the signature result, and the packaged information can be: transaction node A chain account entry request: request 1, signature result 1; transaction node B chain account entry request: request 2, signature result 2. The encapsulation form brought into the explanation is not unique, and is determined specifically based on the transaction content. The substitution explanation is for the understanding and implementation of the method steps. In the specific analysis, the specific data is not limited by the data in the explanation. The scenario set in this explanation for understanding the method does not limit the use of this explanation method in other scenarios.
[0041] S700: According to the first packaging result, transfer money to the first trading platform account through the first account to obtain a first transfer transaction result; according to the first packaging result, transfer money to the second trading platform account through the second account to obtain a second transfer transaction result, wherein the first trading platform account is the account of the trading platform in the first blockchain at the current node, and the second trading platform account is the account of the trading platform in the second blockchain at the current node;
[0042] Specifically, the first blockchain account has a first trading platform account and the first account of the first user, and the second blockchain account has a second trading platform account and the second account of the second user. According to the first packaging result, the first account is used to transfer the first trading platform account to obtain the first transfer transaction result; according to the first packaging result, the second account is used to transfer the second trading platform account to obtain the second transfer transaction result. The transaction is carried out in the blockchain. Combined with the above substitution example, the transaction node J1 sends the entry request of the A chain and the B chain to the user X of the A chain and the user Y of the B chain respectively. After the user receives the transfer request, the signature is verified and there is no problem, and the transfer is carried out. User C has an asset account on the A chain, and the assets of the account are transferred to the account address J of the transaction node on the A chain; user D has an asset account on the B chain, and the assets of the account are transferred to the account address J' of the transaction node on the B chain.
[0043] S800: Generate a second transfer request according to the first transfer transaction result and the second transfer transaction result, calculate a hash value, and then send it to the signature verification server for signature verification to obtain a second feedback signature result;
[0044] S900: Packaging the second transfer request and the second feedback signature result;
[0045] Specifically, after the transfer transaction is completed and the transfer transaction result is generated, the first transfer transaction result and the second transfer transaction result are determined. After the first transfer transaction result and the second transfer transaction result are both determined to be successful, a second transfer request is generated. The subsequent processing steps are similar to those of the first transfer request. The subsequent steps will not be repeated here. Combined with the above substitution example, it is further explained that after transaction node J1 receives the transfer, transaction node J1 needs to generate a transfer transaction to chain A and chain B, and calculate the Hash value. Transaction 1: Transaction node J1 initiates a transfer transaction from account J to account D' in chain A (transfer out: account J of transaction node J1 in chain A, transfer in: account D' of user Y in chain A, amount); When Hash3 = hash (transfer out: account J of transaction node J1 in chain A, transfer in: account D' of user Y in chain A, amount); Transaction 2: Transaction node J1 initiates a transfer transaction from account J' to account C' in chain B (transfer out: account J' of transaction node J1 in chain B, transfer in: account C' of user X in chain B, amount); When Hash4 = hash (transfer out: account J' of transaction node J1 in chain B, transfer in: user X's B chain account C', amount); transaction node J1 sends the hash value to be signed and the proxy signature identifier and other information to the signature verification server; the signature verification server receives the data from the A chain, which are the hash value to be signed Hash3 and the proxy signature identifier 0, and it is specially noted that 1 represents the proxy signature and 0 represents the self-signature; the signature verification server receives the data from the B chain, which are the hash value to be signed Hash4 and the proxy signature identifier 0; after receiving the information, the signature verification server performs signature verification: verify whether the identity of the transaction node J1 is authentic and valid by sending the entity identifier (IP address) of the request; according to the proxy signature identifier of 0, it is a self-signature. According to the signature verification process, the identity is proved to be authentic and valid, and the key of the transaction node J1 is called according to the chain identifier to sign the Hash value to be signed, otherwise the identity is incorrect and an error is reported and exited; Signature result 3: Call the A chain key Ar1 of the transaction node J1 to sign the Hash3 value to be signed on the A chain; Signature result 4: Call the B chain key Br1 of the transaction node J1 to sign the Hash4 value to be signed on the B chain; The signature verification server returns "Signature result 3" and "Signature result 4" to the transaction node J1; After receiving the signature result, the transaction node J1 packages the transfer transaction and the signature result. The packaged information can be: transaction node A chain transfer transaction: transaction 1, signature result 3; transaction node B chain transfer transaction: transaction 2, signature result 4; Use the first and second transaction platform accounts to assist cross-chain transactions, which ensures the security of transactions while ensuring the security of funds during the circulation process.
[0046] S1000: Transferring money to a fourth account through the first trading platform account according to the second packaging result, and transferring money to a third account through the second trading platform according to the second packaging result, wherein the fourth account is the account of the second user in the first blockchain, and the third account is the account of the first user in the second blockchain.
[0047] Specifically, the first blockchain account includes a first trading platform account, the first account of the first user, and the fourth account of the second user, and the second blockchain account includes a second trading platform account, the second account of the second user, and the third account of the first user. In the first blockchain, the first trading platform account is used to perform a transfer transaction to the fourth account according to the second packaging result; in the second blockchain, the second trading platform account is used to perform a transfer transaction to the third account according to the second packaging result. In combination with the above substitution example, the transaction node J1 sends the A chain and B chain transfer transactions to the A chain and the B chain respectively; after receiving the transfer transaction, the A chain and the B chain verify that there is no problem with the signature and perform the transfer; A chain: the transaction node J1 transfers the account to the B chain user Y's account address D' in the A chain through the account address J in the blockchain A chain; B chain: the transaction node J1 transfers the account to the A chain user X's account address C' in the B chain through the account address J' in the blockchain B chain, and the transaction ends. If there is no problem, the transfer request is signed, and then the request is sent to chain A and chain B through the transaction node for transaction, which has guaranteed the authenticity and validity of the identity and the security of the transaction. The transaction is carried out within the blockchain, and the cross-chain transaction is converted into two transactions within the blockchain. When the first user and the second user have accounts in both the first and second blockchains, cross-chain transactions are realized. While ensuring the security of the transaction, the security of funds in the circulation process is guaranteed, which provides a guarantee for the feasibility of cross-chain transactions.
[0048] Furthermore, when the first feedback result and the second feedback result simultaneously meet the first preset requirement, the present application further includes:
[0049] S1010: When the first feedback result and the second feedback result both satisfy the first transaction request, the first feedback result and the second feedback result both satisfy the first preset requirement, and at this time, a first blockchain transfer request is initiated to the first user through the current transaction node, and a second blockchain transfer request is initiated to the second user through the current transaction node;
[0050] S1020: Calculate the hash value of the first blockchain transfer request to obtain Hash1, and calculate the hash value of the second blockchain transfer request to obtain Hash2;
[0051] S1030: Send the Hash1, Hash2, proxy signature identification information and chain identification to the signature verification server for signature verification.
[0052] Specifically, when the first feedback result and the second feedback result both satisfy the first transaction request, then the first feedback result and the second feedback result both satisfy the first preset requirement. At this time, a first blockchain transfer request is initiated to the first user through the current transaction node, and a second blockchain transfer request is initiated to the second user through the current transaction node. The blockchain technology uses transaction nodes to perform self-verification, transmission and management of information, and is decentralized and does not rely on third-party management. The first blockchain transfer request is hashed to obtain Hash1, and the second blockchain transfer request is hashed to obtain Hash2. The Hash1 and the Hash2 are sh2 are all obtained after encryption using the hash algorithm. The hash algorithm encryption process is an irreversible mapping from plaintext to ciphertext. The hash algorithm is used to verify the data, and the ciphertexts are compared. If they are consistent, the verification result is proved. The known ciphertext cannot be reversed to obtain the plaintext. The transaction node can automatically and securely verify and exchange data in the system without human interference; the Hash1, the Hash2, the proxy signature identification information and the chain identification are sent to the signature verification server for signature verification. Based on blockchain technology, combined with the signature verification server, the security of information transmission is guaranteed while verifying the information, which maintains the security of the information and ensures the reliability of the transaction process.
[0053] Further, such as Figure 2 As shown, this application also includes:
[0054] S1011: Obtain a first signature result and a second signature result, wherein the first signature result corresponds to Hash1, and the second signature result corresponds to Hash2;
[0055] S1012: Pack and encapsulate the first signature result and the first blockchain transfer request to obtain a first chain packing and encapsulation result, and pack and encapsulate the second signature result and the second blockchain transfer request to obtain a second chain packing and encapsulation result;
[0056] S1013: Send the first chain packaging result to the first user to obtain the first user's verification result;
[0057] S1014: Send the second chain packaging result to the second user to obtain the second user's verification result;
[0058] S1015: When both the verification result of the first user and the verification result of the second user pass, the first transfer transaction result and the second transfer transaction result are obtained.
[0059] Specifically, a first signature result and a second signature result are obtained, wherein the first signature result, the first blockchain transfer request and Hash1 correspond to each other, and the second signature result, the second blockchain transfer request and Hash2 correspond to each other; the first signature result and the first blockchain transfer request are packaged and encapsulated to obtain a first chain packaged and encapsulated result, and the second signature result and the second blockchain transfer request are packaged and encapsulated to obtain a second chain packaged and encapsulated result, wherein the packaged and encapsulated refers to arranging and packaging the required data according to a unified regulation, and is a combination arrangement that does not include an operation method; the first chain packaged and encapsulated result is sent to the first user to obtain a verification result of the first user; the second chain packaged and encapsulated result is sent to the second user to obtain a verification result of the second user. The verification can use a common system to send a random code, input a random code for verification, or use other relevant verification methods to ensure that the user can confirm the information; when the verification results of the first user and the second user are both passed, the first transfer transaction result and the second transfer transaction result are obtained, and the user confirmation is verified to ensure the reliability of the user's request, avoid the capital flow problem caused by the direct execution of the request due to the user's misoperation, and further ensure the rationality and reliability of the transaction process.
[0060] Furthermore, the present application also includes:
[0061] S1040: Calculate a Hash value according to the first transfer transaction result to obtain Hash3;
[0062] S1050: Calculate a Hash value according to the second transfer transaction result to obtain Hash4;
[0063] S1060: Send the Hash3, the Hash4, the proxy signature identification information and the chain identification to the signature verification server for signature verification.
[0064] Specifically, a Hash value is calculated according to the first transfer transaction result to obtain Hash3; a Hash value is calculated according to the second transfer transaction result to obtain Hash4; the user determines the transaction result, that is, the user determines the transfer of funds, that is, the cross-chain transaction fund flow process is determined, and the Hash3, the Hash4, the proxy signature identification information and the chain identification are sent to the signature verification server for signature verification, which ensures that the transfer of funds is transparent to the transferor and maintains the security of the transferor's funds.
[0065] Further, such as Figure 3 As shown, this application also includes:
[0066] S1041: Obtain a third signature result and a fourth signature result, wherein the third signature result corresponds to Hash3, and the fourth signature result corresponds to Hash4;
[0067] S1042: Package and encapsulate the third signature result and the first transfer transaction result to obtain a third chain packaged result, and package and encapsulate the fourth signature result and the second transfer transaction result to obtain a fourth chain packaged result;
[0068] S1043: Send the packaging result of the third chain to the first blockchain to obtain the verification result of the first blockchain;
[0069] S1044: Send the packaging result of the fourth chain to the second blockchain to obtain the verification result of the second blockchain;
[0070] S1045: When the verification results of the first blockchain and the second blockchain are both passed, transfer the money to the fourth account through the first trading platform account according to the second packaging result, and transfer the money to the third account through the second trading platform according to the second packaging result.
[0071] Specifically, a third signature result and a fourth signature result are obtained, wherein the third signature result corresponds to the Hash3, and the fourth signature result corresponds to the Hash4, and the confirmation result of the user is verified, and the request result after the user confirms the request is first requested and then verified; the third signature result and the first transfer transaction result are packaged and encapsulated to obtain a third chain packaged and encapsulated result, and the fourth signature result and the second transfer transaction result are packaged and encapsulated to obtain a fourth chain packaged and encapsulated result, wherein the packaged and encapsulated refers to arranging and packaging the required data according to a unified regulation, and is a combination arrangement that does not include an operation method; the third chain packaged and encapsulated result is sent to the first blockchain to obtain a verification result of the first blockchain; the fourth chain packaged and encapsulated result is sent to the second blockchain to obtain a verification result of the second blockchain, and the blockchain corresponds to a trading platform account, that is, the packaged result and the corresponding trading platform are verified; when the verification results of the first blockchain and the second blockchain are both passed, of course, if any verification result fails, the subsequent steps cannot be continued, and the transfer is made to the fourth account through the first trading platform account according to the second packaged and encapsulated result, and the transfer is made to the third account through the second trading platform according to the second packaged and encapsulated result.
[0072] Furthermore, the present application also includes:
[0073] S1070: Determine, through the second transaction node, whether there is a first abnormal transaction;
[0074] S1080: When the first abnormal transaction exists, generate a third transfer request and calculate a hash value;
[0075] S1090: Sending the calculated hash value, the proxy signature identifier, and the chain identifier to the signature verification server through the second transaction node to verify the signature, and obtaining a third feedback signature result;
[0076] S1100: After packaging the third transfer request and the third feedback signature result, the repackaged transfer request is sent to the first user and the second user.
[0077] Specifically, the second transaction node is used to determine whether there is a first abnormal transaction. It is possible that the transaction node J2 captures the abnormal transaction and finds that there is no problem with the asset verification of the first blockchain and the second blockchain users, but the user has not received the transfer request from the transaction node J1. When the first abnormal transaction exists, a third transfer request is generated and the hash value is calculated. At this time, the following request needs to be generated and the hash value is calculated. The steps are briefly described. The transaction node J1 initiates a transfer request to the first user of the first blockchain (transfer out: the first account, transfer in: the first transaction platform account of the transaction node J1 in the first blockchain, the amount ), Hash1 = hash (transfer out: first account, transfer in: first trading platform account of transaction node J1 in the first blockchain, amount); transaction node J1 initiates a transfer request to the second user (transfer out: second account, transfer in: second trading platform account in the second blockchain, amount) Hash2 = hash (transfer out: second account, transfer in: second trading platform account of transaction node J1 in the second blockchain, amount); the calculated hash value, proxy signature identifier and chain identifier are sent to the signature verification server through the second transaction node to verify the signature, and the third feedback signature result is obtained, and the transaction node Point J2 sends the following information to the signature verification server: the hash value to be signed (Hash1, Hash2), the proxy signature identifier is 1 (proxy signature identifier: 1 represents proxy signature, 0 represents self-signature), and the proxy signature node IP, i.e., the IP of J1; the server signs the message, and the third feedback result can be signature result 1: calling the first blockchain key Ar1 of the transaction node J1 to sign the Hash1 value to be signed on the first blockchain; signature result 2: calling the second blockchain key Br1 of the transaction node J1 to sign the Hash2 value to be signed on the second blockchain; the third transfer request and the third feedback After the signature result is packaged and encapsulated, the repackaged transfer request is sent to the first user and the second user. The transaction node J2 sends the first blockchain and the second blockchain entry request to the first user and the second user respectively. After receiving the information, the first blockchain and the second blockchain users verify that there is no problem with the signature and continue the subsequent transfer process until the transaction is completed. In simple terms, when the user applies for a cross-chain transaction, but does not receive a transfer request from the transaction node, through the mutual assistance of each node, the application and verification are continued, and then the subsequent transfer process is continued until the transaction is completed. The use of node assistance improves the reliability of the transfer process.
[0078] Further, such as Figure 4 As shown, this application also includes:
[0079] S1110: Determine, through the second transaction node, whether there is a second abnormal transaction;
[0080] S1120: When the second abnormal transaction exists, generate a fourth transfer request and calculate a hash value;
[0081] S1130: Sending the calculated hash value, the proxy signature identifier, and the chain identifier to the signature verification server through the second transaction node to verify the signature, and obtaining a fourth feedback signature result;
[0082] S1140: After packaging the fourth transfer request and the fourth feedback signature result, the repackaged transfer request is sent to the first blockchain and the second blockchain;
[0083] S1150: When both the first blockchain and the second blockchain are verified to be correct, a transfer operation is performed according to the fourth transfer request.
[0084] Specifically, the second transaction node is used to determine whether there is a second abnormal transaction. It is possible that the transaction node J2 captures the abnormal transaction and finds that the users of the first blockchain and the second blockchain have transferred the assets to the account of the transaction node J1, but the user has not received the subsequent assets. When the second abnormal transaction exists, a fourth transfer request is generated and the hash value is calculated. Transaction 1: Transaction node J1 initiates a transfer transaction from account J to the fourth account on the first blockchain. The fourth transfer request can be: (transfer out: transaction node J1's account on the first trading platform, transfer in: fourth account, amount) H ash3=hash(transfer out: transaction node J1's account on the first trading platform, transfer in: the fourth account, amount); transaction node J1 initiates a transfer transaction from account J' to the third account on the second blockchain (transfer out: the second trading platform account, transfer in: the third account, amount) Hash4=hash(transfer out: transaction node J1's account on the second trading platform, transfer in: the third account, amount); the calculated hash value, the proxy signature identifier and the chain identifier are sent to the signature verification server through the second transaction node to verify the signature, and the fourth feedback signature result is obtained. Transaction node J2 sends a signature verification request to the signature verification server. The information sent by the signature verification server: the Hash value to be signed (Hash3, Hash4), the proxy signature identifier is 1 (proxy signature identifier: 1 represents proxy signature, 0 represents self-signature), and the proxy signature node IP is the IP of J1; the fourth feedback signature result can be signature result 3: calling the first blockchain key Ar1 of the transaction node J1 to sign the Hash3 value to be signed on the first blockchain; signature result 4: calling the second blockchain key Br1 of the transaction node J1 to sign the Hash4 value to be signed on the second blockchain; after packaging the fourth transfer request and the fourth feedback signature result, the repackaged transfer request is sent to the first blockchain and the second blockchain. When the first blockchain and the second blockchain are verified to be correct, the transfer operation is performed according to the fourth transfer request. The steps are as follows: after the user receives the transfer request, the signature is verified to be correct and the transfer is performed. The transaction is completed. First blockchain: transaction node J1 transfers the money to the fourth account address of the second user in the first blockchain through the account address of the first trading platform; second blockchain: J1 transfers the money to the third account address of the first user in the second blockchain through the account address of the second trading platform, and the transaction is completed. Simply put, after the user transfers money to the transaction node, the user's account assets have not arrived. Through the mutual assistance of each node, the application and verification are continued, and then the subsequent transfer process is continued until the transaction is completed. The use of node assistance improves the reliability of the transfer process and thus ensures the integrity of the transaction.
[0085] In summary, the present invention provides a method, device and system for verifying signature security based on cross-chain transactions on blockchain, which has the following technical effects:
[0086] 1. Due to the adoption of obtaining the first transaction request of the first user; obtaining the first parsing result; obtaining the first feedback result, obtaining the second feedback result; generating the first transfer request and calculating the hash value; obtaining the first feedback signature result; packaging and encapsulating the first transfer request and the first feedback signature result; obtaining the first transfer transaction result, obtaining the second transfer transaction result; obtaining the second feedback signature result; packaging and encapsulating the second transfer request and the second feedback signature result; transferring to the fourth account through the first transaction platform account according to the second packaging and encapsulation result, and transferring to the third account through the second transaction platform according to the second packaging and encapsulation result. This application provides a verification signature security method based on blockchain cross-chain transactions, solves the technical problem that cross-chain transactions have high transaction risks and transaction anomalies are difficult to solve, and achieves the technical effect of maintaining the normal cross-chain transactions based on blockchain technology while protecting user information and transaction information.
[0087] 2. Since the first feedback result and the second feedback result simultaneously meet the first transaction request, the first feedback result and the second feedback result simultaneously meet the first preset requirement, at this time, the first blockchain transfer request is initiated to the first user through the current transaction node, and the second blockchain transfer request is initiated to the second user through the current transaction node; the hash value of the first blockchain transfer request is calculated to obtain Hash1, and the hash value of the second blockchain transfer request is calculated to obtain Hash2; the Hash1, the Hash2, the proxy signature identification information and the chain identification are sent to the signature verification server for signature verification. Based on blockchain technology, combined with the signature verification server, the security of information transmission is ensured while verifying the information, that is, the security of information is maintained and the reliability of the transaction process is guaranteed.
[0088] Embodiment 2
[0089] Based on the same inventive concept as the method for verifying signature security based on cross-chain transactions in the aforementioned embodiment, Figure 5 As shown, the present application provides a system for verifying signature security based on blockchain cross-chain transactions, wherein the system includes:
[0090] First obtaining unit 11: The first obtaining unit 11 is used to obtain a first transaction request of a first user, wherein the first user is a first blockchain user, the transaction object of the first transaction request is a second user, and the second user is a second blockchain user;
[0091] Second obtaining unit 12: The second obtaining unit 12 is used to perform request parsing according to the first transaction request to obtain a first parsing result;
[0092] The third obtaining unit 13 is used to query the assets of the first account of the first user in the first blockchain according to the first parsing result to obtain a first feedback result, and query the assets of the second account of the second user in the second blockchain according to the first parsing result to obtain a second feedback result;
[0093] The first generating unit 14: The first generating unit 14 is used to generate a first transfer request and calculate a Hash value when the first feedback result and the second feedback result both meet a first preset requirement;
[0094] Fourth obtaining unit 15: The fourth obtaining unit 15 is used to send the calculated hash value and the proxy signature identification information to the signature verification server for signature verification, and obtain a first feedback signature result;
[0095] First packaging unit 16: The first packaging unit 16 is used to package the first transfer request and the first feedback signature result;
[0096] The fifth obtaining unit 17 is used to transfer money to the first trading platform account through the first account according to the first packaging result to obtain a first transfer transaction result, and to transfer money to the second trading platform account through the second account according to the first packaging result to obtain a second transfer transaction result, wherein the first trading platform account is an account of the trading platform under the current node in the first blockchain, and the second trading platform account is an account of the trading platform under the current node in the second blockchain;
[0097] Sixth obtaining unit 18: The sixth obtaining unit 18 is used to generate a second transfer request according to the first transfer transaction result and the second transfer transaction result, calculate a hash value, and then send it to the signature verification server for signature verification to obtain a second feedback signature result;
[0098] Second encapsulation unit 19: The second encapsulation unit 19 is used to package and encapsulate the second transfer request and the second feedback signature result;
[0099] The first execution unit 20: The first execution unit 20 is used to transfer money to a fourth account through the first trading platform account according to the second packaging result, and to transfer money to a third account through the second trading platform according to the second packaging result, wherein the fourth account is the account of the second user in the first blockchain, and the third account is the account of the first user in the second blockchain.
[0100] Exemplary Electronic Devices
[0101] Reference below Figure 6 To describe the electronic device of this application,
[0102] Based on the same inventive concept as the method for verifying signature security based on blockchain cross-chain transactions in the aforementioned embodiment, the present application also provides a system for verifying signature security based on blockchain cross-chain transactions, including: a processor, the processor is coupled to a memory, the memory is used to store a program, when the program is executed by the processor, the system executes any one of the methods described in the first aspect.
[0103] The electronic device 300 includes: a processor 302, a communication interface 303, and a memory 301. Optionally, the electronic device 300 may also include a bus architecture 304. The communication interface 303, the processor 302, and the memory 301 may be interconnected via the bus architecture 304; the bus architecture 304 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus architecture 304 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0104] The processor 302 may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the program of the present application.
[0105] The communication interface 303 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), wired access networks, etc.
[0106] The memory 301 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus architecture 304. The memory may also be integrated with the processor.
[0107] Among them, the memory 301 is used to store computer execution instructions for executing the solution of the present application, and the execution is controlled by the processor 302. The processor 302 is used to execute the computer execution instructions stored in the memory 301, thereby realizing a verification signature security method based on blockchain cross-chain transactions provided in the above embodiment of the present application.
[0108] Optionally, the computer-executable instructions in the present application may also be referred to as application code, which is not specifically limited in the present application.
[0109] The present application provides a method for verifying signature security based on cross-chain transactions of blockchain, wherein the method is applied to a trading platform, the trading platform is communicatively connected with a signature verification server, and the method includes: obtaining a first transaction request of a first user, wherein the first user is a first blockchain user, the transaction object of the first transaction request is a second user, and the second user is a second blockchain user; performing request parsing according to the first transaction request to obtain a first parsing result; performing a first account asset query of the first user in the first blockchain according to the first parsing result to obtain a first feedback result, performing a second account asset query of the second user in the second blockchain according to the first parsing result to obtain a second feedback result; when the first feedback result and the second feedback result simultaneously meet the first preset requirement, generating a first transfer request and calculating a hash value; sending the calculated hash value and the proxy signature identification information to the signature verification server for signature verification to obtain a first feedback signature result; performing a verification of the first transfer request and the first feedback signature result Packaging and encapsulation; transferring money to the first trading platform account through the first account according to the first packaging and encapsulation result to obtain a first transfer transaction result; transferring money to the second trading platform account through the second account according to the first packaging and encapsulation result to obtain a second transfer transaction result, wherein the first trading platform account is the account of the trading platform in the first blockchain under the current node, and the second trading platform account is the account of the trading platform in the second blockchain under the current node; generating a second transfer request according to the first transfer transaction result and the second transfer transaction result, and sending it to the signature verification server for signature verification after performing hash value calculation to obtain a second feedback signature result; packaging and encapsulating the second transfer request and the first feedback signature result; transferring money to the fourth account through the first trading platform account according to the second packaging and encapsulation result, and transferring money to the third account through the second trading platform according to the second packaging and encapsulation result, wherein the fourth account is the account of the second user in the first blockchain, and the third account is the account of the first user in the second blockchain.
[0110] Those skilled in the art will appreciate that the various digital numbers such as the first and second involved in this application are only for the convenience of description, and are not used to limit the scope of this application, nor do they indicate a sequence of precedence. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated with each other are in an "or" relationship. "At least one" refers to one or more. At least two refers to two or more. "At least one", "any one" or similar expressions refer to any combination of these items, including any combination of single items (individuals) or plural items (individuals). For example, at least one item (individual, kind) of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0111] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0112] The steps of the method or algorithm described in this application can be directly embedded in hardware, software units executed by a processor, or a combination of the two. The software unit can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, register, hard disk, removable disk, CD-ROM or any other form of storage medium in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a terminal. Optionally, the processor and the storage medium can also be arranged in different components in the terminal. These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0113] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.
Claims
1. A secure method for verifying signatures based on cross-chain transactions on blockchain. It is characterized in that The method is applied to a trading platform, the trading platform is in communication connection with a signature verification server, and the method includes: Obtaining a first transaction request of a first user, wherein the first user is a first blockchain user, the transaction object of the first transaction request is a second user, and the second user is a second blockchain user; Performing request parsing according to the first transaction request to obtain a first parsing result; Perform asset query on the first account of the first user in the first blockchain according to the first parsing result to obtain a first feedback result, and perform asset query on the second account of the second user in the second blockchain according to the first parsing result to obtain a second feedback result; When the first feedback result and the second feedback result both meet the first preset requirement, generating a first transfer request and calculating a hash value; Send the calculated hash value and proxy signature identification information to the signature verification server for signature verification, and obtain a first feedback signature result, wherein the proxy signature identification information includes proxy signature identification 0 and proxy signature identification 1, wherein the proxy signature identification 0 indicates self-signing, and the proxy signature identification 1 indicates proxy signing; Packaging the first transfer request and the first feedback signature result; According to the first packaging result, transfer money to the first trading platform account through the first account to obtain a first transfer transaction result; according to the first packaging result, transfer money to the second trading platform account through the second account to obtain a second transfer transaction result, wherein the first trading platform account is the account of the trading platform in the first blockchain at the current node, and the second trading platform account is the account of the trading platform in the second blockchain at the current node; Generate a second transfer request according to the first transfer transaction result and the second transfer transaction result, calculate a hash value, and then send it to the signature verification server for signature verification to obtain a second feedback signature result; Packaging the second transfer request and the second feedback signature result; According to the second packaging result, transfer money to the fourth account through the first trading platform account, and according to the second packaging result, transfer money to the third account through the second trading platform, wherein the fourth account is the account of the second user in the first blockchain, and the third account is the account of the first user in the second blockchain.
2. The method according to claim 1, It is characterized in that When the first feedback result and the second feedback result simultaneously meet the first preset requirement, the method further includes: When the first feedback result and the second feedback result both satisfy the first transaction request, the first feedback result and the second feedback result both satisfy the first preset requirement, and at this time, a first blockchain transfer request is initiated to the first user through the current transaction node, and a second blockchain transfer request is initiated to the second user through the current transaction node; Calculate the hash value of the first blockchain transfer request to obtain Hash1, and calculate the hash value of the second blockchain transfer request to obtain Hash2; The Hash1, Hash2, proxy signature identification information and chain identification are sent to the signature verification server for signature verification.
3. The method according to claim 2, It is characterized in that The method further comprises: Obtain a first signature result and a second signature result, wherein the first signature result corresponds to Hash1, and the second signature result corresponds to Hash2; The first signature result and the first blockchain transfer request are packaged and encapsulated to obtain a first chain packaged and encapsulated result; the second signature result and the second blockchain transfer request are packaged and encapsulated to obtain a second chain packaged and encapsulated result; Sending the packaging result of the first chain to the first user to obtain the verification result of the first user; Send the second chain packaging result to the second user to obtain the second user's verification result; When both the verification result of the first user and the verification result of the second user pass, the first transfer transaction result and the second transfer transaction result are obtained.
4. The method according to claim 1, It is characterized in that The method further comprises: Calculate the Hash value according to the first transfer transaction result to obtain Hash3; Calculate the Hash value according to the second transfer transaction result to obtain Hash4; The Hash3, Hash4, proxy signature identification information and chain identification are sent to the signature verification server for signature verification.
5. The method according to claim 4, It is characterized in that The method further comprises: Obtain a third signature result and a fourth signature result, wherein the third signature result corresponds to Hash3, and the fourth signature result corresponds to Hash4; The third signature result and the first transfer transaction result are packaged and encapsulated to obtain a third chain packaged and encapsulated result, and the fourth signature result and the second transfer transaction result are packaged and encapsulated to obtain a fourth chain packaged and encapsulated result; Send the packaging result of the third chain to the first blockchain to obtain the verification result of the first blockchain; Sending the packaging result of the fourth chain to the second blockchain to obtain the verification result of the second blockchain; When the verification results of the first blockchain and the second blockchain are both passed, the first trading platform account is used to transfer money to the fourth account according to the second packaging result, and the second trading platform is used to transfer money to the third account according to the second packaging result.
6. The method according to claim 1, It is characterized in that The method further comprises: Determining, by the second transaction node, whether there is a first abnormal transaction; When the first abnormal transaction exists, generating a third transfer request and calculating a hash value; Sending the calculated hash value, the proxy signature identifier, and the chain identifier to the signature verification server through the second transaction node to verify the signature, and obtaining a third feedback signature result; After packaging the third transfer request and the third feedback signature result, the repackaged transfer request is sent to the first user and the second user.
7. The method according to claim 1, It is characterized in that The method further comprises: Determining, by the second transaction node, whether there is a second abnormal transaction; When the second abnormal transaction exists, generating a fourth transfer request and calculating a hash value; Sending the calculated hash value, the proxy signature identifier, and the chain identifier to the signature verification server through the second transaction node for signature verification, to obtain a fourth feedback signature result; After packaging the fourth transfer request and the fourth feedback signature result, the repackaged transfer request is sent to the first blockchain and the second blockchain; When both the first blockchain and the second blockchain are verified to be correct, a transfer operation is performed according to the fourth transfer request.
8. A system for verifying signature security based on cross-chain transactions on blockchain. It is characterized in that The system comprises: First obtaining unit: The first obtaining unit is used to obtain a first transaction request of a first user, wherein the first user is a first blockchain user, the transaction object of the first transaction request is a second user, and the second user is a second blockchain user; Second obtaining unit: The second obtaining unit is used to perform request parsing according to the first transaction request to obtain a first parsing result; Third obtaining unit: the third obtaining unit is used to query the assets of the first account of the first user in the first blockchain according to the first parsing result to obtain a first feedback result, and query the assets of the second account of the second user in the second blockchain according to the first parsing result to obtain a second feedback result; First generating unit: The first generating unit is used to generate a first transfer request and calculate a hash value when the first feedback result and the second feedback result both meet a first preset requirement; Fourth obtaining unit: The fourth obtaining unit is used to send the calculated hash value and the proxy signature identification information to the signature verification server for signature verification, and obtain a first feedback signature result, wherein the proxy signature identification information includes a proxy signature identification 0 and a proxy signature identification 1, wherein the proxy signature identification 0 indicates self-signing, and the proxy signature identification 1 indicates proxy signing; First packaging unit: The first packaging unit is used to package and encapsulate the first transfer request and the first feedback signature result; The fifth obtaining unit is used to transfer money to the first trading platform account through the first account according to the first packaging result to obtain a first transfer transaction result, and to transfer money to the second trading platform account through the second account according to the first packaging result to obtain a second transfer transaction result, wherein the first trading platform account is an account of the trading platform under the current node in the first blockchain, and the second trading platform account is an account of the trading platform under the current node in the second blockchain; Sixth obtaining unit: the sixth obtaining unit is used to generate a second transfer request according to the first transfer transaction result and the second transfer transaction result, calculate a hash value, and then send it to the signature verification server for signature verification to obtain a second feedback signature result; Second packaging unit: The second packaging unit is used to package and encapsulate the second transfer request and the second feedback signature result; First execution unit: The first execution unit is used to transfer money to a fourth account through the first trading platform account according to the second packaging result, and to transfer money to a third account through the second trading platform according to the second packaging result, wherein the fourth account is the account of the second user in the first blockchain, and the third account is the account of the first user in the second blockchain.
9. A device for verifying the security of a signature, It is characterized in that including a processor and a memory; The memory is used for storing; The processor is used to execute the method according to any one of claims 1 to 7 by calling.
10. A computer program product comprising a computer program and / or instructions, It is characterized in that When the computer program and / or the instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
