Blockchain-based data processing method, apparatus, device, and storage medium

By merging business transactions on the blockchain and verifying that the amount of assets transferred out is greater than the amount of assets transferred in, the problem of inflexible transaction processing in the UTXO model is solved, and the coordinated transfer of multiple transactions and the improvement of flexibility are realized, making it suitable for scenarios such as crowdfunding.

CN122175578APending Publication Date: 2026-06-09TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411794244.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

The existing blockchain UTXO model has low flexibility in transaction processing and cannot be applied to scenarios such as crowdfunding transactions. It requires pre-constructing all inputs and outputs and signing them, which makes transaction processing inflexible.

Method used

By acquiring the first and second business transactions, a merged business transaction is formed and stored in the blockchain after verification. The amount of outgoing asset data in the merged transaction is greater than or equal to the amount of incoming asset data, thereby realizing the coordinated transfer of assets and improving the flexibility of transaction processing.

Benefits of technology

Without the need to pre-construct signatures for all inputs and outputs, when multiple objects collaborate to complete a transaction, each object only needs to process its own transaction data. When the conditions for collaborative completion are met, the transactions can be merged, which improves the flexibility of transaction processing and is suitable for multi-party collaborative asset transfer scenarios such as crowdfunding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122175578A_ABST
    Figure CN122175578A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of data processing method, device, equipment based on block chain, storage medium, it is related to computer technology field, the method comprises: obtaining first business transaction, first business transaction is added to transaction pool;When obtaining the combined business transaction that is composed of first business transaction and second business transaction, the combined business transaction is verified, when verifying, the combined business transaction is stored in block chain;The sum of the transfer-out asset data amount included in combined business transaction is greater than or equal to the sum of the transfer-in asset data amount included in combined business transaction;Based on the combined asset transfer-out information and combined asset transfer-in information in combined business transaction, first virtual asset in asset to be transferred-out object is transferred to asset to be transferred-in object, and first business transaction and second business transaction are removed from transaction pool.The flexibility of transaction processing can be improved by using the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a data processing method, apparatus, device, and storage medium based on blockchain. Background Technology

[0002] Unspent Transaction Output (UTXO) models in blockchain are widely used and have recently seen further development. More and more users are adopting the UTXO model to transfer assets within blockchain systems. However, current UTXO models require pre-constructing all inputs and outputs for a transaction, then signing it with a private key and populating the unlocking script for each input. Furthermore, because transactions require pre-constructing all inputs and outputs, and each signature object must also cover all inputs and outputs, this results in low transaction processing flexibility and makes it unsuitable for scenarios such as crowdfunding transactions. Summary of the Invention

[0003] This application provides a blockchain-based data processing method, apparatus, device, and storage medium that enables collaborative transfer of transactions and improves the flexibility of transaction processing.

[0004] One embodiment of this application provides a blockchain-based data processing method, which includes:

[0005] Obtain the first business transaction and add it to the transaction pool;

[0006] When a merged business transaction consisting of a first business transaction and a second business transaction is obtained, the merged business transaction is verified. If the verification is successful, the merged business transaction is stored in the blockchain. The sum of the amount of outgoing asset data included in the merged business transaction is greater than or equal to the sum of the amount of incoming asset data included in the merged business transaction. The merged business transaction includes at least one asset to be transferred in, which exists in at least two of the first and second business transactions.

[0007] Based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction, the first virtual asset in the asset to be transferred out object is transferred to the asset to be transferred in object, and the first business transaction and the second business transaction are removed from the transaction pool; the merged asset transfer-out information includes the asset to be transferred out object and the amount of transferred assets; the merged asset transfer-in information includes the asset to be transferred in object and the amount of transferred assets.

[0008] One embodiment of this application provides a blockchain-based data processing device, which includes:

[0009] The transaction acquisition module is used to acquire the first business transaction and add it to the transaction pool.

[0010] The transaction verification module is used to verify the merged business transaction when it is obtained, which consists of the first business transaction and the second business transaction. When the verification is successful, the merged business transaction is stored in the blockchain. The sum of the outgoing asset data included in the merged business transaction is greater than or equal to the sum of the incoming asset data included in the merged business transaction. The merged business transaction includes at least one asset to be transferred in, which exists in at least two business transactions in the first business transaction and the second business transaction.

[0011] The asset transfer module is used to transfer the first virtual asset from the asset to be transferred out object to the asset to be transferred in object based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction, and to remove the first business transaction and the second business transaction from the transaction pool; the merged asset transfer-out information includes the asset to be transferred out object and the amount of asset data to be transferred out; the merged asset transfer-in information includes the asset to be transferred in object and the amount of asset data to be transferred in.

[0012] In one possible implementation, the blockchain-based data processing device further includes a transaction merging module, which is specifically used to perform the following operations:

[0013] Search the transaction pool for the second business transaction that is associated with the first business transaction;

[0014] Obtain information on the first asset transfer-out and the first asset transfer-in from the first business transaction; obtain information on the second asset transfer-out and the second asset transfer-in from the second business transaction.

[0015] If the sum of the amount of transferred-out assets in the first asset transfer-out information and the amount of transferred-out assets in the second asset transfer-out information is greater than or equal to the sum of the amount of transferred-in assets in the first asset transfer-in information and the amount of transferred-in assets in the second asset transfer-in information, then based on the first asset transfer-out information and the second asset transfer-out information, merged asset transfer-out information is generated, and based on the first asset transfer-in information and the second asset transfer-in information, merged asset transfer-in information is generated. The merged asset transfer-out information and the merged asset transfer-in information are combined to obtain the merged business transaction.

[0016] In one possible implementation, the transaction merging module is used to combine the merged asset transfer-out information and the merged asset transfer-in information to obtain the merged business transaction. Specifically, the transaction merging module is used to perform the following operations:

[0017] If the sum of the amount of transferred assets in the first asset transfer-out information and the amount of transferred assets in the second asset transfer-out information is greater than the sum of the amount of transferred assets in the first asset transfer-in information and the amount of transferred assets in the second asset transfer-in information, then based on the merged asset transfer-out information and the merged asset transfer-in information, the remaining asset processing objects are determined from the assets to be transferred out, the difference in the amount of transferred assets is obtained between the sum of the amount of transferred assets and the sum of the amount of transferred assets, and the remaining asset processing information is generated based on the remaining asset processing objects and the difference in the amount of data.

[0018] By combining the information on the transfer out of consolidated assets, the transfer in of consolidated assets, and the disposal of remaining assets, a consolidated business transaction is obtained.

[0019] In one possible implementation, the asset transfer module is also used to perform the following operations:

[0020] Based on the information on the transfer of consolidated assets and the processing of remaining assets in the consolidated business transaction, the second virtual asset in the asset to be transferred out object is transferred to the remaining asset processing object; the data volume of the second virtual asset is equal to the difference in data volume.

[0021] In one possible implementation, the consolidated asset transfer information in the consolidated business transaction includes M asset transfer sub-information items, where M is a positive integer, and the M asset transfer sub-information items include asset transfer sub-information A. i , where i is a positive integer less than or equal to M; when the transaction verification module verifies merged business transactions, it specifically performs the following operations:

[0022] Sub-information A of asset transfer i Obtain asset authorization verification information based on asset transfer sub-information A. i From the transaction index information, retrieve the asset transfer sub-information A. i The corresponding permission lock verification information;

[0023] Obtain the public key of the business object from the asset authorization verification information, and perform hash processing on the public key of the business object to obtain the public key hash of the business object;

[0024] If the public key hash of the business object is the same as the public key hash value in the permission lock verification information, then the signature verification of the business transaction in the asset permission verification information is performed based on the public key of the business object in the asset permission verification information and the verification bit of the signature object, and the signature verification result is obtained. If the signature verification result indicates that the signature verification of the business object signature is passed, then the verification of the merged business transaction is determined to be passed.

[0025] If the public key hash of the business object is different from the public key hash value in the permission lock verification information, then the verification of the merged business transaction is determined to fail.

[0026] In one possible implementation, the transaction verification module is used to perform signature verification on the business transaction signature in the asset authorization verification information based on the public key of the business object and the verification bit of the signature object in the asset authorization verification information. When the signature verification result is obtained, the transaction verification module is specifically used to perform the following operations:

[0027] Based on the signature object verification bit in the asset authorization verification information, obtain the asset transfer sub-information A from the merged business transaction. i The corresponding business signature object is hashed to obtain the business signature object hash.

[0028] Based on the public key of the business object in the asset authorization verification information, the business transaction signature in the asset authorization verification information is decrypted to obtain the business transaction hash;

[0029] If the hash of the business signature object is different from the hash of the business transaction, the signature verification of the business transaction signature in the asset permission verification information will fail and be determined as the signature verification result.

[0030] If the hash of the business signature object is the same as the hash of the business transaction, then the signature verification of the business transaction signature in the asset permission verification information will be determined as the signature verification result.

[0031] In one possible implementation, the number of asset transfer objects included in the merged asset transfer information is N, where N is a positive integer, and the N asset transfer objects include asset transfer object B. j , j is a positive integer less than or equal to N; the asset transfer module is used to transfer the first virtual asset in the asset to be transferred out object to the asset to be transferred in object based on the asset transfer-out information and asset transfer-in information in the merged business transaction. Specifically, the asset transfer module is used to perform the following operations:

[0032] Based on the consolidated asset transfer information in the consolidated business transaction, obtain the virtual assets to be transferred corresponding to the sum of the data volume of the transferred assets from the asset transfer objects;

[0033] From the virtual assets to be transferred, determine the first virtual asset corresponding to the sum of the data volume of the assets to be transferred;

[0034] Obtain the asset B to be transferred from the first virtual asset. j The first virtual sub-asset corresponding to the amount of transferred asset data will be transferred to the asset to be transferred object B. j middle.

[0035] In one possible implementation, when the transaction acquisition module acquires the first business transaction, it specifically performs the following operations:

[0036] Obtain the initial business transaction data and the private key of the object corresponding to the initial business transaction data; the initial business transaction data includes initial asset transfer out information and initial asset transfer in information;

[0037] The initial business transaction data is encrypted using the object's private key to obtain a transaction data signature. The transaction data signature is then added to the initial asset transfer information to obtain the first asset transfer information.

[0038] The initial asset transfer information is identified as the first asset transfer information. Based on the first asset transfer-out information and the first asset transfer information, the first business transaction is generated.

[0039] If the amount of first outgoing data included in the first asset transfer-out information is less than the amount of first incoming data included in the first asset transfer-in information, then the process of adding the first business transaction to the transaction pool will be executed.

[0040] If the amount of first outgoing data included in the first asset transfer-out information is greater than or equal to the amount of first incoming data included in the first asset transfer-in information, then the first business transaction will be stored in the blockchain.

[0041] One embodiment of this application provides a computer device, including a processor, a memory, and an input / output interface;

[0042] The processor is connected to a memory and an input / output interface, respectively. The input / output interface is used to receive and output data, the memory is used to store computer programs, and the processor is used to call the computer programs so that the computer device containing the processor executes the method in one aspect of the embodiments of this application.

[0043] One aspect of this application provides a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor, so that a computer device having the processor performs the method of one aspect of this application.

[0044] One aspect of this application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional embodiments of this application. In other words, when the computer instructions are executed by the processor, they implement the methods provided in various optional embodiments of this application.

[0045] Implementing the embodiments of this application will have the following beneficial effects:

[0046] In this embodiment, a first business transaction is obtained and added to a transaction pool. When a merged business transaction consisting of the first and second business transactions is obtained, the merged business transaction is verified. If the verification is successful, the merged business transaction is stored in the blockchain. The sum of the outgoing asset data included in the merged business transaction is greater than or equal to the sum of the incoming asset data included in the merged business transaction. The merged business transaction includes at least one asset to be transferred in, which exists in at least two business transactions in the first and second business transactions. Based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction, the first virtual asset in the asset to be transferred-out object is transferred to the asset to be transferred-in object, and the first and second business transactions are removed from the transaction pool. The merged asset transfer-out information includes the asset to be transferred out object and the amount of outgoing asset data. The merged asset transfer-in information includes the asset to be transferred in object and the amount of incoming asset data. Through the above process, it is unnecessary to pre-construct all inputs (merged asset transfer-out information) and all outputs (merged asset transfer-in information) of a merged business transaction. When a transaction requires collaboration from multiple objects (or users), each object only needs to generate a transaction for its own transaction data and add it to the pool, without waiting for all transaction data that needs to be collaboratively completed. When multiple transactions in the pool meet the collaborative completion conditions, that is, when the inputs included in the several related business transactions (including the first and second business transactions) are greater than or equal to the outputs, the business transactions that meet the collaborative completion conditions are merged to obtain a merged business transaction. In other words, when the sum of the transferred-out asset data included in the merged business transaction is greater than or equal to the sum of the transferred-in asset data included in the merged business transaction, the collaborative transfer of multiple transactions can be realized, improving the flexibility of transaction processing. Furthermore, it can be applied to multi-party collaborative asset transfer scenarios, such as crowdfunding scenarios, to realize the merging and collaborative transfer of multiple transactions in crowdfunding scenarios. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is a network interaction architecture diagram provided in an embodiment of this application;

[0049] Figure 2 This is a schematic diagram illustrating a scenario of a blockchain-based data processing method provided in an embodiment of this application;

[0050] Figure 3This is a flowchart illustrating a blockchain-based data processing method provided in an embodiment of this application. Figure 1 ;

[0051] Figure 4 This is a flowchart illustrating a blockchain-based data processing method provided in an embodiment of this application. Figure 2 ;

[0052] Figure 5 This is a schematic diagram of a blockchain-based data processing device provided in an embodiment of this application;

[0053] Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0054] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0055] If this application requires the collection of object data (such as user data), a prompt interface or pop-up window will be displayed before and during the collection process. This prompt interface or pop-up window is used to inform the user that certain data is being collected. The data acquisition steps will only begin after the user confirms the prompt interface or pop-up window; otherwise, the process will end. Furthermore, the acquired user data will be used in reasonable and legal scenarios or for legitimate purposes. Optionally, in scenarios where user data needs to be used but user authorization has not been obtained, authorization can be requested from the user, and the user data can only be used after authorization is granted.

[0056] It is understood that, in the specific embodiments of this application, the user data involved requires user permission or consent when the following embodiments of this application are applied to specific products or technologies, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant regions.

[0057] In the embodiments of this application, please refer to Figure 1 , Figure 1This is a network interaction architecture diagram provided in an embodiment of this application. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. It is mainly used to organize data in chronological order and encrypt it into a ledger, making it tamper-proof and forgery-proof. It also allows for data verification, storage, and updating. Essentially, a blockchain is a decentralized database where each node stores the same blockchain. The blockchain network classifies nodes into core nodes, data nodes, and light nodes. Core nodes are responsible for the consensus of the entire blockchain network; that is, core nodes are the consensus nodes in the blockchain network. The process of writing data or generated blocks into the ledger in the blockchain network can be as follows: the client sends data or generated blocks to data nodes or light nodes, and then the data or generated blocks are passed between data nodes or light nodes in the blockchain network in a relay manner until the consensus node receives the data or generated blocks. The consensus node then packages the data into a block and performs consensus with other consensus nodes. After consensus is passed, the block carrying the data is written into the ledger. Alternatively, the blockchain network may include core nodes and data nodes; this is not limited here.

[0058] like Figure 1 As shown, the network interaction architecture may include a core node cluster 101, a data node cluster 102, and a service terminal cluster 103. Figure 1 As shown, the core node cluster 101 may include core node 101a, core node 101b, ..., core node 101n; the data node cluster 102 may specifically include data node 102a, data node 102b, ..., data node 102n; and the service terminal cluster 103 may specifically include service terminal 103a, service terminal 103b, ..., service terminal 103n.

[0059] like Figure 1 As shown, service terminals 103a, 103b, ..., 103n can be network connected to data nodes 102a, 102b, ..., 102n respectively, so that the service terminals can interact with the data nodes through the network connection; data nodes 102a, 102b, ..., 102n can be network connected to core nodes 101a, 101b, ..., 101n respectively, so that the data nodes can interact with the core nodes through the network connection; data nodes 102a, 102b, ..., 102n are interconnected to enable data interaction between data nodes; core nodes 101a, 101b, ..., 101n are interconnected to enable data interaction between core nodes.

[0060] Taking business terminal 103a, data node 102a, and core node 101a as an example, data node 102a can receive data sent by business terminal 103a. Data node 102a can package the data to generate a block and send the block to core node 101a through data node cluster 102. Subsequently, core node 101a can send the above block to other core nodes in its blockchain network according to the node identifier of other core nodes (i.e., consensus nodes). The other core nodes will verify the newly generated block (i.e., reach consensus) and add the above block to their respective ledgers after verification. In this blockchain network, each core node has its own corresponding node identifier. Each core node can also store the node identifiers of other core nodes in the blockchain network. This allows the generated block to be broadcast to other core nodes in the blockchain network based on the node identifiers of other core nodes. The other core nodes will reach a consensus on the newly generated block and add it to their own ledgers after the consensus is passed. This ensures that the transaction data stored on all core nodes in the blockchain network is consistent.

[0061] For ease of understanding, Figure 1 Taking data node 102a as an example, the first business transaction can be made by... Figure 1 The second service transaction, sent from service terminal 103a to data node 102a, can be generated by... Figure 1 The business terminal 103b shown sends data to data node 102a. Both business terminals 103a and 103b can be equipped with resource clients. These resource clients can be used to implement resource management functions and establish communication connections with decentralized application clients based on these functions. A resource client is a tool used to manage and store user digital assets. For example, it can transfer digital assets to other accounts or receive digital assets transferred from other accounts. This resource client can be a hardware device or a software program. It is understood that as various decentralized applications are widely deployed on the blockchain, user activity on the blockchain increases. Generally, when using decentralized applications, users can log in using a blockchain key management tool. The address in this key management tool corresponds to a user on the blockchain, and decentralized applications can obtain this user address from the key management tool through certain interfaces.

[0062] Understandably, a user can send a first business transaction to data node 102a through the resource client in their corresponding business terminal 103a, and add the first business transaction to their own transaction pool. When data node 102a receives a merged business transaction consisting of the first and second business transactions, it can send the merged business transaction to the core node cluster 101 after verifying its validity. After consensus is reached among the core nodes in the core node cluster, the merged business transaction is stored in the blockchain. Furthermore, data node 102a can transfer the first virtual asset from the asset to be transferred out to the asset to be transferred in based on the merged asset transfer-out and merged asset transfer-in information in the merged business transaction, and remove the first and second business transactions from the transaction pool. The merged asset transfer-out information includes the asset to be transferred out and the amount of asset data to be transferred out; the merged asset transfer-in information includes the asset to be transferred in and the amount of asset data to be transferred in. Taking the node account corresponding to business terminal 103n as an example, the assets to be transferred out include the node accounts corresponding to business terminal 103a and business terminal 103b. Data node 102a can obtain the first virtual asset from the node accounts corresponding to business terminal 103a and business terminal 103b, and transfer the first virtual asset to the node account corresponding to business terminal 103n.

[0063] Through the above process, it is not necessary to pre-construct all inputs (merged asset transfer-out information) and all outputs (merged asset transfer-in information) of a merged business transaction. Only when the sum of the inputs (the amount of transferred-out asset data) in several related business transactions (including the first and second business transactions) is greater than or equal to the sum of the outputs (the amount of transferred-in asset data) can the several business transactions be merged to obtain a merged business transaction. That is, when the sum of the transferred-out asset data in the merged business transaction is greater than or equal to the sum of the transferred-in asset data in the merged business transaction, the coordinated transfer of multiple transactions can be achieved and stored in the blockchain, improving the flexibility of transaction processing. In this way, multiple business terminals can be responsible for independently processing their own transaction data when collaboratively transferring assets. When the conditions for completing the transaction collaboration are met, they can directly obtain business transactions that meet the conditions from the transaction pool and merge them onto the blockchain. This allows this application to be applied to multi-party collaborative asset transfer scenarios, such as crowdfunding scenarios, to achieve the merging and coordinated transfer of multiple transactions in crowdfunding scenarios.

[0064] It is understood that the business terminal mentioned in the embodiments of this application can also be a computer device. The computer device in the embodiments of this application includes, but is not limited to, terminal devices or servers. In other words, the computer device can be a server or a terminal device, or a system composed of servers and terminal devices. Among them, the terminal device mentioned above can be an electronic device, including but not limited to mobile phones, tablets, desktop computers, laptops, handheld computers, in-vehicle devices, augmented reality / virtual reality (AR / VR) devices, head-mounted displays, smart TVs, wearable devices and other mobile internet devices (MIDs) with network access capabilities, or terminal devices in scenarios such as trains, ships, and flights. Among them, the server mentioned above can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, vehicle-to-everything (V2X) services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0065] Optionally, the data involved in the embodiments of this application may be stored in a computer device, or may be stored based on cloud storage technology or a blockchain network, without limitation.

[0066] For details, please see Figure 2 , Figure 2 This is a schematic diagram illustrating a scenario of a blockchain-based data processing method provided in an embodiment of this application. The following description will use the example of this blockchain-based data processing method being executed by a blockchain node. Figure 2 As shown, when user A wants to initiate a crowdfunding asset transfer to institution X, user A can construct a business transaction TX. A TX A This includes Asset Transfer Out Information 1 and Asset Transfer In Information 1, for example, it can be represented as "TX". A =<[INPUT0],[OUTUT0]>”, where asset transfer information 1 (INPUT0, i.e., transaction TX) AThe input can include transaction index information 1a and unlock script 1b, for example, it can be represented as "INPUT0 =<Txid:Vout_0,InputScript_0> "INPUT0 is used to indicate asset transfer information 1, Txid:Vout_0 is used to indicate transaction index information 1a, which indicates which unspent output of which transaction this input consumes, i.e., transaction TX." A The source of the assets; InputScript_0 is used to indicate the unlock script 1b. Asset transfer information 1 (OUTUT0, which is the transaction TX) A The output can include lock script 4a and amount 4b, for example, it can be represented as "OUTUT0 =<OutputScript_0,Amount_0> "Among them, lock script 4a (OutputScript_0) is used to indicate the address of institution X, that is, the account address of the object that user A wants to transact with; amount 4b (Amount_0) is used to indicate the transaction amount that user A wants to crowdfund for institution X. User A can use their own private key (private key A) to sign the transaction and obtain a partial signature." A and will partially sign the signature. A Adding this to InputScript_0 yields the final transaction TX, which includes a partial signature. A User A can transfer the transaction via TX. A Uploaded to the blockchain node. Understandably, when the asset indicated by Txid:Vout_0 is less than the asset indicated by Amount_0, for example, if user A wants to crowdfund 1 unit of virtual asset to institution X (i.e., Amount_0 is 1), but the actual asset data indicated by Txid:Vout_0 is 0.4, the remaining 0.6 needs to be raised by user A through crowdfunding, supplemented by other users. The blockchain node receives this transaction TX. A At that time, due to the transaction TX A The transaction cannot be completed due to a missing input, specifically a deficiency of 0.6 virtual assets. The blockchain node can then process the transaction via TX. A The virtual assets are added to the transaction pool and broadcast to other blockchain nodes, awaiting further input from other users. Users can be referred to as business objects. Asset transfer information (such as first asset transfer information, second asset transfer information, and merged asset transfer information) indicates the source of the virtual assets involved in the corresponding business transaction, i.e., where the virtual assets are transferred from. Asset transfer information (such as first asset transfer information, second asset transfer information, and merged asset transfer information) indicates the destination of the virtual assets involved in the corresponding business transaction, i.e., where the virtual assets are transferred to.

[0067] At this point, user B can obtain the transaction information (TX) through a certain blockchain node. A User B participates in the crowdfunding campaign and wants to transfer 1.1 virtual assets to institutions X and Y. User B can then construct a transaction TX. B TX transaction B This can include asset transfer out information 2, asset transfer in information 1, and asset transfer in information 2, for example, it can be represented as "TX". B = <[INPUT1],[OUTUT0,OUTUT1]>. Here, INPUT1 (asset transfer information 2) may include transaction index information 2a (Txid:Vout_1) and unlocking script 2b (InputScript_1), while OUTUT1 may include locking script 5a (OutputScript_1, used to represent the account address of institution Y) and amount 5b (Amount_1, for example, 1 virtual asset). Similarly, user B needs to use their user private key (private key B) to access the transaction TX. B Perform the signing to obtain the Signature B and Signature B Add this to the unlocking script 2b in INPUT1 to obtain the transaction TX containing the private key signature. B And upload it to the blockchain node, the blockchain node receives the transaction TX B At that time, it was traded with TX. A Associate and add it to the transaction pool. At this point, target the transaction TX. A and TX B The total input includes 1.5 virtual assets, and the total output includes 2 virtual assets, leaving a shortfall of 0.5 virtual assets. User C initiates the first business transaction (transaction TX). C For example, the transaction TX C It can be represented as "TX" C =<[INPUT2],[OUTUT1]>. Here, INPUT2 (asset transfer information 3) may include transaction index information 3a (Txid:Vout_2) and unlocking script 3b (InputScript_2). Unlocking script 3b includes a signature signed with user C's private key. C Furthermore, the transaction amount indicated by transaction index information 3a is greater than or equal to the remaining 0.5 virtual assets required for the crowdfunding activity. After the blockchain node obtains the first business transaction, it can add the first business transaction to the transaction pool. When the blockchain node obtains a merged business transaction consisting of the first business transaction and the second business transaction, it can verify the merged business transaction. In this embodiment, the second business transaction includes transaction TX. A and TX BWhen a blockchain node verifies a merge transaction, it can store the merge transaction in the blockchain. This means sending the merge transaction to each core node in the blockchain network. After the core nodes reach a consensus on the merge transaction, it is stored in the blockchain.

[0068] It is understandable that the sum of the outgoing asset data included in the merged transaction is greater than or equal to the sum of the incoming asset data included in the merged transaction. That is, after user C initiates the first transaction, the input in the merged transaction is greater than or equal to the output. For example, if the first transaction contains 0.6 virtual assets, the input in the merged transaction is 2.1 virtual assets, which is greater than the output (2 virtual assets). The merged transaction must include at least one asset to be transferred into, existing in at least two of the first and second transactions. For example, in this case, the assets to be transferred into the merged transaction are institution X and institution Y. Institution X exists in the second transaction, and institution Y exists in both the first and second transactions.

[0069] Furthermore, based on the merged asset transfer-out and merged asset transfer-in information in the merged business transaction, the blockchain node can transfer the first virtual asset from the asset transfer-out object to the asset transfer-in object, and remove the first and second business transactions from the transaction pool. The merged asset transfer-out information includes the asset transfer-out object and the amount of transferred assets; the merged asset transfer-in information includes the asset transfer-in object and the amount of transferred assets. For example, the blockchain node can transfer the first virtual asset (2 virtual assets) from the asset transfer-out objects (including users A, B, and C) to the asset transfer-in objects (including institutions X and Y). Specifically, it can obtain 0.4 virtual assets from user A, 1.1 virtual assets from user B, and 0.6 virtual assets from user C, totaling 2.1 virtual assets. Of these, 2 virtual assets are used as the first virtual asset. One virtual asset of the first virtual asset is transferred to institution X, and the remaining 1 virtual asset of the first virtual asset is transferred to institution Y.

[0070] Through the above process, in a crowdfunding scenario where User A initiates a crowdfunding campaign, User A does not need to pre-determine the users participating in the crowdfunding, nor does it need to construct all the inputs (merged asset transfer information) and outputs (merged asset transfer information) of the combined business transactions corresponding to all participating users. User A and the other users only need to focus on the inputs and outputs of their own initiated transactions and sign them. After waiting for the other users (User B and User C) to initiate transactions and complete the crowdfunding, several business transactions (Transaction TX) can be merged. A Transaction TX B Transaction TX CBy obtaining merged business transactions, it is possible to further realize multi-party collaborative asset transfer scenarios, such as the collaborative transfer of multiple transactions in a crowdfunding scenario, thereby improving the flexibility of transaction processing.

[0071] Further, please see Figure 3 , Figure 3 This is a flowchart illustrating a blockchain-based data processing method provided in an embodiment of this application. Figure 1 This blockchain-based data processing method can be executed by blockchain nodes, and the computer device can be, for example, a blockchain node. Figure 1 Any one of the data nodes in the data node cluster shown. The following explanation will use the execution of this blockchain-based data processing method by a blockchain node as an example. This blockchain-based data processing method will at least include the following steps S301-S303:

[0072] Step S301: Obtain the first business transaction and add it to the transaction pool.

[0073] In this embodiment, the blockchain node can obtain the first business transaction uploaded by the first business object. Optionally, the blockchain node can obtain initial business transaction data and the private key of the object corresponding to the initial business transaction data. The initial business transaction data includes initial asset transfer-out information and initial asset transfer-in information; the initial asset transfer-out information is the output of the initial business transaction data, including the source of the transaction assets and the unlocking script; the initial asset transfer-in information is the input of the initial business transaction data, including the locking script (used to indicate the account address of the object to be traded) and the transaction amount. Further, the blockchain node can encrypt the initial business transaction data based on the object's private key to obtain a transaction data signature, and add the transaction data signature to the unlocking script in the initial asset transfer-out information to obtain the first asset transfer-out information. At this time, the first asset transfer-out information includes the source of the transaction assets and the first unlocking script of the initial business transaction data, and the first interpretation script includes the transaction data signature and the object's public key. A blockchain node can identify the initial asset transfer information as the first asset transfer information. Based on the first asset transfer-out information and the first asset transfer-in information, it generates the first business transaction. If the amount of data in the first asset transfer-out information is less than the amount of data in the first asset transfer-in information, the first business transaction is added to the transaction pool. For example, if the blockchain node obtains the corresponding amount of data in the first transfer-out information from the transaction index information in the input of the first business transaction, and this amount is 0.5 virtual assets, while the amount of data in the first transfer-in information in the input of the first business transaction is 1 virtual asset, then the input of the first business transaction is less than the output, and the transaction cannot be completed temporarily. In this case, the blockchain node can add the first business transaction to the transaction pool.

[0074] Optionally, if the amount of data transferred out in the first asset transfer-out information is greater than or equal to the amount of data transferred in the first asset transfer-in information, the first business transaction is stored in the blockchain. For example, a blockchain node obtains the corresponding amount of data transferred out through the transaction index information in the input of the first business transaction. If this amount of data transferred out is 1 virtual asset, and the amount of data transferred in the input of the first business transaction is also 1 virtual asset, then the input of the first business transaction equals the output, and the transaction can be completed. The blockchain node can then add the first business transaction to the transaction pool. It is understandable that when the amount of data transferred out is 1.1 virtual assets, the input of the first business transaction is greater than the output. The blockchain node needs to create a residual asset processing information (containing information on making change for the portion of virtual assets exceeding the output). This residual asset processing information includes 0.1 virtual assets. The blockchain node transfers 1 virtual asset to the account address indicated by the first asset transfer-in information and transfers the excess 0.1 virtual assets back to the account address of the object or user corresponding to the first business transaction through the residual asset processing information.

[0075] Step S302: When a merged business transaction consisting of the first business transaction and the second business transaction is obtained, the merged business transaction is verified. If the verification is successful, the merged business transaction is stored in the blockchain. The sum of the amount of outgoing asset data included in the merged business transaction is greater than or equal to the sum of the amount of incoming asset data included in the merged business transaction. Any asset to be transferred into the merged business transaction exists in at least two of the first and second business transactions.

[0076] In this embodiment, the merged business transaction, consisting of a first business transaction and a second business transaction, obtained by the blockchain node can be sent by any business object. The second business transaction can include one or more business transactions. For example, the second business transaction includes business transaction A and business transaction B. Business transaction A can be initiated by user A, business transaction B can be initiated by user B, and the first business transaction can be initiated by user C. When any one of user A, user B, or user C detects that the sum of multiple outgoing data volumes included in the associated first and second business transactions (including business transactions A and B) in the blockchain node's transaction pool is greater than or equal to the sum of multiple incoming data volumes, the first and second business transactions can be merged to obtain a merged business transaction, which is then sent to the blockchain node. In other words, when the first business transaction is added to the transaction pool, each blockchain node in the blockchain network will synchronize the first business transaction. When any business object detects that there are related first and second business transactions in the transaction pool, and the sum of the multiple outgoing data of the first and second business transactions is greater than or equal to the sum of the multiple incoming data, it can generate a merged business transaction and submit the merged business transaction to the blockchain node. The blockchain node can then broadcast the merged business transaction to other blockchain nodes.

[0077] Optionally, the merged business transaction obtained by the blockchain node, consisting of the first business transaction and the second business transaction, can be obtained by the blockchain node finding the second business transaction associated with the first business transaction in the transaction pool after obtaining the first business transaction, and when the sum of the multiple outgoing data included in the first business transaction and the second business transaction is greater than or equal to the sum of the multiple incoming data, the first business transaction and the second business transaction can be automatically merged to obtain the merged business transaction.

[0078] Furthermore, blockchain nodes can verify merged business transactions. Specifically, the merged asset transfer information in a merged business transaction includes multiple asset transfer sub-information. Blockchain nodes can perform corresponding signature verification for each asset transfer sub-information. After the signature verification of each asset transfer sub-information is successful, the verification of the merged business transaction can be confirmed. Further, the blockchain node can store the merged business transaction in the blockchain.

[0079] Step S303: Based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction, the first virtual asset in the asset to be transferred out object is transferred to the asset to be transferred in object, and the first business transaction and the second business transaction are removed from the transaction pool; the merged asset transfer-out information includes the asset to be transferred out object and the amount of transferred-out asset data; the merged asset transfer-in information includes the asset to be transferred in object and the amount of transferred-in asset data.

[0080] In this embodiment, a blockchain node can determine the amount of data to be transferred from the object to be transferred out in the merged asset transfer-in information based on the sum of the data volume of the transferred-in assets in the merged asset transfer-out information. It then retrieves a first virtual asset equal to this amount from the account address of the object to be transferred out, and transfers the first virtual asset to the account address of the object to be transferred in. The merged asset transfer-out information includes the object to be transferred out and the amount of data of the transferred assets; the merged asset transfer-in information includes the object to be transferred in and the amount of data of the transferred assets. For example, a merged business transaction can be represented as the transfer of 2 virtual assets from the asset transfer information. Ultimately, the blockchain node transfers the first virtual asset (2 virtual assets) from the 2.1 virtual assets owned by users A, B, and C to institution X and "TX=<[INPUT0,INPUT1,INPUT2],[OUTUT0,OUTUT1]>", where [INPUT0,INPUT1,INPUT2] indicates the merged asset transfer information, which includes three sub-information items: "INPUT0", "INPUT1", and "INPUT2". INPUT0 corresponds to user A and includes 0.4 virtual assets; INPUT1 corresponds to user B and includes 1.1 virtual assets; INPUT2 corresponds to user C and includes 0.6 virtual assets. Users A, B, and C are the asset transferees. [OUTUT0, OUTUT1] indicates the merged asset transfer information, which includes two sub-information items: "OUTUT0" and "OUTUT1". OUTUT0 corresponds to institution X, requiring 1 virtual asset; OUTUT1 corresponds to institution Y, requiring 1 virtual asset. Institution X and institution Y are the objects to be transferred. The sum of the transferred-out asset data in the merged asset transfer-out information is 2.1 virtual assets, and the sum of the transferred-in asset data in the merged asset transfer-in information is 2 virtual assets. One virtual asset is obtained from the merging institution Y, i.e., institution X, and institution Y also obtains 1 virtual asset.

[0081] Understandably, after receiving a merged business transaction and completing the transaction according to the instructions in the merged business transaction, a blockchain node can remove the first and second business transactions from the transaction pool to avoid wasting resources. Furthermore, multiple blockchain nodes in the network containing both the first and second business transactions can remove both transactions from their own transaction pools.

[0082] Through the above process, it is unnecessary to pre-construct all inputs (merged asset transfer-out information) and all outputs (merged asset transfer-in information) of a merged business transaction. When a transaction requires collaboration from multiple objects (or users), each object only needs to generate a transaction for its own transaction data and add it to the pool, without waiting for all transaction data that needs to be collaboratively completed. When multiple transactions in the pool meet the collaborative completion conditions, that is, when the inputs included in the several related business transactions (including the first and second business transactions) are greater than or equal to the outputs, the business transactions that meet the collaborative completion conditions can be directly retrieved from the transaction pool and merged onto the blockchain, thereby increasing transaction throughput and reducing the storage and computing requirements on the blockchain. In other words, when the sum of the amount of transferred-out asset data included in the merged business transaction is greater than or equal to the sum of the amount of transferred-in asset data included in the merged business transaction, the collaborative transfer of assets involving multiple objects can be achieved through the merged business transaction, improving the flexibility of transaction processing and the efficiency of transaction completion. It can also be applied to multi-party collaborative asset transfer scenarios, such as crowdfunding scenarios, to realize the merging and collaborative transfer of multiple transactions in crowdfunding scenarios.

[0083] Further, please see Figure 4 , Figure 4 This is a flowchart illustrating a blockchain-based data processing method provided in an embodiment of this application. Figure 2 This blockchain-based data processing method can be executed by blockchain nodes, and the computer device can be, for example, a blockchain node. Figure 1 Any one of the data nodes in the data node cluster shown. The following will illustrate this blockchain-based data processing method using the execution of a blockchain node as an example. This blockchain-based data processing method will at least include the following steps S401-S404:

[0084] Step S401: Obtain the first business transaction and add it to the transaction pool.

[0085] In this embodiment of the application, the specific implementation of step S401 can be found in [reference needed]. Figure 3 The specific process described in step S301 shown is not repeated here.

[0086] Step S402: Locate the second business transaction associated with the first business transaction in the transaction pool, and combine the first business transaction and the second business transaction to obtain the merged business transaction.

[0087] In this embodiment, after adding a first business transaction to the transaction pool, the blockchain node can search for a second business transaction associated with the first business transaction in the transaction pool. Furthermore, it can obtain first asset transfer-out information (the input of the first business transaction) and first asset transfer-in information (the output of the first business transaction) from the first business transaction, and second asset transfer-out information and second asset transfer-in information from the second business transaction. If the sum of the amount of transferred-out asset data in the first asset transfer-out information and the amount of transferred-out asset data in the second asset transfer-out information is greater than or equal to the sum of the amount of transferred-in asset data in the first asset transfer-in information and the amount of transferred-in asset data in the second asset transfer-in information, then the blockchain node can integrate the first and second business transactions to obtain a merged business transaction. Specifically, the blockchain node can generate merged asset transfer-out information based on the first and second asset transfer-out information, and can generate merged asset transfer-in information based on the first and second asset transfer-in information. The merged asset transfer-out information and the merged asset transfer-in information are then combined to obtain a merged business transaction. For example, the first business transaction is "TX". A =<[INPUT0],[OUTUT0]>”, the second business transaction is “TX” B =<[INPUT1],[OUTUT0,OUTUT1]>”, the amount of the transferred asset data in the first asset transfer information (INPUT0) is 0.4 virtual assets, the amount of the transferred asset data in the second asset transfer information (INPUT1) is 1.6 virtual assets, the amount of the transferred asset data in the first asset transfer information (OUTUT0) is 1 virtual asset, and the amount of the transferred asset data in the second asset transfer information (OUTUT1) is 1 virtual asset. At this time, the sum of the amount of the transferred asset data in the first asset transfer information and the amount of the transferred asset data in the second asset transfer information (2 virtual assets) is equal to the sum of the amount of the transferred asset data in the first asset transfer information and the amount of the transferred asset data in the second asset transfer information (2 virtual assets). It can be considered that the business transaction is complete. The blockchain node can integrate the first business transaction and the second business transaction to obtain the merged business transaction. The merged business transaction can be represented as “TX=<[INPUT0,INPUT1],[OUTUT0,OUTUT1]>”.

[0088] Optionally, if the sum of the amount of transferred assets in the first asset transfer-out information and the amount of transferred assets in the second asset transfer-out information is greater than the sum of the amount of transferred assets in the first asset transfer-in information and the amount of transferred assets in the second asset transfer-in information, then the blockchain node can determine the remaining asset processing objects from the asset objects to be transferred out based on the merged asset transfer-out information and the merged asset transfer-in information, obtain the data volume difference between the sum of the transferred asset data volume and the sum of the transferred asset data volume, and generate the remaining asset processing information based on the remaining asset processing objects and the data volume difference. It is understandable that the remaining asset processing target can be one or more of the asset transfer recipients. For example, the first business transaction is associated with user C (user C's associated transfer-out asset data volume is 0.4 virtual assets), the second business transaction is associated with user A (user A's associated transfer-out asset data volume is 1.0 virtual assets) and user B (user B's associated transfer-out asset data volume is 0.8 virtual assets), the sum of the transfer-in asset data volume in the first asset transfer-in information and the transfer-in asset data volume in the second asset transfer-in information is 2 virtual assets, and the first business transaction is the latest transaction. In this case, the remaining asset processing target can be user A, user B, and user C, and user A, user B, and user C can allocate the remaining 0.2 virtual assets according to the proportion of the transfer-out asset data volume (in this case, 2:5:4). Optionally, the remaining asset processing target can also be user B with the largest transfer-out asset data volume, or user C with the latest transaction time. There are no restrictions here. The specific method for determining the remaining asset disposal object can be determined directly when initiating the first business transaction. The blockchain node can directly determine the remaining asset disposal object from the asset transfer objects according to the pre-defined method for determining the remaining asset disposal object. For example, when the remaining asset disposal object is user C, the blockchain node can obtain user C's account address and generate remaining asset disposal information based on the difference between user C's account address and the data volume (which is 0.2 virtual assets at this time). For example, the remaining asset disposal information can be represented as "OUTUT2 =<OutputScript_2,Amount_2> ", where OutputScript_2 is used to indicate the account address of user C, and Amount_2 is 0.2 virtual assets.

[0089] Furthermore, blockchain nodes can combine information on merged asset transfers out, merged asset transfers in, and remaining asset processing to obtain merged business transactions. For example, the first business transaction is "TX". C =<[INPUT2],[OUTUT1]>”, the second business transaction includes “TX B =<[INPUT1],[OUTUT0,OUTUT1]>” and “TX A=<[INPUT0],[OUTUT0]>". At this point, the merged business transaction can be represented as "TX=<[INPUT0,INPUT1,INPUT2],[OUTUT0,OUTUT1,OUTUT2]>". Based on the merged asset transfer information and remaining asset processing information in the merged business transaction, the blockchain node can transfer the second virtual asset from the asset to be transferred object to the remaining asset processing object. The data volume of the second virtual asset is equal to the data volume difference. For example, the blockchain node identifies the remaining 0.2 virtual asset as the second virtual asset and transfers it to user C's account address.

[0090] Step S403: When a merged business transaction consisting of the first business transaction and the second business transaction is obtained, the merged business transaction is verified. If the verification is successful, the merged business transaction is stored in the blockchain. The sum of the amount of outgoing asset data included in the merged business transaction is greater than or equal to the sum of the amount of incoming asset data included in the merged business transaction. Any asset to be transferred into the merged business transaction exists in at least two of the first and second business transactions.

[0091] In this embodiment, when a blockchain node receives a merged business transaction consisting of a first business transaction and a second business transaction, it can verify the merged business transaction, specifically verifying each asset transfer sub-information in the merged asset transfer information within the merged business transaction. Specifically, the merged asset transfer information in the merged business transaction includes M asset transfer sub-information pieces, where M is a positive integer, and the M asset transfer sub-information pieces include asset transfer sub-information A. i Let i be a positive integer less than or equal to M. A blockchain node can transfer sub-information A from an asset. i Obtain asset authorization verification information based on asset transfer sub-information A. i From the transaction index information, retrieve the asset transfer sub-information A. i The corresponding permission lock verification information. Below, we use "TX=<[INPUT0,INPUT1,INPUT2],[OUTUT0,OUTUT1]>" as a merged business transaction, with INPUT1 representing asset transfer sub-information A. i Taking this as an example, the blockchain node obtains asset permission verification information from INPUT1, namely InputScript_1(InputScript_1=<([1],[0,1]),Signature B(User B's public key). Blockchain nodes can obtain the locking script (i.e., permission locking verification information) of the UTXO associated with Txid:Vout_1 used in this transaction based on Txid:Vout_1 in INPUT1. This locking script requires that the transaction (the business transaction using this UTXO) must be signed with a specific public key, and that the hash value of that public key matches the hash value provided in the locking script.

[0092] Furthermore, the blockchain node can obtain the public key of the business object from the asset permission verification information, hash the public key of the business object, and obtain the hash of the public key of the business object. If the hash of the public key of the business object is the same as the hash value of the public key in the permission lock verification information, then based on the public key of the business object in the asset permission verification information and the signature object verification bit, the signature verification of the business transaction in the asset permission verification information is performed to obtain the signature verification result. If the signature verification result indicates that the signature verification of the business object signature is passed, then the verification of the merged business transaction is determined to be passed. For example, at this time, the permission lock verification information is "OP_DUP, OP_HASH160, <public key hash value>, OP_EQUALVERIFY, OP_CHECKSIG". The blockchain node can concatenate the asset permission verification information and the permission lock verification information to obtain the concatenation script "([1],[0,1])". <Signature B >, <User B's public key>, OP_DUP, OP_HASH160, <Public key hash>, OP_EQUALVERIFY, OP_CHECKSIG", At this time, the blockchain node can put the concatenation script into a stack-based virtual machine for execution. Specifically, the blockchain node puts "([1],[0,1])<signature><public key>" into the top of the stack in sequence through the virtual machine, and obtains the business object public key from the asset permission verification information through "OP_DUP", or in other words, copies the business object public key. The business object public key (which is now User B's public key) is hashed through "OP_HASH160" to obtain the business object public key hash (which is now User B's public key hash), that is, the hash value corresponding to User B's public key. The business object public key hash is compared with the "<public key hash>" in the permission lock verification information through "OP_EQUALVERIFY" to see if they are the same, and the business object public key hash is removed from the stack.

[0093] If user B's public key hash is the same as "<public key hash value>", then "OP_CHECKSIG" is used to perform signature verification on the business transaction signature in the asset authorization verification information based on the business object public key (user B's public key in this case) and the signature object verification bit {in this case, ([1], [0, 1])} in the asset authorization verification information, and the signature verification result is obtained. Specifically, the blockchain node can obtain the asset transfer sub-information A from the merged business transaction based on the signature object verification bit in the asset authorization verification information. i The corresponding business signature object is hashed to obtain the business signature object hash. It can be understood that the signature object verification bit ([1],[0,1]) is used to indicate that the signature object of user B using the private key is the first input (asset transfer sub-information), the 0th output (asset transfer in sub-information), and the 1st output (asset transfer in sub-information) in the merged business transaction. That is, the business signature object corresponding to the signature object verification bit ([1],[0,1]) can be "<[INPUT1],[OUTUT0,OUTUT1]>".

[0094] Furthermore, blockchain nodes can decrypt the business transaction signature within the asset authorization verification information based on the public key of the business object in the asset authorization verification information, thereby obtaining the business transaction hash. That is, the blockchain node decrypts the signature based on user B's public key. B Decryption is performed to obtain the business transaction hash (i.e., transaction TX). B (The corresponding hash value). If the hash of the business signature object is different from the hash of the business transaction, the blockchain node can determine that the signature verification of the business transaction signature in the asset permission verification information fails as the signature verification result; if the hash of the business signature object is the same as the hash of the business transaction, the blockchain node can determine that the signature verification of the business transaction signature in the asset permission verification information passes as the signature verification result. If the signature verification result indicates that the signature verification of the business object signature passes, the blockchain node can determine that the verification of the merged business transaction passes. It can be understood that the blockchain node can only determine that the verification of the merged business transaction passes after all M asset transfer sub-information in the merged asset transfer information has passed. If the verification of at least one of the M asset transfer sub-information fails, the verification of the merged business transaction fails.

[0095] Optionally, if the public key hash of the business object is different from the public key hash value in the permission lock verification information, the blockchain node will terminate the execution of the splicing script. That is, there is no need to continue the signature verification, and it can be directly determined that the verification of the merged business transaction has failed.

[0096] Step S404: Based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction, the first virtual asset in the asset to be transferred out object is transferred to the asset to be transferred in object, and the first business transaction and the second business transaction are removed from the transaction pool; the merged asset transfer-out information includes the asset to be transferred out object and the amount of transferred-out asset data; the merged asset transfer-in information includes the asset to be transferred in object and the amount of transferred-in asset data.

[0097] In this embodiment of the application, the number of asset transfer objects included in the merged asset transfer information is N, where N is a positive integer, and the N asset transfer objects include asset transfer object B. j Here, j is a positive integer less than or equal to N. Blockchain nodes can, based on the merged asset transfer information in a merged business transaction, obtain the virtual assets to be transferred corresponding to the sum of the data amounts of the assets to be transferred from the asset transfer objects. From the virtual assets to be transferred, the first virtual asset corresponding to the sum of the data amounts of the assets to be transferred can be determined. From the first virtual asset, the asset to be transferred to object B can be obtained. j The first virtual sub-asset corresponding to the amount of transferred asset data will be transferred to the asset to be transferred object B. j For example, when N=2, the number of assets to be transferred in is 2, including institution X and institution Y. The blockchain node obtains 2.2 virtual assets corresponding to the sum of the data volume of the assets to be transferred from the assets to be transferred out. If the sum of the data volume of the assets to be transferred in the merged business transaction is 2 virtual assets (where the data volume of the assets to be transferred in corresponding to institution X is 1 virtual asset and the data volume of the assets to be transferred in corresponding to institution Y is 1 virtual asset), then the blockchain node determines the first virtual asset corresponding to the sum of the data volume of the assets to be transferred as 2 virtual assets. That is, the blockchain node obtains 2 virtual assets as the first virtual asset from the 2.2 virtual assets to be transferred. Taking institution X as the asset to be transferred in, B j For example, at this time, the asset to be transferred to object B... j The corresponding amount of transferred asset data is 1 virtual asset. That is, the blockchain node obtains 1 virtual asset from the first virtual asset of 2 virtual assets as the first virtual sub-asset, and transfers the first virtual sub-asset of 1 virtual asset to the account address of institution X.

[0098] Through the above process, it is unnecessary to pre-construct all inputs (merged asset transfer information) and all outputs (merged asset transfer information) of a merged business transaction. When a transaction requires collaboration from multiple objects (or users), each object only needs to sign its own transaction data using its private key and generate a transaction for pooling, without waiting for all transaction data that needs to be collaboratively completed. When multiple transactions in the pool meet the collaborative completion conditions—that is, when the inputs included in the several related business transactions (including the first and second business transactions) are greater than or equal to the outputs—business transactions that meet the collaborative completion conditions can be directly retrieved from the transaction pool and merged onto the blockchain, thereby increasing transaction throughput and reducing the storage and computing requirements on the blockchain. In other words, when the sum of the transferred-out asset data included in a merged business transaction is greater than or equal to the sum of the transferred-in asset data included in the merged business transaction, asset collaborative transfer involving multiple objects can be achieved through merged business transactions, improving the flexibility of transaction processing and the efficiency of transaction completion. Furthermore, it can be applied to multi-party collaborative asset transfer scenarios, such as crowdfunding scenarios, to realize the merging and collaborative transfer of multiple transactions in a crowdfunding scenario. At the same time, a signature object verification bit is introduced to verify the signature of each input in the merged business transaction, ensuring the legality of the UTXO transactions in the collaboratively constructed merged business transaction and ensuring that each user-constructed partial transaction can be successfully executed.

[0099] Further, please see Figure 5 , Figure 5 This is a schematic diagram of a blockchain-based data processing device provided in an embodiment of this application. The blockchain-based data processing device can be a computer program (including program code, etc.) running on a computer device; for example, the blockchain-based data processing device can be an application software. The blockchain-based data processing device can be used to execute corresponding steps in the methods provided in the embodiments of this application. Figure 5 As shown, the device 500 can be used for Figure 3 and Figure 4 Specifically, the computer device in the corresponding embodiment may include: a transaction acquisition module 11, a transaction merging module 12, a transaction verification module 13, and an asset transfer module 14.

[0100] The transaction acquisition module 11 is used to acquire the first business transaction and add it to the transaction pool.

[0101] The transaction verification module 13 is used to verify the merged business transaction when it is obtained, which consists of the first business transaction and the second business transaction. When the verification is successful, the merged business transaction is stored in the blockchain. The sum of the amount of outgoing assets included in the merged business transaction is greater than or equal to the sum of the amount of incoming assets included in the merged business transaction. Any asset to be transferred in the merged business transaction exists in at least two of the first and second business transactions.

[0102] The asset transfer module 14 is used to transfer the first virtual asset in the asset to be transferred out object to the asset to be transferred in object based on the asset transfer-out information and asset transfer-in information in the merged business transaction, and remove the first business transaction and the second business transaction from the transaction pool; the asset transfer-out information includes the asset to be transferred out object and the amount of asset data to be transferred out; the asset transfer-in information includes the asset to be transferred in object and the amount of asset data to be transferred in.

[0103] In one possible implementation, the blockchain-based data processing device 500 further includes a transaction merging module 12, which is specifically used to perform the following operations:

[0104] Search the transaction pool for the second business transaction that is associated with the first business transaction;

[0105] Obtain information on the first asset transfer-out and the first asset transfer-in from the first business transaction; obtain information on the second asset transfer-out and the second asset transfer-in from the second business transaction.

[0106] If the sum of the amount of transferred-out assets in the first asset transfer-out information and the amount of transferred-out assets in the second asset transfer-out information is greater than or equal to the sum of the amount of transferred-in assets in the first asset transfer-in information and the amount of transferred-in assets in the second asset transfer-in information, then based on the first asset transfer-out information and the second asset transfer-out information, merged asset transfer-out information is generated, and based on the first asset transfer-in information and the second asset transfer-in information, merged asset transfer-in information is generated. The merged asset transfer-out information and the merged asset transfer-in information are combined to obtain the merged business transaction.

[0107] In one possible implementation, when the transaction merging module 12 combines the merged asset transfer-out information and the merged asset transfer-in information to obtain the merged business transaction, the transaction merging module 12 is specifically used to perform the following operations:

[0108] If the sum of the amount of transferred assets in the first asset transfer-out information and the amount of transferred assets in the second asset transfer-out information is greater than the sum of the amount of transferred assets in the first asset transfer-in information and the amount of transferred assets in the second asset transfer-in information, then based on the merged asset transfer-out information and the merged asset transfer-in information, the remaining asset processing objects are determined from the assets to be transferred out, the difference in the amount of transferred assets is obtained between the sum of the amount of transferred assets and the sum of the amount of transferred assets, and the remaining asset processing information is generated based on the remaining asset processing objects and the difference in the amount of data.

[0109] By combining the information on the transfer out of consolidated assets, the transfer in of consolidated assets, and the disposal of remaining assets, a consolidated business transaction is obtained.

[0110] In one possible implementation, the asset transfer module 14 is also used to perform the following operations:

[0111] Based on the information on the transfer of consolidated assets and the processing of remaining assets in the consolidated business transaction, the second virtual asset in the asset to be transferred out object is transferred to the remaining asset processing object; the data volume of the second virtual asset is equal to the difference in data volume.

[0112] In one possible implementation, the consolidated asset transfer information in the consolidated business transaction includes M asset transfer sub-information items, where M is a positive integer, and the M asset transfer sub-information items include asset transfer sub-information A. i , where i is a positive integer less than or equal to M; when the transaction verification module 13 verifies the merged business transaction, the transaction verification module 13 is specifically used to perform the following operations:

[0113] Sub-information A of asset transfer i Obtain asset authorization verification information based on asset transfer sub-information A. i From the transaction index information, retrieve the asset transfer sub-information A. i The corresponding permission lock verification information;

[0114] Obtain the public key of the business object from the asset authorization verification information, and perform hash processing on the public key of the business object to obtain the public key hash of the business object;

[0115] If the public key hash of the business object is the same as the public key hash value in the permission lock verification information, then the signature verification of the business transaction in the asset permission verification information is performed based on the public key of the business object in the asset permission verification information and the verification bit of the signature object, and the signature verification result is obtained. If the signature verification result indicates that the signature verification of the business object signature is passed, then the verification of the merged business transaction is determined to be passed.

[0116] If the public key hash of the business object is different from the public key hash value in the permission lock verification information, then the verification of the merged business transaction is determined to fail.

[0117] In one possible implementation, the transaction verification module 13 is used to perform signature verification on the business transaction signature in the asset authorization verification information based on the business object public key and signature object verification bit in the asset authorization verification information. When the signature verification result is obtained, the transaction verification module 13 is specifically used to perform the following operations:

[0118] Based on the signature object verification bit in the asset authorization verification information, obtain the asset transfer sub-information A from the merged business transaction. i The corresponding business signature object is hashed to obtain the business signature object hash.

[0119] Based on the public key of the business object in the asset authorization verification information, the business transaction signature in the asset authorization verification information is decrypted to obtain the business transaction hash;

[0120] If the hash of the business signature object is different from the hash of the business transaction, the signature verification of the business transaction signature in the asset permission verification information will fail and be determined as the signature verification result.

[0121] If the hash of the business signature object is the same as the hash of the business transaction, then the signature verification of the business transaction signature in the asset permission verification information will be determined as the signature verification result.

[0122] In one possible implementation, the number of asset transfer objects included in the merged asset transfer information is N, where N is a positive integer, and the N asset transfer objects include asset transfer object B. j , j is a positive integer less than or equal to N; the asset transfer module 14 is used to transfer the first virtual asset in the asset to be transferred out object to the asset to be transferred in object based on the asset transfer-out information and asset transfer-in information in the merged business transaction. Specifically, the asset transfer module 14 is used to perform the following operations:

[0123] Based on the consolidated asset transfer information in the consolidated business transaction, obtain the virtual assets to be transferred corresponding to the sum of the data volume of the transferred assets from the asset transfer objects;

[0124] From the virtual assets to be transferred, determine the first virtual asset corresponding to the sum of the data volume of the assets to be transferred;

[0125] Obtain the asset B to be transferred from the first virtual asset. j The first virtual sub-asset corresponding to the amount of transferred asset data will be transferred to the asset to be transferred object B. j middle.

[0126] In one possible implementation, when the transaction acquisition module 11 acquires the first business transaction, the transaction acquisition module 11 is specifically used to perform the following operations:

[0127] Obtain the initial business transaction data and the private key of the object corresponding to the initial business transaction data; the initial business transaction data includes initial asset transfer out information and initial asset transfer in information;

[0128] The initial business transaction data is encrypted using the object's private key to obtain a transaction data signature. The transaction data signature is then added to the initial asset transfer information to obtain the first asset transfer information.

[0129] The initial asset transfer information is identified as the first asset transfer information. Based on the first asset transfer-out information and the first asset transfer information, the first business transaction is generated.

[0130] If the amount of first outgoing data included in the first asset transfer-out information is less than the amount of first incoming data included in the first asset transfer-in information, then the process of adding the first business transaction to the transaction pool will be executed.

[0131] If the amount of first outgoing data included in the first asset transfer-out information is greater than or equal to the amount of first incoming data included in the first asset transfer-in information, then the first business transaction will be stored in the blockchain.

[0132] Through the above process, it is unnecessary to pre-construct all inputs (merged asset transfer-out information) and outputs (merged asset transfer-in information) of a merged business transaction. When a transaction requires collaboration from multiple objects (or users), each object only needs to sign its own transaction data using its private key and generate a transaction for pooling, without waiting for all transaction data to be collaboratively completed. When multiple transactions in the pool meet the collaborative completion conditions—that is, when the inputs included in the several related business transactions (including the first and second business transactions) are greater than or equal to the outputs—business transactions that meet the collaborative completion conditions can be directly retrieved from the transaction pool and merged onto the blockchain, thereby increasing transaction throughput and reducing the storage and computation requirements on the blockchain. In other words, when the sum of the transferred-out asset data included in a merged business transaction is greater than or equal to the sum of the transferred-in asset data included in the merged business transaction, asset collaborative transfer involving multiple objects can be achieved through merged business transactions, improving the flexibility of transaction processing and the efficiency of transaction completion. Furthermore, it can be applied to multi-party collaborative asset transfer scenarios, such as crowdfunding scenarios, to realize the merging and collaborative transfer of multiple transactions in a crowdfunding scenario. At the same time, a signature object verification bit is introduced to verify the signature of each input in the merged business transaction, ensuring the legality of the UTXO transactions in the collaboratively constructed merged business transaction and ensuring that each user-constructed partial transaction can be successfully executed.

[0133] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 6 As shown, the computer device 600 in this embodiment may include a processor 601, a network interface 604, and a memory 605. Furthermore, the computer device 600 may also include a user interface 603 and at least one communication bus 602. The communication bus 602 is used to enable communication between these components. The user interface 603 may include a display screen and a keyboard; optionally, the user interface 603 may also include a standard wired interface or a wireless interface. The network interface 604 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 605 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 605 may also be at least one storage device located remotely from the processor 601. Figure 6 As shown, the memory 605, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application.

[0134] Network interface 604 provides network communication elements; user interface 603 is mainly used to provide an input interface for users; and processor 601 can be used to call the device control application stored in memory 605 to perform the following operations:

[0135] Obtain the first business transaction and add it to the transaction pool;

[0136] When a merged business transaction consisting of a first business transaction and a second business transaction is obtained, the merged business transaction is verified. If the verification is successful, the merged business transaction is stored in the blockchain. The sum of the amount of outgoing asset data included in the merged business transaction is greater than or equal to the sum of the amount of incoming asset data included in the merged business transaction. Any asset to be transferred into the merged business transaction exists in at least two of the first and second business transactions.

[0137] Based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction, the first virtual asset in the asset to be transferred out object is transferred to the asset to be transferred in object, and the first business transaction and the second business transaction are removed from the transaction pool; the merged asset transfer-out information includes the asset to be transferred out object and the amount of transferred assets; the merged asset transfer-in information includes the asset to be transferred in object and the amount of transferred assets.

[0138] Furthermore, it should be noted that embodiments of this application also provide a computer-readable storage medium storing a computer program adapted to be loaded and executed by the processor. Figure 3or Figure 4 For details on the methods provided in each step, please refer to the document. Figure 3 or Figure 4 The implementation methods provided for each step are not repeated here. Furthermore, the beneficial effects of using the same method are also not repeated. For technical details not disclosed in the computer-readable storage medium embodiments involved in this application, please refer to the description of the method embodiments of this application. As an example, a computer program may be deployed to execute on a single computer device, or on multiple computer devices located in one location, or on multiple computer devices distributed across multiple locations and interconnected via a communication network.

[0139] The computer-readable storage medium can be the apparatus provided in any of the foregoing embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Furthermore, the computer-readable storage medium can include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0140] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform... Figure 3 or Figure 4 The methods provided are among the various optional methods available in the code, so they will not be elaborated upon here.

[0141] The terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, apparatuses, products, or devices.

[0142] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0143] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described in terms of functionality. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0144] The methods and related apparatus provided in this application are described with reference to the method flowcharts and / or structural diagrams provided in this application. Specifically, each block of the method flowchart and / or structural diagram, as well as combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to create a machine, such that the instructions, which execute via the processor of the computer or other programmable device, generate instructions for implementing the process. Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable device to function in a particular manner, causing the instructions stored in the computer-readable storage medium to produce an article of manufacture including the instruction means, or to be transmitted via a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The instruction means is implemented in the process. Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or structures illustrate the steps of the functions specified in one or more boxes.

[0145] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.

[0146] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.

[0147] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A data processing method based on blockchain, characterized in that, The method includes: Obtain the first business transaction and add it to the transaction pool; When a merged business transaction consisting of the first business transaction and the second business transaction is obtained, the merged business transaction is verified. If the verification is successful, the merged business transaction is stored in the blockchain. The sum of the outgoing asset data included in the merged business transaction is greater than or equal to the sum of the incoming asset data included in the merged business transaction. The merged business transaction includes at least one asset to be transferred in, which exists in at least two business transactions, namely the first business transaction and the second business transaction. Based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction, the first virtual asset in the asset to be transferred out object is transferred to the asset to be transferred in object, and the first business transaction and the second business transaction are removed from the transaction pool; the merged asset transfer-out information includes the asset to be transferred out object and the amount of the transferred-out asset data; the merged asset transfer-in information includes the asset to be transferred in object and the amount of the transferred-in asset data.

2. The method according to claim 1, characterized in that, The method further includes: Search the transaction pool for a second business transaction associated with the first business transaction; Obtain first asset transfer-out information and first asset transfer-in information from the first business transaction; obtain second asset transfer-out information and second asset transfer-in information from the second business transaction. If the sum of the amount of transferred-out assets in the first asset transfer-out information and the amount of transferred-out assets in the second asset transfer-out information is greater than or equal to the sum of the amount of transferred-in assets in the first asset transfer-in information and the amount of transferred-in assets in the second asset transfer-in information, then based on the first asset transfer-out information and the second asset transfer-out information, merged asset transfer-out information is generated, and based on the first asset transfer-in information and the second asset transfer-in information, merged asset transfer-in information is generated. The merged asset transfer-out information and the merged asset transfer-in information are combined to obtain a merged business transaction.

3. The method according to claim 2, characterized in that, The process of combining the information on the transfer out of the consolidated assets and the information on the transfer in the consolidated assets to obtain the consolidated business transaction includes: If the sum of the amount of transferred-out asset data in the first asset transfer-out information and the amount of transferred-out asset data in the second asset transfer-out information is greater than the sum of the amount of transferred-in asset data in the first asset transfer-in information and the amount of transferred-in asset data in the second asset transfer-in information, then based on the merged asset transfer-out information and the merged asset transfer-in information, the remaining asset processing objects are determined from the assets to be transferred out, the difference in the amount of data between the sum of the transferred-out asset data and the sum of the transferred-in asset data is obtained, and the remaining asset processing information is generated based on the remaining asset processing objects and the difference in the amount of data. The information on the transfer out of the merged assets, the information on the transfer in the merged assets, and the information on the disposal of the remaining assets are combined to obtain the merged business transaction. The method further includes: Based on the merged asset transfer information and the remaining asset processing information in the merged business transaction, the second virtual asset in the asset to be transferred out object is transferred to the remaining asset processing object; the data volume of the second virtual asset is equal to the data volume difference.

4. The method according to claim 1, characterized in that, The consolidated asset transfer information in the consolidated business transaction includes M asset transfer sub-information items, where M is a positive integer. These M asset transfer sub-information items include asset transfer sub-information A. i , where i is a positive integer less than or equal to M; The verification of the merged business transaction includes: From the asset transfer sub-information A i Obtain asset authorization verification information from the asset transfer sub-information A. i The transaction index information is used to obtain the asset transfer sub-information A. i The corresponding permission lock verification information; Obtain the public key of the business object from the asset permission verification information, and perform hash processing on the public key of the business object to obtain the public key hash of the business object; If the public key hash of the business object is the same as the public key hash value in the permission lock verification information, then based on the public key of the business object in the asset permission verification information and the verification bit of the signature object, the signature verification of the business transaction in the asset permission verification information is performed to obtain the signature verification result. If the signature verification result indicates that the signature verification of the business object signature is passed, then it is determined that the verification of the merged business transaction is passed. If the public key hash of the business object is different from the public key hash value in the permission lock verification information, then the verification of the merged business transaction is determined to be unsuccessful.

5. The method according to claim 4, characterized in that, The step of performing signature verification on the business transaction signature in the asset authorization verification information based on the public key of the business object and the verification bit of the signature object in the asset authorization verification information, and obtaining the signature verification result, includes: Based on the signature object verification bit in the asset authorization verification information, the asset transfer sub-information A is obtained from the merged business transaction. i The corresponding business signature object is hashed to obtain the business signature object hash. Based on the public key of the business object in the asset authorization verification information, the business transaction signature in the asset authorization verification information is decrypted to obtain the business transaction hash. If the hash of the business signature object is different from the hash of the business transaction, then the signature verification of the business transaction signature in the asset permission verification information will fail and be determined as a signature verification result. If the hash of the business signature object is the same as the hash of the business transaction, then the signature verification of the business transaction signature in the asset permission verification information will be determined as the signature verification result.

6. The method according to claim 1, characterized in that, The number of asset transfer objects included in the consolidated asset transfer information is N, where N is a positive integer. These N asset transfer objects include asset transfer object B. j , j is a positive integer less than or equal to N; the step of transferring the first virtual asset from the asset to be transferred out object to the asset to be transferred in object based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction includes: Based on the consolidated asset transfer information in the consolidated business transaction, obtain the virtual assets to be transferred corresponding to the sum of the data volume of the transferred assets from the asset transfer objects; From the virtual assets to be transferred, determine the first virtual asset corresponding to the sum of the data volume of the assets to be transferred; Obtain the object B to be transferred from the first virtual asset. j The first virtual sub-asset corresponding to the amount of transferred asset data will be transferred to the asset to be transferred object B. j middle.

7. The method according to claim 1, characterized in that, The acquisition of the first business transaction includes: Obtain initial business transaction data and the private key of the object corresponding to the initial business transaction data; the initial business transaction data includes initial asset transfer-out information and initial asset transfer-in information; The initial business transaction data is encrypted based on the object's private key to obtain a transaction data signature. The transaction data signature is then added to the initial asset transfer information to obtain the first asset transfer information. The initial asset transfer information is determined as the first asset transfer information, and a first business transaction is generated based on the first asset transfer information and the first asset transfer information. If the amount of first outgoing data included in the first asset transfer-out information is less than the amount of first incoming data included in the first asset transfer-in information, then the process of adding the first business transaction to the transaction pool is executed. If the amount of first outgoing data included in the first asset transfer-out information is greater than or equal to the amount of first incoming data included in the first asset transfer-in information, then the first business transaction will be stored in the blockchain.

8. A data processing device based on blockchain, characterized in that, The device includes: The transaction acquisition module is used to acquire the first business transaction and add it to the transaction pool. The transaction verification module is used to verify the merged business transaction when it is obtained, which consists of the first business transaction and the second business transaction. When the verification is successful, the merged business transaction is stored in the blockchain. The sum of the outgoing asset data included in the merged business transaction is greater than or equal to the sum of the incoming asset data included in the merged business transaction. The merged business transaction includes at least one asset to be transferred in, which exists in at least two business transactions, namely the first business transaction and the second business transaction. The asset transfer module, based on the merged asset transfer-out information and merged asset transfer-in information in the merged business transaction, transfers the first virtual asset in the asset to be transferred out object to the asset to be transferred in object, and removes the first business transaction and the second business transaction from the transaction pool; the merged asset transfer-out information includes the asset to be transferred out object and the amount of the transferred-out asset data; the merged asset transfer-in information includes the asset to be transferred in object and the amount of the transferred-in asset data.

9. A computer device, characterized in that, Includes processor, memory, and input / output interfaces; The processor is connected to the memory and the input / output interface respectively, wherein the input / output interface is used to receive data and output data, the memory is used to store computer programs, and the processor is used to call the computer programs so that the computer device executes the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any one of claims 1-7.

11. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method described in any one of claims 1-7.