Resource transfer method and device, equipment, storage medium and program product
By using address registration smart contracts in blockchain technology to register smart contract addresses for virtual resources and binding virtual resources and their affiliated digital rights, the problem of low resource transfer efficiency in the existing technology is solved, and the efficient transfer of multiple virtual resources and their affiliated digital rights is achieved.
Patent Information
- Application Number
- CN202311387281.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-04-25
AI Technical Summary
When transferring resources based on blockchain technology, the existing technology has the problem of low resource transfer efficiency, especially when handling the transfer of multiple virtual resources and their affiliated digital rights, the transfer operation needs to be carried out separately, which is relatively inefficient.
The smart contract is registered through the address registration smart contract address for the virtual resources to be transferred, and the virtual resources and their affiliated digital rights are bound to the registered smart contract address to realize the transfer of the auxiliary digital rights of multiple virtual resources and each virtual resource.
It effectively improves resource transfer efficiency, reduces the number of resource transfers, and realizes the transfer of multiple virtual resources and their affiliated digital rights together, which is more efficient than the separate transfer method.
Smart Images

Figure CN119887199A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a resource transfer method, a resource transfer device, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the advent of the technological era and the development of mobile Internet, the pace of network change is getting faster and faster. The process of realizing information integration in the same field or multiple fields and providing customers with all-round information solutions is also facing new challenges such as system architecture improvement and support focus shift. Therefore, blockchain technology, as a specific implementation of distributed ledgers, has gradually become the preferred way to store and trade data in various fields with its natural advantages in storing and managing data.
[0003] At present, when transferring resources based on blockchain technology, resources are grouped through contract addresses on the blockchain, or virtual addresses are set up through centralized exchanges to map one-to-one with customer identities. In essence, this is still a centralized operation method. If multiple virtual resources owned by a customer and the related digital rights of each virtual resource are to be transferred, not only do multiple virtual resources need to be transferred separately, but the transfer of virtual resources and the transfer of the related digital rights of the virtual resources are also two separate transfer operations. This resource transfer method has a large number of transfers and a low resource transfer efficiency. Summary of the invention
[0004] The embodiments of the present application provide a resource transfer method, apparatus, device, storage medium and program product, which can realize the transfer of multiple virtual resources and the attached digital rights of each virtual resource, effectively improving the resource transfer efficiency.
[0005] On the one hand, an embodiment of the present application provides a resource transfer method, the method comprising:
[0006] In response to the resource transfer request, determine the virtual resource to be transferred from the virtual resources under the first blockchain address, and determine the attached digital rights and interests of the virtual resource to be transferred;
[0007] If there are multiple virtual resources to be transferred, register a first smart contract address for each of the multiple virtual resources to be transferred through an address registration smart contract, and bind each of the virtual resources to be transferred and its attached digital rights and interests to the corresponding first smart contract address;
[0008] Binding the registered multiple first smart contract addresses to a target address; the target address is the first blockchain address or the second smart contract address, and the second smart contract address is the smart contract address registered by registering the smart contract through the address;
[0009] By associating the target address with the second blockchain address, the virtual resources to be transferred and their attached digital rights and interests are transferred to the second blockchain address.
[0010] On the one hand, an embodiment of the present application provides a resource transfer device, the device comprising:
[0011] A processing unit, configured to determine, in response to the virtual resource transfer request, the virtual resource to be transferred from the virtual resources under the first blockchain address, and determine the attached digital rights and interests of the virtual resource to be transferred;
[0012] A registration unit, configured to register a first smart contract address for each of the plurality of virtual resources to be transferred through an address registration smart contract if there are a plurality of virtual resources to be transferred;
[0013] The processing unit is further used to bind each of the virtual resources to be transferred and its attached digital rights and interests with the corresponding first smart contract address;
[0014] The processing unit is further used to bind the registered multiple first smart contract addresses to a target address; the target address is the first blockchain address or the second smart contract address, and the second smart contract address is the smart contract address registered by registering the smart contract through the address;
[0015] The processing unit is further used to transfer the virtual resources to be transferred and their attached digital rights and interests to the second blockchain address by associating the target address with the second blockchain address.
[0016] In one embodiment, the processing unit is further used to determine the first blockchain address as the target address if there are multiple virtual resources under the first blockchain address and all virtual resources under the first blockchain address are determined as the virtual resources to be transferred.
[0017] In one embodiment, the registration unit is further configured to register the second smart contract address through the address registration smart contract if part of the virtual resources under the first blockchain address are determined as the virtual resources to be transferred, and there are multiple virtual resources in the part of the virtual resources;
[0018] The processing unit is further used to determine the second smart contract address as the target address.
[0019] In one embodiment, the registration unit is further configured to register a third smart contract address for the virtual resource to be transferred through an address registration smart contract if a virtual resource under the first blockchain address is determined to be the virtual resource to be transferred;
[0020] The processing unit is further used to bind the virtual resources to be transferred and their attached digital rights and interests to the third smart contract address, and transfer the virtual resources to be transferred and their attached digital rights and interests to the second blockchain address by associating the third smart contract address with the second blockchain address.
[0021] In one embodiment, the processing unit is specifically configured to:
[0022] An address binding transaction is generated according to the target address and the second blockchain address, and a consensus process is performed on the address binding transaction; if the consensus of the address binding transaction is passed, the address binding transaction is executed to bind the target address to the second blockchain address; after the target address is bound to the second blockchain address, each of the virtual resources to be transferred and their attached digital rights and interests bound to the target address are transferred to the second blockchain address.
[0023] In one embodiment, the target address is the second smart contract address, and the initial control right of the target address belongs to the first blockchain address; the processing unit is specifically used to:
[0024] A control transfer transaction is generated according to the target address, the first blockchain address and the second blockchain address, and a consensus process is performed on the control transfer transaction; if the control transfer transaction consensus is passed, the control transfer transaction is executed to transfer the control of the target address from the first blockchain address to the second blockchain address; after the control of the target address belongs to the second blockchain address, each of the virtual resources to be transferred and their attached digital rights and interests bound to the target address are transferred to the second blockchain address.
[0025] In one embodiment, the resource transfer device further includes a communication unit, the communication unit is used to receive the virtual resource transfer request, the virtual resource transfer request carries a virtual resource identifier, and the virtual resource transfer request is used to request that the virtual resource and its attached digital rights under the first blockchain address be transferred to the second blockchain address according to the virtual resource identifier;
[0026] The processing unit is specifically used to respond to the virtual resource transfer request, determine the virtual resource matching the virtual resource identifier from the virtual resources under the first blockchain address, and determine the virtual resource matching the virtual resource identifier as the virtual resource to be transferred.
[0027] On the one hand, an embodiment of the present application provides a computer device, comprising: a processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are interconnected, wherein the memory stores executable program code, and the processor is used to call the executable program code to implement the resource transfer method provided in the embodiment of the present application.
[0028] Accordingly, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer implements the resource transfer method provided in the embodiment of the present application.
[0029] Accordingly, an embodiment of the present application further provides a computer program product, which includes a computer program or computer instructions, and when the computer program or computer instructions are executed by a processor, the resource transfer method provided in the embodiment of the present application is implemented.
[0030] In the embodiment of the present application, the virtual resources and their affiliated digital rights themselves are not interactive. When transferring virtual resources, the smart contract address is registered for the virtual resources to be transferred through the address registration smart contract, and the virtual resources and their affiliated digital rights are bound to the registered smart contract address. In this way, a unique and deterministic smart contract address is deployed for the virtual resources and their affiliated digital rights, thereby combining the virtual resources and their affiliated digital rights, and making this combination interactive, so that on-blockchain operations can be performed, for example, the virtual resources and their affiliated digital rights can be transferred as a whole. When the virtual resources to be transferred are multiple virtual resources under the first blockchain address, after binding each virtual resource and its affiliated digital rights and interests with the corresponding registered smart contract address, the multiple smart contract addresses registered for the multiple virtual resources are bound to the target address, and by associating the target address with the second blockchain address, the multiple virtual resources and the affiliated digital rights and interests of each virtual resource are transferred to the second blockchain address, thereby realizing the transfer of multiple virtual resources and the affiliated digital rights and interests of each virtual resource together, that is, not only the transfer of multiple virtual resources together, but also the transfer of virtual resources and their affiliated digital rights and interests together is realized. Compared with the method of transferring multiple virtual resources separately and transferring virtual resources and their affiliated digital rights and interests separately, the number of resource transfers can be effectively reduced, thereby effectively improving the efficiency of resource transfer. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1A A schematic diagram of the architecture of a data sharing system provided by an exemplary embodiment of the present application is shown;
[0033] Figure 1B A schematic diagram of the structure of a blockchain provided by an exemplary embodiment of the present application is shown;
[0034] Figure 1C A schematic diagram showing a block generation process provided by an exemplary embodiment of the present application is shown;
[0035] Figure 2 A schematic diagram showing a flow chart of a resource transfer method provided by an exemplary embodiment of the present application is shown;
[0036] Figure 3A A schematic diagram showing a resource transfer method provided by an exemplary embodiment of the present application is shown;
[0037] Figure 3B A schematic diagram showing a resource transfer method provided by another exemplary embodiment of the present application is shown;
[0038] Figure 3C A schematic diagram showing a resource transfer method provided by another exemplary embodiment of the present application is shown;
[0039] Figure 4 A schematic diagram showing a flow chart of a resource transfer method provided by another exemplary embodiment of the present application is shown;
[0040] Figure 5 A schematic diagram of the structure of a resource transfer device provided by an exemplary embodiment of the present application is shown;
[0041] Figure 6 A schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] In order to better understand the embodiments of the present application, some terms and blockchain technologies involved in the embodiments of the present application are introduced below.
[0044] Blockchain: Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database.
[0045] Blockchain address: A blockchain account identifier formed by converting a key generated by an asymmetric encryption algorithm according to certain rules. It can be used to receive blockchain assets. Blockchain assets are a type of virtual assets, or virtual resources.
[0046] Digital collection: A unique digital certificate generated for a specific object (such as a work) using blockchain technology. A digital collection is a type of blockchain asset.
[0047] Smart contract: A digitally defined protocol that must be run in a trusted environment, such as a blockchain platform. Smart contracts are contracts that rely on computers to run in cyberspace. They are transmitted, verified or executed in an information-based manner, read and executed by computers, and have the characteristics of self-service.
[0048] The embodiment of the present application provides a resource transfer method to achieve the transfer of multiple virtual resources and the digital rights and interests attached to each virtual resource, thereby improving the efficiency of resource transfer. The resource transfer method provided in the embodiment of the present application can be applied to Figure 1A The data sharing system 100 (also referred to as a blockchain system) shown is implemented. The data sharing system 100 refers to a system for sharing data between nodes, and the data sharing system may include multiple nodes 101, and the multiple nodes 101 may refer to each client in the data sharing system. Each node 101 can receive input information when performing normal work, and maintain the shared data in the data sharing system based on the received input information. In order to ensure the information intercommunication within the data sharing system, there may be an information connection between each node in the data sharing system, and information can be transmitted between nodes through the above information connection. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system obtain the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the data sharing system are consistent.
[0049] Each node in the data sharing system has a corresponding node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated blocks can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. A node identifier list as shown in the following table can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an IP (Internet Protocol, a protocol for interconnecting networks) address and any other information that can be used to identify the node. Table 1 only takes the IP address as an example for illustration.
[0050] Node Name Node ID Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N 119.123.789.258
[0051] Each node in the data sharing system stores the same blockchain. The blockchain consists of multiple blocks, see Figure 1B The blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores the input information characteristic value, version number, timestamp and difficulty value, and the block body stores the input information; the next block of the genesis block takes the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information characteristic value of the current block, the block header characteristic value, version number, timestamp and difficulty value of the parent block, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.
[0052] When generating each block in the blockchain, see Figure 1C When the node where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, the input information is stored in the memory pool and the hash tree used to record the input information is updated. After that, the update timestamp is updated to the time when the input information is received, and different random numbers are tried to calculate the eigenvalue multiple times so that the calculated eigenvalue can satisfy the following formula:
[0053] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x)) <TARGET
[0054] Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, which can be determined based on nbits.
[0055] In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the data sharing system according to the node identification of other nodes in the data sharing system. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in them after the verification is completed.
[0056] The resource transfer method provided in the embodiment of the present application can be implemented by the node 101 in the data sharing system, including but not limited to the following steps: when it is necessary to transfer the virtual assets and the attached digital rights of the first object (such as the first user) to the second object (such as the second user), determine the virtual resources to be transferred from the virtual resources under the first blockchain address corresponding to the first object, and determine the attached digital rights of the virtual resources to be transferred; register a first smart contract address for each virtual resource to be transferred through the address registration smart contract, and bind each virtual resource to be transferred and its attached digital rights to the corresponding first smart contract address; if there are multiple virtual resources to be transferred, the registered multiple first smart contract addresses can be further bound to the target address, and the target address is the first blockchain address, or the second smart contract address registered through the address registration smart contract; by associating the target address with the second blockchain address, each virtual resource to be transferred and its attached digital rights are transferred to the second blockchain address corresponding to the second object. Among them, the association process can be an address binding process or an address control transfer process. By adopting this method, it is possible to transfer multiple virtual resources and the digital rights and interests attached to each virtual resource together, that is, not only the transfer of multiple virtual resources together is achieved, but also the transfer of virtual resources and their attached digital rights and interests together is achieved. Compared with the method of transferring multiple virtual resources separately and transferring virtual resources and their attached digital rights and interests separately, it can effectively reduce the number of resource transfers, thereby effectively improving the efficiency of resource transfers.
[0057] It is understandable that in the specific implementation of this application, data related to virtual resources, affiliated digital rights, address registration smart contracts, blockchain addresses, etc., when this application is applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant regulations and standards in relevant regions.
[0058] The above briefly introduces the resource transfer method provided in the embodiment of the present application. The following is a detailed description of the specific implementation of the resource transfer method.
[0059] See also Figure 2 , Figure 2 A flow chart of a resource transfer method provided in an embodiment of the present application. The resource transfer method provided in an embodiment of the present application is implemented by a resource transfer device, which may be a node device in a blockchain network, and includes but is not limited to the following steps:
[0060] S201. In response to a resource transfer request, determine a virtual resource to be transferred from virtual resources under a first blockchain address, and determine an attached digital right of the virtual resource to be transferred.
[0061] In the embodiment of the present application, the resource transfer device receives a virtual resource transfer request sent by the client, and the virtual resource transfer request is used to request to transfer all or part of the virtual resources under the first blockchain address, and the attached digital rights and interests of each virtual resource to be transferred to the second blockchain address. The first blockchain address and the second blockchain address can also be referred to as blockchain accounts. The first blockchain address is the blockchain address owned by the first object (such as the first user), and the second blockchain address is the blockchain address owned by the second object (such as the second user). The blockchain address is a blockchain asset account identifier formed by converting a key generated by an asymmetric encryption algorithm according to certain rules. Virtual resources can also be referred to as blockchain assets, which can be digital collections, which can be digital collections generated based on standards such as ERC-721. ERC-721 is a digital collection generation standard, and digital collections generated based on the ERC-721 standard have unique identification. The client can be a terminal device used by the first object, and the client can be a node device in the blockchain network, or a device outside the blockchain network. It should be noted that the virtual resources under the first blockchain address can refer to virtual resources that have a binding relationship with the first blockchain address, and the virtual resources under the first blockchain address can be one or more.
[0062] In one embodiment, the virtual resource transfer request carries a virtual resource identifier, which is used to indicate the virtual resource to be transferred, and the virtual resource identifier may be one or more. In response to the virtual resource transfer request, the resource transfer device determines the virtual resources matching the virtual resource identifiers from the virtual resources under the first blockchain address, and determines the determined virtual resources matching the virtual resource identifiers as the virtual resources to be transferred, and the determined virtual resources to be transferred are one or more, and may be all or part of the virtual resources under the first blockchain address.
[0063] In another embodiment, if the virtual resource transfer request is used to request to transfer all virtual resources under the first blockchain address to the second blockchain address, the virtual resource transfer request may not carry the virtual resource identifier, but may carry all identifiers, such as the identifier "ALL". In this case, the resource transfer device responds to the virtual resource transfer request and determines all virtual resources under the first blockchain address as virtual resources to be transferred.
[0064] After determining the virtual resources to be transferred from the virtual resources under the first blockchain address, the resource transfer device determines the attached digital rights of each virtual resource to be transferred. The attached digital rights of the virtual resources may be the ownership, income rights, etc. of the virtual resources. The virtual resources and their attached digital rights may have a binding relationship.
[0065] S202. If there are multiple virtual resources to be transferred, register a first smart contract address for each of the multiple virtual resources to be transferred through an address registration smart contract, and bind each of the virtual resources to be transferred and its attached digital rights and interests to the corresponding first smart contract address.
[0066] In the embodiment of the present application, the address registration smart contract is a smart contract used to register the smart contract address. The address registration smart contract may generate a key using an asymmetric encryption algorithm, and convert the generated secret key into a smart contract address according to certain rules, such as performing a hash operation on the secret key to obtain the smart contract address. The smart contract address has unique identification. The smart contract address can also be regarded as a blockchain account.
[0067] The resource transfer device registers a smart contract address (also referred to as the first smart contract address) for each of the multiple virtual resources to be transferred through the address registration smart contract, and binds each virtual resource to be transferred and its attached digital rights and interests to the corresponding first smart contract address. For example, there are K (a positive integer) virtual resources under the first blockchain address, including virtual resources Token1-Tokenk, and the corresponding attached digital rights and interests are P1-Pk. If the virtual resources Token1 and Token3 are virtual resources to be transferred, a smart contract address D1 is registered for the virtual resource Token1, and the virtual resource Token1 and its attached digital rights and interests P1 are bound to the smart contract address D1; a smart contract address D3 is registered for the virtual resource Token3, and the virtual resource K3 and its attached digital rights and interests P3 are bound to the smart contract address D3. In this way, a unique and deterministically addressable smart contract address is deployed for the virtual resources and their attached digital rights and interests, thereby combining the virtual resources and their attached digital rights and interests, and making this combination interactive, so that on-blockchain operations can be performed. After the virtual resources and their attached digital rights are bound to the first smart contract address, the first smart contract address may have control over the virtual resources and their attached digital rights.
[0068] S203: Bind the first registered smart contract addresses to a target address, wherein the target address is the first blockchain address or the second smart contract address, and the second smart contract address is the smart contract address registered by registering the smart contract with the address.
[0069] In the embodiment of the present application, if there are multiple virtual resources under the first blockchain address, and all virtual resources under the first blockchain address are determined to be virtual resources to be transferred, it means that all virtual resources under the first blockchain address need to be transferred. At this time, the first blockchain address can be determined as the target address, and multiple first smart contract addresses used to bind multiple virtual resources to be transferred and their attached digital rights and interests are bound to the first blockchain address. In this way, a unique and fixedly addressed first blockchain address is deployed for the multiple first smart contract addresses, thereby combining the multiple first smart contract addresses and making this combination interactive, so that operations on the blockchain can be performed. After the first smart contract address is bound to the first blockchain address, the first smart contract address can be an attached smart contract address of the first blockchain address, and at this time, the first blockchain address can have control over the first smart contract address.
[0070] If part of the virtual resources under the first blockchain address are determined as virtual resources to be transferred, and there are multiple virtual resources in the part of virtual resources, it means that multiple virtual resources under the first blockchain address need to be transferred, and there are still some virtual resources that do not need to be transferred. At this time, the second smart contract address can be registered through the address registration smart contract, and the second smart contract address can be determined as the target address, and the multiple first smart contract addresses used to bind the multiple virtual resources to be transferred and their attached digital rights and interests are bound to the second smart contract address. In this way, a unique and fixed addressing second smart contract address is deployed for the multiple first smart contract addresses, so that the multiple first smart contract addresses are combined, and this combination is interactive, and can be operated on the blockchain. After the first smart contract address is bound to the second smart contract address, the first smart contract address can be regarded as an attached smart contract address of the second smart contract address. At this time, the second smart contract address can have control over the first smart contract address.
[0071] In one embodiment, if there are multiple virtual resources under the first blockchain address, and all virtual resources under the first blockchain address are determined as virtual resources to be transferred, then the second smart contract address can also be registered through the address registration smart contract, the second smart contract address can be determined as the target address, and the multiple first smart contract addresses used to bind the multiple virtual resources to be transferred and their attached digital rights and interests can be bound to the second smart contract address.
[0072] S204: Transfer the virtual resources to be transferred and their attached digital rights and interests to the second blockchain address by associating the target address with the second blockchain address.
[0073] In an embodiment of the present application, the resource transfer device transfers each virtual resource to be transferred and the attached digital rights of each virtual resource to be transferred to the second blockchain address by associating the target address with the second blockchain address.
[0074] In one embodiment, when the target address is the above-mentioned first blockchain address, the resource transfer device can generate an address binding transaction based on the first blockchain address (i.e., the target address) and the second blockchain address, and perform consensus processing on the address binding transaction; if the address binding transaction consensus is passed, the address binding transaction is executed to bind the first blockchain address to the second blockchain address; after the first blockchain address is bound to the second blockchain address, the first blockchain address can be a subsidiary blockchain address (or blockchain account) of the second blockchain address. At this time, the second blockchain address has control over the first blockchain address, and also has control over each first smart contract address bound to the first blockchain address, and then has control over the virtual resources and their affiliated digital rights and interests bound to each first smart contract address, that is, it means that each virtual resource to be transferred bound under the first blockchain address and the affiliated digital rights and interests of each virtual resource to be transferred are transferred from the first blockchain address to the second blockchain address. The consensus processing of the address binding transaction can be to initiate a consensus on the address binding transaction to the consensus nodes in the blockchain network. If more than a preset proportion (such as 2 / 3) of the consensus nodes agree to the address binding transaction, the consensus of the address binding transaction is determined to be passed; and each node in the blockchain network can execute the address binding transaction. In this way, the decentralized processing of the transfer of virtual resources and their attached digital rights and interests is realized.
[0075] In one embodiment, when the target address is the second smart contract address and the control right of the second smart contract address is not determined, the resource transfer device can generate an address binding transaction based on the second smart contract address (target address) and the second blockchain address, and perform consensus processing on the address binding transaction; if the address binding transaction consensus is passed, the address binding transaction is executed to bind the second smart contract address to the second blockchain address. After the second smart contract address is bound to the second blockchain address, each virtual resource to be transferred and its attached digital rights and interests bound to the second smart contract address are transferred to the second blockchain address. In this case, the control right of the first blockchain address over each digital resource to be transferred can also be cancelled for each digital resource to be transferred, so as to avoid the problem of unclear control right after the digital resource to be transferred is transferred from the first blockchain address to the second blockchain address.
[0076] In another embodiment, when the target address is the above-mentioned second smart contract address, and the initial control right of the second smart contract address belongs to the first blockchain address (that is, which blockchain address registers the smart contract address, and has the control right of the smart contract address after the registration is completed), the resource transfer device can generate a control right transfer transaction according to the second smart contract address, the first blockchain address, and the second blockchain address, and perform consensus processing on the control right transfer transaction; if the control right transfer transaction consensus is passed, the control right transfer transaction is executed to transfer the control right of the second smart contract address from the first blockchain address to the second blockchain address; after the control right of the second smart contract address belongs to the second blockchain address, the second blockchain address also has the control right of each first smart contract address bound to the second smart contract address, and then has the control right of the virtual resources and their attached digital rights and interests bound to each first smart contract address, that is, it means that each virtual resource to be transferred bound under the second smart contract address and the attached digital rights and interests of each virtual resource to be transferred are transferred to the second blockchain address. Among them, consensus processing of the control transfer transaction can be to initiate consensus on the control transfer transaction to the consensus nodes in the blockchain network. If more than a preset proportion (such as 2 / 3) of the consensus nodes agree to the control transfer transaction, it is determined that the control transfer transaction consensus has passed; and each node in the blockchain network can execute the control transfer transaction. In this way, the decentralized processing of the transfer of virtual resources and their affiliated digital rights and interests is realized. Similarly, in this case, the control right of the first blockchain address over each digital resource to be transferred can be cancelled for each digital resource to be transferred, so as to avoid the problem of unclear control after the digital resource to be transferred is transferred from the first blockchain address to the second blockchain address.
[0077] It should be noted that, in a feasible embodiment, after binding each virtual resource to be transferred and its attached digital rights and interests with the corresponding first smart contract address, each first smart contract address can be associated with the second blockchain address to transfer the virtual resource to be transferred and its attached digital rights and interests bound to each first smart contract address to the second blockchain address. Although this cannot realize the transfer of multiple virtual resources and their attached digital rights and interests together, it can realize the transfer of virtual resources and their attached digital rights and interests together, which improves the efficiency of resource transfer to a certain extent.
[0078] To better understand the resource transfer method provided in the embodiment of the present application, the following is combined with the application scenario and Figure 3A-3C Give an example.
[0079] The virtual resource under the first blockchain address is the virtual resource purchased by the first object (such as the first user), such as Figure 3A-3CAs shown, there are K virtual resources in total, including Token1-Tokenk, and the attached digital rights corresponding to Token1-Tokenk are P1-Pk respectively. The attached digital rights can be obtained by purchasing virtual resources, such as ownership, copyright, income rights, etc.
[0080] If the first object needs to transfer all the virtual resources and corresponding attached digital rights it has purchased to the second object (such as the second user), that is, it is necessary to transfer the virtual resources Token1-Tokenk and the corresponding attached digital rights P1-Pk under the first blockchain address to the second blockchain address. The second blockchain address is the blockchain address owned by the second object. The resource transfer method at this time can be:
[0081] like Figure 3A As shown, a total of K smart contract addresses D1-Dk are registered through the address registration smart contract. The address registration smart contract can be provided by the ERC-6551 standard, which is a standard for generating virtual resources (or digital collections). Bind each virtual resource in Token1-Tokenk and its affiliated digital rights and interests to a smart contract address in D1-Dk, for example: bind Token1 and P1 to D1, bind Token2 and P2 to D2, ..., bind Tokenk and Pk to Dk. In this way, a unique and deterministic smart contract address is deployed for each Token and its affiliated digital rights and interests. Bind the smart contract address D1-Dk to the first blockchain address so that the first blockchain address has control over the smart contract address D1-Dk. By binding the first blockchain address to the second blockchain address, the virtual resources Token1-Tokenk and the corresponding affiliated digital rights and interests P1-Pk are transferred to the second blockchain address.
[0082] Figure 3A The method shown is to use the first blockchain address of the first object to bind with the smart contract address D1-Dk, and bind the first blockchain address with the second blockchain address of the second object, that is, to transfer the first blockchain address to the second object. Considering that after the first blockchain address is transferred to the second object, if the first object needs to perform other transaction processing, it needs to re-apply for the blockchain address. In order to save blockchain addresses and avoid the trouble of re-applying for blockchain addresses, it can be used Figure 3B The way shown:
[0083] Register a total of K+1 smart contract addresses D1-Dk and Dr through the address registration smart contract. Bind each virtual resource and its affiliated digital rights in Token1-Tokenk to a smart contract address in D1-Dk, for example: bind Token1 and P1 to D1, bind Token2 and P2 to D2, ..., bind Tokenk and Pk to Dk. In this way, a unique and addressable smart contract address is deployed for each Token and its affiliated digital rights. Bind the smart contract address D1-Dk to the smart contract address Dr, so that the smart contract address Dr has control over the smart contract address D1-Dk. By binding the smart contract address Dr to the second blockchain address, the virtual resources Token1-Tokenk and the corresponding affiliated digital rights P1-Pk are transferred to the second blockchain address. It should be noted that it is also possible to transfer the control of the smart contract address Dr from the first blockchain address to the second blockchain address, and transfer the virtual resources Token1-Tokenk and the corresponding affiliated digital rights P1-Pk to the second blockchain address.
[0084] If the first object needs to transfer part of the virtual resources and the corresponding attached digital rights it has purchased to the second object (such as the second user), for example, it is necessary to transfer two virtual resources Token1 and Token2 and the corresponding attached digital rights P1 and P2 out of K (K is an integer greater than 2) virtual resources under the first blockchain address to the second blockchain address. The resource transfer method at this time can be:
[0085] like Figure 3C As shown, a total of three smart contract addresses D1, D2 and Dr are registered through the address registration smart contract. Token1 and P1 are bound to D1, and Token2 and P2 are bound to D2. In this way, a unique and deterministic smart contract address is deployed for each Token and its affiliated digital rights. Smart contract addresses D1 and D2 are bound to smart contract address Dr, so that smart contract address Dr has control over smart contract addresses D1 and D2. By binding the smart contract address Dr to the second blockchain address, the virtual resources Token1 and Token2 and the corresponding affiliated digital rights P1-P2 are transferred to the second blockchain address. It should be noted that it is also possible to transfer the control of the smart contract address Dr from the first blockchain address to the second blockchain address, and transfer the virtual resources Token1 and Token2 and the corresponding affiliated digital rights P1 and P2 to the second blockchain address.
[0086] In the embodiment of the present application, the virtual resources and their affiliated digital rights themselves are not interactive. When transferring virtual resources, the smart contract address is registered for the virtual resources to be transferred through the address registration smart contract, and the virtual resources and their affiliated digital rights are bound to the registered smart contract address. In this way, a unique and deterministic smart contract address is deployed for the virtual resources and their affiliated digital rights, thereby combining the virtual resources and their affiliated digital rights, and making this combination interactive, so that on-blockchain operations can be performed, for example, the virtual resources and their affiliated digital rights can be transferred as a whole. When the virtual resources to be transferred are multiple virtual resources under the first blockchain address, after binding each virtual resource and its affiliated digital rights and interests with the corresponding registered smart contract address, the multiple smart contract addresses registered for the multiple virtual resources are bound to the target address, and by associating the target address with the second blockchain address, the multiple virtual resources and the affiliated digital rights and interests of each virtual resource are transferred to the second blockchain address, thereby realizing the transfer of multiple virtual resources and the affiliated digital rights and interests of each virtual resource together, that is, not only the transfer of multiple virtual resources together, but also the transfer of virtual resources and their affiliated digital rights and interests together is realized. Compared with the method of transferring multiple virtual resources separately and transferring virtual resources and their affiliated digital rights and interests separately, the number of resource transfers can be effectively reduced, thereby effectively improving the efficiency of resource transfer.
[0087] See also Figure 4 , Figure 4 A flow chart of another resource transfer method provided in an embodiment of the present application. The resource transfer method provided in an embodiment of the present application is implemented by a resource transfer device, which may be a node device in a blockchain network, and includes but is not limited to the following steps:
[0088] S401. In response to a resource transfer request, determine a virtual resource to be transferred from virtual resources under a first blockchain address, and determine an attached digital right of the virtual resource to be transferred.
[0089] In the embodiment of the present application, the specific implementation method of step S401 can refer to the relevant description of step S201 in the previous embodiment, which will not be repeated here.
[0090] S402. If a virtual resource under the first blockchain address is determined to be the virtual resource to be transferred, a third smart contract address is registered for the virtual resource to be transferred through an address registration smart contract.
[0091] In the embodiment of the present application, a virtual resource under the first blockchain address is determined as a virtual resource to be transferred, that is, the virtual resource to be transferred is one. The resource transfer device registers a smart contract address (also referred to as a third smart contract address) for the virtual resource to be transferred through the address registration smart contract.
[0092] S403: Bind the virtual resources to be transferred and their attached digital rights and interests to the third smart contract address.
[0093] In the embodiment of the present application, the resource transfer device binds the third smart contract address registered for the virtual resources and their attached digital rights to be transferred. In this way, a unique and deterministic smart contract address is deployed for the virtual resources and their attached digital rights, thereby combining the virtual resources and their attached digital rights, and making this combination interactive, so that operations on the blockchain can be performed. After the virtual resources and their attached digital rights are bound to the third smart contract address, the third smart contract address may have control over the virtual resources and their attached digital rights.
[0094] S404: Transfer the virtual resources to be transferred and their attached digital rights and interests to the second blockchain address by associating the third smart contract address with the second blockchain address.
[0095] In one embodiment, when the control right of the third smart contract address is not determined, the resource transfer device can generate an address binding transaction based on the third smart contract address and the second blockchain address, and perform consensus processing on the address binding transaction; if the address binding transaction consensus is passed, the address binding transaction is executed to bind the third smart contract address to the second blockchain address. After the third smart contract address is bound to the second blockchain address, the virtual resources to be transferred and their attached digital rights and interests bound to the third smart contract address are transferred to the second blockchain address. Among them, the consensus processing of the address binding transaction can be to initiate a consensus with the consensus nodes in the blockchain network for the address binding transaction. If more than a preset proportion (such as 2 / 3) of the consensus nodes agree to the address binding transaction, it is determined that the address binding transaction consensus is passed; and each node in the blockchain network can execute the address binding transaction. In this way, the decentralized processing of the transfer of virtual resources and their attached digital rights and interests is realized.
[0096] In another embodiment, when the initial control right of the third smart contract address belongs to the first blockchain address, the resource transfer device can generate a control right transfer transaction based on the third smart contract address, the first blockchain address and the second blockchain address, and perform consensus processing on the control right transfer transaction; if the control right transfer transaction consensus is passed, the control right transfer transaction is executed to transfer the control right of the third smart contract address from the first blockchain address to the second blockchain address; after the control right of the third smart contract address belongs to the second blockchain address, the virtual resources bound to the third smart contract address and its attached digital rights and interests are transferred to the second blockchain address. Among them, the consensus processing of the control right transfer transaction can be to initiate a consensus with the consensus nodes in the blockchain network for the control right transfer transaction. If more than a preset proportion (such as 2 / 3) of the consensus nodes agree to the control right transfer transaction, it is determined that the control right transfer transaction consensus is passed; and each node in the blockchain network can execute the control right transfer transaction. In this way, the decentralized processing of the transfer of virtual resources and their attached digital rights and interests is realized.
[0097] It should be noted that the resource transfer device can also cancel the control of the first blockchain address over the digital resources to be transferred, so as to avoid the problem of unclear control after the digital resources to be transferred are transferred from the first blockchain address to the second blockchain address.
[0098] In a feasible embodiment, even if there is only one virtual resource to be transferred, if there is only one virtual resource under the first blockchain address, that is, all virtual resources under the first blockchain address need to be transferred. At this time, after binding the virtual resource to be transferred and its attached digital rights and interests with the registered third smart contract address, the third smart contract address can be further bound to the target address (the first blockchain address or the fourth smart contract address registered through the address registration smart contract), and the virtual resource to be transferred and its attached digital rights and interests are transferred to the second blockchain address by associating the target address with the second blockchain address. However, if there are multiple virtual resources under the first blockchain address, at this time, after binding the virtual resource to be transferred and its attached digital rights and interests with the registered third smart contract address, the third smart contract address can be further bound to the fourth smart contract address registered through the address registration smart contract, and the virtual resource to be transferred and its attached digital rights and interests are transferred to the second blockchain address by associating the fourth smart contract address with the second blockchain address.
[0099] In the embodiment of the present application, the virtual resources and their attached digital rights and interests themselves do not have interactivity. When transferring virtual resources, the address registration smart contract is used to register the smart contract address for the virtual resources to be transferred, and the virtual resources and their attached digital rights and interests are bound to the registered smart contract address. In this way, a unique and addressable smart contract address is deployed for the virtual resources and their attached digital rights and interests, thereby combining the virtual resources and their attached digital rights and interests, and making this combination interactive, so that operations on the blockchain can be performed, for example, the virtual resources and their attached digital rights and interests can be transferred as a whole. Further, by associating the registered smart contract address with the second blockchain address, the virtual resources and their attached digital rights and interests are transferred to the second blockchain address, so that the virtual resources and their attached digital rights and interests are transferred together. Compared with the method of transferring the virtual resources and their attached digital rights and interests separately, the number of resource transfers can be reduced, and the resource transfer efficiency can be improved to a certain extent.
[0100] In addition, by adopting the resource transfer method provided in the embodiment of the present application, each independent virtual resource (such as a token) can be connected to its own smart contract address, so that it can be managed based on a unified address system, which facilitates the management and transfer of virtual resources. In addition, there is no packaged contract, and there is no need to send virtual resources to a specific contract address, which removes the participation of centralized exchanges, ensures the security and privacy of virtual resources, and makes the management and transfer of virtual resources more convenient.
[0101] It should be noted that the execution entity for executing each step in the above method embodiment may be composed of hardware, software, or a combination of hardware and software.
[0102] See also Figure 5 , Figure 5 A schematic diagram of a resource transfer device provided in an embodiment of the present application. The resource transfer device described in the embodiment of the present application corresponds to the resource transfer device described above, and the device includes:
[0103] The processing unit 501 is used to determine, in response to the virtual resource transfer request, the virtual resource to be transferred from the virtual resources under the first blockchain address, and determine the attached digital rights and interests of the virtual resource to be transferred;
[0104] A registration unit 502 is configured to register a first smart contract address for each of the plurality of virtual resources to be transferred through an address registration smart contract if there are multiple virtual resources to be transferred;
[0105] The processing unit 501 is further used to bind each of the virtual resources to be transferred and its attached digital rights and interests with the corresponding first smart contract address;
[0106] The processing unit 501 is further used to bind the registered multiple first smart contract addresses to a target address; the target address is the first blockchain address or the second smart contract address, and the second smart contract address is the smart contract address registered by registering the smart contract through the address;
[0107] The processing unit 501 is further configured to transfer the virtual resources to be transferred and their attached digital rights to the second blockchain address by associating the target address with the second blockchain address.
[0108] In one embodiment, the processing unit 501 is further used to determine the first blockchain address as the target address if there are multiple virtual resources under the first blockchain address and all virtual resources under the first blockchain address are determined as the virtual resources to be transferred.
[0109] In one embodiment, the registration unit 502 is further configured to register the second smart contract address through the address registration smart contract if part of the virtual resources under the first blockchain address are determined as the virtual resources to be transferred, and there are multiple virtual resources in the part of the virtual resources;
[0110] The processing unit 501 is further configured to determine the second smart contract address as the target address.
[0111] In one embodiment, the registration unit 502 is further configured to register a third smart contract address for the virtual resource to be transferred through an address registration smart contract if a virtual resource under the first blockchain address is determined to be the virtual resource to be transferred;
[0112] The processing unit 501 is also used to bind the virtual resources to be transferred and their attached digital rights and interests to the third smart contract address, and transfer the virtual resources to be transferred and their attached digital rights and interests to the second blockchain address by associating the third smart contract address with the second blockchain address.
[0113] In one embodiment, the processing unit 501 is specifically configured to:
[0114] An address binding transaction is generated according to the target address and the second blockchain address, and a consensus process is performed on the address binding transaction; if the consensus of the address binding transaction is passed, the address binding transaction is executed to bind the target address to the second blockchain address; after the target address is bound to the second blockchain address, each of the virtual resources to be transferred and their attached digital rights and interests bound to the target address are transferred to the second blockchain address.
[0115] In one embodiment, the target address is the second smart contract address, and the initial control right of the target address belongs to the first blockchain address; the processing unit 501 is specifically used to:
[0116] A control transfer transaction is generated according to the target address, the first blockchain address and the second blockchain address, and a consensus process is performed on the control transfer transaction; if the control transfer transaction consensus is passed, the control transfer transaction is executed to transfer the control of the target address from the first blockchain address to the second blockchain address; after the control of the target address belongs to the second blockchain address, each of the virtual resources to be transferred and their attached digital rights and interests bound to the target address are transferred to the second blockchain address.
[0117] In one embodiment, the resource transfer device further includes a communication unit 503, the communication unit 503 is used to receive the virtual resource transfer request, the virtual resource transfer request carries a virtual resource identifier, and the virtual resource transfer request is used to request that the virtual resource and its attached digital rights under the first blockchain address be transferred to the second blockchain address according to the virtual resource identifier;
[0118] The processing unit 501 is specifically used to respond to the virtual resource transfer request, determine the virtual resource matching the virtual resource identifier from the virtual resources under the first blockchain address, and determine the virtual resource matching the virtual resource identifier as the virtual resource to be transferred.
[0119] It can be understood that the functions of each functional unit of the resource transfer device provided in the embodiment of the present application can be specifically implemented according to the relevant methods in the above-mentioned resource transfer method embodiment, and its specific implementation process can refer to the relevant description in the above-mentioned method embodiment, which will not be repeated here.
[0120] In a feasible embodiment, the resource transfer device provided in the embodiment of the present application can be implemented in software. The resource transfer device can be stored in a memory. It can be software in the form of programs and plug-ins, and includes a series of units, including a processing unit, a registration unit and a communication unit; wherein the processing unit, the registration unit and the communication unit are used to implement the resource transfer method provided in the embodiment of the present application.
[0121] In other feasible embodiments, the resource transfer device provided in the embodiments of the present application may also be implemented in a combination of software and hardware. As an example, the resource transfer device provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the resource transfer method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor may adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0122] The resource transfer device provided in the embodiment of the present application can realize the transfer of multiple virtual resources and the attached digital rights of each virtual resource together, that is, it not only realizes the transfer of multiple virtual resources together, but also realizes the transfer of virtual resources and their attached digital rights together. Compared with the method of transferring multiple virtual resources separately and transferring virtual resources and their attached digital rights separately, it can effectively reduce the number of resource transfers, thereby effectively improving the resource transfer efficiency.
[0123] See also Figure 6 , Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device described in the embodiment of the present application corresponds to the resource transfer device or resource transfer apparatus described in the previous embodiment, and the computer device includes: a processor 601, a communication interface 602, and a memory 603. Among them, the processor 601, the communication interface 602, and the memory 603 can be connected via a bus or other means, and the embodiment of the present application takes the connection via a bus as an example.
[0124] Among them, the processor 601 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device, which can parse various instructions in the computer device and process various data of the computer device. For example, the CPU can be used to parse the power on and off instructions sent by the user to the computer device, and control the computer device to perform power on and off operations; for another example, the CPU can transmit various interactive data between the internal structures of the computer device, and so on. The communication interface 602 can optionally include a standard wired interface, a wireless interface (such as Wi-Fi, a mobile communication interface, etc.), which is controlled by the processor 601 to send and receive data. The memory 603 (Memory) is a memory device in the computer device for storing programs and data. It can be understood that the memory 603 here can include both the built-in memory of the computer device and the extended memory supported by the computer device. The memory 603 provides a storage space, which stores the operating system of the computer device, which may include but is not limited to: Android system, iOS system, Windows Phone system, etc., and this application does not limit this.
[0125] In the embodiment of the present application, the processor 601 performs the following operations by running the executable program code in the memory 603:
[0126] In response to a resource transfer request, a virtual resource to be transferred is determined from the virtual resources under the first blockchain address, and the attached digital rights and interests of the virtual resource to be transferred are determined; if there are multiple virtual resources to be transferred, a first smart contract address is registered for each of the multiple virtual resources to be transferred through an address registration smart contract, and each of the virtual resources to be transferred and its attached digital rights and interests are bound to the corresponding first smart contract address; the registered multiple first smart contract addresses are bound to a target address; the target address is the first blockchain address or the second smart contract address, and the second smart contract address is a smart contract address registered through the address registration smart contract; by associating the target address with the second blockchain address, the virtual resource to be transferred and its attached digital rights and interests are transferred to the second blockchain address.
[0127] In one embodiment, the processor 601 is further used to: if there are multiple virtual resources under the first blockchain address, and all virtual resources under the first blockchain address are determined as the virtual resources to be transferred, then the first blockchain address is determined as the target address.
[0128] In one embodiment, the processor 601 is further used to: if part of the virtual resources under the first blockchain address are determined as the virtual resources to be transferred, and there are multiple virtual resources in the part of the virtual resources, register the second smart contract address through the address registration smart contract; and determine the second smart contract address as the target address.
[0129] In one embodiment, the processor 601 is also used to: if a virtual resource under the first blockchain address is determined to be the virtual resource to be transferred, register a third smart contract address for the virtual resource to be transferred through an address registration smart contract; bind the virtual resource to be transferred and its attached digital rights and interests to the third smart contract address; and transfer the virtual resource to be transferred and its attached digital rights and interests to the second blockchain address by associating the third smart contract address with the second blockchain address.
[0130] In one embodiment, when the processor 601 transfers the virtual resources to be transferred and their attached digital rights to the second blockchain address by associating the target address with the second blockchain address, it is specifically used to: generate an address binding transaction according to the target address and the second blockchain address, and perform consensus processing on the address binding transaction; if the address binding transaction consensus is passed, execute the address binding transaction to bind the target address to the second blockchain address; after the target address is bound to the second blockchain address, each of the virtual resources to be transferred and their attached digital rights bound to the target address are transferred to the second blockchain address.
[0131] In one embodiment, the initial control right of the target address belongs to the first blockchain address; when the processor 601 transfers the virtual resources to be transferred and the attached digital rights and interests to the second blockchain address by associating the target address with the second blockchain address, it is specifically used to: generate a control transfer transaction according to the target address, the first blockchain address and the second blockchain address, and perform consensus processing on the control transfer transaction; if the control transfer transaction consensus is passed, execute the control transfer transaction to transfer the control right of the target address from the first blockchain address to the second blockchain address; after the control right of the target address belongs to the second blockchain address, each of the virtual resources to be transferred and the attached digital rights and interests bound to the target address are transferred to the second blockchain address.
[0132] In one embodiment, when the processor 601 determines the virtual resources to be transferred from the virtual resources under the first blockchain address in response to the virtual resource transfer request, it is specifically used to: receive the virtual resource transfer request through the communication interface 602, the virtual resource transfer request carries a virtual resource identifier, and the virtual resource transfer request is used to request that the virtual resources and their attached digital rights under the first blockchain address be transferred to the second blockchain address according to the virtual resource identifier; in response to the virtual resource transfer request, determine the virtual resources that match the virtual resource identifier from the virtual resources under the first blockchain address, and determine the virtual resources that match the virtual resource identifier as the virtual resources to be transferred.
[0133] In a specific implementation, the processor 601, communication interface 602 and memory 603 described in the embodiment of the present application can execute the implementation method of the resource transfer device described in the resource transfer method provided in the embodiment of the present application, and can also execute the implementation method described in the resource transfer device provided in the embodiment of the present application, which will not be repeated here.
[0134] The computer device provided in the embodiment of the present application can realize the transfer of multiple virtual resources and the attached digital rights of each virtual resource together, that is, not only the transfer of multiple virtual resources together is realized, but also the transfer of virtual resources and their attached digital rights together is realized. Compared with the method of transferring multiple virtual resources separately and transferring virtual resources and their attached digital rights separately, the number of resource transfers can be effectively reduced, thereby effectively improving the resource transfer efficiency.
[0135] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored, and when the computer is run on a computer, the computer implements the resource transfer method provided in the embodiment of the present application. The specific implementation method can be referred to the above description, which will not be repeated here.
[0136] The embodiment of the present application also provides a computer program product, which includes a computer program or a computer instruction, and the computer program or the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer program or the computer instruction from the computer-readable storage medium, and the processor executes the computer program or the computer instruction, so that the computer device implements the resource transfer method provided in the embodiment of the present application. The specific implementation method can be referred to the above description, which will not be repeated here.
[0137] It should be noted that the collection and processing of relevant data in this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained, and subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0138] In addition, for the sake of simplicity, the aforementioned method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0139] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0140] The above disclosure is only part of the embodiments of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A resource transfer method, characterized in that: The method comprises: In response to the resource transfer request, determine the virtual resource to be transferred from the virtual resources under the first blockchain address, and determine the attached digital rights and interests of the virtual resource to be transferred; If there are multiple virtual resources to be transferred, register a first smart contract address for each of the multiple virtual resources to be transferred through an address registration smart contract, and bind each of the virtual resources to be transferred and its attached digital rights and interests to the corresponding first smart contract address; Binding the registered multiple first smart contract addresses to a target address; the target address is the first blockchain address or the second smart contract address, and the second smart contract address is the smart contract address registered by registering the smart contract through the address; By associating the target address with the second blockchain address, the virtual resources to be transferred and their attached digital rights and interests are transferred to the second blockchain address.
2. The method according to claim 1, characterized in that The method further comprises: If there are multiple virtual resources under the first blockchain address, and all the virtual resources under the first blockchain address are determined as the virtual resources to be transferred, the first blockchain address is determined as the target address.
3. The method according to claim 1, characterized in that The method further comprises: If part of the virtual resources under the first blockchain address are determined to be the virtual resources to be transferred, and there are multiple virtual resources in the part of the virtual resources, registering the second smart contract address through the address registration smart contract; The second smart contract address is determined as the target address.
4. The method according to claim 1, characterized in that The method further comprises: If a virtual resource under the first blockchain address is determined to be the virtual resource to be transferred, registering a third smart contract address for the virtual resource to be transferred through an address registration smart contract; Binding the virtual resources to be transferred and their attached digital rights and interests to the third smart contract address; By associating the third smart contract address with the second blockchain address, the virtual resources to be transferred and their attached digital rights and interests are transferred to the second blockchain address.
5. The method according to any one of claims 1 to 4, characterized in that The transferring the virtual resource to be transferred and its attached digital rights and interests to the second blockchain address by associating the target address with the second blockchain address includes: Generate an address binding transaction according to the target address and the second blockchain address, and perform consensus processing on the address binding transaction; If the address binding transaction consensus is passed, the address binding transaction is executed to bind the target address to the second blockchain address; after the target address is bound to the second blockchain address, each of the virtual resources to be transferred and their attached digital rights and interests bound to the target address are transferred to the second blockchain address.
6. The method according to claim 3, characterized in that The initial control right of the target address belongs to the first blockchain address; and the transferring of the virtual resources to be transferred and the attached digital rights and interests to the second blockchain address by associating the target address with the second blockchain address includes: Generate a control transfer transaction according to the target address, the first blockchain address, and the second blockchain address, and perform consensus processing on the control transfer transaction; If the control transfer transaction consensus is passed, the control transfer transaction is executed to transfer the control of the target address from the first blockchain address to the second blockchain address; after the control of the target address belongs to the second blockchain address, the various virtual resources to be transferred and their attached digital rights and interests bound to the target address are transferred to the second blockchain address.
7. The method according to any one of claims 1 to 4, characterized in that The step of determining, in response to the virtual resource transfer request, the virtual resource to be transferred from the virtual resources under the first blockchain address comprises: receiving the virtual resource transfer request, the virtual resource transfer request carrying the virtual resource identifier, the virtual resource transfer request being used to request that the virtual resource and its attached digital rights under the first blockchain address be transferred to the second blockchain address according to the virtual resource identifier; In response to the virtual resource transfer request, a virtual resource matching the virtual resource identifier is determined from the virtual resources under the first blockchain address, and the virtual resource matching the virtual resource identifier is determined as the virtual resource to be transferred.
8. A resource transfer device, characterized in that: The device comprises: A processing unit, configured to determine, in response to the virtual resource transfer request, the virtual resource to be transferred from the virtual resources under the first blockchain address, and determine the attached digital rights and interests of the virtual resource to be transferred; A registration unit, configured to register a first smart contract address for each of the plurality of virtual resources to be transferred through an address registration smart contract if there are a plurality of virtual resources to be transferred; The processing unit is further used to bind each of the virtual resources to be transferred and its attached digital rights and interests with the corresponding first smart contract address; The processing unit is further used to bind the registered multiple first smart contract addresses to a target address; the target address is the first blockchain address or the second smart contract address, and the second smart contract address is the smart contract address registered by registering the smart contract through the address; The processing unit is further used to transfer the virtual resources to be transferred and their attached digital rights and interests to the second blockchain address by associating the target address with the second blockchain address.
9. A computer device, characterized in that: include: A processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are connected to each other, wherein the memory stores an executable program code, and the processor is used to call the executable program code to implement the resource transfer method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed on a computer, enable the computer to implement the resource transfer method according to any one of claims 1 to 7.
11. A computer program product, characterized in that The computer program product comprises a computer program or a computer instruction, and when the computer program or the computer instruction is executed by a processor, the resource transfer method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Process and apparatus for compressing hydrogen gas in a hybrid compression system
US12442377B2