Data processing method, system, device, computer equipment and storage medium

By introducing management nodes and multi-signature account mechanisms into the blockchain network, and using digital signatures to manage transaction status, the problem of inconsistent transaction status on and off-chain transaction status is solved, and transaction security and reliability are improved.

CN113610520BActive Publication Date: 2024-12-17SHANGHAI PUDONG DEVELOPMENT BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110827532.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-21
Publication Date
2024-12-17
Estimated Expiration
2041-07-21

AI Technical Summary

Technical Problem

The existing blockchain system cannot guarantee the consistency of the status of on-chain off-chain transactions, resulting in the on-chain transaction party that may suffer property losses when off-chain transactions fail.

Method used

By introducing management nodes into the blockchain network, using multi-signature accounts and digital signature mechanisms, the management node manages digital assets in multi-signature accounts according to transaction status messages, ensuring synchronization of on-chain and off-chain transactions.

Benefits of technology

The consistency of the on-chain off-chain transaction status is achieved, the asset security of both parties is improved, and property losses caused by failure of off-chain transactions are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113610520B_ABST
    Figure CN113610520B_ABST
Patent Text Reader

Abstract

The present application relates to a data processing method, system, device, computer equipment and storage medium, and relates to the field of blockchain technology. The method is applied to a blockchain network, which includes a first node, a second node and multiple candidate nodes. The first node initiates a transaction request, and the transaction request carries the identity information of the management node. After receiving the transaction request, each candidate node determines whether it is the management node of the transaction request. If so, the candidate node manages the transaction request as a management node. The management process includes the management node sending a transaction start instruction to the second node. After the management node receives the transaction status information sent by the first node, the digital assets in the multi-signature account corresponding to the first node and the management node can be managed according to the transaction status information, thereby ensuring the synchronization of the on-chain transaction and off-chain transaction status of the first node and the second node, thereby ensuring the asset security of both parties to the transaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a data processing method, system, device, computer equipment and storage medium. Background Art

[0002] The blockchain network built on blockchain technology has the characteristics of anonymity, non-tampering, traceability, etc. Therefore, blockchain technology plays an increasingly important role in commercial applications.

[0003] In the prior art, the data processing method based on the blockchain network includes: when the first node and the second node conduct a transaction, the first node needs to transfer the money on the chain first, and then the second node starts to ship the goods offline, until the first node receives the goods and completes the entire transaction. Among them, after the first node transfers the digital assets to the second node in the blockchain network, it means that the transaction has been completed in the blockchain network, and the status of the physical transaction is that the second node ships the goods, and whether the first node has received the goods is not determined, that is, the physical transaction has not been completed. It can be seen that the existing blockchain system cannot guarantee the consistency of the status of transactions on the chain and off the chain. If the first node does not receive the goods in the end, then the first node will suffer property losses. Summary of the invention

[0004] Based on this, it is necessary to provide a data processing method, system, device, computer equipment and storage medium that can synchronize on-chain transactions and off-chain transactions in response to the above technical problems.

[0005] A data processing method is applied to a blockchain network, wherein the blockchain network includes a first node, a second node, and a plurality of candidate nodes, and the method includes:

[0006] For each candidate node, the candidate node receives a transaction request sent by the first node, and the transaction request carries the identity information of the management node;

[0007] The candidate node determines whether the candidate node is a management node according to the identity information of the management node. If the candidate node is a management node, the candidate node sends a transaction start instruction to the second node according to the transaction request, and the transaction start instruction is used to instruct the second node to perform a transaction operation;

[0008] When the management node receives the transaction status message sent by the first node, it manages the digital assets in the multi-signature account according to the transaction status message; the transaction status message indicates whether the transaction is successful or failed during the transaction operation, and the multi-signature account is the account corresponding to the first node and the management node.

[0009] In one embodiment, managing digital assets in a multi-signature account according to a transaction status message includes:

[0010] If the transaction status message indicates that the transaction is successful during the transaction operation, the management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0011] In one embodiment, the transaction request also includes a first digital signature of the first node and identity information of the first node, wherein the first digital signature indicates that the first node grants the management node the authority to transfer digital assets in the multi-signature account, and the digital assets in the multi-signature account are transferred to the account corresponding to the second node, including:

[0012] The management node verifies the first digital signature according to the identity information of the first node;

[0013] If the first digital signature is determined to be valid, the management node generates a second digital signature and broadcasts the second digital signature; the second digital signature indicates that the management node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the second node;

[0014] The management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0015] In one embodiment, the management node verifies the first digital signature according to the identity information of the first node, including:

[0016] The management node performs signature verification on the identity information of the first node;

[0017] The management node detects the signature verification result. If the signature verification passes, the first digital signature is determined to be valid. If the signature verification fails, the first digital signature is determined to be invalid.

[0018] In one embodiment, managing digital assets in a multi-signature account according to a transaction status message includes:

[0019] If the transaction status message indicates that the transaction failed during the transaction operation, the management node will return the digital assets in the multi-signature account to the account corresponding to the first node.

[0020] In one embodiment, the management node returns the digital assets in the multi-signature account to the account corresponding to the first node, including:

[0021] The management node generates transfer transaction information and broadcasts the transfer transaction information. The transfer transaction information carries the digital signature of the management node. The digital signature of the management node indicates that the management node grants the first node the authority to transfer the digital assets in the multi-signature account to the account corresponding to the first node.

[0022] The management node receives the digital signature associated with the transfer transaction information sent by the first node, where the digital signature associated with the transfer transaction information sent by the first node indicates that the first node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the first node;

[0023] The management node transfers the digital assets in the multi-signature account to the account corresponding to the first node.

[0024] In one embodiment, the method further comprises:

[0025] The management node generates a multi-signature account based on the public key of the first node and the public key of the management node;

[0026] The management node receives a transfer message sent by the first node, where the transfer message indicates that the first node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account;

[0027] The management node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account according to the transfer message.

[0028] In one embodiment, the method further comprises:

[0029] The management node receives and stores the transaction certificate sent by the second node, where the transaction certificate is the certificate obtained by the second node during the transaction operation.

[0030] A data processing system based on blockchain is applied to a blockchain network, wherein the blockchain network includes a first node, a second node, and a plurality of candidate nodes, and the system includes:

[0031] The first node is used to broadcast a transaction request, which carries the identity information of the management node;

[0032] Each candidate node is used to receive a transaction request and determine whether the candidate node is a management node according to the identity information of the management node. If the candidate node is a management node, a transaction start instruction is sent to the second node according to the transaction request;

[0033] The second node is used to perform trading operations according to the trading initiation instruction;

[0034] The first node is also used to broadcast a transaction status message, which indicates whether the transaction is successful or failed during the transaction operation;

[0035] The management node is also used to manage the digital assets in the multi-signature account according to the transaction status message when receiving the transaction status message. The multi-signature account is the account corresponding to the first node and the management node.

[0036] A data processing device is applied to a blockchain network, wherein the blockchain network includes a first node, a second node, and a plurality of candidate nodes, and the device includes:

[0037] A receiving module, configured to receive a transaction request sent by the first node, wherein the transaction request carries the identity information of the management node;

[0038] a determination module, configured to determine whether the candidate node is a management node according to the identity information of the management node, and if the candidate node is a management node, to send a transaction start instruction to the second node according to the transaction request, wherein the transaction start instruction is used to instruct the second node to perform a transaction operation;

[0039] The management module is used to manage the digital assets in the multi-signature account according to the transaction status message when receiving the transaction status message sent by the first node; the transaction status message indicates the success or failure of the transaction during the transaction operation, and the multi-signature account is the account corresponding to the first node and the management node.

[0040] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the data processing method of any of the above embodiments when executing the computer program.

[0041] A computer-readable storage medium stores a computer program, which implements the data processing method of any of the above embodiments when executed by a processor.

[0042] The above-mentioned data processing method, system, device, computer equipment and storage medium can ensure that the off-chain transaction status of both parties to the transaction is consistent with the on-chain transaction status, thereby providing better services for commercial applications. The method is applied to a blockchain network, which includes a first node, a second node and multiple candidate nodes, wherein each candidate node may become a management node. The first node initiates a transaction request, and the transaction request carries the identity information of the management node. After receiving the transaction request, each candidate node can determine whether it is the management node of the transaction request by comparing its own identity information with the identity information of the management node. If so, the candidate node manages the transaction request as a management node. The management process includes: the management node sends a transaction start instruction to the second node, that is, the transaction participant, so that the second node performs a transaction operation. Correspondingly, the first node can determine the transaction status based on the transaction operation performed by the second node. The first node can generate a transaction status message and broadcast the transaction status message to all nodes in the blockchain network. After receiving the transaction status information, the management node can manage the digital assets in the multi-signature account corresponding to the first node and the management node according to the transaction status information. Based on the management of the management node, the synchronization of the on-chain transaction and off-chain transaction status of the first node and the second node is guaranteed, thereby ensuring the asset security of both parties to the transaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 An application environment diagram of a data processing method in an embodiment;

[0044] Figure 2 is a flow chart of a data processing method in one embodiment;

[0045] Figure 3 A flowchart of a method in which a management node transfers digital assets in a multi-signature account to an account corresponding to a second node in one embodiment;

[0046] Figure 4 A flowchart of a method in which a management node transfers digital assets in a multi-signature account to an account corresponding to a second node in another embodiment;

[0047] Figure 5 A flowchart of a method in which a management node returns digital assets in a multi-signature account to an account corresponding to a first node in one embodiment;

[0048] Figure 6 A schematic diagram of a blockchain-based data processing system in one embodiment;

[0049] Figure 7 is a structural block diagram of a data processing device in one embodiment;

[0050] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In the description of the present application, it should be noted that the terms "first", "second" and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0052] The blockchain network built based on blockchain technology has the characteristics of anonymity, non-tampering, and traceability. Therefore, the prior art proposes a collaborative solution for on-chain and off-chain transactions based on blockchain technology, where on-chain transactions refer to transactions between digital assets completed on the blockchain network, and off-chain transactions refer to transactions completed outside the blockchain network. The transaction collaborative solution includes the following:

[0053] The blockchain network contains multiple nodes, one of which corresponds to customer A and the other corresponds to customer B. The transaction process between customer A and customer B (for example, customer A is the buyer and customer B is the seller) includes: A uploads a purchase order to the blockchain network and sends it to customer B through the blockchain network. After customer B obtains the purchase order through the blockchain network, it ships the goods and uploads the shipped certificate to the blockchain network for storage and sends it to A through the blockchain network. After receiving the shipped certificate, A pays the digital asset to B through the blockchain network. Once the asset is transferred, the change cannot be withdrawn.

[0054] Under normal trade conditions, this model will not have any problems. However, if there is a problem with the off-chain transaction, for example, customer A has not received the goods, in this case, A has transferred the digital assets to B, that is, the on-chain transaction has been completed, but A has not received the goods, that is, the off-chain transaction has not been completed. This will cause A to suffer property losses. Although the on-chain transaction retains the transaction evidence information and the two parties to the transaction cannot deny it, it is difficult to provide evidence for off-chain transactions, which may even cause more trouble to one party. How to ensure the property security of both parties to the transaction in the process of transactions based on the blockchain network is a hot research topic in this field.

[0055] The following is an explanation of the application environment of the blockchain-based data processing method provided in the embodiment of the present application:

[0056] like Figure 1 As shown, Figure 1 A schematic diagram of the structure of a blockchain network is shown, wherein the blockchain network includes multiple nodes, including a first node 101, a second node 102, and multiple candidate nodes 103, wherein the first node 101 is a node that initiates a transaction, the second node 102 is a node that passively participates in the transaction, and the multiple candidate nodes 103 are the remaining nodes other than the first node and the second node, and one or more of the candidate nodes 103 can assume the role of managing the transaction activities between the first node 101 and the second node 102. The first node 101, the second node 102, and the multiple candidate nodes 103 can communicate with each other to facilitate data synchronization.

[0057] In the embodiment of the present application, the first node 101, the second node 102 and the plurality of candidate nodes 103 may be implemented in software form or in hardware form. When implemented in hardware form, it may be a laptop computer, a desktop computer, a mobile terminal, a portable wearable device, etc.

[0058] In one embodiment, Figure 2 As shown, a data processing method is provided, which can be applied to Figure 1The blockchain network shown includes a first node, a second node, and a plurality of candidate nodes. The method includes the following steps:

[0059] Step 201: For each candidate node, the candidate node receives a transaction request sent by the first node.

[0060] Among them, the transaction request carries the identity information of the management node.

[0061] In the embodiment of the present application, the first node is the node that initiates the transaction. The first node can generate a transaction request based on its own needs and broadcast the transaction request, so that each node in the blockchain network can receive the transaction request sent by the first node.

[0062] The identity information of the management node may be a node identifier, a number, etc. of the management node.

[0063] Step 202: The candidate node determines whether the candidate node is a management node according to the identity information of the management node. If the candidate node is a management node, a transaction start instruction is sent to the second node according to the transaction request.

[0064] The transaction start instruction is used to instruct the second node to perform a transaction operation.

[0065] In an embodiment of the present application, after receiving a transaction request, each candidate node will perform the following operations: the candidate node obtains the identity information of the management node from the transaction request, and then compares the candidate node's own identity information with the identity information of the management node. If the candidate node's own identity information and the identity information of the management node are inconsistent, that is, it is determined that the candidate node is not the management node corresponding to the transaction request, the candidate node only records the transaction request without processing it.

[0066] If the candidate node's identity information is consistent with that of the management node, the candidate node determines itself as the management node corresponding to the transaction request, and the management node can generate a transaction start instruction and broadcast the transaction start instruction, so that all nodes in the blockchain network can receive the transaction start instruction.

[0067] Accordingly, all nodes receiving the transaction initiation instruction need to determine whether they are the second node indicated by the transaction initiation instruction, and if so, perform transaction operations based on the transaction initiation instruction. If not, record the transaction initiation instruction without processing.

[0068] Optionally, the transaction initiation instruction may carry the identity information of the second node, and each node that receives the transaction initiation instruction determines whether it is the second node based on the identity information of the second node. If the node that receives the transaction initiation instruction is the second node, the second node performs the transaction operation according to the transaction initiation instruction. If the node that receives the transaction initiation instruction is not the second node, the transaction initiation instruction is recorded without processing.

[0069] Among them, the second node performs a transaction operation according to the transaction initiation instruction, which may be, for example, an on-chain transaction operation, or may be an off-chain transaction operation.

[0070] Optionally, in an embodiment of the present application, the transaction request may also carry identity information of the first node and identity information of the second node.

[0071] When the candidate node determines that it is the management node corresponding to the transaction request based on the identity information of the management node, the management node can generate a transaction start instruction based on the identity information of the second node carried in the transaction request, so that the transaction start instruction carries the identity information of the second node. In this way, the node that receives the transaction start instruction determines whether it is the second node based on the identity information of the second node.

[0072] Optionally, the second node may obtain some vouchers that can represent the transaction status, i.e., transaction vouchers, during the transaction operation. For example, the transaction vouchers may be shipping certificates, progress status, etc. The second node may send these transaction vouchers to the management node, wherein the sending method is that the second node sends the transaction vouchers to each node in the blockchain network by broadcasting. Each node, including the management node, receives and stores the transaction vouchers sent by the second node to facilitate tracking of the transaction operation process.

[0073] In actual applications, the first node can initiate multiple transaction requests, and different transaction requests may correspond to different second nodes and management nodes. In addition, it may happen that in a transaction request, A is the transaction initiator, that is, the first node, while in another transaction request, A is the transaction participant, that is, the second node. Different transactions between the same transaction parties can specify different candidate nodes as management nodes.

[0074] Accordingly, a candidate node may be the management node of multiple transaction requests at the same time. Therefore, in order to distinguish each transaction request, the transaction request needs to carry a transaction identifier. Accordingly, when the management node generates a transaction start instruction, the transaction start instruction also carries a transaction identifier. In this way, the second node can distinguish the transaction request corresponding to the received transaction start instruction.

[0075] In the embodiment of the present application, the transaction request generated by the first node and the transaction start instruction generated by the management node are broadcast to all nodes in the blockchain network, and all nodes in the blockchain network record the transaction process, thereby achieving the purpose of traceability of the transaction process.

[0076] Step 203: When the management node receives the transaction status message sent by the first node, it manages the digital assets in the multi-signature account according to the transaction status message.

[0077] The transaction status message indicates whether the transaction is successful or failed during the transaction operation.

[0078] In actual applications, when the second node performs a transaction operation, the first node that performs the actual transaction with the second node can obtain the status of the transaction operation, and the actual status of the transaction operation includes transaction success and transaction failure. In this way, the first node can generate transaction status information based on the status of the transaction operation and broadcast the transaction status information.

[0079] The transaction status information may include an identifier of a transaction request, so that when the management node receives the transaction status information, it can determine which transaction request the transaction status information corresponds to.

[0080] After the management node identifies which transaction request the transaction status information corresponds to based on the received transaction status message, it can determine the multi-signature account that needs to be managed based on the transaction request corresponding to the transaction status message and manage the digital assets in the multi-signature account.

[0081] The following is an explanation of the multi-signature account and the management of digital assets in the multi-signature account:

[0082] First, the multi-signature account is the account corresponding to the first node and the management node. The first node or the management node can generate the account address of the multi-signature account corresponding to the first node and the management node based on the public key of the first node and the management node.

[0083] In fact, any node in the blockchain network can determine the account address of the multi-signature account corresponding to the first node and the management node based on the public key of the first node and the public key of the management node.

[0084] It should be noted that before the first node sends a transaction request to the management node, it needs to transfer digital assets to the multi-signature account. Specifically, the first node can generate and broadcast a transfer message, which indicates that the first node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account. In this way, each node in the blockchain network can receive the transfer message, and each node in the blockchain network (including the management node) respectively performs the operation of subtracting the preset digital assets from the account corresponding to the first node and adding the preset digital assets to the multi-signature account in the account books they maintain according to the transfer message. When each node in the blockchain network completes the update of their respective account books, it means that the preset digital assets in the account corresponding to the first node are transferred to the multi-signature account.

[0085] Accordingly, the transaction request may carry a transaction amount, which is the resource value of the digital asset that the first node needs to pay to the second node. Before the management node sends a transaction start instruction to the second node, the management node can detect whether the digital asset in the multi-signature account is greater than the transaction amount carried in the transaction request based on the transaction request. If it is greater than or equal to the transaction amount, the management node sends a transaction start instruction to the second node. If it is less than the transaction amount, the management node determines that the transaction condition is not met. In this case, the management node does not send a transaction start instruction to the second node.

[0086] Second, the process of the management node managing the digital assets in the multi-signature account may include the following: the management node may perform operations such as transfer in / out / freeze on the multi-signature account based on status information such as transaction success or transaction failure.

[0087] Optionally, the management node may generate a management operation message according to status information such as transaction success or transaction failure, and broadcast the management operation message. The management operation message includes at least one of a transfer-in operation message, a transfer-out operation message, a freeze operation message, and the like.

[0088] All nodes in the blockchain network can receive the management operation message and update their maintained ledgers based on the management operation message. At the same time, the management node also needs to update the ledger it maintains based on the management operation message.

[0089] In the data processing method provided in the embodiment of the present application, the first node initiates a transaction request and broadcasts it, so that all nodes in the blockchain network receive and store the transaction request. After each candidate node receives the transaction request, it can determine whether it is the management node of the transaction request by comparing its own identity information with the identity information of the management node. If so, the candidate node manages the transaction request as a management node, and its management process includes: the management node generates a transaction start instruction and broadcasts it, so that all nodes in the blockchain network receive and store the transaction start instruction. The second node performs a transaction operation based on the transaction start instruction. Correspondingly, the first node obtains the status of the transaction operation, generates a transaction status message based on it and broadcasts it, so that all nodes in the blockchain network receive and store the transaction status message. The management node manages the multi-signature account corresponding to the first node and the management node according to the received transaction status information, and realizes the purpose of managing the digital assets of the on-chain account according to the status of the off-chain transaction, so that the on-chain transaction can be synchronized with the off-chain transaction, and the reliability and security of the on-chain and off-chain transaction process can be improved.

[0090] In the following, in the embodiment of the present application, the process in which the management node manages the digital assets in the multi-signature account according to the transaction status message includes the following two aspects: the first aspect: if the transaction status message indicates that the transaction is successful during the transaction operation, the management node transfers the digital assets in the multi-signature account to the account corresponding to the second node. The second aspect: if the transaction status message indicates that the transaction fails during the transaction operation, the management node returns the digital assets in the multi-signature account to the account corresponding to the first node.

[0091] The following is a detailed description of these two aspects.

[0092] First aspect:

[0093] If the transaction status message indicates that the transaction is successful during the transaction operation, it means that the off-chain transaction has been successful. In this case, the management node needs to complete the on-chain transaction based on its management function, that is, transfer the digital assets in the multi-signature account to the account corresponding to the second node.

[0094] In an optional implementation, the process of the management node transferring the digital assets in the multi-signature account to the account corresponding to the second node includes the following: the management node generates and broadcasts the transfer transaction information, so that each node in the blockchain network can receive and store the transfer transaction information, and the transfer transaction information indicates that the digital assets in the multi-signature account are transferred to the account corresponding to the second node. The management node and each node that receives the transfer transaction information respectively perform the operation of subtracting the digital assets corresponding to the preset resource value from the multi-signature account in the account books they maintain, and adding the digital assets corresponding to the preset resource value to the account corresponding to the second node. When each node in the blockchain network completes the update of their own account books, it means that the digital assets in the multi-signature account are transferred to the account corresponding to the second node.

[0095] In another optional implementation, such as Figure 3 As shown:

[0096] Step 301: After receiving the transaction status message, the management node receives the first digital signature and first identity information sent by the first node.

[0097] After the first node broadcasts the transaction status message, it can also generate a first digital signature, which is a signature of the identity information of the first node. Then the first node broadcasts the first digital signature and the identity information of the first node, so that all nodes in the blockchain network can receive the first digital signature and the identity information of the first node.

[0098] The first digital signature indicates that the first node grants the management node the authority to transfer the digital assets in the multi-signature account. If the transaction is successful, the first node grants the management node the authority to transfer the digital assets in the multi-signature account by broadcasting the first digital signature.

[0099] The first node generates the first digital signature means that the first node encrypts the identity information and transaction information of the first node based on its own private key to obtain the first digital signature.

[0100] Step 302: After receiving the first digital signature, the management node generates a second digital signature, and transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0101] Digital assets can only be transferred out when the account has multiple signatures that meet the requirements.

[0102] After receiving the first digital signature, the management node generates and broadcasts a second digital signature. The second digital signature indicates that the management node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the second node.

[0103] In this way, each node in the blockchain network can receive the first digital signature and the second digital signature. In this case, each node in the blockchain network can determine whether the asset transfer-out conditions of the multi-signature account are met based on the first digital signature and the second digital signature. If met, each node will perform the operation of subtracting the digital assets corresponding to the preset resource value from the multi-signature account in its maintained account book and adding the digital assets corresponding to the preset resource value to the account corresponding to the second node. When each node in the blockchain network completes the update of its own account book, it means that the digital assets in the multi-signature account are transferred to the account corresponding to the second node.

[0104] It should be noted that the generation of the second digital signature by the management node refers to that the management node encrypts the identity information and transaction information of the management node based on its own private key to obtain the second digital signature.

[0105] In this scheme, the first node broadcasts the first digital signature and the identity information of the first node when it is determined that the transaction is successful. That is to say, the first node grants the management node the authority to transfer digital assets from the multi-signature account when the transaction is successful.

[0106] In another optional implementation, the embodiment of the present application also provides a solution, when the first node initiates a transaction request, it grants the management node the authority to transfer digital assets from the multi-signature account. Figure 4 shown.

[0107] Step 401: The management node obtains the identity information and the first digital signature of the first node according to the transaction request.

[0108] In the embodiment of the present application, the transaction request also includes the first digital signature of the first node and the identity information of the first node, wherein the first digital signature indicates that the first node grants the management node the authority to transfer the digital assets in the multi-signature account. This means that when the management node receives the transaction request, it obtains the authority to transfer the digital assets from the multi-signature account.

[0109] Step 402: The management node sends a transaction start instruction to the second node, and receives a transaction status message sent by the first node.

[0110] The transaction status message indicates whether the transaction is successful or failed during the transaction operation.

[0111] Step 403: The management node generates a second digital signature based on the transaction status information.

[0112] When the management node receives the transaction status information sent by the first node, and the transaction status information indicates that the transaction is successful during the transaction operation, the management node generates and broadcasts a second digital signature. The second digital signature indicates that the management node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the second node.

[0113] In this way, each node in the blockchain network can receive the first digital signature and the second digital signature, which means that the asset transfer-out conditions of the multi-signature account are met. After receiving the first digital signature and the second digital signature, each node in the blockchain network (including the first node, the second node, and the management node) determines the asset transfer-out conditions of the multi-signature account corresponding to the first node and the management node, and then each node performs the operation of subtracting the digital assets corresponding to the preset resource value from the multi-signature account in the account book maintained by each node, and adding the digital assets corresponding to the preset resource value to the account corresponding to the second node. When each node in the blockchain network completes the update of their own account books, it means that the digital assets in the multi-signature account are transferred to the account corresponding to the second node.

[0114] In another optional implementation, after receiving the first digital signature, the management node may also perform signature verification on the first digital signature. If the signature verification passes, it means that the first digital signature is valid, and then the management node generates a second digital signature. If the signature verification fails, it is determined that the first digital signature is invalid.

[0115] Optionally, the management node may verify the first digital signature based on the identity information and transaction information of the first node.

[0116] Optionally, the management node may perform a hash operation on the identity information and transaction information of the first node to obtain a first hash result, and decrypt the first digital signature to obtain a second hash result. If the first hash result and the second hash result are consistent, it is determined that the signature verification has passed; if they are inconsistent, the signature verification has failed.

[0117] In practical applications, after receiving the first digital signature, each node in the blockchain network can verify the first digital signature to determine whether the first digital signature is valid. Correspondingly, after receiving the second digital signature, each node in the blockchain network can also verify the second digital signature to determine whether the second digital signature is valid, and then determine whether the asset transfer-out conditions of the multi-signature account corresponding to the first node and the management node are met based on the valid first digital signature and the second digital signature.

[0118] It should be noted that the process of each node in the blockchain network verifying the first digital signature and the second digital signature can refer to the process of the management node verifying the first digital signature, which will not be repeated here.

[0119] Second aspect:

[0120] If the transaction status message indicates that the transaction failed during the transaction operation, it means that the off-chain transaction has failed. In this case, the management node needs to terminate the transaction to the account corresponding to the second node based on its management function and establish a new transfer transaction. The new transfer transaction will return the digital assets in the multi-signature account to the account corresponding to the first node. Specifically, Figure 5 shown.

[0121] Step 501: The management node generates transfer transaction information and broadcasts the transfer transaction information.

[0122] The management node establishing a new transfer transaction means that the management node generates transfer transaction information and broadcasts the transfer transaction information, wherein the transfer transaction information carries the digital signature of the management node, and the digital signature of the management node indicates that the management node grants the first node the authority to transfer the digital assets in the multi-signature account to the account corresponding to the first node.

[0123] Optionally, the transfer transaction information may also include the identity information of the management node, the transfer transaction identifier, the identity information of the first node, and the account address of the multi-signature account. In this way, after receiving the transfer transaction information, each node in the blockchain network can determine the identity of the transfer initiator according to the identity information of the management node, determine the identity of the transfer recipient according to the identity information of the first node, and determine the transfer account according to the account address of the multi-signature account. At the same time, it is determined whether the transfer-out conditions of the multi-signature account are met according to the digital signature of the management node. If they are met, each node executes the operation of subtracting the digital assets corresponding to the preset resource value from the multi-signature account in the account books they maintain, and adding the digital assets corresponding to the preset resource value to the account corresponding to the first node. If the transfer-out conditions are not met, only storage is performed without updating the account book.

[0124] Step 502: The management node receives the digital signature associated with the transfer transaction information sent by the first node, and transfers the digital assets in the multi-signature account to the account corresponding to the first node.

[0125] Among them, after the first node receives the transfer transaction information, it can generate and broadcast a digital signature associated with the transfer transaction information. The digital signature associated with the transfer transaction information sent by the first node indicates that the first node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the first node.

[0126] After receiving the digital signature associated with the transfer transaction information broadcast by the first node, each node in the blockchain network (including the management node) determines whether the transfer-out condition of the multi-signature account is met based on the digital signature of the management node and the digital signature associated with the transfer transaction information. If it is met, each node performs the operation of subtracting the digital assets corresponding to the preset resource value from the multi-signature account in the account book maintained by each node, and adding the digital assets corresponding to the preset resource value to the account corresponding to the first node. If it does not meet the transfer-out condition, it is only stored without updating the account book.

[0127] It should be noted that when the management node returns the digital assets in the multi-signature account to the account corresponding to the first node, the first node needs to verify the digital signature of the management node, and the management node also needs to verify the digital signature associated with the transfer transaction information sent by the first node.

[0128] In an embodiment of the present application, when a transaction fails, the management node returns the digital assets in the multi-signature account to the account corresponding to the first node, thereby synchronizing the status of the on-chain transaction with the off-chain transaction.

[0129] In another embodiment of the present application, Figure 6 As shown, a data processing system based on blockchain is also provided, which is applied to a blockchain network, wherein the blockchain network includes a first node, a second node, and a plurality of candidate nodes, and the system includes:

[0130] Step 601: The first node broadcasts a transaction request, which carries the identity information of the management node.

[0131] Step 602: Each candidate node receives a transaction request and determines whether the candidate node is a management node according to the identity information of the management node. If the candidate node is a management node, a transaction start instruction is sent to the second node according to the transaction request.

[0132] Step 603: The second node performs a transaction operation according to the transaction initiation instruction.

[0133] Step 604: The first node broadcasts a transaction status message, where the transaction status message indicates whether the transaction is successful or failed during the transaction operation.

[0134] Step 605: When the management node receives the transaction status message, it manages the digital assets in the multi-signature account according to the transaction status message. The multi-signature account is the account corresponding to the first node and the management node.

[0135] It should be understood that although Figures 2 to 6The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 2 to 6 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0136] In one embodiment, Figure 7 As shown, a data processing device 700 is provided, which is applied to a candidate node in a blockchain network, wherein the blockchain network includes a first node, a second node, and a plurality of candidate nodes, and the device includes: a receiving module 701, a determining module 702, and a management module 703, wherein:

[0137] The receiving module 701 is used to receive a transaction request sent by the first node, where the transaction request carries the identity information of the management node;

[0138] The determination module 702 is used to determine whether the candidate node is a management node according to the identity information of the management node, and if the candidate node is a management node, send a transaction start instruction to the second node according to the transaction request, where the transaction start instruction is used to instruct the second node to perform a transaction operation;

[0139] Management module 703 is used to manage the digital assets in the multi-signature account according to the transaction status message when receiving the transaction status message sent by the first node; the transaction status message indicates the success or failure of the transaction during the transaction operation, and the multi-signature account is the account corresponding to the first node and the management node.

[0140] In one embodiment, the management module 703 is specifically used to: if the transaction status message indicates that the transaction is successful during the transaction operation, the management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0141] In one embodiment, the transaction request also includes a first digital signature of the first node and the identity information of the first node. The first digital signature indicates that the first node grants the management node the authority to transfer digital assets in the multi-signature account. The management module 703 is specifically used for: the management node verifies the first digital signature based on the identity information of the first node; when it is determined that the first digital signature is valid, the management node generates a second digital signature and broadcasts the second digital signature; the second digital signature indicates that the management node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the second node; the management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0142] In one embodiment, the management module 703 is specifically used to: the management node performs signature verification on the identity information of the first node;

[0143] The management node detects the signature verification result. If the signature verification passes, the first digital signature is determined to be valid. If the signature verification fails, the first digital signature is determined to be invalid.

[0144] In one embodiment, the management module 703 is specifically used to: if the transaction status message indicates that the transaction failed during the transaction operation, the management node returns the digital assets in the multi-signature account to the account corresponding to the first node.

[0145] In one embodiment, the management module 703 is specifically used to: the management node generates transfer transaction information and broadcasts the transfer transaction information, the transfer transaction information carries the digital signature of the management node, and the digital signature of the management node indicates that the management node grants the first node the authority to transfer the digital assets in the multi-signature account to the account corresponding to the first node;

[0146] The management node receives the digital signature associated with the transfer transaction information sent by the first node, where the digital signature associated with the transfer transaction information sent by the first node indicates that the first node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the first node;

[0147] The management node transfers the digital assets in the multi-signature account to the account corresponding to the first node.

[0148] In one embodiment, the receiving module 701 is specifically used for:

[0149] The management node generates a multi-signature account based on the public key of the first node and the public key of the management node;

[0150] The management node receives a transfer message sent by the first node, where the transfer message indicates that the first node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account;

[0151] The management node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account according to the transfer message.

[0152] In one embodiment, the receiving module 701 is specifically used for:

[0153] The management node receives and stores the transaction certificate sent by the second node, where the transaction certificate is the certificate obtained by the second node during the transaction operation.

[0154] For the specific definition of the data processing device, please refer to the definition of the data processing method above, which will not be repeated here. Each module in the above data processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0155] In one embodiment, a computer device is provided, the internal structure diagram of which can be as follows: Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data processing method is implemented.

[0156] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0157] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0158] For each candidate node, the candidate node receives a transaction request sent by the first node, and the transaction request carries the identity information of the management node;

[0159] The candidate node determines whether the candidate node is a management node according to the identity information of the management node. If the candidate node is a management node, the candidate node sends a transaction start instruction to the second node according to the transaction request, and the transaction start instruction is used to instruct the second node to perform a transaction operation;

[0160] When the management node receives the transaction status message sent by the first node, it manages the digital assets in the multi-signature account according to the transaction status message; the transaction status message indicates whether the transaction is successful or failed during the transaction operation, and the multi-signature account is the account corresponding to the first node and the management node.

[0161] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0162] If the transaction status message indicates that the transaction is successful during the transaction operation, the management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0163] In one embodiment, the transaction request further includes a first digital signature of the first node and identity information of the first node, wherein the first digital signature indicates that the first node grants the management node permission to transfer digital assets in the multi-signature account, and the processor further implements the following steps when executing the computer program:

[0164] The management node verifies the first digital signature according to the identity information of the first node;

[0165] If the first digital signature is determined to be valid, the management node generates a second digital signature and broadcasts the second digital signature; the second digital signature indicates that the management node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the second node;

[0166] The management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0167] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0168] The management node verifies the signature of the first node’s identity information

[0169] The management node detects the signature verification result. If the signature verification passes, the first digital signature is determined to be valid. If the signature verification fails, the first digital signature is determined to be invalid.

[0170] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0171] If the transaction status message indicates that the transaction failed during the transaction operation, the management node will return the digital assets in the multi-signature account to the account corresponding to the first node.

[0172] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0173] The management node generates transfer transaction information and broadcasts the transfer transaction information. The transfer transaction information carries the digital signature of the management node. The digital signature of the management node indicates that the management node grants the first node the authority to transfer the digital assets in the multi-signature account to the account corresponding to the first node.

[0174] The management node receives the digital signature associated with the transfer transaction information sent by the first node, where the digital signature associated with the transfer transaction information sent by the first node indicates that the first node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the first node;

[0175] The management node transfers the digital assets in the multi-signature account to the account corresponding to the first node.

[0176] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0177] The management node generates a multi-signature account based on the public key of the first node and the public key of the management node;

[0178] The management node receives a transfer message sent by the first node, where the transfer message indicates that the first node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account;

[0179] The management node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account according to the transfer message.

[0180] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0181] The management node receives and stores the transaction certificate sent by the second node, where the transaction certificate is the certificate obtained by the second node during the transaction operation.

[0182] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0183] For each candidate node, the candidate node receives a transaction request sent by the first node, and the transaction request carries the identity information of the management node;

[0184] The candidate node determines whether the candidate node is a management node according to the identity information of the management node. If the candidate node is a management node, the candidate node sends a transaction start instruction to the second node according to the transaction request, and the transaction start instruction is used to instruct the second node to perform a transaction operation;

[0185] When the management node receives the transaction status message sent by the first node, it manages the digital assets in the multi-signature account according to the transaction status message; the transaction status message indicates whether the transaction is successful or failed during the transaction operation, and the multi-signature account is the account corresponding to the first node and the management node.

[0186] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the transaction status message indicates that the transaction is successful during the transaction operation, the management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0187] In one embodiment, the transaction request further includes a first digital signature of the first node and identity information of the first node, the first digital signature indicates that the first node grants the management node permission to transfer digital assets in the multi-signature account, and when the computer program is executed by the processor, the following steps are also implemented: the management node verifies the first digital signature according to the identity information of the first node;

[0188] If the first digital signature is determined to be valid, the management node generates a second digital signature and broadcasts the second digital signature; the second digital signature indicates that the management node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the second node;

[0189] The management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

[0190] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the management node performs signature verification on the identity information of the first node;

[0191] The management node detects the signature verification result. If the signature verification passes, the first digital signature is determined to be valid. If the signature verification fails, the first digital signature is determined to be invalid.

[0192] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the transaction status message indicates that the transaction failed during the transaction operation, the management node returns the digital assets in the multi-signature account to the account corresponding to the first node.

[0193] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the management node generates transfer transaction information and broadcasts the transfer transaction information, the transfer transaction information carries the digital signature of the management node, and the digital signature of the management node indicates that the management node grants the first node the authority to transfer the digital assets in the multi-signature account to the account corresponding to the first node;

[0194] The management node receives the digital signature associated with the transfer transaction information sent by the first node, where the digital signature associated with the transfer transaction information sent by the first node indicates that the first node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the first node;

[0195] The management node transfers the digital assets in the multi-signature account to the account corresponding to the first node.

[0196] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the management node generates a multi-signature account according to the public key of the first node and the public key of the management node;

[0197] The management node receives a transfer message sent by the first node, where the transfer message indicates that the first node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account;

[0198] The management node transfers the preset digital assets in the account corresponding to the first node to the multi-signature account according to the transfer message.

[0199] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the management node receives and stores the transaction certificate sent by the second node, and the transaction certificate is the certificate obtained by the second node during the transaction operation.

[0200] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0201] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0202] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A data processing method, characterized in that: Applied to a blockchain network, the blockchain network includes a first node, a second node, and a plurality of candidate nodes, the method includes: For each of the candidate nodes, the candidate node receives a transaction request sent by the first node, wherein the transaction request carries identity information of the management node; The candidate node determines whether the candidate node is the management node according to the identity information of the management node. If the candidate node is the management node, the candidate node sends a transaction start instruction to the second node according to the transaction request, and the transaction start instruction is used to instruct the second node to perform a transaction operation; if the identity information of the candidate node itself is inconsistent with the identity information of the management node, the candidate node only records the transaction request without processing it; When the management node receives the transaction status message sent by the first node, the management node manages the digital assets in the multi-signature account according to the transaction status message; the transaction status message indicates whether the transaction is successful or failed during the transaction operation; the multi-signature account is an account generated based on the public key of the first node and the public key of the management node, and preset digital assets are transferred into it in advance, and the preset digital assets are transferred from the account corresponding to the first node to the multi-signature account.

2. The method according to claim 1, characterized in that The managing of the digital assets in the multi-signature account according to the transaction status message includes: If the transaction status message indicates that the transaction is successful during the transaction operation, the management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

3. The method according to claim 2, characterized in that The transaction request also includes a first digital signature of the first node and identity information of the first node, wherein the first digital signature indicates that the first node grants the management node permission to transfer the digital assets in the multi-signature account, and the transferring of the digital assets in the multi-signature account to the account corresponding to the second node includes: The management node verifies the first digital signature according to the identity information of the first node; If it is determined that the first digital signature is valid, the management node generates a second digital signature and broadcasts the second digital signature; the second digital signature indicates that the management node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the second node; The management node transfers the digital assets in the multi-signature account to the account corresponding to the second node.

4. The method according to claim 3, characterized in that The management node verifies the first digital signature according to the identity information of the first node, including: The management node performs signature verification on the identity information of the first node; The management node detects the signature verification result. If the signature verification passes, it is determined that the first digital signature is valid; if the signature verification fails, it is determined that the first digital signature is invalid.

5. The method according to claim 1, characterized in that: The managing of the digital assets in the multi-signature account according to the transaction status message includes: If the transaction status message indicates that the transaction failed during the transaction operation, the management node returns the digital assets in the multi-signature account to the account corresponding to the first node.

6. The method according to claim 5, characterized in that The management node returns the digital assets in the multi-signature account to the account corresponding to the first node, including: The management node generates transfer transaction information and broadcasts the transfer transaction information, wherein the transfer transaction information carries the digital signature of the management node, and the digital signature of the management node indicates that the management node grants the first node the authority to transfer the digital assets in the multi-signature account to the account corresponding to the first node; The management node receives the digital signature associated with the transfer transaction information sent by the first node, where the digital signature associated with the transfer transaction information sent by the first node indicates that the first node agrees to transfer the digital assets in the multi-signature account to the account corresponding to the first node; The management node transfers the digital assets in the multi-signature account to the account corresponding to the first node.

7. The method according to claim 1, characterized in that The method further comprises: The management node generates the multi-signature account according to the public key of the first node and the public key of the management node; The management node receives a transfer message sent by the first node, where the transfer message indicates that the first node transfers a preset digital asset in an account corresponding to the first node to the multi-signature account.

8. The method according to claim 1, characterized in that: The method further comprises: The management node receives and stores the transaction credential sent by the second node, where the transaction credential is a credential obtained by the second node during the transaction operation.

9. A data processing system based on blockchain, characterized in that: Applied to a blockchain network, the blockchain network includes a first node, a second node, and a plurality of candidate nodes, and the system includes: The first node is used to broadcast a transaction request, wherein the transaction request carries identity information of the management node; Each candidate node is used to receive the transaction request, and determine whether the candidate node is the management node according to the identity information of the management node, and if the candidate node is the management node, send a transaction start instruction to the second node according to the transaction request; if the identity information of the candidate node itself is inconsistent with the identity information of the management node, the candidate node only records the transaction request without processing it; The second node is used to perform a transaction operation according to the transaction initiation instruction; The first node is further used to broadcast a transaction status message, wherein the transaction status message indicates a transaction success or a transaction failure during the transaction operation; The management node is further used to manage the digital assets in the multi-signature account according to the transaction status message when receiving the transaction status message, wherein the multi-signature account is an account generated based on the public key of the first node and the public key of the management node, and a preset digital asset is transferred into it in advance, and the preset digital asset is transferred from the account corresponding to the first node to the multi-signature account.

10. A data processing device, characterized in that: Applied to a candidate node in a blockchain network, the blockchain network includes a first node, a second node, and a plurality of the candidate nodes, the device includes: A receiving module, configured to receive a transaction request sent by the first node, wherein the transaction request carries identity information of the management node; a determination module, configured to determine whether the candidate node is the management node according to the identity information of the management node; if the candidate node is the management node, send a transaction start instruction to the second node according to the transaction request, wherein the transaction start instruction is used to instruct the second node to perform a transaction operation; if the identity information of the candidate node itself is inconsistent with the identity information of the management node, the candidate node only records the transaction request without processing it; A management module is used to manage the digital assets in the multi-signature account according to the transaction status message when receiving the transaction status message sent by the first node; the transaction status message indicates whether the transaction is successful or failed during the transaction operation; the multi-signature account is an account generated based on the public key of the first node and the public key of the management node, and preset digital assets are transferred into it in advance, and the preset digital assets are transferred from the account corresponding to the first node to the multi-signature account.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Cross-chain transaction method of block chain, management node and block chain network

    CN111080449A

  • Transaction system and method, and nodes in transaction system

    WO2020233404A1