Blockchain-based resource processing method, apparatus, device, and medium
By setting up a first resource contract and a second resource contract in the blockchain network, virtual conversion resources are generated and recorded, solving the problems of security and transparency of virtual conversion resources and realizing the secure and flexible flow of electronic resources.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-10-31
- Publication Date
- 2026-07-24
Smart Images

Figure CN117992537B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a blockchain-based resource processing method, apparatus, device, and medium. Background Technology
[0002] With the continuous development of blockchain technology, the security and reliability of data processing based on blockchain networks are becoming increasingly important. More and more information closely related to people's daily lives and work relies on blockchain networks for processing, such as the transfer and processing of electronic resources, and the virtual conversion of electronic resources. However, current virtual conversions of electronic resources mostly rely on third-party institutions within the blockchain network. Furthermore, the actual existence of the electronic resources obtained through virtual conversion cannot be clearly verified, leading to a high risk of fraud. Therefore, improving the security of both the actual electronic resources and the resulting virtual resources during processing has become a current research hotspot. Summary of the Invention
[0003] This invention provides a blockchain-based resource processing method, apparatus, device, and medium that can improve the security of resource processing.
[0004] On one hand, embodiments of the present invention provide a blockchain-based resource processing method, including:
[0005] Acquire the target electronic resource and set the resource management authority of the target electronic resource as a first resource contract; the first resource contract is a contract belonging to the target blockchain network;
[0006] A virtual conversion resource is generated based on the target electronic resource, and the virtual conversion resource is recorded in a second resource contract belonging to the target blockchain network; wherein the second resource contract is associated with the first resource contract;
[0007] The virtual conversion resource is split into multiple parts, and the result of the splitting is recorded in the second resource contract.
[0008] When it is detected that the target electronic resource needs to be split based on the resource splitting result recorded in the second resource contract, the first resource contract is controlled to split the target electronic resource according to the resource splitting result recorded in the second resource contract.
[0009] Furthermore, embodiments of the present invention provide a blockchain-based resource processing device, comprising:
[0010] An acquisition unit is used to acquire target electronic resources and set the resource management authority of the target electronic resources as a first resource contract; the first resource contract is a contract belonging to the target blockchain network;
[0011] A processing unit is configured to generate virtual conversion resources based on the target electronic resources and record the virtual conversion resources in a second resource contract belonging to the target blockchain network; wherein the second resource contract is associated with the first resource contract;
[0012] The processing unit is further configured to perform resource splitting processing on the virtual conversion resource and record the resource splitting result of the virtual conversion resource in the second resource contract;
[0013] The processing unit is further configured to, when it detects that the target electronic resource needs to be split based on the resource splitting result recorded in the second resource contract, control the first resource contract to perform resource splitting on the target electronic resource according to the resource splitting result recorded in the second resource contract.
[0014] In another aspect, embodiments of the present invention provide a computer device, including a processor, an input device, an output device, and a memory, wherein the processor, input device, output device, and memory are interconnected, wherein the memory is used to store a computer program supporting the computer device in executing the above-described method, the computer program including program instructions, and the processor is configured to invoke the program instructions to execute the following steps:
[0015] Acquire the target electronic resource and set the resource management authority of the target electronic resource as a first resource contract; the first resource contract is a contract belonging to the target blockchain network;
[0016] A virtual conversion resource is generated based on the target electronic resource, and the virtual conversion resource is recorded in a second resource contract belonging to the target blockchain network; wherein the second resource contract is associated with the first resource contract;
[0017] The virtual conversion resource is split into multiple parts, and the result of the splitting is recorded in the second resource contract.
[0018] When it is detected that the target electronic resource needs to be split based on the resource splitting result recorded in the second resource contract, the first resource contract is controlled to split the target electronic resource according to the resource splitting result recorded in the second resource contract.
[0019] In another aspect, embodiments of the present invention provide a computer-readable storage medium storing program instructions, which, when executed by a processor, are used to perform the blockchain-based resource processing method as described in the first aspect.
[0020] In this embodiment of the application, after the computer device obtains the target electronic resource, it can set the resource management permission of the target electronic resource to a first resource contract belonging to the target blockchain network, and generate a corresponding virtual conversion resource according to the target electronic resource. Then, it records the virtual conversion resource in a second resource contract belonging to the target blockchain network. This enables the computer device to package different quantities of electronic resources into a resource pool based on the corresponding first resource contract, and to perform virtual conversion resource conversion processing on the electronic resources in the resource pool. Based on the virtual conversion resources obtained from the computer equipment, the computer equipment can also split the virtual conversion resources and record the splitting results in the second resource contract. Furthermore, when it is necessary to split the target electronic resources, the computer equipment can control the first resource contract to split the target electronic resources according to the resource splitting results recorded in the second resource contract. This enables the computer equipment to perform operations such as splitting, merging, and transferring the resource pool, realizing the entire on-chain virtualization process of electronic resources. This makes the electronic resources verifiable in the blockchain. Based on the verifiability of the resource organization rules contained in the first resource contract in the target blockchain network, the computer equipment can realize the virtualization and transfer of target electronic resources without the access of an intermediary. This effectively avoids the possibility of fraud caused by the lack of transparency of the virtual conversion resources obtained from the virtual conversion, and improves the flexibility and security of the flow of target electronic resources based on the virtual conversion resources. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1a This is a schematic diagram of a distributed system provided in an embodiment of the present invention;
[0023] Figure 1b This is a schematic diagram of a blockchain-based resource processing system provided in an embodiment of the present invention;
[0024] Figure 2 This is a schematic flowchart of a blockchain-based resource processing method provided in an embodiment of the present invention;
[0025] Figure 3a This is a schematic diagram illustrating the adjustment of resource management permissions according to an embodiment of the present invention;
[0026] Figure 3b This is a schematic diagram of a resource pool creation method provided in an embodiment of the present invention;
[0027] Figure 3c This is a schematic diagram illustrating the association of a first resource contract and a second resource contract provided in an embodiment of the present invention;
[0028] Figure 3d This is a schematic diagram illustrating the initial recording in a second resource contract according to an embodiment of the present invention;
[0029] Figure 3e This is a schematic diagram illustrating resource transfer according to an embodiment of the present invention;
[0030] Figure 4a This is a schematic diagram illustrating resource transfer and splitting according to an embodiment of the present invention;
[0031] Figure 4b This is a schematic diagram illustrating the deletion of records in a second resource contract according to an embodiment of the present invention;
[0032] Figure 5 This is a schematic block diagram of a blockchain-based resource processing device provided in an embodiment of the present invention;
[0033] Figure 6 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0034] This application proposes a blockchain-based resource processing method. After acquiring a target electronic resource and setting its resource management permissions to a first resource contract on the target blockchain network, the computer device can record the virtual conversion resources generated from the target electronic resource in a second resource contract on the target blockchain network, and record the splitting of these virtual conversion resources in the second resource contract. Based on the resource splitting results recorded in the second resource contract, when the computer device determines that the target electronic resource needs to be split, it can control the first resource contract to split the target electronic resource according to the resource splitting results for virtual conversion resources in the second resource contract, based on the relationship between the first and second resource contracts. This enables the computer device to generate virtual conversion resources from the target electronic resource using a blockchain network. After generating virtual conversion resources based on the blockchain network, the computer device can also split the target electronic resources based on the relationship between the first resource contract and the second resource contract, combined with the splitting of the virtual conversion resources. This achieves the universality of splitting virtual conversion resources and target electronic resources at the blockchain network level, enabling the computer device to generate virtual conversion resources and process subsequent resources in the blockchain network by combining the first resource contract and the second resource contract respectively. This allows the computer device to constrain the target electronic resources and corresponding virtual conversion resources based on the first resource contract and the second resource contract in the blockchain network. The constraints on the corresponding resources based on the first resource contract and the second resource contract can ensure the security of the relevant resources. At the same time, since the target electronic resources are circulated based on the blockchain network, the transparency of the target electronic resources in the blockchain network is effectively improved.
[0035] In blockchain, a blockchain (or blockchain blockchain network) is a chain of text records (also known as blocks) that are linked and protected using cryptography. Each block contains the cryptographic hash of the previous block, a corresponding timestamp, and related data generated based on resource transfers (usually represented by hash values calculated using a Merkle tree algorithm). This design makes the content of blocks in a blockchain difficult to tamper with. The distributed ledger linked by blockchain technology allows both parties executing resource transfers to effectively record the corresponding resource transfer records, thus enabling permanent verification of resource transfers implemented based on the blockchain. The aforementioned target blockchain network is a network implemented based on blockchain technology. This target blockchain network can be any type of blockchain network; that is, a blockchain-based blockchain network can also be called a data sharing system, which can be like... Figure 1aAs shown, the data sharing system 100 refers to a system for data sharing between nodes. This data sharing system may include multiple nodes 101, which can refer to various clients within the system. Each node 101, during normal operation, receives input information and maintains the shared data within the system based on this information. To ensure information exchange within the data sharing system, information connections can exist between each node, allowing for information transmission between them.
[0036] In one embodiment, the first resource contract and the second resource contract included in the target blockchain network are both smart contracts based on the target blockchain network. A smart contract is a computer protocol designed to disseminate, verify, or execute rules in an information-based manner. Based on this smart contract, corresponding computer devices can allow trusted resource transfers without the intervention of a third party (i.e., any device other than the device executing the resource transfer), and ensure that these resource transfers are traceable and irreversible. In other words, based on the target blockchain network and the first and second resource contracts included in the target blockchain network, the security and reliability of related resource transfers can be guaranteed without the intervention of a third party.
[0037] In one embodiment, the target electronic resource acquired by the computer device is a collection of various types of digital resources. These different types of digital resources may be, for example, digital collectibles or digital resources converted from third-party virtual resources. When acquiring the target electronic resource, it is generally obtained after the target object to which the target electronic resource belongs sends the information to the computer device (or the blockchain network to which the computer device belongs). In other words, the target electronic resource acquired by the computer device belongs to the target object to which the target electronic resource belongs. Here, "belonging to the corresponding target object" means that only the corresponding target object has the right to process the target electronic resource, while other objects or devices cannot process it. Therefore, in order to manage the target electronic resource based on a first resource contract, the computer device can, after acquiring the target electronic resource, set the resource management authority of the target electronic resource to the first resource contract, thereby adjusting the management qualification for the target electronic resource from the original target object to the first resource contract.
[0038] After the computer device sets the resource management permission of the acquired target electronic resource as the first resource contract, the computer device can also determine the virtual conversion resource generated by the target electronic resource. The virtual conversion resource is a virtual resource certificate, and the virtual conversion resource generated based on the target electronic resource can be equivalently represented by the target electronic resource. For example, if the resource value of the target electronic resource is 1, and there are 10 virtual conversion resources obtained, then these 10 virtual conversion resources represent the target electronic resource with a value of 1. Based on the virtual conversion resources generated from the target electronic resources as determined by computer equipment, and the equivalence relationship between the target electronic resources and the virtual conversion resources, resource processing of the virtual conversion resources can realize resource processing of the corresponding target electronic resources. For example, based on the resource splitting or resource transfer processing of the virtual conversion resources, the resource splitting and resource transfer processing for the virtual conversion resources can be mapped to the resource splitting and resource transfer processing for the target electronic resources based on the equivalence relationship between the target electronic resources and the virtual conversion resources. This realizes the processing of the target electronic resources through the processing of the virtual conversion resources, and thus ensures the resource security of the target electronic resources.
[0039] Based on the virtual conversion resources generated from the target electronic resources obtained by the computer equipment, the computer equipment can also use a second resource contract associated with a first resource contract managing the target electronic resources to record the converted virtual conversion resources and the splitting of these virtual conversion resources. This allows the computer equipment to perform splitting processing on the target electronic resources based on the splitting information recorded in the second resource contract when it detects that splitting of the virtual conversion resources is necessary. The splitting of the virtual conversion resources and the target electronic resources is essentially the process of transferring a certain number of virtual conversion resources and the target electronic resources to other objects. It should be noted that, since the embodiments of this application involve the acquisition of the actual target electronic resources of the corresponding object and the adjustment of resource management permissions, the acquisition of the target electronic resources may involve the acquisition and access of the object information of the target object. In order to ensure the security of the object information of the corresponding object, the computer device only accesses and acquires the object information of the corresponding object after outputting query information to the corresponding object and obtaining authorization for the acquisition of the object information. After acquiring the object information, the object information will be deleted after performing relevant operations to avoid the leakage of the object information.
[0040] In one embodiment, the above-described resource processing method can be applied to, for example... Figure 1bIn the blockchain-based resource processing system shown, the system includes a first device 10 and a second device 11, both of which are node devices in the blockchain network. Figure 1b As shown, the first device 10 and the second device 11 are devices corresponding to different objects. After the first device 10 connects to the target blockchain network, it can adjust the resource management authority of the target electronic resource belonging to the target object to a first resource contract in the target blockchain network, determine the virtual conversion resource corresponding to the target electronic resource, record the converted virtual conversion resource in the second resource contract, and record the result of resource splitting based on the virtual conversion resource. If the resource splitting result recorded in the second resource contract indicates that a portion of the virtual conversion resource is split and transferred to the second device 11, then the first resource contract can, based on the record of the second resource contract, split and transfer the corresponding share of the target electronic resource to the second device. In one embodiment, the aforementioned computer device is as follows: Figure 1b The first device shown, and Figure 1b The second device can also be used as a computer device to manage the electronic resources of the corresponding object. The computer device mentioned in this application embodiment can be a terminal device or a server. When the computer device is a server, it can be a single physical server, a server cluster consisting of multiple physical servers, or a cloud server. This application embodiment does not impose any limitations.
[0041] Please see Figure 2 This is a schematic flowchart illustrating a blockchain-based resource processing method proposed in an embodiment of this application. This blockchain-based resource processing method can be executed by the aforementioned computer equipment, such as... Figure 2 As shown, the method may include:
[0042] S201, acquire the target electronic resource and set the resource management authority of the target electronic resource as the first resource contract; the first resource contract is a contract belonging to the target blockchain network.
[0043] In one embodiment, the target electronic resource acquired by the computer device is an electronic resource belonging to one or more resource types of the target object, and the target electronic resource of any resource type contains a corresponding resource management field. That is, the value of the resource management field corresponding to the target electronic resource acquired by the computer device is the object identifier of the target object, thereby indicating that the object to which the target electronic resource belongs is the target object. Therefore, after acquiring the target electronic resource, if the computer device needs to adjust the resource management permissions of the target electronic resource, it can do so by adjusting the value of the resource management field of the target electronic resource. In other words, the computer device can modify the value of the resource management field corresponding to the target electronic resource to set the resource management permission of the target electronic resource to the first resource contract. Since the target electronic resource contains one or more resource types of electronic resources, and under normal circumstances, the resource management field corresponding to the same electronic resource belonging to the same object is the same field, when the computer device modifies the management permissions of the corresponding electronic resource based on modifying the value of the resource management field of the corresponding electronic resource, it can modify the resource management field of each resource type of electronic resource contained in the target electronic resource separately, thereby ensuring that the resource management permissions of each resource type of electronic resource contained in the target electronic resource are all the first resource contract.
[0044] In a specific implementation, the computer device modifies the resource management permissions of the corresponding electronic resource based on the value of the resource management field of the electronic resource. To set the resource management permission of the target electronic resource to the first resource contract, the computer device first obtains the contract address of the first resource contract and the storage format of the resource management field corresponding to each resource type of the target electronic resource. Then, it stores the contract address of the first resource contract into the resource management field of the target electronic resource of the corresponding resource type according to the corresponding storage format, thereby setting the resource management permission of each resource type of the target electronic resource to the first resource contract. In one embodiment, the target electronic resource can be maintained in the target blockchain network as follows: Figure 3a The resource information shown contains multiple information fields, such as resource ownership, resource quantity, and resource generation. The resource ownership field is the resource management field mentioned above. Therefore, as... Figure 3a As shown, a computer device can set the resource management permission of the target electronic resource as the first resource contract by storing the contract address of the first resource contract in the resource ownership field of the target electronic resource.
[0045] After the computer device sets the resource management permission of the target electronic resource to the first resource contract, the computer device can use the target electronic resource and the first resource contract that has the resource management permission for the target electronic resource as a resource pool. The first resource contract also contains a split control field for the first resource contract. Then, after the computer device uses the target electronic resource and the first resource contract as a resource pool, it can store the contract address of the second resource contract in the split control field, thereby enabling the split control permission of the resource pool to be set to the second resource contract. The split control permission of the resource pool refers to the permission to split the target electronic resource in the resource pool. In one embodiment, the computer device uses the target electronic resource and the first resource contract as a resource pool, which enables the target object to which the target electronic resource originally belonged to create the resource pool. After the computer device sets the splitting control authority of the resource pool to the second resource contract, it realizes that the second resource contract is the controller of the first resource contract. Based on the determination of the controller of the first resource contract, the computer device can record the transfer of virtual conversion resources generated from the target electronic resource in the second resource contract, and realize the splitting processing of the target electronic resource in the first resource contract through the second resource contract. This enables the computer device to effectively abstract the transfer of the target electronic resource at the blockchain level.
[0046] After acquiring a target electronic resource, the computer device sets the resource management authority of the target electronic resource as a first resource contract, creates a resource pool, and uses a second resource contract as the controlled object of the first resource contract. This process can be collectively referred to as the resource pool creation process. During the creation of the resource pool, the computer device also involves setting resource organization rules (or resource cleanup rules, or clearing rules). Specifically, when the computer device sets resource organization rules in the resource pool created by the corresponding object (such as the resource pool containing the first resource contract mentioned above), it means adding corresponding resource organization rules to the first resource contract to constrain the management duration of the target electronic resource managed by the first resource contract. In one embodiment, the resource consolidation rule includes one or more consolidation conditions. Based on the consolidation conditions set in the resource consolidation rule, when the computer device determines that a target electronic resource needs to be split, it must also determine that the consolidation conditions in the resource consolidation rule are met before executing the splitting process. The consolidation conditions included in the resource consolidation rule can be time conditions, duration conditions, block height conditions, or constraints on the operation object, etc. In other words, after the computer device acquires the target electronic resource, completes the process of adjusting the resource management authority of the target electronic resource to a first resource contract, designating a second resource contract as the control object of the first resource contract, and adding resource consolidation rules to the first resource contract, it then determines that the creation process of the corresponding resource pool based on the target electronic resource is complete.
[0047] Below, in conjunction with Figure 3b The overall process of creating a resource pool for the target object corresponding to the target electronic resource and setting the second resource contract as the control object of the first resource contract is described. First, target object A can transfer electronic resources of different resource types into the first resource contract (i.e., Figure 3b In the contract address of the first resource contract A), the resource management authority of the target electronic resource is set as the first resource contract. After the target electronic resource is transferred by the target object A to the first resource contract, the resource contracts for the target electronic resource can form a resource pool. In addition, the computer device can designate a second resource contract as the controller of the first resource contract, and set corresponding resource consolidation rules in the first resource contract. When the resource consolidation rules are met, the management of the target electronic resource by the first resource contract expires, and the second resource contract, as the controller, performs resource consolidation (including splitting and transferring the target electronic resource).
[0048] After the computer device completes the creation of the resource pool based on the target electronic resources, it can generate virtual conversion resources based on the target electronic resources and record the virtual conversion resources in the second resource contract, that is, proceed to step S202.
[0049] S202, generate virtual conversion resources based on target electronic resources, and record the virtual conversion resources in a second resource contract belonging to the target blockchain network; wherein, the second resource contract is associated with the first resource contract.
[0050] S203, perform resource splitting on the virtual conversion resources and record the resource splitting results of the virtual conversion resources in the second resource contract.
[0051] In steps S202 and S203, when the computer device generates virtual conversion resources based on the target electronic resources, it can generate virtual conversion resources based on the total amount of resources contained in the target electronic resources and in combination with certain conversion conditions. For example, the conversion condition could be based on the total amount of resources in the target electronic resources being increased by 100 times. In this case, when the total amount of resources in the target electronic resources is 100, the computer device can generate virtual conversion resources with a corresponding total amount of 10,000 based on the conversion condition. Alternatively, the computer device can also randomly generate virtual conversion resources based on the total amount of resources in the target electronic resources. For example, when the total amount of resources in the target electronic resources is 100, the computer device can randomly generate virtual conversion resources with a corresponding total amount of 1,000, or generate virtual conversion resources with a corresponding total amount of 900. In this embodiment, the method of generating virtual conversion resources based on the target electronic resources is not limited. In one embodiment, the target electronic resource can be understood as the actual resource of the corresponding object, while the virtual conversion resource is not an actual resource. That is to say, during the transfer and splitting process, the virtual conversion resource only records the quantity and does not involve the actual transfer of resources, while the actual transfer of resources is for the actual target electronic resource.
[0052] After the computer equipment identifies the virtual conversion resource generated by the target electronic resource, it records the generated virtual conversion resource in the second resource contract. This completes the first recording of the object created by the first resource contract (i.e., the original management object of the target electronic resource) in the second resource contract, that is, the first recording of the virtual conversion resource generated by the target electronic resource in the resource contract. After the second resource contract completes the first recording of the virtual conversion resource, it also associates the first resource contract with the second resource contract. When associating the first and second resource contracts, the computer equipment associates the second resource contract with the resource pool corresponding to the first resource contract through a target interface, such as a slot interface. In one embodiment, since the asset pools created by different objects are different, the second resource contract will be associated with the asset pools created by different objects (i.e., the first resource contracts corresponding to different objects) through different interfaces. That is to say, after the resource management permission of the target electronic resource is set as the first resource contract, it is treated as a resource pool. Therefore, the second resource contract contains different interfaces among multiple interfaces used to associate with different resource pools. For example, the slot interface a (slot_a) included in the second resource contract is used to associate with the first resource contract (resource pool) corresponding to object A, while the slot interface b (slot_b) included in the second resource contract is used to associate with the first resource contract corresponding to object B. The specific association process can be as follows: Figure 3c As shown.
[0053] When the computer device first records the virtual conversion resource generated from the target electronic resource in the second resource contract, it needs to determine the total resource quantity (or total issuance, total issuance balance) corresponding to the virtual conversion resource, and confirm the object to which the virtual conversion resource belongs. In one embodiment, since the target electronic resource originally belongs to the target object, the object of the virtual conversion resource generated based on the target electronic resource can also be determined to be the target object. Alternatively, the computer device can also set the object to which the virtual conversion resource belongs as the first resource contract, or the generating device of the virtual conversion resource, etc. Specifically, after the computer device generates the virtual conversion resource based on the target electronic resource, when recording the generated virtual conversion resource in the second resource contract belonging to the target blockchain network, it can do so as follows: Figure 3dAs shown, the computer device can first obtain the target object (owner) to which the target electronic resource belongs, the reference quantity of the virtual converted resource obtained from the target electronic resource (i.e., the total resource quantity corresponding to the virtual converted resource), and the target interface associated with the first resource contract corresponding to the target electronic resource; then, the computer device can generate an initial resource record of the virtual converted resource based on the object information of the target object, the reference quantity, and the interface information of the target interface, and store the initial resource record in the second resource contract. The generated initial resource record can be generated by... Figure 3d The table of records marked with 301 is shown in the image.
[0054] After recording the virtual conversion resource in the second resource contract, the computer device can split the virtual conversion resource and record the splitting result in the second resource contract. In one embodiment, splitting the virtual conversion resource involves changing the object of a portion of the generated reference quantity of virtual conversion resources from the target object to another object. For example, changing the object of 500 virtual conversion resources out of the aforementioned total of 10,000 virtual conversion resources from object A to object B or object C. That is, the resource splitting process performed by the computer device on the virtual conversion resource is based on the total amount of the virtual conversion resource. By performing a transfer operation on a portion of the virtual conversion resource quantity, the object corresponding to the corresponding quantity of virtual conversion resources can be changed from the original object to another object, and the corresponding other object can obtain the corresponding quantity of virtual conversion resources. In other words, the resource splitting result obtained by the computer device after splitting the virtual conversion resource includes: the quantity of the split virtual conversion resource and the transferred object of the split virtual conversion resource.
[0055] After a computer device transfers a corresponding number of virtual conversion resources to other objects based on a transfer operation, the second resource contract, having the capability to merge, split, and transfer virtual conversion resources through relevant interfaces, can merge, split, and transfer virtual conversion resources of the same type (i.e., from the same resource pool) owned by the corresponding object. This allows the virtual conversion resources to circulate effectively based on the second resource contract. In other words, other objects can also transfer acquired virtual conversion resources to a third party or merge virtual conversion resources of the same type obtained from a third party. In one embodiment, after the computer device transfers the split virtual conversion resources to the corresponding transfer object, it merges the virtual conversion resources of the same type contained in the corresponding transfer object through the second resource contract, and then records the merged virtual conversion resources of the corresponding transfer object in the second resource contract. Virtual conversion resources of the same type refer to virtual conversion resources generated from electronic resources in the same resource pool. The splitting process of virtual conversion resources and the recording of the splitting results in the second resource contract can be performed as follows: Figure 3e As shown.
[0056] Based on the record of the resource splitting results of the virtual conversion resources in the second resource contract by the computer device, the computer device can control the second resource contract to perform resource splitting processing according to the record in the first resource contract when the target electronic resources need to be split, and then proceed to step S204.
[0057] S204, when it is detected that the target electronic resource needs to be split based on the resource splitting result recorded in the second resource contract, the first resource contract is controlled to split the target electronic resource according to the resource splitting result recorded in the second resource contract.
[0058] The splitting of the target electronic resource is constrained by the resource organization rules set in the first resource contract. Since these rules contain one or more organization conditions, the computer device can determine that the target electronic resource needs to be split based on the resource splitting results recorded in the second resource contract when the organization conditions are met. In specific implementation, the computer device can first obtain the effective duration of the management authority of the first resource contract for the target electronic resource based on the resource organization rules. This effective duration is used to indicate whether the resource organization rules are met. Furthermore, when the effective duration reaches a specified duration, the computer device can determine that there is a need for resource splitting results based on virtual conversion resources.
[0059] When the computer device determines that the resource consolidation rules are met, each object belonging to the virtual conversion resources can initiate a withdrawal operation for the virtual conversion resources to the second resource contract. Upon receiving the withdrawal operation from the corresponding object, the second resource contract, as the controlling object, can send a corresponding clearing instruction (i.e., a splitting and transfer instruction for the target electronic resources) to the first resource contract. After receiving the instruction from the second resource contract, the first resource contract, based on the confirmed resource consolidation rules, can determine the share of virtual conversion resources contained in the corresponding object that sent the clearing instruction, split the target electronic resources according to the corresponding share, and then transfer the split electronic resources to the corresponding object. This process can be described as follows: Figure 4a As shown. In other words, since the resource splitting result of virtual conversion resources includes: the transfer objects corresponding to the split virtual conversion resources, and the split virtual conversion resources contain one or more, and the corresponding transfer objects also contain one or more; then, when the computer device controls the first resource contract to perform resource splitting processing on the target electronic resources according to the resource splitting result of the virtual conversion resources based on the association between the first resource contract and the second resource contract, it can first determine the resource quantity of virtual conversion resources contained in each transfer object based on the resource splitting result of the virtual conversion resources, and determine the resource share of virtual conversion resources contained in the corresponding transfer object based on the transfer quantity; then, through the association between the first resource contract and the second resource contract, the resource share of virtual conversion resources contained in the corresponding transfer object can be sent to the first resource contract, so that the first resource contract can perform splitting processing on the target electronic resources according to the corresponding resource conversion share.
[0060] In one embodiment, since the target electronic resources contained in the first resource contract include one or more resource types, when the computer device splits the target electronic resources according to the corresponding resource conversion share through the first resource contract, it can first obtain the resource quantity corresponding to the target electronic resources contained in the first resource contract under different resource types; further, the resource quantity under each resource type can be split sequentially according to the corresponding resource conversion share. In one embodiment, when the computer device determines in the second resource contract that the corresponding contract object has completed the withdrawal operation of the corresponding virtual conversion resource, it can perform a destruction operation on the resource record of the corresponding contract object in the record of the second resource contract to prevent the corresponding object from performing duplicate withdrawal processing based on the corresponding resource record. That is, after the split electronic resources obtained after the computer device performs resource splitting processing on the target electronic resources are sent to the corresponding transfer object, it can delete the resource splitting result of the corresponding transfer object recorded in the second resource contract when it is determined that the corresponding split electronic resources have been successfully sent to the corresponding transfer object. The deletion process of the second resource contract can be as follows: Figure 4b As shown.
[0061] In this embodiment of the application, after the computer device obtains the target electronic resource, it can set the resource management permission of the target electronic resource to a first resource contract belonging to the target blockchain network, and generate a corresponding virtual conversion resource according to the target electronic resource. Then, it records the virtual conversion resource in a second resource contract belonging to the target blockchain network. This enables the computer device to package different quantities of electronic resources into a resource pool based on the corresponding first resource contract, and to perform virtual conversion resource conversion processing on the electronic resources in the resource pool. Based on the virtual conversion resources obtained from the computer equipment, the computer equipment can also split the virtual conversion resources and record the splitting results in the second resource contract. Furthermore, when it is necessary to split the target electronic resources, the computer equipment can control the first resource contract to split the target electronic resources according to the resource splitting results recorded in the second resource contract. This enables the computer equipment to perform operations such as splitting, merging, and transferring the resource pool, realizing the entire on-chain virtualization process of electronic resources. This makes the electronic resources verifiable in the blockchain. Based on the verifiability of the resource organization rules contained in the first resource contract in the target blockchain network, the computer equipment can realize the virtualization and transfer of target electronic resources without the access of an intermediary. This effectively avoids the possibility of fraud caused by the lack of transparency of the virtual conversion resources obtained from the virtual conversion, and improves the flexibility and security of the flow of target electronic resources based on the virtual conversion resources.
[0062] Based on the description of the above-described blockchain-based resource processing method embodiments, this invention also proposes a blockchain-based resource processing device. This blockchain-based resource processing device can be a computer program (including program code) running on the aforementioned computer device. This blockchain-based resource processing device can be used to execute, for example... Figure 2 For the blockchain-based resource processing method described above, please refer to [link / reference]. Figure 5 The blockchain-based resource processing device includes an acquisition unit 501 and a processing unit 502.
[0063] The acquisition unit 501 is used to acquire the target electronic resource and set the resource management authority of the target electronic resource as a first resource contract; the first resource contract is a contract belonging to the target blockchain network;
[0064] Processing unit 502 is configured to generate virtual conversion resources based on the target electronic resources, and record the virtual conversion resources in a second resource contract belonging to the target blockchain network; wherein the second resource contract is associated with the first resource contract;
[0065] The processing unit 502 is further configured to perform resource splitting processing on the virtual conversion resource and record the resource splitting result of the virtual conversion resource in the second resource contract;
[0066] The processing unit 502 is further configured to, when detecting that the target electronic resource needs to be split based on the resource splitting result recorded in the second resource contract, control the first resource contract to perform resource splitting on the target electronic resource according to the resource splitting result recorded in the second resource contract.
[0067] In one embodiment, the target electronic resource includes at least one resource type, and the target electronic resource of any resource type includes a corresponding resource management field; the acquisition unit 501 is specifically used for:
[0068] Obtain the contract address of the first resource contract, and the storage format of the resource management field corresponding to the target electronic resource for each resource type;
[0069] The contract address of the first resource contract is stored in the resource management resource corresponding to the target electronic resource of the corresponding resource type according to the corresponding storage format, so as to set the resource management permission of the target electronic resource of each resource type as the first resource contract.
[0070] In one embodiment, the processing unit 502 is further configured to treat the target electronic resource and the first resource contract that has resource management authority over the target electronic resource as a resource pool; the first resource contract further includes a split control field regarding the first resource contract;
[0071] The processing unit 502 is further configured to store the contract address of the second resource contract in the split control field, so as to set the split control permission of the resource pool to the second resource contract; the split control permission of the resource pool refers to the permission to support the split processing of the target electronic resources in the resource pool.
[0072] In one embodiment, the virtual conversion resource is generated based on the total resource amount of the target electronic resource, and the total resource amount of the generated virtual conversion resource is a reference quantity;
[0073] The processing unit 502 is further configured to associate the second resource contract with the resource pool corresponding to the first resource contract through the target interface, so as to associate the first resource contract with the second resource contract.
[0074] Wherein, after the resource management authority of the target electronic resource is set to the first resource contract, the first resource contract is used as a resource pool, and the second resource contract contains multiple interfaces, and different interfaces are used to associate different resource pools.
[0075] In one embodiment, the processing unit 502 is specifically used for:
[0076] Obtain the target object to which the target electronic resource belongs, the reference quantity of the virtual conversion resource corresponding to the target electronic resource, and the target interface associated with the first resource contract corresponding to the target electronic resource;
[0077] Based on the object information of the target object, the reference quantity, and the interface information of the target interface, an initial resource record for the virtual conversion resource is generated, and the initial resource record is stored in the second resource contract.
[0078] In one embodiment, the resource splitting process performed on the virtual conversion resource is based on the total amount of the virtual conversion resource;
[0079] The resource splitting result obtained after splitting the virtual conversion resources includes: the number of resources of the split virtual conversion resources, and the transfer objects of the split virtual conversion resources;
[0080] Specifically, after transferring the split virtual conversion resources to the corresponding transfer objects, the second resource contract is used to merge the virtual conversion resources of the same type contained in the corresponding transfer objects, and the merged virtual conversion resources of the corresponding transfer objects are recorded in the second resource contract.
[0081] The same type of virtual conversion resources refers to virtual conversion resources generated from electronic resources in the same resource pool.
[0082] In one embodiment, after the resource management authority of the target electronic resource is set to the first resource contract, the first resource contract is also added with resource organization rules;
[0083] The processing unit 502 is further configured to obtain the effective duration of the management authority of the first resource contract for the target electronic resource based on the resource organization rules.
[0084] The processing unit 502 is further configured to determine, when the effective duration reaches the specified duration, that there is a demand for resource splitting results based on the virtual conversion resources.
[0085] In one embodiment, the resource splitting result of the virtual conversion resource includes: the transfer object corresponding to the split virtual conversion resource, wherein the split virtual conversion resource contains one or more, and the corresponding transfer object also contains one or more; the processing unit 502 is specifically used for:
[0086] Based on the resource splitting results of the virtual conversion resources, determine the resource quantity of virtual conversion resources contained in each transfer object, and determine the resource share of virtual conversion resources contained in the corresponding transfer object based on the transfer quantity.
[0087] By leveraging the association between the first resource contract and the second resource contract, the resource share of the virtual conversion resource contained in the corresponding transfer object is sent to the first resource contract, so that the target electronic resource can be split and processed according to the corresponding resource conversion share through the first resource contract.
[0088] In one embodiment, the target electronic resources included in the first resource contract include one or more resource types; the processing unit 502 is specifically used for:
[0089] Obtain the quantity of the target electronic resources contained in the first resource contract under different resource types;
[0090] The quantity of resources under each resource type is split according to the corresponding resource conversion share.
[0091] In one embodiment, the split electronic resources obtained after the target electronic resources are split are sent to the corresponding transfer object;
[0092] The processing unit 502 is further configured to delete the resource splitting result of the corresponding transfer object recorded in the second resource contract when it is determined that the corresponding split electronic resource has been successfully sent to the corresponding transfer object.
[0093] In this embodiment of the application, after the acquisition unit 501 acquires the target electronic resource, it can set the resource management permission of the target electronic resource to the first resource contract belonging to the target blockchain network. The processing unit 502 can generate the corresponding virtual conversion resource according to the target electronic resource and record the virtual conversion resource in the second resource contract belonging to the target blockchain network. This can realize the packaging of different quantities of electronic resources into a resource pool based on the corresponding first resource contract and the conversion processing of the electronic resources in the resource pool using virtual conversion resources. Based on the virtual conversion resources obtained by processing unit 502, the processing unit 502 can also split the virtual conversion resources and record the splitting results in the second resource contract. Furthermore, when it is necessary to split the target electronic resources, the first resource contract can be controlled to split the target electronic resources according to the resource splitting results recorded in the second resource contract. This realizes operations such as splitting, merging, and transferring the resource pool, and realizes the entire process of virtualizing electronic resources on the blockchain. This makes the electronic resources verifiable in the blockchain. Based on the verifiability of the resource organization rules contained in the first resource contract in the target blockchain network, the virtualization and transfer of target electronic resources can be realized without the access of an intermediary. This effectively avoids the possibility of fraud caused by the lack of transparency of the virtual conversion resources obtained by virtual conversion, and improves the flexibility and security of the flow of target electronic resources based on virtual conversion resources.
[0094] Please see Figure 6 This is a schematic block diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 6 The computer device shown in this embodiment may include: one or more processors 601; one or more input devices 602; one or more output devices 603; and a memory 604. The processors 601, input devices 602, output devices 603, and memory 604 are connected via a bus 605. The memory 604 stores a computer program, which includes program instructions, and the processor 601 executes the program instructions stored in the memory 604.
[0095] The memory 604 may include volatile memory, such as random-access memory (RAM); the memory 604 may also include non-volatile memory, such as flash memory, solid-state drive (SSD), etc.; the memory 604 may also include a combination of the above types of memory.
[0096] The processor 601 may be a central processing unit (CPU). The processor 601 may further include hardware chips. These hardware chips may be application-specific integrated circuits (ASICs), programmable logic devices (PLDs), etc. The PLD may be a field-programmable gate array (FPGA), generic array logic (GAL), etc. The processor 601 may also be a combination of the above structures.
[0097] In this embodiment of the invention, the memory 604 is used to store a computer program, the computer program including program instructions, and the processor 601 is used to execute the program instructions stored in the memory 604 to implement the above-mentioned... Figure 2 The steps of the corresponding method.
[0098] In one embodiment, the processor 601 is configured to invoke the program instructions to execute:
[0099] Acquire the target electronic resource and set the resource management authority of the target electronic resource as a first resource contract; the first resource contract is a contract belonging to the target blockchain network;
[0100] A virtual conversion resource is generated based on the target electronic resource, and the virtual conversion resource is recorded in a second resource contract belonging to the target blockchain network; wherein the second resource contract is associated with the first resource contract;
[0101] The virtual conversion resource is split into multiple parts, and the result of the splitting is recorded in the second resource contract.
[0102] When it is detected that the target electronic resource needs to be split based on the resource splitting result recorded in the second resource contract, the first resource contract is controlled to split the target electronic resource according to the resource splitting result recorded in the second resource contract.
[0103] In one embodiment, the target electronic resource includes at least one resource type, and the target electronic resource of any resource type includes a corresponding resource management field; the processor 601 is configured to invoke the program instructions to execute:
[0104] Obtain the contract address of the first resource contract, and the storage format of the resource management field corresponding to the target electronic resource for each resource type;
[0105] The contract address of the first resource contract is stored in the resource management resource corresponding to the target electronic resource of the corresponding resource type according to the corresponding storage format, so as to set the resource management permission of the target electronic resource of each resource type as the first resource contract.
[0106] In one embodiment, the processor 601 is configured to invoke the program instructions to execute:
[0107] The target electronic resource and the first resource contract that has resource management authority over the target electronic resource are used as a resource pool; the first resource contract also includes a split control field for the first resource contract;
[0108] The contract address of the second resource contract is stored in the split control field to set the split control permission of the resource pool to the second resource contract; the split control permission of the resource pool refers to the permission to support the split processing of the target electronic resources in the resource pool.
[0109] In one embodiment, the virtual conversion resources are generated based on the total amount of the target electronic resources, and the total amount of the generated virtual conversion resources is a reference quantity; the processor 601 is configured to call the program instructions to execute:
[0110] The second resource contract is associated with the resource pool corresponding to the first resource contract through the target interface, so as to associate the first resource contract with the second resource contract;
[0111] Wherein, after the resource management authority of the target electronic resource is set to the first resource contract, the first resource contract is used as a resource pool, and the second resource contract contains multiple interfaces, and different interfaces are used to associate different resource pools.
[0112] In one embodiment, the processor 601 is configured to invoke the program instructions to execute:
[0113] Obtain the target object to which the target electronic resource belongs, the reference quantity of the virtual conversion resource corresponding to the target electronic resource, and the target interface associated with the first resource contract corresponding to the target electronic resource;
[0114] Based on the object information of the target object, the reference quantity, and the interface information of the target interface, an initial resource record for the virtual conversion resource is generated, and the initial resource record is stored in the second resource contract.
[0115] In one embodiment, the resource splitting process performed on the virtual conversion resource is based on the total amount of the virtual conversion resource;
[0116] The resource splitting result obtained after splitting the virtual conversion resources includes: the number of resources of the split virtual conversion resources, and the transfer objects of the split virtual conversion resources;
[0117] Specifically, after transferring the split virtual conversion resources to the corresponding transfer objects, the second resource contract is used to merge the virtual conversion resources of the same type contained in the corresponding transfer objects, and the merged virtual conversion resources of the corresponding transfer objects are recorded in the second resource contract.
[0118] The same type of virtual conversion resources refers to virtual conversion resources generated from electronic resources in the same resource pool.
[0119] In one embodiment, after the resource management authority of the target electronic resource is set to the first resource contract, the first resource contract is also added with resource organization rules; the processor 601 is configured to call the program instructions to execute:
[0120] Based on the resource organization rules, obtain the effective duration of the management authority of the first resource contract for the target electronic resource;
[0121] When the effective duration reaches the specified duration, it is determined that there is a demand for resource splitting results based on the virtual conversion resources.
[0122] In one embodiment, the resource splitting result of the virtual conversion resource includes: the transfer object corresponding to the split virtual conversion resource, wherein the split virtual conversion resource contains one or more, and the corresponding transfer object also contains one or more; the processor 601 is configured to call the program instructions to execute:
[0123] Based on the resource splitting results of the virtual conversion resources, determine the resource quantity of virtual conversion resources contained in each transfer object, and determine the resource share of virtual conversion resources contained in the corresponding transfer object based on the transfer quantity.
[0124] By leveraging the association between the first resource contract and the second resource contract, the resource share of the virtual conversion resource contained in the corresponding transfer object is sent to the first resource contract, so that the target electronic resource can be split and processed according to the corresponding resource conversion share through the first resource contract.
[0125] In one embodiment, the target electronic resources included in the first resource contract include one or more resource types; the processor 601 is configured to invoke the program instructions to execute:
[0126] Obtain the quantity of the target electronic resources contained in the first resource contract under different resource types;
[0127] The quantity of resources under each resource type is split according to the corresponding resource conversion share.
[0128] In one embodiment, the split electronic resources obtained after splitting the target electronic resources are sent to the corresponding transfer object; the processor 601 is configured to call the program instructions to execute:
[0129] Upon confirming that the corresponding split electronic resources have been successfully sent to the corresponding transfer object, the resource splitting results recorded in the second resource contract regarding the corresponding transfer object are deleted.
[0130] This invention 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 aforementioned actions. Figure 2 The method embodiment shown. The computer-readable storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0131] The above-disclosed embodiments are merely partial examples of the present invention and should not be construed as limiting the scope of the invention. Those skilled in the art will understand that all or part of the processes for implementing the above embodiments, and equivalent variations made in accordance with the claims of the present invention, still fall within the scope of the invention.
Claims
1. A resource processing method based on blockchain, characterized in that, include: Acquire the target electronic resource and set the resource management permission of the target electronic resource as the first resource contract; The first resource contract is a contract belonging to the target blockchain network; A virtual conversion resource is generated based on the target electronic resource, and the virtual conversion resource is recorded in a second resource contract belonging to the target blockchain network; wherein the second resource contract is associated with the first resource contract; the virtual conversion resource is a virtual resource certificate used to represent the target electronic resource at an equivalent value; The virtual conversion resource is split into multiple parts, and the result of the splitting is recorded in the second resource contract. When it is detected that the target electronic resource needs to be split based on the resource splitting result recorded in the second resource contract, the first resource contract is controlled to split the target electronic resource according to the resource splitting result recorded in the second resource contract; the resource splitting result obtained after splitting the virtual conversion resource includes: the resource quantity of the split virtual conversion resource, and the transfer object of the split virtual conversion resource.
2. The method as described in claim 1, characterized in that, The target electronic resource includes at least one resource type, and the target electronic resource of any resource type includes a corresponding resource management field; setting the resource management permission of the target electronic resource to a first resource contract includes: Obtain the contract address of the first resource contract, and the storage format of the resource management field corresponding to the target electronic resource for each resource type; The contract address of the first resource contract is stored in the resource management resource corresponding to the target electronic resource of the corresponding resource type according to the corresponding storage format, so as to set the resource management permission of the target electronic resource of each resource type as the first resource contract.
3. The method as described in claim 1, characterized in that, The method further includes: The target electronic resource and the first resource contract that has resource management authority over the target electronic resource are used as a resource pool; the first resource contract also includes a split control field for the first resource contract; The contract address of the second resource contract is stored in the split control field to set the split control permission of the resource pool to the second resource contract; the split control permission of the resource pool refers to the permission to support the split processing of target electronic resources in the resource pool.
4. The method as described in claim 1, characterized in that, The virtual conversion resources are generated based on the total amount of the target electronic resources, and the total amount of the generated virtual conversion resources is a reference quantity; the method further includes: The second resource contract is associated with the resource pool corresponding to the first resource contract through the target interface, so as to associate the first resource contract with the second resource contract; Wherein, after the resource management authority of the target electronic resource is set to the first resource contract, the first resource contract is used as a resource pool, and the second resource contract contains multiple interfaces, and different interfaces are used to associate different resource pools.
5. The method as described in claim 4, characterized in that, The recording of the virtual conversion resource in the second resource contract belonging to the target blockchain network includes: Obtain the target object to which the target electronic resource belongs, the reference quantity of the virtual conversion resource corresponding to the target electronic resource, and the target interface associated with the first resource contract corresponding to the target electronic resource; Based on the object information of the target object, the reference quantity, and the interface information of the target interface, an initial resource record for the virtual conversion resource is generated, and the initial resource record is stored in the second resource contract.
6. The method as described in claim 1, characterized in that, The resource splitting process performed on the virtual conversion resources is based on the total amount of resources in the virtual conversion resources; Specifically, after transferring the split virtual conversion resources to the corresponding transfer objects, the second resource contract is used to merge the virtual conversion resources of the same type contained in the corresponding transfer objects, and the merged virtual conversion resources of the corresponding transfer objects are recorded in the second resource contract. The same type of virtual conversion resources refers to virtual conversion resources generated from electronic resources in the same resource pool.
7. The method as described in claim 1, characterized in that, After the resource management permissions of the target electronic resource are set to the first resource contract, the first resource contract is also added with resource organization rules; the method further includes: Based on the resource organization rules, obtain the effective duration of the management authority of the first resource contract for the target electronic resource; When the effective duration reaches the specified duration, it is determined that there is a demand for resource splitting results based on the virtual conversion resources.
8. The method as described in claim 1, characterized in that, The resource splitting result of the virtual conversion resource includes: the transfer object corresponding to the split virtual conversion resource, wherein the split virtual conversion resource includes one or more, and the corresponding transfer object also includes one or more; the step of controlling the first resource contract to perform resource splitting processing on the target electronic resource according to the resource splitting result of the virtual conversion resource based on the association relationship between the first resource contract and the second resource contract includes: Based on the resource splitting results of the virtual conversion resources, determine the resource quantity of virtual conversion resources contained in each transfer object, and determine the resource share of virtual conversion resources contained in the corresponding transfer object based on the transfer quantity. By leveraging the association between the first resource contract and the second resource contract, the resource share of the virtual conversion resource contained in the corresponding transfer object is sent to the first resource contract, so that the target electronic resource can be split and processed according to the corresponding resource conversion share through the first resource contract.
9. The method as described in claim 8, characterized in that, The first resource contract includes target electronic resources comprising one or more resource types; the process of splitting the target electronic resources according to corresponding resource conversion shares through the first resource contract includes: Obtain the quantity of the target electronic resources contained in the first resource contract under different resource types; The quantity of resources under each resource type is split according to the corresponding resource conversion share.
10. The method as described in claim 1, characterized in that, The split electronic resources obtained after performing resource splitting on the target electronic resources are sent to the corresponding transfer objects; the method further includes: Upon confirming that the corresponding split electronic resources have been successfully sent to the corresponding transfer object, the resource splitting results recorded in the second resource contract regarding the corresponding transfer object are deleted.
11. A blockchain-based resource processing device, characterized in that, include: An acquisition unit is used to acquire a target electronic resource and set the resource management authority of the target electronic resource as a first resource contract; The first resource contract is a contract belonging to the target blockchain network; A processing unit is configured to generate a virtual conversion resource based on the target electronic resource, and record the virtual conversion resource in a second resource contract belonging to the target blockchain network; wherein the second resource contract is associated with the first resource contract; the virtual conversion resource is a virtual resource certificate used to equivalently represent the target electronic resource; The processing unit is further configured to perform resource splitting processing on the virtual conversion resource and record the resource splitting result of the virtual conversion resource in the second resource contract; The processing unit is further configured to, when detecting that the target electronic resource needs to be split based on the resource splitting result recorded in the second resource contract, control the first resource contract to perform resource splitting on the target electronic resource according to the resource splitting result recorded in the second resource contract; the resource splitting result obtained after performing resource splitting on the virtual conversion resource includes: the resource quantity of the split virtual conversion resource, and the transfer object of the split virtual conversion resource.
12. A computer device, characterized in that, The device includes a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are interconnected, wherein the memory is used to store a computer program, the computer program including program instructions, and the processor is configured to invoke the program instructions to execute the method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1 to 10.
14. A computer program product comprising computer instructions stored in a computer-readable storage medium; a processor of a computer device reading the computer instructions from the computer-readable storage medium, and executing the computer instructions to cause the computer device to perform the method as described in any one of claims 1 to 10.