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

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

Patent Information

Application Number
CN202210586740.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2026-09-18
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

[0003]当前主流的区块链网络上进行链上虚拟资源的转移需要消耗较高的gas(消耗)费用,并且因为用于发行链上虚拟资源的协议标准有多种,不同协议标准下的链上虚拟资源的转移方式不同,即区块链网络中,通常只能单个链上虚拟资源转移或者统一标准的多个链上虚拟资源一起转移,因此在涉及多个链上虚拟资源或者多类链上虚拟资源转移时,只能拆分成多个交易进行,花费gas费用较多,且逻辑复杂

Benefits of technology

[0063] In this embodiment, upon receiving a request from a first object to create a combination of virtual resources for a combination of on-chain virtual resources, the on-chain virtual resource combination can be transferred from the first object's first object address to the target contract address according to the request, and the target combination of virtual resources can be issued to the first object address. The number of resource types in the on-chain virtual resources combination is one or more; the on-chain ownership of the on-chain virtual resources in the combination belongs to the first object; the on-chain ownership of the target combination of virtual resources belongs to the first object. Then, if a resource transfer request for the target combination of virtual resources is received, the target combination of virtual resources is transferred from the first object address to the second object address of a second object according to the resource transfer request. The on-chain ownership of the transferred target combination of virtual resources belongs to the second object; the resource transfer request carries the second object address; the second object, having on-chain ownership of the target combination of virtual resources, has the authority to transfer the combination of on-chain virtual resources from the target contract address to the second object address. The method provided in this application allows for the batch transfer of multiple on-chain virtual resources. Multiple on-chain virtual resources can be transferred to a target contract address and locked. Then, a target combination of virtual resources is issued for these multiple virtual resources. An object with on-chain ownership of the target combination of virtual resources has the authority to transfer the combination of on-chain virtual resources from the target contract address to the object's address. In other words, subsequent transfers only require the target combination of virtual resources to achieve the batch transfer of multiple on-chain virtual resources, saving resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117176737B_ABST
    Figure CN117176737B_ABST
Patent Text Reader

Abstract

The application discloses a kind of data processing method, device and equipment based on blockchain, equipment and readable storage medium, the method comprises: according to the combination virtual resource creation request of first object to chain virtual resource combination, chain virtual resource combination is transferred from the first object address of first object to target contract address, issues target combination virtual resource to first object address;The on-chain ownership of target combination virtual resource belongs to first object;If receiving resource transfer request for target combination virtual resource, according to resource transfer request, target combination virtual resource is transferred from first object address to the second object address of second object;The on-chain ownership of target combination virtual resource after transfer belongs to second object;Second object with the on-chain ownership of target combination virtual resource has the permission of transferring chain virtual resource combination from target contract address to second object address. By the application, chain virtual resource can be transferred in batches.
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 readable storage medium based on blockchain. Background Technology

[0002] Off-chain digital products can correspond to on-chain virtual resources in a blockchain network. The on-chain virtual resources are used to prove ownership of the corresponding off-chain digital products. In other words, when an ordinary object has on-chain ownership of on-chain virtual resources, it has proof that the off-chain digital products corresponding to the on-chain virtual resources belong to that ordinary object.

[0003] Currently, transferring on-chain virtual resources on mainstream blockchain networks requires high gas fees. Furthermore, because there are multiple protocol standards used to issue on-chain virtual resources, the transfer methods for on-chain virtual resources differ under different protocol standards. That is, in a blockchain network, usually only a single on-chain virtual resource can be transferred or multiple on-chain virtual resources of the same standard can be transferred together. Therefore, when multiple or different types of on-chain virtual resources are involved in the transfer, they can only be split into multiple transactions, which incurs high gas fees and is logically complex. Summary of the Invention

[0004] This application provides a blockchain-based data processing method, apparatus, device, and readable storage medium that can transfer on-chain virtual resources in batches, reducing consumption.

[0005] One embodiment of this application provides a blockchain-based data processing method, including:

[0006] A blockchain node receives a request from a first object to create a combination of virtual resources for a combination of on-chain virtual resources; the number of resource types in the combination of on-chain virtual resources is one or more; the on-chain ownership of the on-chain virtual resources in the combination of on-chain virtual resources belongs to the first object;

[0007] Based on the request to create a combined virtual resource, the on-chain virtual resource combination is transferred from the first object address of the first object to the target contract address, and the target combined virtual resource is issued to the first object address; the on-chain ownership of the target combined virtual resource belongs to the first object;

[0008] If a resource transfer request for the target combination of virtual resources is received, the target combination of virtual resources is transferred from the first object address to the second object address of the second object according to the resource transfer request; the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has on-chain ownership of the target combination of virtual resources, has the authority to transfer the on-chain virtual resource combination from the target contract address to the second object address.

[0009] One embodiment of this application provides a blockchain-based data processing method, including:

[0010] In response to the first object's selection operation on the list of on-chain virtual resources, a combination of on-chain virtual resources is obtained; the on-chain ownership of the on-chain virtual resources in the list of on-chain virtual resources belongs to the first object; the combination of on-chain virtual resources includes the on-chain virtual resources selected based on the selection operation, and the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more;

[0011] In response to the resource creation operation of the first object for the on-chain virtual resource combination, a combination virtual resource creation request for the on-chain virtual resource combination is sent to the blockchain network, so that the blockchain network transfers the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combination virtual resource creation request, and issues the target combination virtual resource to the first object address; the on-chain ownership of the target combination virtual resource belongs to the first object;

[0012] In response to the resource transfer operation of the first object for the target combination of virtual resources, a resource transfer request for the on-chain virtual resource combination is sent to the blockchain network, so that the blockchain network transfers the target combination of virtual resources from the address of the first object to the address of the second object according to the resource transfer request; after the transfer, the on-chain ownership of the target combination of virtual resources belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has the on-chain ownership of the target combination of virtual resources, has the authority to transfer the on-chain virtual resource combination from the target contract address to the address of the second object.

[0013] One embodiment of this application provides a blockchain-based data processing device, including:

[0014] The request receiving module is used to receive a request from the first object to create a combination of virtual resources for the combination of on-chain virtual resources; the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more; the on-chain ownership of the on-chain virtual resources in the combination of on-chain virtual resources belongs to the first object;

[0015] The resource issuance module is used to transfer the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combined virtual resource creation request, and issue the target combined virtual resource to the first object address; the on-chain ownership of the target combined virtual resource belongs to the first object;

[0016] The resource transfer module is used to transfer the target combination of virtual resources from the address of the first object to the address of the second object of the second object if a resource transfer request for the target combination of virtual resources is received. After the transfer, the on-chain ownership of the target combination of virtual resources belongs to the second object. The resource transfer request carries the address of the second object. The second object, which has the on-chain ownership of the target combination of virtual resources, has the authority to transfer the combination of on-chain virtual resources from the address of the target contract to the address of the second object.

[0017] The resource distribution module includes:

[0018] The ownership query unit is used to query the on-chain ownership of on-chain virtual resources in the on-chain virtual resource portfolio;

[0019] The resource transfer unit is used to transfer the on-chain virtual resource portfolio from the first object address of the first object to the target contract address if the on-chain ownership of all on-chain virtual resources in the on-chain virtual resource portfolio belongs to the first object.

[0020] The resource generation unit is used to generate target combination virtual resources corresponding to the on-chain virtual resource combination.

[0021] The resource sending unit is used to send the target combined virtual resources to the first object address of the first object.

[0022] The aforementioned data processing device includes:

[0023] The information acquisition module is used to acquire resource description information corresponding to the on-chain virtual resources in the on-chain virtual resource combination;

[0024] The information writing module is used to write resource description information into the metadata body corresponding to the target combined virtual resource to obtain the description metadata body.

[0025] The ledger writing module is used to write the binding relationship between the target combination of virtual resources, the description metadata body, and the first object address of the first object into the blockchain ledger.

[0026] The aforementioned data processing device further includes:

[0027] The result sending module is used to send the resource issuance success result corresponding to the target combination virtual resource to the first object if the binding relationship between the target combination virtual resource, the description metadata body, and the first object address of the first object is successfully written into the blockchain ledger; the resource issuance success result is used to indicate that the on-chain ownership of the target combination virtual resource belongs to the first object.

[0028] The combined virtual resource creation request includes a synthetic smart contract identifier, an object identifier of the first object, and a digital signature.

[0029] The resource distribution module includes:

[0030] The signature verification unit is used to obtain the public key corresponding to the object identifier, and to perform signature verification processing on the digital signature in the combined virtual resource creation request based on the public key to obtain the signature verification result.

[0031] The contract invocation unit is used to invoke the synthetic smart contract indicated by the synthetic smart contract identifier if the signature verification result is a successful signature verification result.

[0032] The contract execution unit is used to transfer the on-chain virtual resource combination from the first object address of the first object to the target contract address by running the synthetic smart contract, and to issue the target combination of virtual resources to the first object address.

[0033] The resource transfer module includes:

[0034] The transaction consensus unit is used to generate a transfer transaction based on the resource transfer request, and broadcast the transfer transaction to the consensus network so that the consensus network can perform transaction consensus processing on the transfer transaction and obtain the transaction consensus result.

[0035] The transaction execution unit is used to execute the transfer transaction if the transaction consensus result is that the transaction consensus is passed.

[0036] The transaction execution unit is also used to transfer the target combination of virtual resources from the first object address to the second object address of the second object during the execution of the transfer transaction.

[0037] The aforementioned data processing device further includes:

[0038] The resource exchange module is used to transfer the target combination of virtual resources from the second object's address to the target contract address if it receives a resource exchange request from the second object for the transferred target combination of virtual resources; the target combination of virtual resources at the target contract address is in a locked state; the second object does not have the authority to transfer the target combination of virtual resources that are in a locked state.

[0039] The resource exchange module is also used to transfer the on-chain virtual resources in the transferred on-chain virtual resource combination to the second object address; the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination located at the second object address belongs to the second object.

[0040] One embodiment of this application provides a blockchain-based data processing device, including:

[0041] The combination acquisition module is used to respond to the selection operation of the first object on the list of on-chain virtual resources and acquire the combination of on-chain virtual resources; the on-chain ownership of the on-chain virtual resources in the list of on-chain virtual resources belongs to the first object; the combination of on-chain virtual resources includes the on-chain virtual resources selected based on the selection operation, and the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more;

[0042] The request sending module is used to respond to the resource creation operation of the first object for the on-chain virtual resource combination, and send a combination virtual resource creation request for the on-chain virtual resource combination to the blockchain network, so that the blockchain network transfers the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combination virtual resource creation request, and issues the target combination virtual resource to the first object address; the on-chain ownership of the target combination virtual resource belongs to the first object;

[0043] The resource transfer module is used to respond to the resource transfer operation of the first object for the target combination of virtual resources by sending a resource transfer request for the on-chain virtual resource combination to the blockchain network, so that the blockchain network transfers the target combination of virtual resources from the address of the first object to the address of the second object according to the resource transfer request; the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has the on-chain ownership of the target combination of virtual resources, has the authority to transfer the on-chain virtual resource combination from the target contract address to the address of the second object.

[0044] The request sending module includes:

[0045] The identifier acquisition unit is used to respond to the resource creation operation of the first object for the on-chain virtual resource combination and acquire the first decentralized identifier corresponding to the first object;

[0046] The address acquisition unit is used to obtain the object address associated with the first decentralized identifier from the identifier database, and use it as the first object address;

[0047] The request generation unit is used to generate an initial combined virtual resource creation request for the combination of on-chain virtual resources based on the address of the first object.

[0048] The private key acquisition unit is used to acquire the object private key associated with the first object address from the identifier database, and use it as the first object private key;

[0049] The signature unit is used to sign the initial combined virtual resource creation request using the private key of the first object to obtain the combined virtual resource creation request.

[0050] The request sending unit is used to send the combined virtual resource creation request to the blockchain network.

[0051] The aforementioned data processing device further includes:

[0052] The identity verification module is used to respond to the registration operation of the first object and obtain the object identity information corresponding to the first object.

[0053] The identity verification module is also used to verify the identity information of an object and obtain the identity verification result;

[0054] The identifier allocation module is used to assign a first decentralized identifier to the first object if the authentication result is successful.

[0055] The on-chain identifier module is used to initiate an on-chain request for the first decentralized identifier to the blockchain network, so that the blockchain network can obtain the first object address and the first object private key corresponding to the object identity information, and perform a blockchain ledger writing operation on the association relationship between the first decentralized identifier, the first object address and the first object private key.

[0056] The identifier storage module is used to write the first decentralized identifier, the first object address, and the first object private key into the identifier database if the association between the first decentralized identifier and the first object address is successfully written into the blockchain ledger.

[0057] The aforementioned data processing device further includes:

[0058] The resource exchange module is used to respond to resource exchange operations by the second object for the transferred target combination of virtual resources. It sends a resource exchange request to the blockchain network for the transferred target combination of virtual resources, causing the blockchain network to transfer the transferred target combination of virtual resources from the second object's address to the target contract address, and to transfer the on-chain virtual resources in the transferred on-chain virtual resource combination to the second object's address. The target combination of virtual resources at the target contract address is in a locked state. The second object does not have the authority to transfer the locked target combination of virtual resources. The on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination at the second object's address belongs to the second object.

[0059] One embodiment of this application provides a computer device, including: a processor, a memory, and a network interface;

[0060] The processor is connected to the memory and the network interface. The network interface is used to provide a data communication network element, the memory is used to store a computer program, and the processor is used to call the computer program to execute the method in the embodiments of this application.

[0061] One aspect of this application provides a computer-readable storage medium storing a computer program adapted for loading by a processor and executing the methods described in this application.

[0062] One aspect of this application provides a computer program product or computer program that 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 method described in this application.

[0063] In this embodiment, upon receiving a request from a first object to create a combination of virtual resources for a combination of on-chain virtual resources, the on-chain virtual resource combination can be transferred from the first object's first object address to the target contract address according to the request, and the target combination of virtual resources can be issued to the first object address. The number of resource types in the on-chain virtual resources combination is one or more; the on-chain ownership of the on-chain virtual resources in the combination belongs to the first object; the on-chain ownership of the target combination of virtual resources belongs to the first object. Then, if a resource transfer request for the target combination of virtual resources is received, the target combination of virtual resources is transferred from the first object address to the second object address of a second object according to the resource transfer request. The on-chain ownership of the transferred target combination of virtual resources belongs to the second object; the resource transfer request carries the second object address; the second object, having on-chain ownership of the target combination of virtual resources, has the authority to transfer the combination of on-chain virtual resources from the target contract address to the second object address. The method provided in this application allows for the batch transfer of multiple on-chain virtual resources. Multiple on-chain virtual resources can be transferred to a target contract address and locked. Then, a target combination of virtual resources is issued for these multiple virtual resources. An object with on-chain ownership of the target combination of virtual resources has the authority to transfer the combination of on-chain virtual resources from the target contract address to the object's address. In other words, subsequent transfers only require the target combination of virtual resources to achieve the batch transfer of multiple on-chain virtual resources, saving resources. Attached Figure Description

[0064] 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.

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

[0066] Figure 2a This is a schematic diagram of a scenario for generating a combined virtual resource creation request, provided in an embodiment of this application.

[0067] Figure 2b This is a schematic diagram illustrating a scenario of issuing a target combination of virtual resources according to an embodiment of this application;

[0068] Figure 2c This is a schematic diagram illustrating a scenario of transferring a target combination of virtual resources, provided in an embodiment of this application.

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

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

[0071] Figure 5 This is a schematic diagram of a system architecture provided in an embodiment of this application;

[0072] Figure 6 This is a schematic diagram of data interaction provided in an embodiment of this application;

[0073] Figure 7 This is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of this application;

[0074] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application;

[0075] Figure 9 This is a schematic diagram of another blockchain-based data processing device provided in the embodiments of this application;

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

[0077] 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.

[0078] Please see Figure 1 , Figure 1This is a schematic diagram of a network architecture 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 can distinguish nodes into consensus nodes and business nodes, with the consensus node responsible for achieving consensus across the entire blockchain network. The process of writing transaction data into the ledger in a blockchain network can be as follows: the client sends transaction data to a business node, which then relays the transaction data among the business nodes in the blockchain network until the consensus node receives it. The consensus node then packages the transaction data into a block and reaches a consensus with other consensus nodes. After the consensus is passed, the block carrying the transaction data is written into the ledger.

[0079] In this context, it can be understood that a block is a data packet that carries transaction data (i.e., transaction business) on a blockchain network. It is a data structure that is marked with a timestamp and the hash value of the previous block. The transactions in the block are verified and confirmed by the network's consensus mechanism.

[0080] In this context, a hash value, also known as an information feature value or characteristic value, is generated by converting input data of arbitrary length into cryptographic data and producing a fixed output using a hash algorithm. The original input data cannot be retrieved by decrypting the hash value; it is a one-way cryptographic function. In a blockchain, each block (except the initial block) contains the hash value of its predecessor block, which is called the parent block of the current block. The hash value is a core and crucial aspect of blockchain technology, preserving the authenticity of recorded and viewed data, as well as the integrity of the blockchain as a whole.

[0081] It is understood that a blockchain system can include smart contracts. A smart contract can be understood and executed by all nodes in the blockchain (including consensus nodes), capable of executing arbitrary logic and producing results. Users can initiate a transaction request through a client, invoking a smart contract already deployed on the blockchain. Subsequently, the transaction nodes on the blockchain can send the request to the consensus nodes, which can then run the smart contract. It should be understood that a blockchain can include one or more smart contracts, distinguished by an identity document (ID) or name. The client's transaction request can also carry the smart contract's identity document or name, specifying the smart contract the blockchain needs to run. If the smart contract specified by the client requires data retrieval, each consensus node will access its local ledger to read the data. Finally, the consensus nodes will verify the consistency of the execution results (i.e., reach consensus). If they are consistent, the execution result can be stored in their respective local ledgers and returned to the client.

[0082] like Figure 1 As shown, the network architecture may include a blockchain node cluster 1000, a business server (server-side) cluster 100, and a terminal device (client-side) cluster 10. The blockchain node cluster 1000 may include at least two blockchain nodes. Figure 1 As shown, the blockchain node cluster 1000 may include blockchain node 1000a, blockchain node 1000b, ..., blockchain node 1000n; the business server cluster 100 may specifically include business server 100a, business server 100b, ..., business server 100n; and the terminal device cluster 10 may specifically include terminal device 10a, terminal device 10b, ..., terminal device 10n.

[0083] like Figure 1 As shown, terminal devices 10a, 10b, ..., 10n can respectively connect to business servers 100a, 100b, ..., 100n, so that the terminal devices can interact with the business servers through the data connection; business servers 100a, 100b, ..., 100n can respectively connect to blockchain nodes 1000a, 1000b, ..., 1000n, so that the business servers can interact with the blockchain nodes through the data connection; blockchain nodes 1000a, 1000b, ..., 1000n are interconnected, so that the blockchain nodes can interact with each other.

[0084] It is understandable that blockchain nodes can transmit data or blocks through the aforementioned data connections. The blockchain network can establish data connections between blockchain nodes based on node identifiers. Each blockchain node in the network has a corresponding node identifier, and each blockchain node can store the node identifiers of other blockchain nodes that are connected to it. This allows it to broadcast acquired data or generated blocks to other blockchain nodes based on their node identifiers. For example, blockchain node 1000a can maintain a node identifier list as shown in Table 1, which stores the node names and node identifiers of other nodes.

[0085] Table 1

[0086] Blockchain node 1000a AAA.AAA.AAA.AAA Blockchain node 1000b BBB.BBB.BBB.BBB … … 1000n blockchain nodes CCC.CCC.CCC.CCC

[0087] The node identifier can be an Internet Protocol (IP) address or any other information that can be used to identify a blockchain node in a blockchain network. Table 1 only uses IP addresses as an example. For instance, blockchain node 1000a can send information (e.g., transaction data) to blockchain node 1000b using the node identifier BBB.BBB.BBB.BBB, and blockchain node 1000b can determine that the information was sent by blockchain node 1000a using the node identifier AAA.AAA.AAA.AAA.

[0088] In blockchain, before a block is added to the chain, it must pass consensus among the consensus nodes in the blockchain network. Only after consensus is reached can the block be added to the blockchain. Understandably, when blockchain is used in scenarios involving government or commercial institutions, not all participating nodes in the blockchain (i.e., the blockchain nodes in the aforementioned blockchain node cluster of 1000) have sufficient resources and the necessity to become consensus nodes. For example, in... Figure 1 In the blockchain node cluster 1000 shown, blockchain nodes 1000a, 1000b, and 1000n can be used as consensus nodes. Consensus nodes in blockchain node cluster 1000 participate in consensus, that is, reaching consensus on blocks (containing a batch of transactions), including generating blocks and voting on blocks; while non-consensus nodes do not participate in consensus, but help propagate block and voting messages, and synchronize states with each other.

[0089] It is understood that the above-mentioned data connection is not limited to the connection method. It can be connected directly or indirectly through wired communication, or directly or indirectly through wireless communication, or through other connection methods. This application does not impose any restrictions on this.

[0090] It is understood that the blockchain-based data processing method provided in this application embodiment can be executed by a computer device, which includes, but is not limited to, the aforementioned blockchain node (which can be a terminal or a server), a business server, and a terminal device. The aforementioned server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing 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, CDN, and big data and artificial intelligence platforms. The aforementioned terminal device can be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, etc., but is not limited to these.

[0091] It is understood that the embodiments of this application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, and assisted driving.

[0092] It is understood that, in the specific embodiments of this application, the transaction data and other related data involved need to obtain user permission or consent when the above embodiments of this application are applied to specific products or technologies, and the collection, use and processing of related data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0093] like Figure 1 As shown, each terminal device in the terminal device cluster can have an application client installed. When the application client runs on each terminal device, it can interact with any business server in the aforementioned business server cluster 100, enabling any business server in the business server cluster 100 to receive business data from each terminal device. The application client can be a game application, video editing application, social application, instant messaging application, live streaming application, short video application, video application, music application, shopping application, novel application, payment application, browser, or other application client with the function of displaying text, images, audio, and video data. The application client can be a standalone client or an embedded sub-client integrated into another client (such as an instant messaging client, social client, video client, etc.), without limitation.

[0094] The terminal device bound to the first object can obtain off-chain digital products through an application client. These off-chain digital products can include media data such as images, videos, music, and game equipment that can be bound to on-chain virtual resources. The on-chain virtual resource represents the ownership of the off-chain digital product stored in the blockchain network; it can be understood as a certificate. When the first object has on-chain ownership of a certain on-chain virtual resource, it proves that the off-chain digital product corresponding to that virtual resource belongs to the first object. The first object can transfer on-chain virtual resources to the second object through transactions in the blockchain network, that is, transfer the on-chain ownership of the virtual resources to the second object. However, because the resource types of on-chain virtual resources are different, i.e., the corresponding protocol standards are different, the transfer methods are different. When the first object wants to transfer multiple on-chain virtual resources to the second object, it often requires multiple transactions to complete, resulting in higher costs.

[0095] To achieve low-consumption batch transfer of on-chain virtual resources, this application provides a blockchain-based data processing method. When a blockchain node receives a request from a first object to create a combination of on-chain virtual resources, it transfers the combination of on-chain virtual resources from the first object's first object address to the target contract address, and issues the target combination of virtual resources to the first object address. Specifically, the number of resource types in the on-chain virtual resources combination can be one or more; the on-chain ownership of the on-chain virtual resources in the combination belongs to the first object; the first object address is a unique address generated in the blockchain network based on the public-private key pair bound to the first object, and is also the unique address used to identify the first object on the blockchain; the on-chain ownership of the target combination of virtual resources belongs to the first object. Then, if a resource transfer request for the target combination of virtual resources is received, the target combination of virtual resources is transferred from the first object address to the second object address of a second object according to the resource transfer request. In this process, the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the address of the second object is a unique address generated in the blockchain network based on the public-private key pair bound to the second object, and is also the unique address used to identify the second object on the blockchain; the second object, having on-chain ownership of the target combination of virtual resources, has the authority to transfer the on-chain virtual resource combination from the target contract address to the address of the second object. The second object can continue to transfer the target combination of virtual resources to a third object, or it can choose to exchange the target combination of virtual resources and then acquire on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination in batches.

[0096] To facilitate understanding of the above process, please refer to the following: Figures 2a-2c , Figures 2a-2cThis is a schematic diagram illustrating a blockchain-based data processing scenario provided in an embodiment of this application. Wherein, as... Figures 2a-2c The terminal device 20 shown can be the one described above. Figure 1 Any terminal device in the terminal device cluster 10 shown, such as terminal device 20, can be terminal device 10a; Figures 2a-2c The business server 200 shown can be the one described above. Figure 1 Any business server in the business server cluster 100 shown, such as business server 200, could be business server 200b; for example... Figures 2a-2c The blockchain network 2000 shown can be the above. Figure 1 The blockchain network shown is composed of 1000 blockchain node clusters. Blockchain node 2001 in blockchain network 2000 can be one of the aforementioned... Figure 1 Any blockchain node in the blockchain node cluster 1000 shown, such as blockchain node 2001, is blockchain node 1000a.

[0097] Please refer to [the website / information] first. Figure 2a , Figure 2a This is a schematic diagram illustrating a scenario for generating a combined virtual resource creation request, provided in an embodiment of this application. Assume that terminal device 20 is bound to object A, and terminal device 20 has a social application client installed. Any ordinary object with login permissions to this social application can obtain on-chain virtual resources issued by the resource platform corresponding to the social application, and thus own the off-chain digital products corresponding to these on-chain virtual resources. For example... Figure 2a As shown, the terminal device 20 displays a list 201 of on-chain virtual resources associated with object A. This list 201 includes on-chain virtual resources 2011, 2012, 2013, and 2014. The on-chain ownership of all on-chain virtual resources in list 201 belongs to object A. On-chain virtual resource 2011 can be of the first resource type, on-chain virtual resources 2012 and 2014 can be of the second resource type, and on-chain virtual resource 2013 can be of the third resource type. Each resource type of on-chain virtual resource corresponds to a specific protocol standard for its issuance. It is understood that object A can simultaneously possess multiple resource types of on-chain virtual resources. Because on-chain virtual resources of different resource types cannot be transferred in batches, when object A wants to transfer multiple on-chain virtual resources to object B, multiple transactions are required. However, in this embodiment, when object A wants to transfer multiple on-chain virtual resources to object B, such as... Figure 2aAs shown, object A can first select multiple on-chain virtual resources that it wants to transfer. The business server 200 will respond to object A's selection operation on the on-chain virtual resource list 201, obtain the on-chain virtual resource combination 202, and then continue to respond to object A's resource creation operation on the on-chain virtual resource combination 202 by sending a combination virtual resource creation request for the on-chain virtual resource combination 202 to any blockchain node in the blockchain network 2000, such as blockchain node 2001.

[0098] After receiving a request from object A to create a combined virtual resource for on-chain virtual resource combination 202, blockchain node 2001 can access the first object address 2002 corresponding to object A. Please refer to [link / reference needed]. Figure 2b , Figure 2b This is a schematic diagram illustrating a scenario of issuing a target combination of virtual resources, as provided in an embodiment of this application. Figure 2b As shown, the first object address 2002 stores on-chain virtual resources owned by object A. Blockchain node 2001 can, based on the combined virtual resource creation request, first verify whether the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination 202 belongs to object A. If the on-chain ownership of all the on-chain virtual resources in the on-chain virtual resource combination 202 belongs to object A, the on-chain virtual resources in the on-chain virtual resource combination 202 can be transferred from the first object address 2002 to the target contract address 2003. It should be noted that the on-chain virtual resources transferred to the target contract address 2003 are in a locked state. At this time, the first object cannot transfer the on-chain virtual resources in the locked state. Then, blockchain node 2001 can issue the target combination of virtual resources 2015 to the first object address 2002. It should be noted that this target combination of virtual resources 2015 is associated with the on-chain virtual resource combination 202 locked in the target contract address 2003. The object that owns the on-chain virtual resource combination 2015 has the authority to transfer the on-chain virtual resource combination 202 from the target contract address 2003 to its object address. In other words, if object A wants to transfer the on-chain virtual resources in the on-chain virtual resource combination 202 to object B in bulk, it only needs to transfer the target combination of virtual resources 2015 to object B. It should be noted that the transfer of on-chain virtual resources and the issuance of the target combination of virtual resources can both be achieved through corresponding transactions in the blockchain network initiated by the blockchain node.

[0099] After successfully issuing the target combination of virtual resources 2015 to the first object address 2002, blockchain node 2001 sends a resource issuance result to the business server 200. This result indicates that the on-chain ownership of the target combination of virtual resources belongs to object A. After parsing the result, the business server 200 also notifies the terminal device 20. At this point, the terminal device 20 can add the target combination of virtual resources 2015 to the list of on-chain virtual resources associated with object A. Object A can then perform a resource transfer operation on the displayed target combination of virtual resources 2015. The business server 200 can respond to object A's resource transfer operation on the target combination of virtual resources 2015 by sending a resource transfer request to blockchain node 2001 in the blockchain network 2000. (Please refer to [link to relevant documentation]). Figure 2c , Figure 2c This is a schematic diagram illustrating a scenario of transferring a target combination of virtual resources, as provided in an embodiment of this application. Figure 2c As shown, after receiving a resource transfer request, blockchain node 2001 can generate a transfer transaction corresponding to the request. This transaction is then consensus-driven within the blockchain network. Once consensus is reached, the target virtual resource combination 2015 is transferred from the first object address 2002 to the second object address 2004 associated with object B. After the target virtual resource combination 2015 is successfully transferred to the second object address 2004, its on-chain ownership belongs to object B. At this point, object B has the authority to transfer the on-chain virtual resource combination 202 from the target contract address 2003 to the second object address 2004. However, it should be noted that the on-chain virtual resources within the on-chain virtual resource combination 202 are still in the target contract address 2003, i.e., still locked. Object B does not yet have the authority to directly transfer the locked on-chain virtual resource combination 202. If object B wants to acquire on-chain ownership of the on-chain virtual resources in on-chain virtual resource portfolio 202, it can send a resource exchange request for target portfolio virtual resource 2015. Blockchain node 2001 can then transfer target portfolio virtual resource 2015 from the second object address 2004 to the target contract address 2003 based on this request, and then transfer the on-chain virtual resources in on-chain virtual resource portfolio 202 back to the second object address 2004. At this point, object A has completed the bulk transfer of on-chain virtual resources from on-chain virtual resource portfolio 202 to object B.

[0100] The blockchain-based data processing method provided in this application embodiment can transfer multiple on-chain virtual resources to a target contract address for locking, and then issue a target combination of virtual resources for the multiple on-chain virtual resources. By transferring the on-chain ownership of the target combination of virtual resources, the on-chain ownership of multiple on-chain virtual resources can be indirectly transferred in batches.

[0101] 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. The method can be implemented using blockchain nodes (e.g., the aforementioned...). Figure 1 This method is executed by any blockchain node in the blockchain node cluster 1000 in the corresponding embodiment. The following description uses the execution of this method by a blockchain node as an example, wherein the blockchain-based data processing method may include at least the following steps S101-S103:

[0102] Step S101: The blockchain node receives a request from the first object to create a combination of virtual resources for the combination of on-chain virtual resources; the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more; the on-chain ownership of the on-chain virtual resources in the combination of on-chain virtual resources belongs to the first object.

[0103] Specifically, on-chain virtual resources are a technological means for confirming ownership and transferring off-chain digital products, providing an excellent asset digitization technology for off-chain digital products in the digital economy. Simply put, on-chain virtual resources can be understood as a kind of certificate used to prove ownership of the corresponding off-chain digital product. The on-chain ownership of on-chain virtual resources can be transferred between blockchain objects through transactions within the blockchain, and the ownership of the corresponding off-chain digital product will also change accordingly.

[0104] Specifically, there are various protocol standards available for issuing on-chain virtual resources in blockchain networks. Different protocol standards result in different types of on-chain virtual resources, and these different resource types have different transfer methods within the blockchain. They cannot be transferred through a single transaction; in fact, for certain specific resource types, only one on-chain virtual resource can be transferred per transaction. Therefore, when an entity wants to transfer one or more, or one or more types of on-chain virtual resources, in bulk, it can initiate a request to create a combination of on-chain virtual resources through a bound terminal device. This combination of on-chain virtual resources includes the one or more on-chain virtual resources that the entity wants to transfer, and the number of resource types within the combination can also be one or more. It should be understood that the on-chain ownership of all on-chain virtual resources within the combination belongs to the entity.

[0105] Step S102: According to the combined virtual resource creation request, the on-chain virtual resource combination is transferred from the first object address of the first object to the target contract address, and the target combined virtual resource is issued to the first object address; the on-chain ownership of the target combined virtual resource belongs to the first object.

[0106] Specifically, the first object address can be a unique address generated in the blockchain network based on the public-private key pair bound to the first object. It is also the unique address used to identify the first object on the blockchain. All on-chain virtual resources owned by the first object will be bound to this first object address. The target contract address is a pre-determined address in the smart contract used to store on-chain virtual resources. On-chain virtual resources transferred to the target contract address will be locked, and objects that own the on-chain virtual resources cannot transfer them at this time.

[0107] Specifically, a feasible implementation of transferring the on-chain virtual resource combination from the first object's first object address to the target contract address based on the combined virtual resource creation request, and issuing the target combined virtual resource to the first object address, can be as follows: query the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination; if the on-chain ownership of all the on-chain virtual resources in the on-chain virtual resource combination belongs to the first object, then transfer the on-chain virtual resource combination from the first object's first object address to the target contract address; generate the target combined virtual resource corresponding to the on-chain virtual resource combination; and send the target combined virtual resource to the first object's first object address. In short, after verifying that the on-chain ownership of all the on-chain virtual resources in the on-chain virtual resource combination belongs to the first object, the blockchain node can transfer all the on-chain virtual resources in the on-chain virtual resource combination to the target contract address for locking, then generate the target combined virtual resource based on the on-chain virtual resource combination, and send the target combined virtual resource to the first object address. That is, the first object will have on-chain ownership of the target combined virtual resource. This target combined virtual resource can then prove that the first object has the right to transfer the on-chain virtual resource combination locked in the target contract address.

[0108] Optionally, the blockchain node obtains the resource description information corresponding to the on-chain virtual resources in the on-chain virtual resource combination; writes the resource description information into the metadata body corresponding to the target combination of virtual resources to obtain the description metadata body; and writes the binding relationship between the target combination of virtual resources, the description metadata body, and the first object address of the first object into the blockchain ledger. The resource description information may include the virtual resource identifier corresponding to the on-chain virtual resource, the corresponding off-chain digital product information, etc., and writing it into the metadata body corresponding to the target combination of virtual resources facilitates subsequent queries about which on-chain virtual resources are in the on-chain virtual resource combination corresponding to the target combination of virtual resources.

[0109] Optionally, if the binding relationship between the target combination of virtual resources, the descriptive metadata body, and the address of the first object is successfully written into the blockchain ledger, the resource issuance success result corresponding to the target combination of virtual resources is sent to the first object; the resource issuance success result is used to indicate that the on-chain ownership of the target combination of virtual resources belongs to the first object. The resource issuance result may contain virtual resource information corresponding to the target combination of virtual resources, such as the virtual resource identifier, the bound address of the first object, etc.

[0110] Specifically, the combined virtual resource creation request includes a synthetic smart contract identifier, an object identifier of the first object, and a digital signature. A feasible implementation of transferring the combined virtual resource from the first object's first object address to the target contract address based on the combined virtual resource creation request, and issuing the target combined virtual resource to the first object address, can be as follows: obtain the public key corresponding to the object identifier; verify the digital signature in the combined virtual resource creation request using the public key to obtain the verification result; if the verification result is successful, call the synthetic smart contract indicated by the synthetic smart contract identifier; by running the synthetic smart contract, transfer the combined virtual resource from the first object's first object address to the target contract address, and issue the target combined virtual resource to the first object address. Wherein, if the digital signature is generated based on the first object's private key, it can be verified using the first object's public key. The public key and private key constitute what is commonly known as asymmetric encryption. The public key is publicly accessible, meaning that all blockchain nodes in the blockchain network can obtain the first object's public key; the private key is private, and blockchain nodes cannot obtain the first object's private key. The first object processes the combined virtual resource creation request using its own private key. Since this private key is only owned by the first object, this generates a file that other objects cannot generate, thus forming a digital signature. Blockchain nodes can determine who should have sent the combined virtual resource creation request through the object identifier, and can then obtain the first object's public key to decrypt the digital signature, i.e., verify the signature. Successful verification proves that the combined virtual resource creation request was indeed sent by the first object, and was not mistakenly received or received incorrectly.

[0111] Step S103: If a resource transfer request for the target combination of virtual resources is received, the target combination of virtual resources is transferred from the first object address to the second object address of the second object according to the resource transfer request; the on-chain ownership of the transferred target combination of virtual resources belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has on-chain ownership of the target combination of virtual resources, has the authority to transfer the combination of on-chain virtual resources from the target contract address to the second object address.

[0112] Specifically, the target combination of virtual resources is simply a regular on-chain virtual resource in the blockchain network. The first object with on-chain ownership of the target combination of virtual resources can transfer its on-chain ownership just like any other on-chain virtual resource. It's important to note that because the object with on-chain ownership of the target combination of virtual resources has the authority to transfer its corresponding on-chain virtual resource combination from the target contract address to its corresponding object address in bulk, it can be understood that the first object only needs to transfer the target combination of virtual resources to indirectly achieve the transfer of its corresponding on-chain virtual resource combination as well.

[0113] Specifically, a feasible implementation process for transferring a target combination of virtual resources from the address of a first object to the address of a second object based on a resource transfer request can be as follows: A transfer transaction is generated based on the resource transfer request; the transfer transaction is broadcast to a consensus network so that the consensus network performs transaction consensus processing to obtain a transaction consensus result; if the transaction consensus result is a successful consensus, the transfer transaction is executed; during the execution of the transfer transaction, the target combination of virtual resources is transferred from the address of the first object to the address of the second object. The address of the second object can be a unique address generated in the blockchain network based on the public-private key pair bound to the second object, and is also a unique address used to identify the second object on the blockchain.

[0114] Optionally, once the second object acquires on-chain ownership of the transferred target combination of virtual resources, it gains the authority to transfer the on-chain virtual resource combination from the target contract address to the second object's address. If a blockchain node receives a resource exchange request from the second object for the transferred target combination of virtual resources, it can transfer the transferred target combination of virtual resources from the second object's address to the target contract address. It can be understood that the target combination of virtual resources at the target contract address is also in a locked state, and the second object will not have the authority to transfer the locked target combination of virtual resources. Then, the blockchain node can transfer the on-chain virtual resources in the transferred on-chain virtual resource combination to the second object's address; the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination at the second object's address belongs to the second object. Thus, the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination has been transferred in batches from the first object to the second object.

[0115] According to the method provided in this application embodiment, when a combined virtual resource creation request for a combination of on-chain virtual resources is received from a first object, the combination of on-chain virtual resources can be transferred from the first object address of the first object to the target contract address according to the combined virtual resource creation request, and the target combined virtual resources can be issued to the first object address. The number of resource types of the on-chain virtual resources in the combination is one or more; the on-chain ownership of the on-chain virtual resources in the combination belongs to the first object; the on-chain ownership of the target combined virtual resources belongs to the first object. Then, if a resource transfer request for the target combined virtual resources is received, the target combined virtual resources are transferred from the first object address to the second object address of a second object according to the resource transfer request. The on-chain ownership of the transferred target combined virtual resources belongs to the second object; the resource transfer request carries the second object address; the second object, which has on-chain ownership of the target combined virtual resources, has the authority to transfer the combination of on-chain virtual resources from the target contract address to the second object address. In short, when you want to transfer multiple on-chain virtual resources in batches, you can transfer multiple on-chain virtual resources into a target contract address and lock them. Then, you can issue a target combination of virtual resources for the multiple on-chain virtual resources. An object that owns the target combination of virtual resources on the chain has the authority to transfer the combination of on-chain virtual resources from the target contract address to the address of this object. In other words, you only need to transfer the target combination of virtual resources to further realize the batch transfer of multiple on-chain virtual resources, saving resources.

[0116] 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. The method can be executed by a business device, which can be a terminal device (e.g., the one described above). Figure 1 Any terminal device in the terminal device cluster 10 in the corresponding embodiment can also be a service server (e.g., the one described above). Figure 1 The method can be executed by any business server device in the business server cluster 100 in the corresponding embodiment, or it may include terminal devices and business servers. The following description will use the execution of this method by a business device as an example, wherein the blockchain-based data processing method may include at least the following steps S201-S203:

[0117] Step S201: In response to the first object's selection operation on the list of on-chain virtual resources, obtain a combination of on-chain virtual resources; the on-chain ownership of the on-chain virtual resources in the list of on-chain virtual resources belongs to the first object; the combination of on-chain virtual resources includes the on-chain virtual resources selected based on the selection operation, and the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more.

[0118] Specifically, the first entity can acquire on-chain virtual resources through activities or purchases. The business device can display the on-chain virtual resources owned by the first entity through an on-chain virtual resource list. The first entity can freely select multiple on-chain virtual resources from the list to form an on-chain virtual resource combination, and then transfer the on-chain virtual resource combination in batches.

[0119] Step S202: In response to the resource creation operation of the first object for the on-chain virtual resource combination, a combined virtual resource creation request for the on-chain virtual resource combination is sent to the blockchain network, so that the blockchain network transfers the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combined virtual resource creation request, and issues the target combined virtual resource to the first object address; the on-chain ownership of the target combined virtual resource belongs to the first object.

[0120] Specifically, a feasible implementation of sending a combined virtual resource creation request for the on-chain virtual resource combination to the blockchain network in response to the resource creation operation of the first object for the on-chain virtual resource combination can be as follows: In response to the resource creation operation of the first object for the on-chain virtual resource combination, obtain the first decentralized identifier corresponding to the first object; obtain the object address associated with the first decentralized identifier from the identifier database as the first object address; generate an initial combined virtual resource creation request for the on-chain virtual resource combination based on the first object address; obtain the object private key associated with the first object address from the identifier database as the first object private key; sign the initial combined virtual resource creation request using the first object private key to obtain the combined virtual resource creation request; and send the combined virtual resource creation request to the blockchain network. It should be understood that object addresses on the blockchain are complex and difficult to remember. In order to save resources and facilitate management, a unique first decentralized identifier can be assigned to the first object. Then, the first object is uniquely identified by this decentralized identifier on the blockchain. When a request related to the first object needs to be uploaded to the chain, the first object address of the first object is obtained by using the first decentralized identifier, and the relevant request is signed by using the private key associated with the first object address before being sent to the blockchain network.

[0121] Optionally, in response to the registration operation of the first object, the system obtains the object identity information corresponding to the first object; verifies the object identity information to obtain the identity verification result; if the identity verification result is successful, a first decentralized identifier is assigned to the first object; a request to the blockchain network to upload the first decentralized identifier is initiated, so that the blockchain network obtains the first object address and the first object private key corresponding to the object identity information, and the association relationship between the first decentralized identifier, the first object address, and the first object private key is written into the blockchain ledger; if the association relationship between the first decentralized identifier and the first object address is successfully written into the blockchain ledger, the first decentralized identifier, the first object address, and the first object private key are associated and written into the identifier database. It can be understood that when the first object initially...

[0122] Step S203: In response to the resource transfer operation of the first object for the target combination of virtual resources, a resource transfer request for the on-chain virtual resource combination is sent to the blockchain network, so that the blockchain network transfers the target combination of virtual resources from the address of the first object to the address of the second object according to the resource transfer request.

[0123] Specifically, the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has on-chain ownership of the target combination of virtual resources, has the authority to transfer the combination of on-chain virtual resources from the target contract address to the address of the second object.

[0124] Optionally, in response to the second object's resource exchange operation for the transferred target combination of virtual resources, a resource exchange request for the transferred target combination of virtual resources is sent to the blockchain network. This causes the blockchain network to transfer the transferred target combination of virtual resources from the second object's address to the target contract address, and to transfer the on-chain virtual resources in the transferred on-chain virtual resource combination to the second object's address. The target combination of virtual resources at the target contract address is in a locked state; the second object does not have the authority to transfer the locked target combination of virtual resources; and the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination at the second object's address belongs to the second object.

[0125] The method provided in this application allows for the batch transfer of multiple on-chain virtual resources. Multiple on-chain virtual resources can be transferred to a target contract address and locked. Then, a target combination of virtual resources is issued for these multiple virtual resources. An object with on-chain ownership of the target combination of virtual resources has the authority to transfer the combination of on-chain virtual resources from the target contract address to the object's address. In other words, subsequent transfers only require the target combination of virtual resources to achieve the batch transfer of multiple on-chain virtual resources, saving resources.

[0126] Further, please see Figure 5 , Figure 5 This is a schematic diagram of a system architecture provided in an embodiment of this application. For example... Figure 5 As shown in the diagram, the system architecture includes a terminal device 51, a blockchain mini-program / application 52, a decentralized service 53, an on-chain virtual resource management service 54, and a blockchain network 55. The terminal device 51 can be one of the aforementioned components. Figure 1 Any terminal device in the terminal device cluster 10 shown, such as terminal device 10a. The blockchain mini-program / application 52 can be a mini-program, a native app, or an H5 (Hypertext Markup Language 5) page. The application client of the blockchain mini-program / application 52 can be integrated and installed in terminal device 51, and can communicate with its corresponding backend server (which can be the aforementioned...) through terminal device 51. Figure 1 Data interaction can be performed between any business server in the business server cluster 100 shown, such as business server 100a. The architecture can adopt either a C / S (Client / Server) or B / S (Browser / Server) model. The decentralized service 53 is used to manage the decentralized identifier of objects and can be deployed on a decentralized server (which can be one of the aforementioned servers). Figure 1 This refers to any business server in the business server cluster 100 shown, such as business server 100b). The on-chain virtual resource management service 54 is responsible for handling requests from objects regarding on-chain virtual resources within the blockchain, and can be deployed on a management server (which may be the aforementioned...). Figure 1 On any business server in the business server cluster 100 shown, for example, business server 100n). The blockchain network 55 can be one of the aforementioned... Figure 1 The blockchain network shown consists of a cluster of 1000 blockchain nodes. It is understood that the decentralized service 53 and the on-chain virtual resource management service 54 can be deployed on the same server, which can also be the backend server corresponding to the blockchain mini-program / application 52; this application does not impose any restrictions here.

[0127] To better understand the data interaction process in the system architecture, please also refer to... Figure 6 , Figure 6 This is a data interaction diagram provided in an embodiment of this application. Because the transfer of on-chain virtual resources involves a first object and a second object, assuming the first object is associated with terminal device A and the second object is associated with terminal device B, it can be understood that terminal device A and terminal device B can be the same terminal device, as described above. Figure 5 The terminal device 51 shown is an example. Figure 6 As shown, when terminal device A, terminal device B, blockchain mini-program / application 52, decentralized service 53, on-chain virtual resource management service 54, and blockchain network 55 jointly complete the batch transfer of on-chain virtual resources in the on-chain virtual resource combination, the data interaction process between them includes the following steps S61-S622:

[0128] In step S61, terminal device A generates an information registration request for the first object through the blockchain mini-program / application 52.

[0129] Specifically, when the first user uses the blockchain mini-program / application for the first time, they should first register their information and obtain a unique decentralized identifier.

[0130] In step S62, the blockchain mini-program / application 52 sends an information registration request for the first object to the decentralized service 53.

[0131] In step S63, the decentralized service 53 performs information verification processing on the object information of the first object.

[0132] Specifically, information verification processing can be used to verify whether the relevant object information of the first object is true or correct.

[0133] In step S64, if the information verification is successful, the decentralized service 53 requests the decentralized identifier to be uploaded to the blockchain network 55.

[0134] Specifically, during the process of putting the decentralized identifier on the blockchain, the decentralized identifier of the first object, the public and private keys of the first object, and the address of the first object will be bound and written into the blockchain ledger for recording.

[0135] Step S65: Registration successful. Decentralized service 53 returns a decentralized identifier to blockchain mini-program / application 52.

[0136] In step S66, terminal device A determines the combination of on-chain virtual resources through blockchain mini-program / application 52.

[0137] Specifically, the first entity can acquire multiple on-chain virtual resources through activities within the blockchain mini-program / application 52 or by direct purchase. The first entity can then combine and transfer these on-chain virtual resources. Therefore, the first entity can arbitrarily choose the on-chain virtual resources it possesses to form a combination of on-chain virtual resources.

[0138] In step S67, the blockchain mini-program / application 52 applies to the on-chain virtual resource management service 54 to create the target combination of virtual resources.

[0139] Specifically, the first object can apply to synthesize and transfer on-chain virtual resources of different protocol standards through the blockchain mini-program / application 52, and the blockchain mini-program / application 52 will send the application to the on-chain virtual resource management service 54.

[0140] In step S68, the on-chain virtual resource management service 54 sends a combined virtual resource creation request to the blockchain network 55.

[0141] Specifically, the public and private keys of the first object in the blockchain network can be hosted in the on-chain virtual resource management service 54. The on-chain virtual resource management service 54 can use the private key hosted by the first object to sign the initial combined virtual resource creation request, write the contract identifier corresponding to the synthetic smart contract in the blockchain network 55, and then send the obtained combined virtual resource creation request to any blockchain node in the blockchain network 55.

[0142] In step S69, the blockchain network 55 will transfer the on-chain virtual resource combination to the contract address.

[0143] In step S610, the blockchain network 55 issues the target combination of virtual resources to the first object address and records the information of the virtual resource combination on the chain.

[0144] Specifically, the blockchain network 55 will record the information of the on-chain virtual resources in the on-chain virtual resource combination into the metadata body corresponding to the target combination of virtual resources, and store it on the chain.

[0145] In step S611, the blockchain network 55 returns the resource issuance result to the on-chain virtual resource management service 54.

[0146] Specifically, after the target combination of virtual resources is successfully issued, the blockchain network 55 will send the resource issuance result to the on-chain virtual resource management service 54 to indicate that the first object has successfully owned the target combination of virtual resources.

[0147] In step S612, the on-chain virtual resource management service 54 returns the resource issuance result to the blockchain mini-program / application 52.

[0148] In step S613, terminal device A displays the resource issuance results through the blockchain mini-program / application 52.

[0149] In step S614, terminal device A applies to transfer the target combination of virtual resources to the second object through the blockchain mini-program / application 52.

[0150] In step S615, the blockchain mini-program / application 52 sends a resource transfer request to the on-chain virtual resource management service 54.

[0151] In step S616, the on-chain virtual resource management service 54 requests the blockchain network 55 to transfer the target combination of virtual resources on the blockchain.

[0152] Step S617: Blockchain network 55 successfully transferred the target combination of virtual resources and notified the blockchain mini-program / application 52.

[0153] Specifically, the target combination of virtual resources is successfully transferred in the blockchain network 55, that is, the target combination of virtual resources owned by the first object is transferred to the second object. The result of the transfer will be synchronized to the on-chain virtual resource management service 54 and the blockchain mini-program / application 52 in turn, and the terminal device B can display the target combination of virtual resources owned by the second object.

[0154] In step S618, terminal device B can apply to exchange for the target combination of virtual resources through the blockchain mini-program / application 52.

[0155] Specifically, the second object can continue to transfer the target combination of virtual resources through terminal device B, or exchange them in the synthetic smart contract to obtain multiple on-chain virtual resources in the on-chain virtual resource combination corresponding to the target combination of virtual resources.

[0156] In step S619, the blockchain mini-program / application 52 sends a resource exchange request for the target combination of virtual resources to the blockchain network 55.

[0157] Specifically, the blockchain mini-program / application 52 can first forward the application request to the on-chain virtual resource management service 54. The on-chain virtual resource management service 54 uses the private key held by the second object to sign the application request to obtain the resource exchange request, and then put it on the chain.

[0158] In step S620, within the blockchain network 55, the target combination of virtual resources is locked through a contract, and the on-chain virtual resource combination is transferred to the second object address.

[0159] Specifically, locking a target combination of virtual resources through a contract means transferring the target combination of virtual resources to a contract address for locking, and then transferring the on-chain virtual resources in the locked combination of on-chain virtual resources in the contract address to a second object address.

[0160] In step S621, the blockchain network 55 returns the resource transfer result to the blockchain mini-program / application 52.

[0161] In step S622, terminal device B displays the resource transfer result through the blockchain mini-program / application 52.

[0162] Specifically, the resource transfer result includes multiple on-chain virtual resources split from the on-chain virtual resource combination, and terminal device B can display the information corresponding to these multiple on-chain virtual resources.

[0163] The method provided in this application combines multiple transactions for bulk transfer of on-chain virtual resources into a single transaction, reducing transaction fees for bulk transfer of on-chain virtual resources and the number of blockchain calls, saving blockchain storage resources. Furthermore, the on-chain virtual resource transactions are transferred and exchanged through contracts, avoiding the transaction risks associated with third-party platforms.

[0164] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of this application. The data processing device 1 can be a computer program (including program code) running on a computer device; for example, the data processing device 1 is an application software. The data processing device 1 can be used to execute corresponding steps in the data processing method provided in the embodiments of this application. Figure 7 As shown, the data processing device 1 may include: a request receiving module 11, a resource issuing module 12, and a resource transfer module 13.

[0165] The request receiving module 11 is used to receive a request from the first object to create a combination of virtual resources for the combination of on-chain virtual resources; the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more; the on-chain ownership of the on-chain virtual resources in the combination of on-chain virtual resources belongs to the first object;

[0166] Resource issuance module 12 is used to transfer the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combined virtual resource creation request, and issue the target combined virtual resource to the first object address; the on-chain ownership of the target combined virtual resource belongs to the first object;

[0167] The resource transfer module 13 is used to transfer the target combination of virtual resources from the first object address to the second object address of the second object according to the resource transfer request if a resource transfer request for the target combination of virtual resources is received; the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has the on-chain ownership of the target combination of virtual resources, has the authority to transfer the combination of on-chain virtual resources from the target contract address to the second object address.

[0168] The specific implementation methods of the request receiving module 11, resource issuing module 12, and resource transfer module 13 can be found in the above description. Figure 3 The descriptions of steps S101-S103 in the corresponding embodiments will not be repeated here.

[0169] The resource issuance module 12 includes: an ownership query unit 121, a resource transfer unit 122, a resource generation unit 123, and a resource sending unit 124.

[0170] Ownership query unit 121 is used to query the on-chain ownership of on-chain virtual resources in the on-chain virtual resource portfolio;

[0171] Resource transfer unit 122 is used to transfer the on-chain virtual resource combination from the first object address of the first object to the target contract address if the on-chain ownership of all on-chain virtual resources in the on-chain virtual resource combination belongs to the first object.

[0172] Resource generation unit 123 is used to generate target combination virtual resources corresponding to the on-chain virtual resource combination;

[0173] Resource sending unit 124 is used to send the target combined virtual resources to the first object address of the first object.

[0174] The specific implementation methods of the ownership query unit 121, resource transfer unit 122, resource generation unit 123, and resource sending unit 124 can be found in the above description. Figure 3 The specific description of step S102 in the corresponding embodiments will not be repeated here.

[0175] The aforementioned data processing device 1 includes: an information acquisition module 14, an information writing module 15, and a ledger writing module 16.

[0176] Information acquisition module 14 is used to acquire resource description information corresponding to the on-chain virtual resources in the on-chain virtual resource combination;

[0177] Information writing module 15 is used to write resource description information into the metadata body corresponding to the target combination virtual resource to obtain the description metadata body;

[0178] Ledger writing module 16 is used to write the binding relationship between the target combination virtual resources, the description metadata body, and the first object address of the first object into the blockchain ledger.

[0179] The specific implementation methods of the information acquisition module 14, the information writing module 15, and the ledger writing module 16 can be found in the above description. Figure 3 The optional description of step S102 in the corresponding embodiments will not be repeated here.

[0180] The data processing device 1 mentioned above also includes a result sending module 17.

[0181] The result sending module 17 is used to send the resource issuance success result corresponding to the target combination virtual resource to the first object if the binding relationship between the target combination virtual resource, the description metadata body and the first object address of the first object is successfully written into the blockchain ledger; the resource issuance success result is used to indicate that the on-chain ownership of the target combination virtual resource belongs to the first object.

[0182] The specific implementation of the result sending module 17 can be found in the above description. Figure 3 The optional description of step S102 in the corresponding embodiments will not be repeated here.

[0183] The combined virtual resource creation request includes a synthetic smart contract identifier, an object identifier of the first object, and a digital signature.

[0184] The resource issuance module 12 includes: a signature verification unit 125, a contract invocation unit 126, and a contract execution unit 127.

[0185] The signature verification unit 125 is used to obtain the public key corresponding to the object identifier, and to perform signature verification processing on the digital signature in the combined virtual resource creation request based on the public key to obtain the signature verification result.

[0186] Contract invocation unit 126 is used to invoke the synthetic smart contract indicated by the synthetic smart contract identifier if the signature verification result is a signature verification pass result.

[0187] Contract execution unit 127 is used to transfer the on-chain virtual resource combination from the first object address of the first object to the target contract address by running a synthetic smart contract, and to issue the target combination virtual resources to the first object address.

[0188] The specific implementation methods of the signature verification unit 125, the contract invocation unit 126, and the contract execution unit 127 can be found in the above description. Figure 3 The specific description of step S102 in the corresponding embodiments will not be repeated here.

[0189] The resource transfer module 13 includes a transaction consensus unit 131 and a transaction execution unit 132.

[0190] The transaction consensus unit 131 is used to generate a transfer transaction based on a resource transfer request, and broadcast the transfer transaction to the consensus network so that the consensus network can perform transaction consensus processing on the transfer transaction and obtain a transaction consensus result.

[0191] The transaction execution unit 132 is used to execute a transfer transaction if the transaction consensus result is that the transaction consensus is passed.

[0192] The transaction execution unit 132 is also used to transfer the target combination of virtual resources from the first object address to the second object address of the second object during the execution of the transfer transaction.

[0193] The specific implementation methods of the transaction consensus unit 131 and the transaction execution unit 132 can be found in the above description. Figure 3 The specific description of step S103 in the corresponding embodiments will not be repeated here.

[0194] The data processing device 1 mentioned above also includes a resource exchange module 18.

[0195] The resource exchange module 18 is used to transfer the target combination virtual resources from the second object's address to the target contract address if it receives a resource exchange request from the second object for the transferred target combination virtual resources; the target combination virtual resources at the target contract address are in a locked state; the second object does not have the authority to transfer the target combination virtual resources that are in a locked state.

[0196] The resource exchange module 18 is also used to transfer the on-chain virtual resources in the transferred on-chain virtual resource combination to the second object address; the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination at the second object address belongs to the second object.

[0197] The specific implementation of the resource exchange module 18 can be found in the above description. Figure 3 The optional embodiments described in the corresponding examples will not be repeated here.

[0198] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 8 As shown above, Figure 7The data processing device 1 in the corresponding embodiment can be applied to a computer device 8000, which may include a processor 8001, a network interface 8004, and a memory 8005. Furthermore, the computer device 8000 may also include a user interface 8003 and at least one communication bus 8002. The communication bus 8002 is used to enable communication between these components. The user interface 8003 may include a display screen and a keyboard; optionally, the user interface 8003 may also include a standard wired interface or a wireless interface. The network interface 8004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 8005 may be a high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 8005 may also be at least one storage device located remotely from the processor 8001. Figure 8 As shown, the memory 8005, 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 program.

[0199] In such Figure 8 In the computer device 8000 shown, the network interface 8004 provides network communication elements; the user interface 8003 is mainly used to provide an input interface for users; and the processor 8001 can be used to call the device control application stored in the memory 8005 to achieve:

[0200] Receive a request from the first object to create a combination of virtual resources for the combination of on-chain virtual resources; the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more; the on-chain ownership of the on-chain virtual resources in the combination of on-chain virtual resources belongs to the first object;

[0201] Based on the request to create a combined virtual resource, the on-chain virtual resource combination is transferred from the first object address of the first object to the target contract address, and the target combined virtual resource is issued to the first object address; the on-chain ownership of the target combined virtual resource belongs to the first object;

[0202] If a resource transfer request for the target combination of virtual resources is received, the target combination of virtual resources is transferred from the first object address to the second object address of the second object according to the resource transfer request; the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has on-chain ownership of the target combination of virtual resources, has the authority to transfer the on-chain virtual resource combination from the target contract address to the second object address.

[0203] It should be understood that the computer device 8000 described in the embodiments of this application can execute the foregoing text. Figure 3 The description of the data processing method in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated.

[0204] Furthermore, it should be noted that this application embodiment also provides a computer-readable storage medium, which stores a computer program executed by the aforementioned data processing device 1. The computer program includes program instructions, and when the processor executes the program instructions, it can execute the aforementioned... Figure 3 The description of the data processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.

[0205] Further, please see Figure 9 , Figure 9 This is a schematic diagram of another blockchain-based data processing device provided in this application embodiment. The aforementioned data processing device 2 can be a computer program (including program code) running on a computer device; for example, the data processing device 2 is an application software. The data processing device 2 can be used to execute the corresponding steps in the method provided in this application embodiment. Figure 9 As shown, the data processing device 2 may include: a combination acquisition module 21, a request sending module 22, and a resource transfer module 23.

[0206] The combination acquisition module 21 is used to respond to the selection operation of the first object on the list of on-chain virtual resources and acquire the combination of on-chain virtual resources; the on-chain ownership of the on-chain virtual resources in the list of on-chain virtual resources belongs to the first object; the combination of on-chain virtual resources includes the on-chain virtual resources selected based on the selection operation, and the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more.

[0207] The request sending module 22 is used to respond to the resource creation operation of the first object for the on-chain virtual resource combination, and send a combination virtual resource creation request for the on-chain virtual resource combination to the blockchain network, so that the blockchain network transfers the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combination virtual resource creation request, and issues the target combination virtual resource to the first object address; the on-chain ownership of the target combination virtual resource belongs to the first object;

[0208] Resource transfer module 23 is used to respond to the resource transfer operation of the first object for the target combination of virtual resources, and send a resource transfer request for the on-chain virtual resource combination to the blockchain network, so that the blockchain network transfers the target combination of virtual resources from the address of the first object to the address of the second object according to the resource transfer request; the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has the on-chain ownership of the target combination of virtual resources, has the authority to transfer the on-chain virtual resource combination from the target contract address to the address of the second object.

[0209] The specific implementation methods of the combined acquisition module 21, the request sending module 22, and the resource transfer module 23 can be found in the above description. Figure 4 The descriptions of steps S201-S203 in the corresponding embodiments will not be repeated here.

[0210] The request sending module 22 includes: an identifier acquisition unit 221, an address acquisition unit 222, a request generation unit 223, a private key acquisition unit 224, a signature unit 225, and a request sending unit 226.

[0211] The identifier acquisition unit 221 is used to respond to the resource creation operation of the first object for the on-chain virtual resource combination and acquire the first decentralized identifier corresponding to the first object.

[0212] Address acquisition unit 222 is used to acquire the object address associated with the first decentralized identifier from the identifier database, and use it as the first object address;

[0213] The request generation unit 223 is used to generate an initial combined virtual resource creation request for the combination of on-chain virtual resources based on the address of the first object;

[0214] Private key acquisition unit 224 is used to acquire the object private key associated with the first object address from the identifier database, and use it as the first object private key;

[0215] Signature unit 225 is used to sign the initial combined virtual resource creation request using the private key of the first object to obtain the combined virtual resource creation request.

[0216] The request sending unit 226 is used to send a combined virtual resource creation request to the blockchain network.

[0217] The specific implementation methods of the identifier acquisition unit 221, address acquisition unit 222, request generation unit 223, private key acquisition unit 224, signature unit 225, and request sending unit 226 can be found above. Figure 4 The specific description of step S202 in the corresponding embodiments will not be repeated here.

[0218] The data processing device 2 mentioned above also includes: an identity verification module 24, an identifier allocation module 25, an identifier uploading module 26, and an identifier storage module 27.

[0219] The identity verification module 24 is used to respond to the registration operation of the first object and obtain the object identity information corresponding to the first object;

[0220] The authentication module 24 is also used to verify the object's identity information and obtain the authentication result;

[0221] The identifier allocation module 25 is used to assign a first decentralized identifier to the first object if the authentication result is an authentication success result.

[0222] The on-chain identification module 26 is used to initiate an on-chain request for the first decentralized identifier to the blockchain network, so that the blockchain network can obtain the first object address and the first object private key corresponding to the object identity information, and perform a blockchain ledger writing operation on the association relationship between the first decentralized identifier, the first object address and the first object private key.

[0223] The identifier storage module 27 is used to write the first decentralized identifier, the first object address, and the first object private key into the identifier database if the association between the first decentralized identifier and the first object address is successfully written into the blockchain ledger.

[0224] The specific implementation methods of the authentication module 24, the identifier allocation module 25, the identifier on-chain module 26, and the identifier storage module 27 can be found above. Figure 4 The optional descriptions in the corresponding embodiments will not be repeated here.

[0225] The data processing device 2 mentioned above also includes a resource exchange module 28.

[0226] Resource exchange module 28 is used to respond to the resource exchange operation of the second object for the transferred target combination of virtual resources. It sends a resource exchange request for the transferred target combination of virtual resources to the blockchain network, so that the blockchain network transfers the transferred target combination of virtual resources from the second object address to the target contract address, and transfers the on-chain virtual resources in the transferred on-chain virtual resource combination to the second object address. The target combination of virtual resources at the target contract address is in a locked state. The second object does not have the right to transfer the target combination of virtual resources in a locked state. The on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination at the second object address belongs to the second object.

[0227] The specific implementation of the resource exchange module 28 can be found above. Figure 4The optional descriptions in the corresponding embodiments will not be repeated here.

[0228] Further, please see Figure 10 , Figure 10 This is a schematic diagram of the structure of another computer device provided in an embodiment of this application. For example... Figure 10 As shown above, Figure 9 The data processing device 2 in the corresponding embodiment can be applied to a computer device 10000, which may include a processor 10001, a network interface 10004, and a memory 10005. Furthermore, the computer device 10000 also includes a user interface 10003 and at least one communication bus 10002. The communication bus 10002 is used to enable communication between these components. The user interface 10003 may include a display screen and a keyboard; optionally, the user interface 10003 may also include a standard wired interface or a wireless interface. The network interface 10004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 10005 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 10005 may also be at least one storage device located remotely from the processor 10001. Figure 9 As shown, the memory 10005, 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.

[0229] exist Figure 9 In the computer device 10000 shown, the network interface 10004 provides network communication functionality; the user interface 10003 is mainly used to provide an input interface for the user; and the processor 10001 can be used to call the device control application program stored in the memory 10005 to achieve:

[0230] In response to the first object's selection operation on the list of on-chain virtual resources, a combination of on-chain virtual resources is obtained; the on-chain ownership of the on-chain virtual resources in the list of on-chain virtual resources belongs to the first object; the combination of on-chain virtual resources includes the on-chain virtual resources selected based on the selection operation, and the number of resource types of the on-chain virtual resources in the combination of on-chain virtual resources is one or more;

[0231] In response to the resource creation operation of the first object for the on-chain virtual resource combination, a combination virtual resource creation request for the on-chain virtual resource combination is sent to the blockchain network, so that the blockchain network transfers the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combination virtual resource creation request, and issues the target combination virtual resource to the first object address; the on-chain ownership of the target combination virtual resource belongs to the first object;

[0232] In response to the resource transfer operation of the first object for the target combination of virtual resources, a resource transfer request for the on-chain virtual resource combination is sent to the blockchain network, so that the blockchain network transfers the target combination of virtual resources from the address of the first object to the address of the second object according to the resource transfer request; after the transfer, the on-chain ownership of the target combination of virtual resources belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has the on-chain ownership of the target combination of virtual resources, has the authority to transfer the on-chain virtual resource combination from the target contract address to the address of the second object.

[0233] It should be understood that the computer device 10000 described in the embodiments of this application can execute the data processing method described in the preceding embodiments, and can also execute the methods described above. Figure 9 The description of the data processing device 2 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated here.

[0234] Furthermore, it should be noted that this application also provides a computer-readable storage medium, which stores a computer program executed by the data processing device 2 mentioned above. When the processor loads and executes the computer program, it can perform the access control method described in any of the preceding embodiments. Therefore, it will not be repeated here. Additionally, the beneficial effects of using the same method will not be repeated here either. For technical details not disclosed in the embodiments of the computer-readable storage medium involved in this application, please refer to the description of the method embodiments of this application.

[0235] The aforementioned computer-readable storage medium can be an internal storage unit of the data processing apparatus or computer device provided in any of the foregoing embodiments, such as a 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 and external storage units 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.

[0236] Furthermore, it should be noted that this application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. The 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 aforementioned... Figure 3 , Figure 4 The method provided in any of the corresponding embodiments.

[0237] 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.

[0238] 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 composition and steps of each example have been generally described in the foregoing description as a network element. Whether these network elements are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can implement the described network elements using different methods for each specific application, but such implementation should not be considered beyond the scope of this application.

[0239] 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, include: The blockchain node receives a request from the first object to create a combination of virtual resources for a combination of on-chain virtual resources; The number of resource types of the on-chain virtual resources in the on-chain virtual resource portfolio is one or more; the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource portfolio belongs to the first object; According to the combined virtual resource creation request, the on-chain virtual resource combination is transferred from the first object address of the first object to the target contract address, and the target combined virtual resource corresponding to the on-chain virtual resource combination is issued to the first object address. The on-chain virtual resource combination transferred to the target contract address is in a locked state, and the first object can no longer transfer the on-chain virtual resources in the locked on-chain virtual resource combination. The target combined virtual resource is associated with the on-chain virtual resource combination locked in the target contract address, and the on-chain ownership of the target combined virtual resource belongs to the first object. If a resource transfer request for the target combination of virtual resources is received, the target combination of virtual resources is transferred from the first object address to the second object address of the second object according to the resource transfer request; the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has on-chain ownership of the target combination of virtual resources, has the authority to transfer the combination of on-chain virtual resources from the target contract address to the second object address; If a resource exchange request for the target combination of virtual resources is received from the second object, the target combination of virtual resources is transferred from the address of the second object to the address of the target contract; the target combination of virtual resources at the address of the target contract is locked; the second object does not have the authority to transfer the locked target combination of virtual resources. The on-chain virtual resources in the on-chain virtual resource portfolio locked at the target contract address are transferred to the second object address; the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource portfolio at the second object address belongs to the second object.

2. The method according to claim 1, characterized in that, The step of transferring the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combined virtual resource creation request, and issuing the target combined virtual resource corresponding to the on-chain virtual resource combination to the first object address includes: Query the on-chain ownership of the on-chain virtual resources in the aforementioned on-chain virtual resource portfolio; If the on-chain ownership of all on-chain virtual resources in the on-chain virtual resource portfolio belongs to the first object, then the on-chain virtual resource portfolio will be transferred from the first object address of the first object to the target contract address. Generate the target combination of virtual resources corresponding to the on-chain virtual resource combination; Send the target combination of virtual resources to the first object address of the first object.

3. The method according to claim 2, characterized in that, Also includes: Obtain the resource description information corresponding to the on-chain virtual resources in the on-chain virtual resource combination; Write the resource description information into the metadata body corresponding to the target combination of virtual resources to obtain the description metadata body; The binding relationship between the target combination of virtual resources, the description metadata body, and the first object address of the first object is written into the blockchain ledger.

4. The method according to claim 3, characterized in that, Also includes: If the binding relationship between the target combined virtual resource, the description metadata body, and the first object address of the first object is successfully written into the blockchain ledger, then the resource issuance success result corresponding to the target combined virtual resource is sent to the first object; the resource issuance success result is used to indicate that the on-chain ownership of the target combined virtual resource belongs to the first object.

5. The method according to claim 1, characterized in that, The combined virtual resource creation request includes a synthetic smart contract identifier, an object identifier of the first object, and a digital signature; The step of transferring the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combined virtual resource creation request, and issuing the target combined virtual resource corresponding to the on-chain virtual resource combination to the first object address includes: Obtain the public key corresponding to the object identifier, and verify the digital signature in the combined virtual resource creation request based on the public key to obtain the verification result; If the signature verification result is a successful signature verification, then the synthetic smart contract indicated by the synthetic smart contract identifier is invoked; By running the synthetic smart contract, the on-chain virtual resource combination is transferred from the first object address of the first object to the target contract address, and the target combination virtual resources corresponding to the on-chain virtual resource combination are issued to the first object address.

6. The method according to claim 1, characterized in that, The step of transferring the target combined virtual resource from the first object address to the second object address of the second object according to the resource transfer request includes: A transfer transaction is generated based on the resource transfer request, and the transfer transaction is broadcast to the consensus network so that the consensus network can perform transaction consensus processing on the transfer transaction to obtain a transaction consensus result. If the transaction consensus result is that the transaction consensus is passed, then the transfer transaction is executed; During the execution of the transfer transaction, the target combination of virtual resources is transferred from the first object address to the second object address of the second object.

7. A data processing method based on blockchain, characterized in that, include: In response to the first object's selection operation on the list of on-chain virtual resources, obtain the combination of on-chain virtual resources; The on-chain ownership of the on-chain virtual resources in the on-chain virtual resource list belongs to the first object; the on-chain virtual resource portfolio includes the on-chain virtual resources selected based on the selection operation, and the number of resource types of the on-chain virtual resources in the on-chain virtual resource portfolio is one or more; In response to a resource creation operation by a first object for the on-chain virtual resource combination, a combined virtual resource creation request for the on-chain virtual resource combination is sent to the blockchain network. This causes the blockchain network to transfer the on-chain virtual resource combination from the first object's first object address to a target contract address based on the combined virtual resource creation request, and to issue the target combined virtual resource corresponding to the on-chain virtual resource combination to the first object address. The on-chain virtual resource combination transferred to the target contract address is in a locked state, preventing the first object from further transferring on-chain virtual resources within the locked combination. The target combined virtual resource is associated with the on-chain virtual resource combination locked at the target contract address, and the on-chain ownership of the target combined virtual resource belongs to the first object. In response to a resource transfer operation by a first object for the target combination of virtual resources, a resource transfer request for the on-chain virtual resource combination is sent to the blockchain network, so that the blockchain network transfers the target combination of virtual resources from the first object's address to the second object's address according to the resource transfer request; the on-chain ownership of the target combination of virtual resources after the transfer belongs to the second object; the resource transfer request carries the address of the second object; the second object, which has on-chain ownership of the target combination of virtual resources, has the authority to send a resource exchange request so that the blockchain network transfers the on-chain virtual resource combination from the target contract address to the second object's address.

8. The method according to claim 7, characterized in that, The response to the first object's resource creation operation for the on-chain virtual resource combination involves sending a combined virtual resource creation request for the on-chain virtual resource combination to the blockchain network, including: In response to the resource creation operation of the first object for the on-chain virtual resource combination, obtain the first decentralized identifier corresponding to the first object; Obtain the object address associated with the first decentralized identifier from the identifier database, and use it as the first object address; An initial combined virtual resource creation request is generated for the on-chain virtual resource combination based on the first object address; Obtain the object private key associated with the first object address from the identifier database, and use it as the first object private key; The initial combined virtual resource creation request is signed using the private key of the first object to obtain the combined virtual resource creation request. The request to create the combined virtual resources is sent to the blockchain network.

9. The method according to claim 8, characterized in that, Also includes: In response to the registration operation of the first object, obtain the object identity information corresponding to the first object; The identity information of the object is verified to obtain the identity verification result; If the authentication result is successful, then a first decentralized identifier is assigned to the first object; A request to be uploaded to the blockchain network for the first decentralized identifier is initiated, so that the blockchain network obtains the first object address and the first object private key corresponding to the object identity information, and performs a blockchain ledger writing operation on the association relationship between the first decentralized identifier, the first object address and the first object private key; If the association between the first decentralized identifier and the first object address is successfully written into the blockchain ledger, then the first decentralized identifier, the first object address, and the first object private key are associated and written into the identifier database.

10. The method according to claim 7, characterized in that, Also includes: In response to the resource exchange operation of the second object for the transferred target combination of virtual resources, a resource exchange request for the transferred target combination of virtual resources is sent to the blockchain network, so that the blockchain network transfers the transferred target combination of virtual resources from the second object address to the target contract address, and transfers the on-chain virtual resources in the transferred on-chain virtual resource combination to the second object address; the target combination of virtual resources at the target contract address is in a locked state; the second object does not have the authority to transfer the locked target combination of virtual resources; the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource combination at the second object address belongs to the second object.

11. A data processing apparatus, characterized in that, include: The request receiving module is used to receive the first object's request for creating a combined virtual resource for a combination of on-chain virtual resources. The number of resource types of the on-chain virtual resources in the on-chain virtual resource portfolio is one or more; the on-chain ownership of the on-chain virtual resources in the on-chain virtual resource portfolio belongs to the first object; The resource issuance module is used to transfer the on-chain virtual resource combination from the first object address of the first object to the target contract address according to the combined virtual resource creation request, and issue the target combined virtual resource corresponding to the on-chain virtual resource combination to the first object address. The on-chain virtual resource combination transferred to the target contract address is in a locked state, and the first object can no longer transfer the on-chain virtual resources in the locked on-chain virtual resource combination. The target combined virtual resource is associated with the on-chain virtual resource combination locked in the target contract address, and the on-chain ownership of the target combined virtual resource belongs to the first object. A resource transfer module is configured to, upon receiving a resource transfer request for the target combination of virtual resources, transfer the target combination of virtual resources from the first object address to the second object address of the second object according to the resource transfer request; the on-chain ownership of the transferred target combination of virtual resources belongs to the second object; the resource transfer request carries the address of the second object; the second object, having on-chain ownership of the target combination of virtual resources, has the authority to transfer the combination of on-chain virtual resources from the target contract address to the second object address; The resource exchange module is used to, upon receiving a resource exchange request from the second object for the target combination of virtual resources, transfer the target combination of virtual resources from the address of the second object to the address of the target contract; the target combination of virtual resources at the address of the target contract is in a locked state; the second object does not have the authority to transfer the locked target combination of virtual resources; transfer the on-chain virtual resources in the combination of on-chain virtual resources locked at the address of the target contract to the address of the second object; the on-chain ownership of the on-chain virtual resources in the combination of on-chain virtual resources at the address of the second object belongs to the second object.

12. A computer device, characterized in that, include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide data communication functions, the memory is used to store program code, and the processor is used to call the program code to execute the method according to any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and to execute the method according to any one of claims 1-10.

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