Block chain-based cross-border transaction processing method and device, equipment and medium
By forming a cross-border payment transaction link in the blockchain system, the problem of transaction loss in cross-border transactions is solved, an efficient and reliable cross-border payment process is realized, and the security of transaction data and the timely arrival of funds are ensured. account.
Patent Information
- Application Number
- CN202410710298.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-10
AI Technical Summary
In cross-border transactions, existing technology carries the risk of transaction loss, resulting in complex transaction scenarios and possible delays or loss of funds.
By deploying a cross-border transaction data processing platform in the blockchain system, the decentralized characteristics of the blockchain are used to form a cross-border payment transaction link, and the second node is notified in a timely manner whether it has received processing messages from international banks, and Monitor the transaction processing within the specified time. If it is lost, the transaction data of the first node will be efficiently obtained through the blockchain system for processing.
It effectively avoids the time delay of being unable to discover or re-find the transaction in time after the transaction is lost, saves the transaction time of cross-border payments, provides users with a more efficient and trustworthy cross-border transaction experience, and ensures transactions through asymmetric encryption technology Data security and integrity.
Smart Images

Figure CN118628104A
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based cross-border transaction processing method, device, equipment and medium. Background Art
[0002] With the development of global trade, the number and amount of cross-border transactions are increasing. At present, when conducting cross-border transactions, they are usually cleared through the telecommunications messages of the Society for Worldwide Interbank Financial Telecommunication (SWIFT) system. The payment and settlement of cross-border funds between the paying bank and the receiving bank need to be realized through multiple agent banks. Since the above cross-border transactions need to go through multiple agent banks, the transaction scenarios are relatively complex and are affected by many factors, there may be a risk of transaction loss.
[0003] Therefore, there is an urgent need to provide a cross-border transaction processing solution to prevent transaction losses. Summary of the invention
[0004] The embodiments of the present application provide a blockchain-based cross-border transaction processing method, device, equipment and medium to solve the problem of transaction loss that may occur when conducting cross-border transactions.
[0005] In a first aspect, an embodiment of the present application provides a cross-border transaction processing method based on blockchain, which is applied to a cross-border transaction data processing platform, and the cross-border transaction data processing platform is deployed in each node of the blockchain system. The nodes in the blockchain system include a first node and a second node participating in the cross-border payment transaction, wherein the second node is a downstream node of the first node;
[0006] The blockchain-based cross-border transaction processing method includes:
[0007] During a cross-border transaction, obtaining first transaction data for a cross-border payment transaction uploaded by a first node;
[0008] Generate a first processing message for the second node according to the first transaction data;
[0009] Broadcasting a first processing message to a node in the blockchain system to notify a second node to perform a processing operation on the cross-border payment transaction, and obtaining second transaction data of the second node for the cross-border payment transaction;
[0010] Among them, the second node executes the processing operation, including: the second node notifies the cross-border payment system of the second node to receive the second processing message from the international inter-bank cross-border settlement service system, wherein the second processing message carries the first transaction data; when the cross-border payment system does not receive the second processing message within the set time period, the cross-border payment transaction is processed according to the first processing message to obtain the second transaction data; when the cross-border payment system receives the second processing message within the set time period, the cross-border payment transaction is processed according to the second processing message to obtain the second transaction data.
[0011] In a possible implementation, a first processing message for a second node is generated based on the first transaction data, including: using a private key of the first node to digitally sign the first transaction data to obtain third transaction data containing the digital signature; using a public key of the second node to encrypt information of the third transaction data to generate a first processing message for the second node.
[0012] In a possible implementation, if the first node is a paying bank node, the second node is a proxy bank node; if the first node is a proxy bank node, the second node is a proxy bank node or a beneficiary bank node.
[0013] In a second aspect, an embodiment of the present application provides a cross-border transaction processing method based on blockchain, which is applied to a cross-border payment system of a second node, and the method includes:
[0014] After the second node notifies receipt of a second processing message from the international inter-bank cross-border settlement service system, it is determined whether the second processing message is received within a set time period, the second processing message carries the first transaction data obtained after the first node performs a processing operation on the cross-border payment transaction, the second node is the downstream bank node when the first node processes the cross-border payment transaction, and the first node and the second node are deployed in the blockchain system;
[0015] If the second processing message is not received within the set time, the processing operation is performed on the cross-border payment transaction according to the first processing message to obtain the second transaction data, and the first processing message is a message for the second node generated by the cross-border transaction data processing platform deployed in the blockchain system according to the first transaction data; if the second processing message is received within the set time, the processing operation is performed on the cross-border payment transaction according to the second processing message to obtain the second transaction data;
[0016] The second transaction data is sent to the second node to send the second transaction data to the cross-border transaction data processing platform, and the cross-border transaction data processing platform is used to synchronize data between the first node and the second node.
[0017] In a possible implementation, the blockchain-based cross-border transaction processing method also includes: after performing a processing operation on the cross-border payment transaction according to the first processing message to obtain second transaction data, if a second processing message is received, the second processing message is set as a re-report, and the second processing message is not processed.
[0018] In a possible implementation, the blockchain-based cross-border transaction processing method further includes: after receiving the second processing message, determining whether the second processing message is a duplicate message according to a specified field of the message.
[0019] In one possible implementation, if the second processing message is not received within a set time period, a processing operation is performed on the cross-border payment transaction based on the first processing message to obtain second transaction data, including: if the second processing message is not received within the set time period, a message request is sent to the second node, and the message request is used to request to obtain the first processing message; receive the first processing message sent by the second node; and perform a processing operation on the cross-border payment transaction based on the first processing message to obtain second transaction data.
[0020] In a third aspect, an embodiment of the present application provides a cross-border transaction processing device based on blockchain, which is applied to a cross-border transaction data processing platform. The cross-border transaction data processing platform is deployed in each node of the blockchain system. The nodes in the blockchain system include a first node and a second node participating in a cross-border payment transaction, wherein the second node is a downstream node of the first node;
[0021] The device includes:
[0022] A blockchain system smart contract module, used to obtain first transaction data for a cross-border payment transaction uploaded by a first node during a cross-border transaction;
[0023] A blockchain system encryption and decryption module, configured to generate a first processing message for a second node based on the first transaction data;
[0024] The blockchain network module is used to broadcast a first processing message to a node in the blockchain system to notify a second node to perform a processing operation on a cross-border payment transaction and obtain second transaction data of the second node for the cross-border payment transaction;
[0025] Among them, the second node executes the processing operation, including: the second node notifies the cross-border payment system of the second node to receive the second processing message from the international inter-bank cross-border settlement service system, wherein the second processing message carries the first transaction data; when the cross-border payment system does not receive the second processing message within the set time period, the cross-border payment transaction is processed according to the first processing message to obtain the second transaction data; when the cross-border payment system receives the second processing message within the set time period, the cross-border payment transaction is processed according to the second processing message to obtain the second transaction data.
[0026] In a possible implementation, the cross-border transaction processing device based on blockchain further includes:
[0027] Blockchain ledger module: used to store cross-border transaction messages, the public keys of participating banks in the international inter-bank cross-border settlement service system, and the hash values of original messages. Transaction messages include original messages, messages sent by the upstream bank, and messages sent to the downstream bank after processing.
[0028] In a fourth aspect, an embodiment of the present application provides a cross-border transaction processing device based on blockchain, which is applied to a cross-border payment system of a second node, and the device includes:
[0029] A determination module, used to determine whether the second processing message is received within a set time period after the second node notifies the reception of the second processing message from the international inter-bank cross-border settlement service system, the second processing message carries the first transaction data obtained after the first node performs a processing operation on the cross-border payment transaction, the second node is the downstream bank node when the first node processes the cross-border payment transaction, and the first node and the second node are deployed in the blockchain system;
[0030] A processing module, configured to, when the second processing message is not received within a set time period, execute a processing operation on the cross-border payment transaction according to the first processing message to obtain second transaction data, wherein the first processing message is a message for the second node generated by a cross-border transaction data processing platform deployed in the blockchain system according to the first transaction data; if the second processing message is received within the set time period, execute a processing operation on the cross-border payment transaction according to the second processing message to obtain the second transaction data;
[0031] The sending module is used to send the second transaction data to the second node, so as to send the second transaction data to the cross-border transaction data processing platform, and the cross-border transaction data processing platform is used to synchronize data between the first node and the second node.
[0032] In a fifth aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0033] Memory for storing computer-executable instructions;
[0034] A processor, configured to execute computer-executable instructions stored in a memory to implement the blockchain-based cross-border transaction processing method described in any one of the first aspect and / or the second aspect.
[0035] In a sixth aspect, the present application provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed, they are used to implement the blockchain-based cross-border transaction processing method described in any one of the first aspect and / or the second aspect.
[0036] In the seventh aspect, the present application provides a computer program product, including a computer program, which, when executed, implements the blockchain-based cross-border transaction processing method described in any one of the first aspect and / or the second aspect.
[0037] The cross-border transaction processing method, device, equipment and medium based on blockchain provided in the present application are applied to a cross-border transaction data processing platform, and the cross-border transaction data processing platform is deployed in each node of the blockchain system. The nodes in the blockchain system include a first node and a second node participating in the cross-border payment transaction, wherein the second node is a downstream node of the first node; in the cross-border transaction process, first transaction data for the cross-border payment transaction uploaded by the first node is obtained, and a first processing message for the second node is generated according to the first transaction data, and the first processing message is broadcast to the nodes in the blockchain system to notify the second node to perform a processing operation on the cross-border payment transaction, and obtain the second transaction data of the second node for the cross-border payment transaction; wherein the second node performs the processing operation, including: the second node notifies the cross-border payment system of the second node to receive the second processing message from the international inter-bank cross-border settlement service system, wherein the second processing message carries the first transaction data, when the cross-border payment system does not receive the second processing message within a set time, the cross-border payment transaction is processed according to the first processing message to obtain the second transaction data, and when the cross-border payment system receives the second processing message within a set time, the cross-border payment transaction is processed according to the second processing message to obtain the second transaction data. In this process, by utilizing the decentralized characteristics of blockchain, a cross-border payment transaction link is formed in the blockchain system. Through this transaction link, the cross-border payment system of the second node can be notified in time to monitor whether the processing message from the international inter-bank cross-border settlement service system is received within the specified time, so that the cross-border payment system of the second node can monitor the transaction processing in time to avoid problems such as not being able to discover the transaction in time after it is lost or taking more time to find the transaction again; further, if the processing message is not received within the specified time, the cross-border payment system of the second node will regard the processing message as lost, and will promptly and efficiently obtain the first transaction data for the cross-border payment transaction uploaded by the first node through the blockchain system, and perform processing operations on the cross-border payment transaction to avoid delays in the arrival of user funds, thereby saving cross-border payment transaction time, and providing users with a more efficient and reliable cross-border transaction experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] Figure 1 A schematic diagram of a cross-border transaction processing method based on blockchain provided for this application;
[0040] Figure 2 A schematic diagram of a process of a cross-border transaction processing method based on blockchain provided for an exemplary embodiment of the present application;
[0041] Figure 3 A schematic diagram of a cross-border transaction business process based on blockchain provided for an exemplary embodiment of this application;
[0042] Figure 4 A schematic diagram of the encryption and decryption process of a transaction link in a blockchain system provided by an exemplary embodiment of the present application;
[0043] Figure 5 Another flowchart of a cross-border transaction processing method based on blockchain provided for an exemplary embodiment of the present application;
[0044] Figure 6 Another flowchart of a cross-border transaction processing method based on blockchain provided for an exemplary embodiment of the present application;
[0045] Figure 7 A schematic diagram of a cross-border transaction processing device based on blockchain provided in one embodiment of the present application;
[0046] Figure 8 Another structural schematic diagram of a cross-border transaction processing device based on blockchain provided in one embodiment of the present application;
[0047] Fig. 9 A schematic diagram of the structure of an electronic device provided for an exemplary embodiment of the present application.
[0048] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0050] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, products or equipment.
[0051] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0052] First, some of the terms involved in this application are explained:
[0053] International interbank cross-border settlement service system: refers to the Society for Worldwide Interbank Financial Telecommunication (SWIFT) system. The SWIFT system is a global financial telecommunications network designed to provide communication and data exchange services for secure and efficient cross-border financial transactions between financial institutions.
[0054] Distributed network: Decentralization means that each node maintains the full data, transmits messages to each other, and synchronizes data with each other.
[0055] In related technologies, cross-border transactions are cleared through telecommunications messages of the SWIFT system. When it comes to remittances to clearing or agency banks, the entire transaction chain involves multiple institutions such as the local central bank, domestic banks and foreign banks. Each institution needs to handle transactions and accounts independently, which leads to complicated business processes. There are problems such as manual processing of transactions that are prone to errors, or system failures that may cause transactions to be lost during the intermediate transmission process. In addition, it may take a long time to find a specific transaction, making the cross-border payment cycle long and inefficient. At the same time, the SWIFT system has centralized security risks. If the system fails or is attacked by hackers, it may lead to the loss of transactions, which in turn may lead to loss of customer funds, thereby affecting the bank's reputation.
[0056] In order to solve the above problems, the embodiment of the present application provides a cross-border transaction processing solution based on blockchain, by deploying a cross-border transaction data processing platform in each node of the blockchain system to form a distributed network, and utilizing the decentralized characteristics of the blockchain to upload the transaction data to the blockchain system and broadcast it to each node in the blockchain system, and combine it with the cross-border payment system corresponding to the node of the bank to form a cross-border payment transaction link, through which the cross-border payment system of the second node can be notified in time to monitor whether a processing message from the international inter-bank cross-border settlement service system is received within a specified time, so that the cross-border payment system of the second node can monitor the transaction processing in time, and avoid the problem that the transaction cannot be discovered in time after the transaction is lost or it takes more time to find the transaction again; further, if the processing message is not received within the specified time, the cross-border payment system of the second node will regard the processing message as lost, and will promptly and efficiently obtain the first transaction data for the cross-border payment transaction uploaded by the first node through the blockchain system, and perform processing operations on the cross-border payment transaction to avoid delaying the arrival of user funds, thereby saving the transaction time of cross-border payment, and providing users with a more efficient and reliable cross-border transaction experience.
[0057] It should be noted that the cross-border transaction processing method, device, equipment and medium based on blockchain in this application can be used in the field of blockchain technology, and can also be used in any field outside the field of blockchain technology. The application field of the cross-border transaction processing method, device, equipment and medium based on blockchain in this application is not limited.
[0058] Figure 1 A schematic diagram of a cross-border transaction processing method based on blockchain provided for this application, such as Figure 1 As shown, the application scenario includes a blockchain system 11, a cross-border payment system 14, an international inter-bank cross-border settlement service system 15 and a cross-border payment system 16. The cross-border transaction data processing platform is deployed at each node in the blockchain system 11. The nodes in the blockchain system 11 include a first node 12 and a second node 13 that participate in the cross-border payment transaction, wherein the second node 13 is the downstream node of the first node 12, the cross-border payment system 14 is the cross-border payment system corresponding to the first node 12, and the cross-border payment system 16 is the cross-border payment system corresponding to the second node 13. In actual applications, the cross-border transaction data processing platform obtains the first transaction data uploaded by the first node 12 for the cross-border payment transaction, executes the cross-border transaction processing method based on blockchain provided in this application, and obtains the second transaction data of the second node 13 for the cross-border payment transaction.
[0059] It should be noted that the first node 12, the second node 13, the cross-border payment system 14, the international inter-bank cross-border settlement service system 15 and the cross-border payment system 16 can also be replaced by a server cluster or other computing devices with certain computing power.
[0060] Combine the following Figure 1 For application scenarios, refer to Figure 2 To describe the cross-border transaction processing method based on blockchain according to the exemplary embodiment of the present application. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not subject to Figure 1 Limitations of the application scenario shown.
[0061] Figure 2 A flowchart of a cross-border transaction processing method based on blockchain provided for an exemplary embodiment of the present application. The cross-border transaction processing method based on blockchain provided in the embodiment of the present application is applied to a cross-border transaction data processing platform, which is deployed in each node of the blockchain system. The nodes in the blockchain system include a first node and a second node participating in a cross-border payment transaction, wherein the second node is a downstream node of the first node. Figure 2 As shown, the cross-border transaction processing method based on blockchain in the embodiment of the present application includes the following steps:
[0062] S201. During a cross-border transaction, obtain first transaction data for a cross-border payment transaction uploaded by a first node.
[0063] For example, Figure 1 As shown, the first transaction data of the cross-border payment transaction is uploaded to the first node 12 through the cross-border payment system 14, and the first node 12 uploads the first transaction data of the cross-border payment transaction to the cross-border transaction data processing platform. Correspondingly, the cross-border transaction data processing platform obtains the first transaction data for the cross-border payment transaction uploaded by the first node 12.
[0064] S202: Generate a first processing message for the second node according to the first transaction data.
[0065] In this step, the cross-border transaction data processing platform generates a first processing message for the second node based on the first transaction data and in accordance with preset rules.
[0066] S203. Broadcast the first processing message to the nodes in the blockchain system to notify the second node to perform a processing operation on the cross-border payment transaction and obtain the second transaction data of the second node for the cross-border payment transaction.
[0067] Among them, the second node executes the processing operation, including: the second node notifies the cross-border payment system of the second node to receive the second processing message from the international inter-bank cross-border settlement service system, wherein the second processing message carries the first transaction data; when the cross-border payment system does not receive the second processing message within the set time period, the cross-border payment transaction is processed according to the first processing message to obtain the second transaction data; when the cross-border payment system receives the second processing message within the set time period, the cross-border payment transaction is processed according to the second processing message to obtain the second transaction data.
[0068] For example, still refer to Figure 1 , the cross-border transaction data processing platform broadcasts the first processing message to the nodes in the blockchain system 11. After receiving the first processing message, each node will verify the first processing message to confirm whether it is related to the bank. Correspondingly, after receiving the first processing message, the second node 13 notifies the cross-border payment system 16 of the second node 13 to receive the second processing message from the international inter-bank cross-border settlement service system 15, wherein the second processing message carries the first transaction data; when the cross-border payment system 16 does not receive the second processing message within the set time, it performs a processing operation on the cross-border payment transaction according to the first processing message to obtain the second transaction data; when the cross-border payment system 16 receives the second processing message within the set time, it performs a processing operation on the cross-border payment transaction according to the second processing message to obtain the second transaction data.
[0069] The cross-border transaction processing method based on blockchain provided in the embodiment of the present application forms a cross-border payment transaction link in the blockchain system by utilizing the decentralized characteristics of blockchain. Through the transaction link, the cross-border payment system of the second node can be notified in time to monitor whether the processing message from the international inter-bank cross-border settlement service system is received within the specified time, so that the cross-border payment system of the second node can monitor the transaction processing status in time to avoid the problem that the transaction cannot be discovered in time after being lost or the transaction needs to be found again, which takes more time. Furthermore, if the processing message is not received within the specified time, the cross-border payment system of the second node regards the processing message as lost, and will promptly and efficiently obtain the first transaction data for the cross-border payment transaction uploaded by the first node through the blockchain system, and perform processing operations on the cross-border payment transaction to avoid delays in the arrival of user funds, thereby saving cross-border payment transaction time, and providing users with a more efficient and reliable cross-border transaction experience.
[0070] Based on the above embodiments, in some embodiments, if the first node is a paying bank node, the second node is an agent bank node; if the first node is an agent bank node, the second node is an agent bank node or a beneficiary bank node.
[0071] For example, Figure 3A schematic diagram of a cross-border transaction business process based on blockchain provided for an exemplary embodiment of this application. Figure 3 As shown, if the first node is a paying bank node, the second node is an agent bank node; if the first node is an agent bank node, the second node can be an agent bank node, or the second node is a receiving bank node.
[0072] Considering that in the relevant technologies, the entire transaction chain may involve multiple institutions such as the local central bank, domestic banks and foreign banks, there is a possibility that the transaction data may be tampered with or mistakenly modified. To address this problem, this application uses asymmetric encryption technology, that is, digital signature and information encryption technology to encrypt the transaction data to ensure that only authorized users can perform transaction operations, prevent intrusion and fraud by malicious entities, thereby ensuring the security and integrity of transaction data, thereby reducing the risks of intermediate links in the cross-border transaction process and improving the security and reliability of transactions.
[0073] Therefore, in some embodiments, a first processing message for the second node is generated based on the first transaction data, including: using the private key of the first node to digitally sign the first transaction data to obtain third transaction data containing the digital signature; using the public key of the second node to encrypt information of the third transaction data to generate a first processing message for the second node.
[0074] For example, Figure 4 A schematic diagram of the encryption and decryption process of a transaction link in a blockchain system provided by an exemplary embodiment of this application. Figure 3 and Figure 4, if the first node is the paying bank A node, the second node is the agent bank B node, and the third node is the beneficiary bank C node, the private key of the paying bank A node is used to digitally sign the first transaction data to obtain the third transaction data containing the digital signature, and the public key of the agent bank B node is used to encrypt the third transaction data, generate a first processing message for the agent bank B node, and broadcast the first processing message to the nodes in the blockchain system; correspondingly, when the agent bank B node receives the first processing message, it uses the private key of the agent bank B node to decrypt it, confirming that the first processing message is sent to the agent bank B node, and at the same time uses the public key of other counterparty bank nodes to encrypt the third transaction data with the transaction data. , confirming that the transaction comes from paying bank A, thereby determining the transaction link, and notifying the cross-border payment system of agent bank B node to receive the second processing message from the international inter-bank cross-border settlement service system, wherein the second processing message carries the first transaction data; when the cross-border payment system of agent bank B node does not receive the second processing message within the set time period, it performs a processing operation on the cross-border payment transaction according to the first processing message to obtain the second transaction data; when the cross-border payment system of agent bank B node receives the second processing message within the set time period, it performs a processing operation on the cross-border payment transaction according to the second processing message to obtain the second transaction data. Furthermore, the private key of the agent bank B node is used to digitally sign the second transaction data to obtain the fourth transaction data containing the digital signature, the public key of the beneficiary bank C node is used to encrypt the fourth transaction data, generate a third processing message for the beneficiary bank C node, and broadcast the third processing message to the nodes in the blockchain system; correspondingly, when the beneficiary bank C node receives the third processing message, it uses the private key of the beneficiary bank C node to decrypt it, confirming that the third processing message is sent to the beneficiary bank C node, and at the same time uses the public keys of other counterparty bank nodes to match the digital signature of the transaction. Yes, confirm that the transaction comes from agent bank B, thereby determining the transaction link, and notifying the cross-border payment system of the beneficiary bank C node to receive the third processing message from the international inter-bank cross-border settlement service system, wherein the third processing message carries the second transaction data; when the cross-border payment system of the beneficiary bank C node does not receive the third processing message within the set time period, it executes the account entry operation for the cross-border payment transaction according to the second processing message; when the cross-border payment system of the beneficiary bank C node receives the third processing message within the set time period, it executes the account entry operation for the cross-border payment transaction according to the third processing message.
[0075] It should be noted that Figure 4 The transaction scenario of paying bank A-agent bank B-beneficiary bank C shown is only an example of a cross-border transaction scenario. In actual applications, there can be only one or more agent bank nodes, which is not limited here.
[0076] Figure 5Another flowchart of a cross-border transaction processing method based on blockchain provided by an exemplary embodiment of the present application. The cross-border transaction processing method based on blockchain provided by an embodiment of the present application is applied to a cross-border payment system of a second node. Figure 5 As shown, the cross-border transaction processing method based on blockchain in the embodiment of the present application includes the following steps:
[0077] S501. After the second node notifies receipt of a second processing message from the international inter-bank cross-border settlement service system, determine whether the second processing message is received within a set time period, the second processing message carries the first transaction data obtained after the first node performs a processing operation on the cross-border payment transaction, the second node is the downstream node when the first node processes the cross-border payment transaction, and the first node and the second node are deployed in the blockchain system.
[0078] For example, refer to Figure 3 and Figure 4 If the first node is the paying bank A node and the second node is the agent bank B node, after the agent bank B node notifies the receipt of the second processing message from the international interbank cross-border settlement service system (i.e. SWIFT), the cross-border payment system of the agent bank B node determines whether the second processing message is received within a set time (e.g. 30 minutes). The second processing message carries the first transaction data obtained after the paying bank A node performs a processing operation on the cross-border payment transaction. The agent bank B node is the next-hand bank node when the paying bank A node processes the cross-border payment transaction. The paying bank A node and the agent bank B node are deployed in the blockchain system.
[0079] S502. If the second processing message is not received within the set time, a processing operation is performed on the cross-border payment transaction according to the first processing message to obtain second transaction data, where the first processing message is a message to the second node generated by the cross-border transaction data processing platform deployed in the blockchain system according to the first transaction data; if the second processing message is received within the set time, a processing operation is performed on the cross-border payment transaction according to the second processing message to obtain second transaction data.
[0080] For example, if the cross-border payment system of the agent bank B node does not receive the second processing message from the international inter-bank cross-border settlement service system within 30 minutes, it executes a processing operation on the cross-border payment transaction according to the first processing message to obtain the second transaction data. The first processing message is a message for the second node generated by the cross-border transaction data processing platform deployed in the blockchain system according to the first transaction data; if the second processing message from the international inter-bank cross-border settlement service system is received within 30 minutes, the processing operation is executed on the cross-border payment transaction according to the second processing message to obtain the second transaction data.
[0081] S503: Send the second transaction data to the second node to send the second transaction data to the cross-border transaction data processing platform, where the cross-border transaction data processing platform is used to synchronize data between the first node and the second node.
[0082] Furthermore, the cross-border payment system of the agent bank's node B sends the second transaction data to the agent bank's node B, so as to send the second transaction data to the cross-border transaction data processing platform. Correspondingly, the cross-border transaction data processing platform uses the private key of the agent bank's node B to digitally sign the second transaction data, obtains the fourth transaction data containing the digital signature, uses the public key of the downstream bank node (such as the beneficiary bank's node C), encrypts the fourth transaction data, generates a third processing message for the downstream bank node, and broadcasts the third processing message to the nodes in the blockchain system.
[0083] In the embodiment of the present application, the transaction processing status is timely monitored in the cross-border payment system of the node, so as to avoid the problem that the transaction cannot be discovered in time after being lost or more time is required to find the transaction again; and the blockchain system can efficiently and securely obtain reports from the upstream bank, thereby saving the transaction time of cross-border payments, and providing users with a more efficient and reliable cross-border transaction experience.
[0084] In some embodiments, if the second processing message is not received within a set time period, a processing operation is performed on the cross-border payment transaction based on the first processing message to obtain second transaction data, including: if the second processing message is not received within the set time period, a message request is sent to a second node, and the message request is used to request to obtain the first processing message; receive the first processing message sent by the second node; and perform a processing operation on the cross-border payment transaction based on the first processing message to obtain second transaction data.
[0085] For example, still refer to Figure 3 and Figure 4 If the cross-border payment system of the agent bank B node does not receive the second processing message from the international inter-bank cross-border settlement service system within 30 minutes, the cross-border payment system of the agent bank B node sends a message request to the agent bank B node, and the message request is used to request to obtain the first processing message; correspondingly, the cross-border transaction data processing platform deployed at the agent bank B node sends the first processing message to the cross-border payment system of the agent bank B node; accordingly, the cross-border payment system of the agent bank B node receives the first processing message sent by the agent bank B node, and performs processing operations on the cross-border payment transaction according to the first processing message to obtain the second transaction data.
[0086] Based on the above embodiments, in some embodiments, the blockchain-based cross-border transaction processing method also includes: after performing a processing operation on the cross-border payment transaction according to the first processing message to obtain second transaction data, if a second processing message is received, the second processing message is set as a re-report, and the second processing message is not processed.
[0087] For example, still refer to Figure 3 and Figure 4 When the cross-border payment system of the agent bank's B node receives the first processing message sent by the agent bank's B node and performs processing operations on the cross-border payment transaction according to the first processing message, if a second processing message is received from the international inter-bank cross-border settlement service system (i.e., the second processing message is delivered with a delay), it is determined according to the preset rules whether the second processing message is a duplicate report. If it is a duplicate report, the second processing message is set as a duplicate report, and the second processing message is not processed.
[0088] In some embodiments, the blockchain-based cross-border transaction processing method further includes: after receiving the second processing message, determining whether the second processing message is a duplicate message according to a specified field of the message.
[0089] For example, when the cross-border payment system of the agent bank's B node receives the first processing message sent by the agent bank's B node, and performs a processing operation on the cross-border payment transaction based on the first processing message, the processing operation is recorded in a specified field of the message to mark that the cross-border payment transaction regarding the first transaction data has been processed; correspondingly, after receiving the second processing message, the second processing message is parsed to determine that it is a cross-border payment transaction regarding the first transaction data, then the second processing message is judged as a duplicate report based on the specified field of the message, and transaction processing is not performed on the second processing message.
[0090] The embodiment of the present application makes judgments based on the specified fields of the message, and can accurately identify and process duplicate messages, ensure the accuracy and consistency of transaction data, thereby avoiding repeated processing of the same transaction, and further improving the reliability of cross-border payment transactions.
[0091] For example, refer to Figure 3 and Figure 4 , Figure 6 Another flowchart of a cross-border transaction processing method based on blockchain provided by an exemplary embodiment of the present application. Figure 6 As shown, the cross-border transaction processing method based on blockchain in the embodiment of the present application includes the following steps:
[0092] S601. During a cross-border transaction, first transaction data for a cross-border payment transaction uploaded by a paying bank node A is obtained.
[0093] S602: Digitally sign and encrypt the first transaction data to generate a first processing message for the agent bank's B node.
[0094] That is, the private key of the paying bank's A node is used to digitally sign the first transaction data to obtain the third transaction data containing the digital signature, and the public key of the agent bank's B node is used to encrypt the third transaction data to generate the first processing message for the agent bank's B node.
[0095] S603: Broadcast the first processing message to the nodes in the blockchain system.
[0096] S604: Decrypt the first processing message received by the agent bank node B.
[0097] Correspondingly, when the agent bank B node receives the first processing message, it uses the private key of the agent bank B node to decrypt it and confirms that the first processing message is sent to the agent bank B node. At the same time, it uses the public key of other counterparty bank nodes to match the digital signature of the transaction to confirm that the transaction comes from paying bank A, thereby determining the transaction link.
[0098] S605: Notify the cross-border payment system of the agent bank B node to receive the second processing message from the international inter-bank cross-border settlement service system.
[0099] S606. The cross-border payment system of the agent bank's node B receives the notification and waits for the remittance transaction of the international inter-bank cross-border settlement service system.
[0100] S607: Determine whether the second processing message is received within the set time period.
[0101] If not, execute S608;
[0102] If yes, execute S610.
[0103] S608. The cross-border payment system of the agent bank's B node sends a message request to the agent bank's B node, where the message request is used to request to obtain a first processing message.
[0104] S609: The cross-border payment system of the agent bank node B performs a remittance operation according to the first processing message to obtain second transaction data.
[0105] Furthermore, after executing the processing operation for the cross-border payment transaction according to the first processing message to obtain the second transaction data, if a second processing message is received, the second processing message is set as a re-report and is not processed, thereby avoiding repeated processing of the same transaction and improving the reliability of the cross-border payment transaction.
[0106] S610: The cross-border payment system of the agent bank node B performs a remittance operation according to the second processing message to obtain second transaction data.
[0107] S611, and upload the second transaction data for the cross-border payment transaction to the agent bank's B node.
[0108] That is, the second transaction data for the cross-border payment transaction obtained in S609 or S610 is uploaded to the agent bank's B node.
[0109] S612. The agent bank node B digitally signs and encrypts the second transaction data, and generates a third processing message for the beneficiary bank node C.
[0110] That is, the private key of the agent bank's node B is used to digitally sign the second transaction data to obtain fourth transaction data containing the digital signature, and the public key of the beneficiary bank's node C is used to encrypt the fourth transaction data to generate a third processing message for the beneficiary bank's node C.
[0111] S613. Broadcast the third processing message to the nodes in the blockchain system.
[0112] S614. Decrypt the third processing message received by the receiving bank C node.
[0113] Correspondingly, when the receiving bank C node receives the third processing message, it uses the private key of the receiving bank C node to decrypt it and confirms that the third processing message is sent to the receiving bank C node. At the same time, it uses the public key of other counterparty bank nodes to match the digital signature of the transaction to confirm that the transaction comes from the agent bank B, thereby determining the transaction link.
[0114] S615: Notify the cross-border payment system of the beneficiary bank C node to receive the third processing message from the international inter-bank cross-border settlement service system.
[0115] S616. The cross-border payment system of the beneficiary bank C node receives the notification and waits for the remittance transaction of the international inter-bank cross-border settlement service system.
[0116] S617: Determine whether the third processing message is received within the set time period.
[0117] If yes, execute S618;
[0118] If not, execute S619.
[0119] S618. The cross-border payment system of the receiving bank C node performs an account entry operation according to the third processing message.
[0120] S619. The cross-border payment system of the beneficiary bank's node C sends a message request to the beneficiary bank's node C, where the message request is used to request to obtain the second processing message.
[0121] S620. Node C of the receiving bank performs an account entry operation according to the second processing message.
[0122] In summary, this application has at least the following advantages:
[0123] 1. By utilizing the decentralized characteristics of blockchain, a cross-border payment transaction link is formed in the blockchain system. Through this transaction link, the cross-border payment system of the second node can be notified in time to monitor whether the processing message from the international inter-bank cross-border settlement service system is received within the specified time, so that the cross-border payment system of the second node can monitor the transaction processing in time to avoid the problem that the transaction cannot be discovered in time after it is lost or it takes more time to find the transaction again; further, if the processing message is not received within the specified time, the cross-border payment system of the second node will regard the processing message as lost, and will promptly and efficiently obtain the first transaction data for the cross-border payment transaction uploaded by the first node through the blockchain system, and perform processing operations on the cross-border payment transaction to avoid delays in the arrival of user funds, thereby saving cross-border payment transaction time, and providing users with a more efficient and reliable cross-border transaction experience.
[0124] Second, through asymmetric encryption technology, that is, using digital signatures and information encryption technology to encrypt transaction data, ensure that only authorized users can perform transaction operations, prevent intrusion and fraud by malicious entities, thereby ensuring the security and integrity of transaction data, and then reducing the risks of intermediate links in the cross-border transaction process and improving the security and reliability of transactions.
[0125] 3. By timely monitoring the transaction processing status in the cross-border payment system at the node, problems such as failure to discover the transaction in time after it is lost or taking more time to find the transaction again can be avoided; and the blockchain system can efficiently and securely obtain reports from the upstream bank, thereby saving cross-border payment transaction time, and providing users with a more efficient and reliable cross-border transaction experience.
[0126] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0127] Figure 7 A schematic diagram of a cross-border transaction processing device based on blockchain provided in one embodiment of the present application. The cross-border transaction processing device based on blockchain provided in the embodiment of the present application is applied to a cross-border transaction data processing platform, which is deployed in each node of the blockchain system. The nodes in the blockchain system include a first node and a second node participating in a cross-border payment transaction, wherein the second node is a downstream node of the first node; Figure 7 As shown, the cross-border transaction processing device 70 based on blockchain includes a blockchain system smart contract module 71, a blockchain system encryption and decryption module 72 and a blockchain network module 73, wherein:
[0128] The blockchain system smart contract module 71 is used to obtain the first transaction data for the cross-border payment transaction uploaded by the first node during the cross-border transaction process;
[0129] The blockchain system encryption and decryption module 72 is used to generate a first processing message for the second node according to the first transaction data;
[0130] The blockchain network module 73 is used to broadcast the first processing message to the nodes in the blockchain system to notify the second node to perform the processing operation for the cross-border payment transaction and obtain the second transaction data of the second node for the cross-border payment transaction;
[0131] Among them, the second node executes the processing operation, including: the second node notifies the cross-border payment system of the second node to receive the second processing message from the international inter-bank cross-border settlement service system, wherein the second processing message carries the first transaction data; when the cross-border payment system does not receive the second processing message within the set time period, the cross-border payment transaction is processed according to the first processing message to obtain the second transaction data; when the cross-border payment system receives the second processing message within the set time period, the cross-border payment transaction is processed according to the second processing message to obtain the second transaction data.
[0132] In some embodiments, the cross-border transaction processing device based on blockchain further includes:
[0133] Blockchain ledger module: used to store cross-border transaction messages, the public keys of participating banks in the international inter-bank cross-border settlement service system, and the hash values of original messages. Transaction messages include original messages, messages sent by the upstream bank, and messages sent to the downstream bank after processing.
[0134] For example, all participating banks in the international inter-bank cross-border settlement service system need to participate in establishing a consensus mechanism. Each participating bank creates a blockchain ledger module in the node of the blockchain system according to the consensus mechanism. The module uses digital signature technology to confirm whether the cross-border payment transaction broadcast from the blockchain network module 73 is related to the bank. If it is confirmed that it is a transaction sent to the bank, the blockchain system smart contract module 71 is notified to call the blockchain system encryption and decryption module 72 to obtain the current transaction progress of the cross-border transaction, and at the same time notify the bank's cross-border payment system that it is about to receive a cross-border payment processing message from the international inter-bank cross-border settlement service system. If the cross-border payment system does not receive the processing message within the set time, the bank's cross-border payment system assumes that the processing message is lost, and calls the blockchain ledger module through the blockchain system smart contract module 71 to obtain the processing message sent by the upstream bank after processing, and continues to process it as a report from the international inter-bank cross-border settlement service system, and simultaneously uploads the processed message and the public key information of the downstream bank to the chain. After the blockchain system smart contract module 71 calls the blockchain system encryption and decryption module 72 for encryption, it is broadcast and updated synchronously to each blockchain node through the blockchain network module 73. Among them, the blockchain network module 73 is used to build a decentralized distributed network of participating banks in the international inter-bank cross-border settlement service system. When a node updates its status, it can be synchronized to all nodes through the network; the blockchain smart contract module 71 is used to automatically upload the transaction data of cross-border payment transactions to the chain, and call the blockchain system encryption and decryption module 72 to process the uploaded information.
[0135] In a possible implementation, the blockchain system encryption and decryption module 72 can be specifically used to: use the private key of the first node to digitally sign the first transaction data to obtain the third transaction data containing the digital signature; use the public key of the second node to encrypt the third transaction data to generate a first processing message for the second node. Further, the blockchain system encryption and decryption module 72 calls the blockchain network module 73 to broadcast the first processing message to the nodes in the blockchain system, and only the next-row blockchain node (i.e., the second node) can reversely decrypt it after receiving it.
[0136] In a possible implementation, if the first node is a paying bank node, the second node is a proxy bank node; if the first node is a proxy bank node, the second node is a proxy bank node or a beneficiary bank node.
[0137] Figure 8 Another structural diagram of a cross-border transaction processing device based on blockchain provided in an embodiment of the present application. The cross-border transaction processing device based on blockchain provided in an embodiment of the present application is applied to a cross-border payment system of a second node; Figure 8 As shown, the cross-border transaction processing device 80 based on blockchain includes a determination module 81, a processing module 82 and a sending module 83, wherein:
[0138] The determination module 81 is used to determine whether the second processing message is received within a set time after the second node notifies the reception of the second processing message from the international inter-bank cross-border settlement service system, the second processing message carries the first transaction data obtained after the first node performs the processing operation on the cross-border payment transaction, the second node is the downstream bank node when the first node processes the cross-border payment transaction, and the first node and the second node are deployed in the blockchain system;
[0139] The processing module 82 is used to, when the second processing message is not received within the set time period, perform a processing operation on the cross-border payment transaction according to the first processing message to obtain the second transaction data, wherein the first processing message is a message for the second node generated by the cross-border transaction data processing platform deployed in the blockchain system according to the first transaction data; if the second processing message is received within the set time period, perform a processing operation on the cross-border payment transaction according to the second processing message to obtain the second transaction data;
[0140] The sending module 83 is used to send the second transaction data to the second node, so as to send the second transaction data to the cross-border transaction data processing platform, and the cross-border transaction data processing platform is used to synchronize data between the first node and the second node.
[0141] In a possible implementation, the processing module 82 may be specifically used for: if the second processing message is not received within a set time period, sending a message request to the second node, the message request being used to request obtaining the first processing message; receiving the first processing message sent by the second node; and performing processing operations on the cross-border payment transaction according to the first processing message to obtain second transaction data.
[0142] In a possible implementation, the processing module 82 can also be used for: after executing a processing operation on a cross-border payment transaction according to a first processing message to obtain second transaction data, if a second processing message is received, the second processing message is set as a re-report, and the second processing message is not processed.
[0143] In a possible implementation manner, the processing module 82 may also be configured to: after receiving the second processing message, determine whether the second processing message is a duplicate message according to a specified field of the message.
[0144] The blockchain-based cross-border transaction processing device provided in the embodiment of the present application can execute the technical solution shown in the above-mentioned blockchain-based cross-border transaction processing method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.
[0145] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0146] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0147] 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 loading and executing computer instructions on a computer, the process or function according to the embodiment of 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 devices. 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, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, referred to as 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, a data center, etc. that contains one or more available media integrated. Available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, Digital Video Discs (DVDs)), or semiconductor media (eg, solid state disks (SSDs)).
[0148] Fig. 9 The schematic diagram of the structure of the electronic device provided by the exemplary embodiment of the present application. Fig. 9 As shown, the electronic device 90 of this embodiment includes:
[0149] At least one processor 91; and a memory 92 communicatively connected to the at least one processor;
[0150] The memory 92 stores instructions that can be executed by the at least one processor 91, and the instructions are executed by the at least one processor 91 to enable the electronic device to execute the method described in any of the above embodiments.
[0151] Optionally, the memory 92 may be independent or integrated with the processor 91 .
[0152] The memory 92 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0153] The processor 91 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. Specifically, when implementing the cross-border transaction processing method based on blockchain described in the aforementioned method embodiment, the electronic device may be, for example, an electronic device with processing functions such as a server.
[0154] Optionally, the electronic device may further include a communication interface 93. In a specific implementation, if the communication interface 93, the memory 92 and the processor 91 are implemented independently, the communication interface 93, the memory 92 and the processor 91 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0155] Optionally, in a specific implementation, if the communication interface 93, the memory 92 and the processor 91 are integrated on a chip, the communication interface 93, the memory 92 and the processor 91 can communicate through an internal interface.
[0156] The implementation principle and technical effects of the electronic device provided in this embodiment can be found in the aforementioned embodiments and will not be described in detail here.
[0157] An embodiment of the present application also provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed, they are used to implement the method steps in the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0158] The above-mentioned computer readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0159] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in a dedicated integrated circuit. Of course, the processor and the readable storage medium can also exist as discrete components in a cross-border transaction processing device based on blockchain.
[0160] The embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed, the method steps in the above method embodiment are implemented. The specific implementation method and technical effect are similar and will not be repeated here.
[0161] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0162] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A cross-border transaction processing method based on blockchain, characterized in that: Applied to a cross-border transaction data processing platform, the cross-border transaction data processing platform is deployed in each node of a blockchain system, the nodes in the blockchain system include a first node and a second node participating in a cross-border payment transaction, wherein the second node is a downstream node of the first node; The method comprises: During the cross-border transaction process, obtaining first transaction data uploaded by the first node for the cross-border payment transaction; generating a first processing message for the second node according to the first transaction data; Broadcasting the first processing message to the nodes in the blockchain system to notify the second node to perform a processing operation on the cross-border payment transaction, and obtaining second transaction data of the second node for the cross-border payment transaction; Among them, the second node executes a processing operation, including: the second node notifies the cross-border payment system of the second node to receive a second processing message from the international inter-bank cross-border settlement service system, wherein the second processing message carries the first transaction data; when the cross-border payment system does not receive the second processing message within a set time period, the cross-border payment transaction is processed according to the first processing message to obtain the second transaction data; when the cross-border payment system receives the second processing message within a set time period, the cross-border payment transaction is processed according to the second processing message to obtain the second transaction data.
2. The method according to claim 1, characterized in that The step of generating a first processing message directed to the second node according to the first transaction data includes: Using the private key of the first node, digitally signing the first transaction data to obtain third transaction data including the digital signature; The third transaction data is encrypted using the public key of the second node to generate a first processing message directed to the second node.
3. The method according to claim 1 or 2, characterized in that: If the first node is a paying bank node, the second node is an agent bank node; if the first node is an agent bank node, the second node is an agent bank node or a beneficiary bank node.
4. A cross-border transaction processing method based on blockchain, characterized in that: A cross-border payment system applied to a second node, the method comprising: After the second node notifies receipt of a second processing message from the international inter-bank cross-border settlement service system, determining whether the second processing message is received within a set time period, the second processing message carries the first transaction data obtained after the first node performs a processing operation on the cross-border payment transaction, the second node is the downstream bank node when the first node processes the cross-border payment transaction, and the first node and the second node are deployed in the blockchain system; If the second processing message is not received within the set time period, a processing operation is performed on the cross-border payment transaction according to the first processing message to obtain second transaction data, wherein the first processing message is a message directed to the second node generated by a cross-border transaction data processing platform deployed in the blockchain system according to the first transaction data; if the second processing message is received within the set time period, a processing operation is performed on the cross-border payment transaction according to the second processing message to obtain second transaction data; The second transaction data is sent to the second node to send the second transaction data to the cross-border transaction data processing platform, and the cross-border transaction data processing platform is used to synchronize data between the first node and the second node.
5. The method according to claim 4, characterized in that Also includes: After performing a processing operation on the cross-border payment transaction according to the first processing message to obtain the second transaction data, if the second processing message is received, the second processing message is set as a re-report and the second processing message is not processed.
6. The method according to claim 4 or 5, characterized in that: If the second processing message is not received within the set time period, performing a processing operation on the cross-border payment transaction according to the first processing message to obtain second transaction data includes: If the second processing message is not received within the set time period, sending a message request to the second node, where the message request is used to request to obtain the first processing message; receiving the first processing message sent by the second node; A processing operation is performed on the cross-border payment transaction according to the first processing message to obtain second transaction data.
7. A cross-border transaction processing device based on blockchain, characterized in that: Applied to a cross-border transaction data processing platform, the cross-border transaction data processing platform is deployed in each node of a blockchain system, the nodes in the blockchain system include a first node and a second node participating in a cross-border payment transaction, wherein the second node is a downstream node of the first node; The device comprises: A blockchain system smart contract module, used to obtain the first transaction data uploaded by the first node for the cross-border payment transaction during the cross-border transaction process; A blockchain system encryption and decryption module, configured to generate a first processing message for the second node according to the first transaction data; A blockchain network module, configured to broadcast the first processing message to nodes in the blockchain system to notify the second node to perform a processing operation on the cross-border payment transaction and obtain second transaction data of the second node for the cross-border payment transaction; Among them, the second node executes a processing operation, including: the second node notifies the cross-border payment system of the second node to receive a second processing message from the international inter-bank cross-border settlement service system, wherein the second processing message carries the first transaction data; when the cross-border payment system does not receive the second processing message within a set time period, the cross-border payment transaction is processed according to the first processing message to obtain the second transaction data; when the cross-border payment system receives the second processing message within a set time period, the cross-border payment transaction is processed according to the second processing message to obtain the second transaction data.
8. A cross-border transaction processing device based on blockchain, characterized in that: A cross-border payment system applied to a second node, the device comprising: A determination module, configured to determine whether the second processing message is received within a set time period after the second node notifies receipt of a second processing message from an international inter-bank cross-border settlement service system, wherein the second processing message carries first transaction data obtained after the first node performs a processing operation on a cross-border payment transaction, the second node is a downstream bank node when the first node processes a cross-border payment transaction, and the first node and the second node are deployed in a blockchain system; a processing module, configured to, when the second processing message is not received within the set time period, perform a processing operation on the cross-border payment transaction according to the first processing message to obtain second transaction data, wherein the first processing message is a message for the second node generated by a cross-border transaction data processing platform deployed in the blockchain system according to the first transaction data; if the second processing message is received within the set time period, perform a processing operation on the cross-border payment transaction according to the second processing message to obtain second transaction data; A sending module is used to send the second transaction data to the second node, so as to send the second transaction data to the cross-border transaction data processing platform, and the cross-border transaction data processing platform is used to synchronize data between the first node and the second node.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory is used to store computer-executable instructions; The processor is used to execute the computer-executable instructions to implement the blockchain-based cross-border transaction processing method as described in any one of claims 1 to 3, and / or to implement the blockchain-based cross-border transaction processing method as described in any one of claims 4 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer execution instructions, which, when executed by a processor, are used to implement the blockchain-based cross-border transaction processing method as described in any one of claims 1 to 3, and / or to implement the blockchain-based cross-border transaction processing method as described in any one of claims 4 to 6.
