Data processing method and device based on block chain, equipment and storage medium

By storing and managing the target-level attribute relationship information between digital resources in the blockchain network, the problem of difficulty in determining the derivative relationship between digital resources is solved, and the accuracy and security of resource value positioning and transactions are improved.

CN118677618APending Publication Date: 2024-09-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310272195.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-16
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively determine and manage the derivative relationships between digital resources, resulting in difficulty in positioning the value of resources and confusing transactions.

Method used

Through the target-level attribute relationship information in the blockchain network, the derived relationship between the parent digital resource and the child digital resource is determined, and the information is stored in the blockchain network to ensure the accuracy and security of the relationship.

Benefits of technology

It improves the efficiency of obtaining derivative relationships between digital resources, avoids difficulties in resource value positioning and transaction confusion, and ensures the accuracy and security of resource business processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677618A
    Figure CN118677618A
Patent Text Reader

Abstract

The embodiment of the invention discloses a data processing method and device based on a block chain, equipment and a storage medium, and the method comprises the steps: receiving a sub-resource generation transaction about a first digital resource sent by a business node, deriving a sub-digital resource of the first digital resource from the first digital resource according to the sub-resource attribute information, and sending the sub-digital resource to the business node; as a second digital resource, generating a second capital and property certificate about the second digital resource; generating target level attribute relation information according to the first asset and property certificate and the second asset and property certificate; and calling a hierarchical attribute recording component, storing the target hierarchical attribute relationship information in the block chain network, and returning the second asset and property certificate to the service node. By adopting the embodiment of the invention, the derivative relationship between the parent digital resource and the child digital resource can be determined through the target level attribute relationship information in the block chain network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of network technology, various resource platforms (such as game platforms) have many digital resources with different attributes, including but not limited to props, character skins, diamonds, coupons, characters, famous paintings, buildings, etc. With the continuous expansion of digital resource application scenarios, in some application scenarios, child digital resources can be derived based on parent digital resources. In practical applications, the derivative relationship between child digital resources and parent digital resources can be used to determine the resource value of child digital resources, as well as for services such as resource destruction, which can avoid problems such as confusion in digital resource transactions. Based on this, how to determine the derivative relationship between parent digital resources and child digital resources is a problem that needs to be solved urgently in the field of digital resources. Summary of the invention

[0003] The embodiments of the present application provide a blockchain-based data processing method, apparatus, device, and storage medium, which can determine the derivative relationship between a parent digital resource and a child digital resource through target hierarchical attribute relationship information in a blockchain network.

[0004] On the one hand, an embodiment of the present application provides a data processing method based on blockchain, including:

[0005] receiving a sub-resource generation transaction about a first digital resource sent by a service node, where the sub-resource generation transaction includes sub-resource attribute information and a first asset certificate of the first digital resource;

[0006] According to the sub-resource attribute information, a sub-digital resource of the first digital resource is derived from the first digital resource as a second digital resource, and a second asset certificate for the second digital resource is generated;

[0007] Generate target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate; the target hierarchical attribute relationship information is used to indicate that the second digital resource is derived from the first digital resource;

[0008] The hierarchical attribute recording component is called to store the target hierarchical attribute relationship information in the blockchain network, and return the second asset certificate to the business node.

[0009] On the one hand, an embodiment of the present application provides a data processing device based on blockchain, including:

[0010] A first receiving module, configured to receive a sub-resource generation transaction regarding a first digital resource sent by a business node, wherein the sub-resource generation transaction includes sub-resource attribute information and a first asset certificate of the first digital resource;

[0011] A derivation module, used to derive a sub-digital resource of the first digital resource from the first digital resource according to the sub-resource attribute information, as a second digital resource, and generate a second asset certificate for the second digital resource;

[0012] A generating module, used to generate target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate; the target hierarchical attribute relationship information is used to indicate that the second digital resource is derived from the first digital resource;

[0013] The storage module is used to call the hierarchical attribute recording component, store the target hierarchical attribute relationship information in the blockchain network, and return the second asset certificate to the business node.

[0014] Among them, the derivative modules include:

[0015] A verification unit, configured to verify the validity of the first asset certificate if there is a historical asset certificate matching the first asset certificate in the historical asset certificate set, and obtain a validity verification result of the first asset certificate; the historical asset certificate set includes historical asset certificates corresponding to M digital resources generated in a historical time period, where M is a positive integer;

[0016] The derivation unit is used to derive the first asset certificate to obtain a second asset certificate for the second digital resource if the validity check result indicates that the first asset certificate is valid.

[0017] The generation module includes:

[0018] An establishing unit, used to establish a certificate correspondence relationship between the first asset certificate and the second asset certificate;

[0019] A first generating unit is used to generate first-level attribute relationship information according to the certificate correspondence relationship and the first asset certificate; the first-level attribute relationship information is used to indicate that the first digital resource is a parent digital resource of the second digital resource;

[0020] A second generating unit is used to generate second-level attribute relationship information according to the certificate correspondence relationship and the second asset certificate; the second-level attribute relationship information is used to indicate that the second digital resource is a sub-digital resource of the first digital resource;

[0021] The first determining unit is used to determine the first-level attribute relationship information and the second-level attribute relationship information as target-level attribute relationship information.

[0022] The storage module includes:

[0023] A first recording unit is used to call the hierarchical attribute recording component, and according to the first hierarchical attribute relationship information, record the second asset certificate under the resource field to be recorded in the parent digital resource mapping table of the blockchain network, and record the first asset certificate under the parent resource field in the parent digital resource mapping table;

[0024] The second recording unit is used to record the first asset certificate under the resource field to be recorded in the sub-digital resource mapping table of the blockchain network according to the second-level attribute relationship information, and record the second asset certificate under the sub-resource field in the sub-digital resource mapping table.

[0025] Among them, the data processing device based on blockchain also includes:

[0026] A verification module, configured to, if receiving a resource destruction transaction regarding a third digital resource sent by a service node, perform a legality verification on the resource destruction transaction to obtain a legality verification result;

[0027] The first reading module is used to read the hierarchical attribute relationship information associated with N digital resources from the blockchain network if the legitimacy check result indicates that the resource destruction transaction is legitimate; N is a positive integer; there is a hierarchical attribute relationship between the N digital resources, and the third digital resource is one of the N digital resources;

[0028] A destruction module, used to destroy the third digital resource according to the hierarchical attribute relationship information associated with the N digital resources;

[0029] The first return module is used to generate a destruction transaction success result regarding the resource destruction transaction when the third digital resource is destroyed successfully, and return the destruction success result to the service node.

[0030] Among them, the destruction module includes:

[0031] A second determining unit, configured to determine the node positions corresponding to the N digital resources respectively according to the hierarchical attribute relationship information associated with the N digital resources;

[0032] The third generating unit is used to generate a digital resource hierarchical tree according to the node positions corresponding to the N digital resources respectively; the digital resource hierarchical tree includes a parent node corresponding to a parent digital resource among the N digital resources, and a child node corresponding to a child digital resource derived from the parent node corresponding to the parent digital resource;

[0033] The destroying unit is used to destroy the third digital resource according to the digital resource hierarchy tree.

[0034] The destruction unit is specifically used for:

[0035] Query the child digital resources of the third digital resource from the digital resource hierarchy tree;

[0036] If no child digital resource of the third digital resource is found in the digital resource hierarchy tree, then the parent digital resource of the third digital resource is determined from the digital resource hierarchy tree as the target parent digital resource;

[0037] The third digital resource is destroyed according to the target parent digital resource.

[0038] The method includes destroying the third digital resource according to the target parent digital resource, including:

[0039] In the sub-digital resource mapping table of the blockchain network, query the sub-digital resources of the target parent digital resource to obtain the sub-digital resource list of the target parent digital resource;

[0040] Obtain the index values ​​corresponding to the sub-digital resources in the sub-digital resource list, and determine the sub-digital resource with the largest index value from the sub-digital resource list as the last sub-digital resource of the target parent digital resource;

[0041] The index value of the last sub-digital resource is replaced with the index value of the third digital resource, and the third digital resource is destroyed.

[0042] The destruction unit is also specifically used for:

[0043] If a sub-digital resource of the third digital resource is found in the digital resource hierarchy tree, the destruction of the third digital resource is suspended;

[0044] Generate a destruction transaction failure result for the resource destruction transaction, and return the destruction transaction failure result to the business node.

[0045] Among them, the resource destruction transaction carries the transaction signature data of the resource destruction transaction;

[0046] The verification module includes:

[0047] A signature verification unit, configured to verify the resource destruction transaction for the third digital resource according to a public key corresponding to the business node and the transaction signature data of the resource destruction transaction if a resource destruction transaction for the third digital resource is received from the business node;

[0048] A query unit, configured to obtain a third asset certificate of the third digital resource if the resource destruction transaction of the third digital resource is successfully verified, and query a holding authority object corresponding to the third asset certificate;

[0049] The fourth generating unit is used to generate a legitimacy verification result indicating that the resource destruction transaction is legitimate if the permission holding object matches the transaction initiating object of the resource destruction transaction.

[0050] Among them, the data processing device based on blockchain also includes:

[0051] A second receiving module is used to receive a hierarchical attribute relationship verification transaction sent by a service node; the hierarchical attribute relationship verification transaction includes information about a hierarchical attribute relationship to be verified between a first digital resource and a second digital resource;

[0052] A second reading module is used to read target hierarchical attribute relationship information from the blockchain network according to the first asset certificate and the second asset certificate;

[0053] The second returning module is used to determine the relationship verification result of the hierarchical attribute relationship verification transaction according to the hierarchical attribute relationship information to be verified and the target hierarchical attribute relationship information, and return the relationship verification result to the business node.

[0054] An embodiment of the present application provides a computer device, including: a processor and a memory;

[0055] The processor is connected to the memory, wherein the memory is used to store a computer program. When the computer program is executed by the processor, the computer device executes the method provided in the embodiment of the present application.

[0056] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.

[0057] In one aspect, the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the present application.

[0058] In an embodiment of the present application, in the process of generating a sub-digital resource (i.e., a second digital resource) of a first digital resource, target hierarchical attribute relationship information is generated according to the asset certificate of the first digital resource and the asset certificate of the second digital resource, and the target hierarchical attribute relationship information is used to indicate that the first digital resource is derived from the second digital resource. Further, by calling the hierarchical attribute recording component, the target hierarchical attribute relationship information is stored in the blockchain network. In this way, the derivative relationship between the first digital resource and the second digital resource can be determined through the target hierarchical attribute relationship information in the blockchain network, thereby improving the efficiency of obtaining the derivative relationship between digital resources. At the same time, the target hierarchical attribute relationship information is generated in the process of deriving the second digital resource from the first digital resource and is stored on the blockchain network, which can prevent the target hierarchical attribute relationship information from being tampered with and improve the storage security of the target hierarchical attribute relationship information. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0060] Figure 1 It is a schematic diagram of a system structure provided in an embodiment of the present application;

[0061] Figure 2 This is a schematic diagram of a scenario of data processing based on blockchain provided in an embodiment of the present application;

[0062] Figure 3 It is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application;

[0063] Figure 4 It is a schematic diagram of determining resource value based on hierarchical attribute relationship information provided by an embodiment of the present application;

[0064] Figure 5 It is a schematic diagram of selling digital resources based on hierarchical attribute relationship information provided by an embodiment of the present application;

[0065] Figure 6 is a schematic diagram of a digital resource hierarchy tree provided in an embodiment of the present application;

[0066] Figure 7 is a schematic diagram of hierarchical attribute relationship information provided by an embodiment of the present application;

[0067] Figure 8It is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application;

[0068] Fig. 9 It is a structural schematic diagram of a blockchain-based data processing device provided in an embodiment of the present application;

[0069] Fig.10 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0071] As resource activities on the blockchain become increasingly frequent, digital resources are widely used on the blockchain. The current application areas of digital resources on the blockchain include games, finance, souvenirs, etc. With the continuous expansion of the application scenarios of digital resources, the relevant digital resource smart contracts are gradually unable to meet the existing business scenarios. In the actual application scenarios, it is necessary to have a hierarchical attribute relationship between digital resources, similar to the family genealogy of digital resources. The hierarchical attribute relationship information between digital resources (such as derivative relationships) can support the relevant business processing in the application scenarios of digital resources. For example, the derivative relationship between the child digital resource and the parent digital resource can be used to determine the resource value of the child digital resource, and for services such as resource destruction. For example, in the application scenario of determining the resource value of the child digital resource, the parent digital resource of the current child digital resource can be determined according to the derivative relationship between the child digital resource and the parent digital resource, and the resource value of the child digital resource can be determined according to the resource value of the parent digital resource. In other words, the resource value of the child digital resource can change with the resource value of the parent digital resource. If the resource value of the parent digital resource is high, the resource value of the child digital resource is high; if the resource value of the parent digital resource is low, the resource value of the child digital resource is low. For example, if the digital resource is a digital pet, if the parent digital pet is very popular and has a high resource value, the resource value of the child digital resource derived from the parent digital resource can also be relatively high, which is convenient for determining the resource value of the digital resource. In this way, it can avoid the problem that the resource value positioning of digital resources is difficult and inconsistent, leading to confusion in digital resource transactions.

[0072] For example, in a digital resource destruction service, when destroying a digital resource to be destroyed, it can be determined whether the digital resource to be destroyed has a sub-digital resource according to the derivative relationship associated with the digital resource to be destroyed. If the digital resource to be destroyed has a sub-digital resource, the destruction operation of the digital resource to be destroyed is stopped, that is, the digital resource to be destroyed is not allowed to be destroyed; if the digital resource to be destroyed has a sub-digital resource, the digital resource to be destroyed is destroyed. In this way, it can be avoided that when the digital resource to be destroyed stores a sub-digital resource, the digital resource to be destroyed is destroyed, resulting in the situation where the sub-digital resource of the digital resource to be destroyed is destroyed abnormally, and it can also avoid destroying the hierarchical structure between digital resources. For example, if the digital resource to be destroyed currently has a sub-digital resource to be destroyed, it is impossible to determine the association relationship between the sub-digital resource of the digital resource to be destroyed and the parent digital resource of the digital resource to be destroyed. Of course, through the derivative relationship between the sub-digital resource and the parent digital resource, the number of sub-digital resources derived from the parent digital resource can be determined. When the number of derived sub-digital resources is greater than the target number, the parent digital resource is not allowed to derive sub-digital resources, so that resource abuse can be avoided. It can be seen that the hierarchical attribute relationship information between digital resources can facilitate resource business interaction between digital resources and meet the development needs of business scenarios of digital resources.

[0073] The present application relates to blockchain technology. In the present application, target hierarchical attribute relationship information between a first digital resource and a second digital resource is generated through a blockchain network, and a hierarchical attribute recording component is called to store the target hierarchical attribute relationship information in the blockchain network. In this way, by storing the target hierarchical attribute relationship information in the blockchain network, the hierarchical attribute relationship information between digital resources can be quickly and accurately obtained, and the efficiency of obtaining the hierarchical attribute relationship information between digital resources can be improved. At the same time, according to the hierarchical attribute relationship information between digital resources in the blockchain network, resource business processing between digital resources can be facilitated to meet the development needs of digital resource business processing scenarios.

[0074] Among them, blockchain is a new application mode of computer technology such as distributed data storage, peer-to-peer transmission (P2P transmission), consensus mechanism, encryption algorithm, etc. It is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer and application service layer; blockchain can be composed of multiple serial transaction records (also known as blocks) that are connected and protected by cryptography. The distributed ledger connected by blockchain allows multiple parties to effectively record transactions and can permanently check this transaction (cannot be tampered with). Among them, the consensus mechanism refers to the mathematical algorithm that realizes the establishment of trust and the acquisition of rights and interests between different nodes in the blockchain network; that is, the consensus mechanism is a mathematical algorithm recognized by all network nodes of the blockchain. The blockchain network divides nodes into consensus nodes (also known as core nodes) and synchronization nodes (which can include data nodes and light nodes). Among them, the consensus node is responsible for the consensus business of the entire blockchain network; the synchronization node is responsible for synchronizing the ledger information of the consensus node, that is, synchronizing the latest block data. Whether it is a consensus node or a synchronization node, its internal structure includes network communication components, because the blockchain network is essentially a peer-to-peer (P2P) network, and it needs to communicate with other nodes in the blockchain network through P2P components. The resources and services in the blockchain network are scattered on each node, and the transmission of information and the implementation of services are carried out directly between nodes without the intervention of intermediaries or centralized servers (third parties).

[0075] Among them, the underlying platform of the blockchain may include a smart contract processing module. Smart Contract: A computer protocol designed to disseminate, verify or execute contracts in an information-based manner. In the blockchain system, a smart contract (referred to as a contract) is a code that can be understood and executed by each node of the blockchain, which can execute any logic and obtain results. In practical applications, smart contracts are managed and tried out through transactions on the blockchain. Each transaction is equivalent to a remote procedure call (RPC) request to the blockchain system. If a smart contract is equivalent to an executable program, the blockchain is equivalent to an operating system that provides an operating environment. The blockchain can contain multiple contracts, which are distinguished by contract accounts (Identity, ID), identification numbers or names. The governance consensus committee contract described below is a smart contract provided in an embodiment of the present application, which is used to manage consensus nodes, and can include recording the node status of consensus nodes, dynamically adding consensus nodes, and removing abnormal consensus nodes.

[0076] See also Figure 1 , Figure 1Schematic diagram of a system structure provided by an embodiment of the present application. Figure 1 As shown, the system architecture may include a blockchain network 100a, an application server 100b, and a terminal device cluster. Among them, the blockchain network 100a may include: a blockchain node 10a, a blockchain node 10b, a blockchain node 10c, and a blockchain node 10d. It is understandable that the blockchain network 100a may include one or more blockchain nodes, and the embodiment of the present application does not limit the number of blockchain nodes. It is understandable that in the blockchain network 100a, the blockchain node 10a, the blockchain node 10b, and the blockchain node 10d can all interact with the network connection between the blockchain node 10c for data. It should be understood that each blockchain node in the blockchain network 100a (for example, blockchain node 10a, blockchain node 10b, blockchain node 10c, blockchain node 10d) can be used to maintain the same blockchain (for example, Figure 1 As shown in the blockchain 10e, any two blockchain nodes in the blockchain network 100a can form a peer-to-peer (P2P) network, which can use the P2P protocol, wherein the P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP). In a distributed system, any device, such as a server, terminal, etc., can join and become a blockchain node.

[0077] It should be noted that the blockchain network in this application can be a blockchain network based on a consortium chain (such as a consortium chain blockchain network based on Fabric). The consortium chain is a blockchain network participated by multiple organizations or institutions. That is, the consortium chain is a cluster composed of multiple private chains, a blockchain network jointly managed by multiple institutions. Each organization or institution manages one or more node devices, and its data is only allowed to be read, written and sent by different institutions in the system. In addition, each node device of the consortium chain usually has a corresponding entity organization, and can only join or exit the network after authorization. The various organizations form an alliance with related interests to jointly maintain the healthy operation of the blockchain. Specifically, the blockchain network based on the consortium chain has the following characteristics:

[0078] (1) In one embodiment, the consensus algorithm in the blockchain network based on the alliance chain can be customized by the management node device in the blockchain network based on the alliance chain, and the management node device can be elected by the node devices in the blockchain network based on the alliance chain according to the institutional attributes of each institution, and the institutional attributes include one or more of the institutional credit rating, institutional asset volume, institutional generation time, etc. In another embodiment, the consensus algorithm in the blockchain network based on the alliance chain can be jointly customized by each node device in the blockchain network based on the alliance chain.

[0079] (2) The consensus algorithm in this application is followed by all node devices in the blockchain network based on the alliance chain. For example, the consensus algorithm stipulates the conditions for adding new blocks to the blockchain. When any node device in the blockchain network based on the alliance chain needs to add a new block to the blockchain, the consensus node device in the blockchain network based on the alliance chain needs to verify the legitimacy of the adding operation according to the consensus algorithm. If the adding operation satisfies the adding conditions in the consensus algorithm, it is determined that the adding operation is legal and the new block can be added to the blockchain.

[0080] (3) Partial decentralization. Unlike public blockchain networks, blockchain networks based on alliance chains are, to some extent, owned only by members within the alliance, and it is easy to reach consensus because the number of node devices in the alliance chain is very limited.

[0081] (4) Strong controllability. Once a public blockchain network is formed, it cannot be tampered with. This is mainly because the node devices of a public blockchain network are generally massive, and it is almost impossible to tamper with the data on the blockchain. However, for a blockchain network based on a consortium chain, as long as most of all institutions reach a consensus, transactions on the blockchain can be changed (such as deleted).

[0082] (5) Data is not public by default. Unlike public blockchain networks, data in consortium-based blockchain networks are only accessible to institutions and their users in the consortium.

[0083] It is understandable that each node device can receive the data to be recorded when performing normal work, and maintain the blockchain based on the received data to be recorded. In order to ensure the information exchange within the blockchain network, there can be a network connection between each node device in the blockchain network, and data can be transmitted between the node devices through the above network connection. For example, when any node device in the blockchain network receives the data to be recorded, the other node devices in the blockchain network will verify the data to be recorded according to the consensus algorithm, and after the verification is successful (that is, after reaching a consensus), the data to be recorded will be stored as data in the blockchain, so that the data stored on all node devices in the blockchain network are consistent.

[0084] Among them, blockchain node 10a, blockchain node 10b, blockchain node 10c and blockchain node 10d can all be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. Each node device can be directly or indirectly connected through wired or wireless communication, and this application does not limit this.

[0085] like Figure 1 The application server 100b shown can be connected to the blockchain network 100a through a network connection so as to be able to exchange data through the network connection with the blockchain network 100a. The application server 100b can be a backend server corresponding to an application having a business function for processing business functions associated with digital resources in the blockchain network 100a.

[0086] The terminal device cluster may include one or more terminal devices, and the number of terminal devices is not limited. Figure 1 As shown, the terminal device cluster may specifically include terminal device 100b, terminal device 100c, ..., terminal device 100n. There may be a network connection between the terminal clusters, for example, there is a network connection between terminal device 100c and terminal device 100d. At the same time, any terminal device in the terminal cluster may have a network connection with the application server 100b. The above network connection does not limit the connection method, and may be directly or indirectly connected through a wired network, directly or indirectly connected through a wireless network, or through other methods, which are not limited in this application. Figure 1 As shown, the terminal device 100b, the terminal device 100c, ..., the terminal device 100n can be connected to the application server 100b through a network, so that each terminal device can exchange data with the application server 100b through the network connection. Each terminal device in the terminal device cluster can include: smart phones, tablet computers, laptops, desktop computers, wearable devices, smart homes, head-mounted devices, vehicle-mounted terminals and other smart terminals with data processing functions.

[0087] It should be understood that Figure 1 Each terminal device in the terminal device cluster shown in FIG. 1 may be installed with a target application (i.e., an application client). When the application client runs in each terminal device, it may be respectively connected to the above-mentioned Figure 1 Data is exchanged between the application servers 100b shown. Among them, the target application can be an application client with data processing such as a video application, a live broadcast application, a payment application, a game application, a music application, a shopping application, a novel application, a browser, a digital resource application, etc. Among them, the target application can be an independent client, or it can be an embedded sub-client integrated in a client (for example, a social client, an educational client, and a multimedia client, etc.), which is not limited here. Among them, taking a game application as an example, the application server 100b can be a collection of multiple servers such as a background server and a data processing server of the game application, and the terminal device can transmit data with the application server 100b through the application client corresponding to the game application. For example, the terminal device can send the transaction request information to the blockchain network or issue it to other terminal devices through the application client corresponding to the game application.

[0088] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the embodiments of this application are 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 laws, regulations and standards of relevant countries and regions.

[0089] For ease of understanding, the embodiments of the present application can be Figure 1 Select one terminal device from the multiple terminal devices shown as a service node. For example, for ease of understanding, the embodiment of the present application may Figure 1The terminal device 100c shown is used as a service node. The terminal device 100c is installed with a target application, which may refer to a game application, a music application, a digital resource application, etc. The business object may perform resource business processing (such as resource sale, resource purchase, resource exchange, resource derivation, etc.) in the target application. The application server 100b may refer to the background server of the target application, and perform data interaction with the target application. Among them, the target application may be an independent application client, or an embedded sub-client in an integrated client (for example, a game client, a resource client, and a multimedia client, etc.), which is not limited here. When the business object triggers the use of the first digital resource to generate a sub-digital resource in the target application in the terminal device 100c, the terminal device 100c may obtain the sub-resource attribute information of the sub-digital resource to be generated corresponding to the first digital resource, and the first asset certificate of the first digital asset. Among them, the sub-resource attribute information of the sub-digital resource to be generated corresponding to the first digital resource may refer to the metadata of the sub-digital resource to be generated, and may include descriptive information of the sub-digital resource to be generated, such as pictures, audio, video, text, character string and other information. Among them, the first digital resource can refer to any one of props, character skins, diamonds, points, characters, famous paintings, buildings, digital artworks, digital pets, etc. Among them, the first asset certificate (i.e., tokenId) of the first digital asset refers to the one generated when the first digital asset is generated, which is used to indicate the holding permission object corresponding to the first digital resource and the asset address of the first digital resource. The first asset certificate can be attached with resource attribute information (i.e., metadata) of the first digital resource. In other words, one asset certificate corresponds to one asset address, each asset certificate represents one digital asset, and each asset address indicates the holding permission object of the corresponding asset certificate, that is, the holding permission object of the corresponding digital resource.

[0090] Further, the terminal device 100c generates a sub-resource generation transaction for the first digital resource according to the sub-resource attribute information and the first asset certificate, and sends the sub-resource generation transaction to the blockchain network 100a through the application server 100b. The blockchain network 100a can receive the sub-resource generation transaction for the first digital resource sent by the business node, derive the sub-digital resource of the first digital resource from the first digital resource according to the sub-resource attribute information, as the second digital resource, and generate a second asset certificate for the second digital resource. Similarly, the second digital resource can also refer to props, character skins, diamonds, points, characters, famous paintings, buildings, digital artworks, digital pets, etc. The resource types of the first digital resource and the second digital resource can be the same. For example, when the first digital resource is a digital pet, the second digital resource can also refer to a digital pet. The second asset certificate of the second digital resource is also used to indicate the corresponding holding authority object of the second digital resource and the asset address of the second digital resource. The second asset certificate can also attach the sub-resource attribute information of the second digital resource. The blockchain network 100a can generate target hierarchical attribute relationship information based on the first asset certificate and the second asset certificate, and the target hierarchical attribute relationship information is used to indicate that the second digital resource is derived from the first digital resource. Call the hierarchical attribute recording component, store the target hierarchical attribute relationship information in the blockchain network 100a, and return the second asset certificate to the business node to indicate the successful generation of the sub-digital resource of the first digital resource. It can be seen that through this application, the hierarchical attribute relationship information between digital resources is stored in the blockchain network. In this way, the hierarchical attribute relationship between digital resources can be accurately verified, which is convenient for resource business processing between digital resources and can meet the business development needs of digital resources. At the same time, storing the hierarchical attribute relationship information between digital resources in the blockchain network can improve the security of digital resource storage.

[0091] For further understanding, please refer to Figure 2 , Figure 2 This is a schematic diagram of a scenario of data processing based on blockchain provided by an embodiment of the present application. Among them, the business node in this application can be the above Figure 1 Any terminal device in the terminal cluster of the corresponding embodiment, Figure 2 Taking the terminal device 100d as an example, the application server can be the above Figure 1 The application server 100b of the corresponding embodiment and the blockchain network may be the above-mentioned blockchain network 100a. Figure 2As shown, there is a binding relationship between the business object 101d and the business node 100d. For example, the business node 100d can be a terminal device held by the business object 101d, and the business object 101d can log in the object identifier in the digital resource application 200a installed by the business node 100d. The embodiment of the present application uses the identifier "111XXXX2222" as an example of the object identifier. The object identifier can be understood as the account (address) of the operation object 101c for the digital resource application 200a in the blockchain network 100a.

[0092] like Figure 2 As shown, taking the digital resource as a digital pet as an example, the business node 100d can display the avatar of the business object 101d, the object identifier "111XXXX2222", the resource name corresponding to the resource held (such as Figure 2 The digital resource Z1 (i.e., the first digital resource) is shown in the example. For example, if a digital resource is kept for one year, a sub-digital resource corresponding to the corresponding digital resource can be generated. When the business object 101d meets certain conditions in the digital resource application 200a, the "generate" control and "do not generate" control of the sub-digital resource of the generated digital resource can be displayed in the display interface corresponding to the digital resource application 200a. Figure 2 As shown, when the business object 101d has been raising the digital resource Z1 for one year, the display interface corresponding to the digital resource application 200a may display the prompt message "You have been raising the digital resource Z1 for one year, and you can choose to generate the sub-digital resource of the digital resource S1", as well as the "Generate" control and "Do not Generate" control for the sub-digital resource of the digital resource Z1. The business object 101d can choose to generate the sub-digital resource of the digital resource Z1 by triggering the "Generate" control, or choose not to generate the sub-digital resource of the digital resource Z1 by triggering the "Do not Generate" control. Figure 2 As shown, the business object 101d triggers the "Generate" control on the display interface of the digital resource application 200b to trigger the sub-digital resource generation operation for the digital resource Z1. At this time, the business node 100d can respond to the sub-digital resource generation operation for the digital resource Z1 and obtain (i.e., metadata). Further, the business node 100d can generate a sub-resource generation transaction for the digital resource Z1 based on the first asset certificate of the digital resource Z1 and the sub-resource attribute information, and execute Figure 2 In step S1 shown, a sub-resource generation transaction regarding digital resource Z1 is sent to application server 100b.

[0093] The application server 100b can execute step S2 to forward the sub-resource generation transaction regarding the digital resource Z1 to the blockchain network 100a. After receiving the sub-resource generation transaction regarding the digital resource Z1, the blockchain network 100a can derive the sub-digital resource of the digital resource Z1 from the digital resource Z1 as the second digital resource, namely, the digital resource Z11, based on the sub-resource attribute information included in the sub-resource generation transaction. At the same time, the blockchain network 100a can generate a second asset certificate for the digital resource Z11, based on the first asset certificate for the digital resource Z1 and the second asset certificate for the digital resource Z11, and target hierarchical attribute relationship information, and the target hierarchical attribute relationship information is used to indicate that the digital resource Z11 is derived from the digital resource Z1. Furthermore, the blockchain network 100a can call the hierarchical attribute recording component to store the target hierarchical attribute relationship information in the blockchain network. Figure 2 As shown, the blockchain network 100a can call the hierarchical attribute recording component to store the target hierarchical attribute relationship information in the mapping table of the blockchain network 100a. After the blockchain network 100a generates the digital resource Z11 and stores the target hierarchical attribute relationship information, it can generate a transaction execution result (i.e., a successful transaction execution result) for the sub-resource generation transaction of the digital resource Z1. The transaction execution result carries the second asset certificate of the digital resource z11, executes step S3, and returns the transaction execution result to the application server 100b. Of course, when the blockchain network 100a fails to successfully generate the sub-digital resource of the digital resource Z1 or fails to successfully store the target hierarchical attribute relationship information, it can generate a transaction execution failure result for the sub-resource generation transaction of the digital resource Z1.

[0094] The application server 100b can execute step S4 and return the generated transaction execution result (i.e., the transaction execution success result) to the business node 100d. After receiving the generated transaction execution result, the business node 100d can execute step S5 to display the digital resource Z11 in the display interface corresponding to the digital resource application 200a. It can be seen that the present application can ensure the accuracy of the hierarchical attribute relationship information between digital resources (to avoid tampering) by generating the hierarchical attribute relationship information between digital resources in the blockchain network and storing the hierarchical attribute relationship information between digital resources in the blockchain network. In addition, the hierarchical attribute relationship information between digital resources can be directly obtained from the blockchain network, thereby improving the accuracy and efficiency of obtaining the hierarchical attribute relationship information. In this way, the related business between digital resources can be processed based on accurate hierarchical attribute relationship information, which can meet the business development needs of digital resources.

[0095] For further information, see Figure 3 , Figure 3is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application. The data processing method based on blockchain can be Figure 1 The method can be executed by any blockchain node in the application. The devices used to execute the method in this application can be collectively referred to as computer devices.

[0096] like Figure 3 As shown, the blockchain-based data processing method may include but is not limited to the following steps:

[0097] S101, receiving a sub-resource generation transaction regarding a first digital resource sent by a service node.

[0098] Specifically, the computer device may receive a sub-resource generation transaction about a first digital resource sent by a business node, and the sub-resource generation transaction is used to request the generation of a sub-digital resource of the first digital resource. The first digital resource may refer to any one of props, character skins, diamonds, points, characters, famous paintings, buildings, digital artworks, digital pets, etc. The sub-resource generation transaction includes sub-resource attribute information of the sub-digital resource to be generated of the first digital resource, and the first asset certificate of the first digital resource. Specifically, the sub-resource attribute information may refer to metadata of the sub-digital resource to be generated, including descriptive information of the sub-digital resource to be generated of the first digital resource, such as pictures, audio, video, text, character string and other information. The first asset certificate may refer to the one generated when the first digital asset is generated, which is used to indicate the holding authority object corresponding to the first digital resource and the asset address of the first digital resource, and the first asset certificate may be attached with resource attribute information (i.e. metadata) of the first digital resource.

[0099] Specifically, a business object having a binding relationship with a business node (such as a business object holding a terminal device corresponding to the business node) can trigger a sub-resource generation operation on the first digital resource in the business node. For example, a business object can perform a game activity in a game application installed in the business node. When the business object reaches a target condition in the game application, a sub-resource generation operation on the first digital resource can be triggered. The business node can respond to the sub-resource generation operation on the first digital resource triggered by the business object, obtain the sub-resource attribute information of the sub-digital resource to be generated of the first digital resource, and at the same time, the business node can obtain the first asset certificate of the first digital resource. Among them, the sub-resource attribute information can refer to the information obtained by the business object itself, or the information selected by the business object from the candidate resource attribute information associated with the first digital resource (the candidate attribute information can be generated based on the resource attribute information of the first digital resource), or it can refer to the information generated by the business node according to the resource attribute information of the first digital resource. Further, the business node can generate a sub-resource generation transaction on the first digital resource according to the first asset certificate and the sub-resource attribute information of the sub-digital resource to be generated. Specifically, the business node may add the sub-resource attribute information of the sub-digital resource to be generated to the transaction information of the sub-resource generation transaction, use the first asset certificate as a parameter of the sub-resource generation transaction, and obtain the sub-resource generation transaction regarding the first digital resource.

[0100] Further, the business node can send the sub-resource generation transaction about the first digital resource to the blockchain network through the digital asset service. Specifically, the business node can send the sub-resource generation transaction about the first digital resource to the digital asset service, and the digital asset service can authenticate the sub-resource generation transaction about the first digital resource sent by the business node. For example, the digital asset service can verify whether the sub-resource generation transaction is sent by the business node, and verify whether the business node has the authority to request the generation of sub-digital resources about the first digital resource. When the digital asset service successfully authenticates the sub-resource generation transaction, the digital asset service can sign the sub-resource generation transaction according to the key escrow type of the business node, and obtain the transaction signature data about the sub-resource transaction. Specifically, the digital asset service can determine the private key of the sub-resource generation transaction according to the key escrow type of the business node, use the private key of the sub-resource generation transaction to generate the transaction signature data about the sub-resource generation transaction, add the transaction signature data of the sub-resource generation transaction to the sub-resource generation transaction, and forward it to the blockchain network.

[0101] S102, deriving a sub-digital resource of the first digital resource from the first digital resource according to the sub-resource attribute information as a second digital resource, and generating a second asset certificate for the second digital resource.

[0102] Specifically, the computer device can derive a sub-digital resource of the first digital resource from the first digital resource as the second digital resource according to the sub-resource attribute information. At the same time, the computer device can generate a second asset certificate for the second digital resource. Similarly, the second digital resource can also refer to any one of props, character skins, diamonds, points, characters, famous paintings, buildings, digital artworks, digital pets, etc. Among them, the resource types of the first digital resource and the second digital resource can be the same, such as the first digital resource can be a digital pet, and the second digital resource can also be a digital pet. Of course, the resource types of the first digital resource and the second digital resource can be different, such as the first digital resource can be a famous painting, and the second digital resource can be based on the video data generated by the first digital resource. Specifically, the computer device can call the digital resource generation interface in the blockchain network, and derive the second digital resource from the first digital resource based on the sub-resource attribute information. The digital resource generation interface may refer to the digital resource generation interface in the ERC721 digital asset protocol (ERC721 digital asset protocol can ensure the security of ownership, the convenience of ownership transfer, and the immutability and transparency of ownership history) or the ERC1155 digital resource protocol (ERC1155 digital resource protocol allows users to reuse digital resources indefinitely in the same smart contract). Derivation of the second digital resource from the first digital resource may refer to generating the second digital resource based on the resource attribute information of the first digital resource, such as part of the feature information of the second digital resource is derived from the first digital resource (such as part of the feature information of the second digital resource is the same as part of the feature information of the first digital resource, or part of the feature information of the second digital resource is obtained based on part of the feature information of the first digital resource).

[0103] Optionally, the specific manner in which the computer device generates the second asset certificate for the second digital resource may include: if there is a historical asset certificate matching the first asset certificate in the historical asset certificate set, then verifying the validity of the first asset certificate to obtain a validity verification result for the first asset certificate; the historical asset certificate set includes historical asset certificates corresponding to M digital resources generated in a historical time period, where M is a positive integer. If the validity verification result indicates that the first asset certificate is valid, then performing derivative processing on the first asset certificate to obtain a second asset certificate for the second digital resource.

[0104] Specifically, the computer device can obtain a set of historical asset warrants in the blockchain network, and detect whether the first asset warrant exists according to the set of historical asset warrants. In other words, the computer device can detect whether the first asset warrant has been generated in the blockchain network. If the first asset warrant has been generated in the blockchain network, it means that the first asset warrant exists. If the first asset warrant has not been generated in the blockchain network, it means that the first asset warrant does not exist. Specifically, if there is a historical asset warrant matching the first asset warrant in the set of historical asset warrants, it means that the first asset warrant exists, and then the validity of the first asset warrant can be verified to obtain the validity verification result of the first asset warrant. Among them, the set of historical asset warrants includes historical asset warrants corresponding to M digital resources generated in the historical time period, and M is a positive integer. Specifically, the computer device can obtain the size relationship between the first asset warrant and the target verification value. The target verification value can refer to the threshold value that the asset warrant needs to be greater than. For example, if the target verification value is 0, the asset warrant is only valid when it is greater than 0. Similarly, the asset warrant is not valid when it is less than or equal to 0. Among them, the target verification value can be agreed upon according to the resource transaction protocol in the blockchain network, and the embodiments of the present application are not limited here.

[0105] Further, if the validity check result indicates that the first asset certificate is valid, the first asset certificate is subjected to derivative processing to obtain a second asset certificate for the second digital resource. Optionally, the first asset certificate may be subjected to cumulative processing, such as if the first asset certificate is 011121, and the second asset certificate may be 011122. Optionally, the first asset certificate may be subjected to derivative processing to add the target identifier of the first asset certificate to the candidate asset certificate of the second digital resource, and the candidate asset certificate of the second digital resource may be generated based on the sub-resource attribute information of the second digital resource, such as if the first asset certificate is X1000021, X is the target identifier of the first asset certificate, and if the candidate asset certificate of the second digital resource is 1310000, the second asset certificate of the second digital resource may be X1310000. Of course, the second asset certificate of the second digital resource may also be generated based on the sub-resource attribute information of the second digital resource.

[0106] S103: Generate target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate.

[0107] Specifically, the computer device can generate target hierarchical attribute relationship information based on the first asset certificate and the second asset certificate, and the target hierarchical attribute relationship information is used to indicate that the second digital resource is derived from the first digital resource. In other words, the computer device can use the first asset certificate to indicate the first digital resource, use the second asset certificate to indicate the second digital resource, and generate hierarchical attribute relationship information between the first digital resource and the second digital resource based on the first asset certificate and the second asset certificate. Among them, the computer device does not limit the generation order of the target hierarchical attribute relationship information and the second digital resource. In other words, the computer device can first generate the target hierarchical attribute relationship information and then generate the second digital resource; or, it can also generate the second digital resource first and then generate the target hierarchical attribute relationship information; or, it can generate the second digital resource and the target hierarchical attribute relationship information at the same time. In this way, by generating the target hierarchical attribute relationship information through the first asset certificate and the second asset certificate, it is convenient to directly obtain the hierarchical attribute relationship between the first digital resource and the second digital resource, and the efficiency of obtaining the hierarchical attribute relationship information between the digital resources can be improved.

[0108] Optionally, the specific manner in which the computer device generates the target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate may include: establishing a corresponding relationship between the first asset certificate and the second asset certificate. Generate first-level attribute relationship information according to the corresponding relationship and the first asset certificate; the first-level attribute relationship information is used to indicate that the first digital resource is the parent digital resource of the second digital resource. Generate second-level attribute relationship information according to the corresponding relationship and the second asset certificate; the second-level attribute relationship information is used to indicate that the second digital resource is a child digital resource of the first digital resource. Determine the first-level attribute relationship information and the second-level attribute relationship information as the target hierarchical attribute relationship information.

[0109] Specifically, the computer device can establish a certificate correspondence relationship between the first asset certificate and the second asset certificate, and generate first-level attribute relationship information according to the certificate correspondence relationship and the first asset certificate, and the first-level attribute relationship information is used to indicate that the first digital resource is the parent digital resource of the second digital resource. Specifically, the computer device can use the first asset certificate as the parent digital resource certificate, and use the certificate correspondence relationship and the parent digital resource certificate as the first-level attribute relationship. The computer device can generate second-level attribute relationship information according to the certificate correspondence relationship and the second asset certificate, and the second-level attribute relationship information is used to indicate that the second digital resource is a child digital resource of the first digital resource. Specifically, the computer device can use the second asset certificate as the child digital resource certificate, and use the certificate correspondence relationship and the child digital resource certificate as the second-level attribute relationship. Further, the computer device can determine the first-level attribute relationship and the second-level attribute relationship information as the target-level attribute relationship information. In this way, by generating the first-level attribute relationship and the second-level attribute relationship information, the accuracy of the target-level attribute relationship between the first digital resource and the second digital resource can be determined.

[0110] S104, calling the hierarchical attribute recording component, storing the target hierarchical attribute relationship information in the blockchain network, and returning the second asset certificate to the business node.

[0111] Specifically, the computer device can call the hierarchical attribute recording component in the blockchain network to store the target hierarchical attribute relationship information in the blockchain network. After generating the second digital resource and storing the target hierarchical attribute relationship information in the blockchain network, the computer device can generate a transaction execution result (i.e., a successful transaction execution result) for the sub-resource generation transaction of the first digital resource, and the successful transaction execution result carries the second asset certificate. The computer device can return the successful transaction execution result to the business node to return the second asset certificate to the business node. In other words, when the blockchain network returns the second asset certificate to the business node, it means that the sub-digital resource of the first digital resource has been successfully generated. It can be seen that the present application can ensure the accuracy of the target hierarchical attribute relationship by storing the target hierarchical attribute relationship in the blockchain network due to the tamper-proof nature of the blockchain network. At the same time, the target hierarchical attribute relationship information can be directly obtained from the blockchain network, which can improve the efficiency of obtaining the hierarchical attribute relationship information between digital resources and facilitate resource business processing between digital resources.

[0112] Among them, the blockchain network can call the digital resource smart contract in the blockchain network to execute the sub-resource generation transaction about the first digital resource. It is understandable that the blockchain network can call the digital resource smart contract in the blockchain network to generate the second digital resource and the target hierarchical attribute relationship information, and record the target hierarchical attribute relationship information in the digital resource smart contract in the blockchain network. In this way, when the business node needs the hierarchical attribute relationship information between digital resources, it can directly obtain the accurate hierarchical attribute relationship information from the digital resource smart contract of the blockchain network, which can improve the efficiency of obtaining the hierarchical attribute relationship information between digital resources.

[0113] Optionally, the computer device calls the hierarchical attribute recording component, and the specific method of storing the hierarchical attribute relationship information in the blockchain network may include: calling the hierarchical attribute recording component, and recording the second asset certificate under the resource field to be recorded in the parent digital resource mapping table of the blockchain network according to the first hierarchical attribute relationship information, and recording the first asset certificate under the parent resource field in the parent digital resource mapping table. According to the second hierarchical attribute relationship information, the first asset certificate is recorded under the resource field to be recorded in the child digital resource mapping table of the blockchain network, and the second asset certificate is recorded under the child resource field in the child digital resource mapping table.

[0114] Specifically, the computer device can call the hierarchical attribute recording component to determine the parent digital resource mapping table in the blockchain network according to the first-level attribute relationship information. According to the certificate correspondence relationship in the first-level attribute relationship information and the parent digital resource certificate, the second asset certificate is recorded under the resource field to be recorded in the parent digital resource mapping table of the blockchain network, and the first asset certificate is recorded under the parent resource field in the parent digital resource mapping table. Similarly, the computer device can determine the child digital resource mapping table in the blockchain network according to the second-level attribute relationship information. According to the certificate correspondence relationship in the second-level attribute relationship information and the child digital resource certificate, the first asset certificate is recorded under the resource field to be recorded in the child digital resource mapping table of the blockchain network, and the second asset certificate is recorded under the child resource field in the child digital resource mapping table. In this way, by recording the first-level attribute relationship information in the parent digital resource mapping table and the second-level attribute relationship information in the child digital resource mapping table, the parent digital resource or child digital resource corresponding to the digital resource can be quickly queried, thereby improving the query efficiency of the hierarchical attribute relationship information. For example, a computer device may record the parent node value of tokenId (i.e., the second asset certificate) as parentId (i.e., the first asset certificate) in the _parentOf mapping table in the blockchain network, and record the child node value of parentId (i.e., the first asset certificate) as tokenId (i.e., the second asset certificate) in the _childrenOf mapping table in the blockchain network.

[0115] Optionally, the computer device may store the parent digital resource of the digital resource generated in the blockchain network in the parent digital resource mapping table, or may store it separately in the parent digital resource mapping table corresponding to the digital resource. For example, in the process of generating digital resources W11 and W12, the computer device may store the parent digital resources corresponding to digital resources W11 and W12 respectively in a parent digital resource mapping table. Of course, the computer device may also store the parent digital resource corresponding to digital resource W11 in the parent digital resource mapping table P11 corresponding to digital resource W11, and store the parent digital resource corresponding to digital resource W12 in the parent digital resource mapping table P12 corresponding to digital resource W12.

[0116] It should be understood that the computer device can record the parent node (i.e., parent digital resource) of each digital resource generated in the blockchain network in the parent digital resource mapping table in the blockchain network, such as mapping(uint256=>uint256)private_parentOf (i.e., mapping the parent digital resource of the current digital resource to the parent digital resource mapping table). At the same time, the computer device can record the child node (i.e., child digital resource, a digital resource may include one or more child digital resources) of each digital resource generated in the blockchain network in the child digital resource mapping table in the blockchain network, such as mapping(uint256=>uint256[])private_childrenOf (i.e., mapping the child digital resource of the current digital resource to the child digital resource mapping table). In addition, the computer device can also record the node position of each digital resource, and construct a digital resource hierarchy tree by sorting each digital resource. Through the digital resource hierarchy tree, the hierarchical attribute relationship between digital resources can be intuitively obtained, such as mapping (uint256=>uint256) private_indexOfChildrenArray (i.e., recording the node position of each digital resource and constructing a digital resource hierarchy tree)

[0117] like Figure 4 As shown, Figure 4 is a schematic diagram of determining resource value based on hierarchical attribute relationship information provided by an embodiment of the present application, such as Figure 4 As shown, in the application scenario of determining the resource value of a sub-digital resource, taking the digital resource as a digital pet as an example, the business node 100d can display the avatar of the business object 101d, the object identifier "111XXXX2222", the resource name corresponding to the resource held (such as Figure 4The example digital resource Q122) and the evaluation control for evaluating the resource value of the data resource Q122. When the business object 101d implements the trigger operation for the evaluation control, the business node 100d can respond to the trigger operation for the evaluation control implemented by the business object 101d, obtain the asset certificate of the digital resource Q122, that is, Q122, generate a resource value determination transaction between the judge and the digital resource Q122 according to the asset certificate of the digital resource Q122, and execute step S21 to send the resource value determination transaction about the digital resource Q122 to the blockchain network. After receiving the resource value determination transaction about the digital resource Q122, the blockchain network 100a can obtain the resource certificate about the digital resource Q122, that is, Q122, and query the parent digital resource of the digital resource Q122 from the parent digital resource mapping table 1001a of the blockchain network to obtain the parent digital resource Q12.

[0118] Further, the blockchain network 100a can obtain the resource value of the parent digital resource Q12, and obtain the value determination rule, and determine the resource value of the digital resource Q122 according to the resource value of the parent digital resource Q12 and the value determination rule. For example, the value determination rule stipulates that the resource value of the child digital resource is 80% of the resource value of the parent digital resource. If the resource value of the parent digital resource Q12 is 1000, the resource value of the digital resource Q122 is 800. Further, the blockchain network 100a can execute step S22 to return the resource value of the digital resource Q122 to the business node. After the business node 100d receives the resource value of the digital resource Q122, it can execute step S23 to update the resource value of the digital resource Q122 to "XXXXXX" in the display interface corresponding to the digital resource application 200a. It can be seen that the resource value of the child digital resource can be determined through the hierarchical attribute relationship information in the blockchain network, which is convenient for determining the resource value of the digital resource. At the same time, it can avoid the problem that the resource value positioning of the digital resource is difficult and inconsistent, resulting in confusion in digital resource transactions. At the same time, the parent digital resource Q12 of the digital resource Q122 can be quickly and accurately queried from the parent digital resource mapping table 1001a, thereby improving query efficiency.

[0119] like Figure 5 As shown, Figure 5 is a schematic diagram of selling digital resources based on hierarchical attribute relationship information provided by an embodiment of the present application, such as Figure 5 As shown, taking the application scenario of selling digital resources as digital pets as an example, the business node 100d can display the avatar of the business object 101d, the object identifier "111XXXX2222", the resource name corresponding to the resource held (such as Figure 4The example digital resource Q122) and the selling control for selling the digital resource Q122, and the control for selling in combination with the digital resource derived from the digital resource Q122. When the business object 101d triggers the control for selling in combination with the digital resource derived from the digital resource Q122, the business node 100d can generate a sub-resource acquisition transaction for the digital resource Q122, and execute step S31 to send the sub-resource acquisition transaction for the digital resource Q122 to the blockchain network 100a. After the blockchain network 100a receives the sub-resource acquisition transaction for the digital resource Q122, it can query the sub-digital resource derived from the digital resource Q122 from the sub-digital resource mapping table 1002a of the blockchain network based on the asset certificate of the digital resource Q122, and obtain the digital resource Q1221 and the digital resource Q12211. Further, the computer device can execute step S33 to display the digital resource Q122, the digital resource Q1221 and the digital resource Q12211. The business object can determine the digital resources to be sold based on the selection controls corresponding to the digital resource Q122, the digital resource Q1221, and the digital resource Q12211. It can be seen that through the hierarchical attribute relationship information in the blockchain network, the sub-digital resources of the digital resource can be quickly and accurately determined, which is convenient for the combined sale of the digital resources. At the same time, the digital resource Q1221 and the digital resource Q12211 derived from the digital resource Q122 can be quickly and accurately queried from the sub-digital resource mapping table 1001a, thereby improving the query efficiency.

[0120] Optionally, if the computer device receives a resource destruction transaction regarding a third digital resource sent by the business node, the resource destruction transaction is subjected to a legitimacy check to obtain a legitimacy check result. If the legitimacy check result indicates that the resource destruction transaction is legitimate, the hierarchical attribute relationship information associated with N digital resources is read from the blockchain network; N is a positive integer; there is a hierarchical attribute relationship between the N digital resources, and the third digital resource is one of the N digital resources. The third digital resource is destroyed according to the hierarchical attribute relationship information associated with the N digital resources. When the third digital resource is destroyed successfully, a destruction transaction success result is generated regarding the resource destruction transaction, and the destruction success result is returned to the business node.

[0121] Specifically, the business object can destroy the digital resources it owns in the business node. If the business object implements a trigger operation for the third digital resource, the business node can obtain the third asset certificate of the third digital resource and generate a resource destruction transaction for the third digital resource based on the third asset certificate. Further, the business node can send the resource destruction transaction for the third digital resource to the digital asset service, and the digital asset service authenticates the resource destruction transaction for the third digital resource to verify whether it has the resource destruction authority for the third digital resource. When the resource destruction transaction for the third digital resource is authenticated successfully (i.e., it has the resource destruction authority for the third digital resource), the digital asset service can sign the resource destruction transaction for the third digital resource according to the private key of the business node, obtain the transaction signature data of the resource destruction transaction, add the transaction signature data of the resource destruction transaction to the resource destruction transaction, and send the resource destruction transaction to the blockchain network. Of course, the business node can also directly send the resource destruction transaction for the third digital resource to the blockchain network.

[0122] Furthermore, if the blockchain network receives a resource destruction transaction about a third digital resource sent by a business node, the resource destruction transaction can be subjected to a legality transaction to obtain a legality verification result. If the legality verification result indicates that the resource destruction transaction is legal, the hierarchical attribute relationship information associated with N digital resources is read from the blockchain network, where N is a positive integer. The hierarchical attribute relationship information associated with the N digital resources may refer to the information generated by the blockchain network when generating N digital resources based on the resource derivative relationship of the N digital resources. Among them, there is a hierarchical attribute relationship between the N digital resources, and the third digital resource is one of the N digital resources. The computer device can destroy the third digital resource based on the hierarchical attribute relationship information associated with the N digital resources, and when the destruction of the third digital resource is successful, a destruction transaction success result about the resource destruction transaction is generated, and the destruction success result is returned to the business node. In this way, it is possible to avoid destroying the hierarchical attribute relationship between digital resources when destroying digital resources.

[0123] Optionally, the specific manner in which the computer device destroys the third digital resource according to the hierarchical attribute relationship information associated with the N digital resources may include: determining the node positions corresponding to the N digital resources respectively according to the hierarchical attribute relationship information associated with the N digital resources. Generating a digital resource hierarchy tree according to the node positions corresponding to the N digital resources respectively; the digital resource hierarchy tree includes a parent node corresponding to a parent digital resource among the N digital resources, and a child node reflecting a child digital resource derived from the parent node corresponding to the parent digital resource. Destroying the third digital resource according to the digital resource hierarchy tree.

[0124] Specifically, the computer device may determine the node positions corresponding to the N digital resources respectively according to the hierarchical attribute relationship information associated with the N digital resources. i and digital resources j , if the hierarchical attribute relationship information associated with N digital resources is used to determine the digital resource N i For digital resources N j The parent digital resource, digital resource N j For digital resources N i The digital resource N i The corresponding first node is the digital resource N j The corresponding parent node of the second node is the first node, that is, the parent node of the second node. j The corresponding second node is the digital resource N i The second node is the child node of the corresponding first node, that is, the second node is the child node of the first node. By analogy, the node positions corresponding to the N digital resources can be obtained. Further, the computer device can generate a digital resource hierarchy tree according to the node positions corresponding to the N digital resources, and the digital resource hierarchy tree includes a parent node corresponding to the parent digital resource in the N digital resources, and a child node reflecting the child digital resource derived from the parent node corresponding to the parent digital resource. The third digital resource is destroyed according to the digital resource hierarchy tree, so that the hierarchical attribute relationship between the digital resources can be avoided from being destroyed when the digital resources are destroyed.

[0125] Optionally, the specific manner in which the computer device destroys the third digital resource according to the digital resource hierarchy tree may include: querying the child digital resource of the third digital resource from the digital resource hierarchy tree. If the child digital resource of the third digital resource is not found in the digital resource hierarchy tree, then determining the parent digital resource of the third digital resource from the digital resource hierarchy tree as the target parent digital resource. Destroying the third digital resource according to the target parent digital resource.

[0126] Specifically, the computer device can query the child digital resources of the third digital resource from the digital resource hierarchy tree. If the child digital resources of the third digital resource are not found in the digital resource hierarchy tree, it means that the third digital resource has no child digital resources, and the destruction of the third digital resource will not affect the hierarchical attribute relationship between the digital resources, that is, the third digital resource can be destroyed. The computer device can determine the parent digital resource of the third digital resource from the digital resource hierarchy tree as the target parent digital resource. According to the target parent digital resource, the third digital resource is destroyed, so that the hierarchical attribute relationship between the digital resources can be avoided from being destroyed when the digital resource is destroyed.

[0127] Optionally, the specific method in which the computer device destroys the third digital resource according to the target parent digital resource may include: querying the sub-digital resources of the target parent digital resource in the sub-digital resource mapping table of the blockchain network to obtain a sub-digital resource list of the target parent digital resource. Obtain the index values ​​corresponding to the sub-digital resources in the sub-digital resource list, and determine the sub-digital resource with the largest index value from the sub-digital resource list as the last sub-digital resource of the target parent digital resource. Replace the index value of the last sub-digital resource with the index value of the third digital resource, and destroy the third digital resource.

[0128] Specifically, since the sub-digital resources of digital resources are stored in the sub-digital resource mapping table of the blockchain network, the computer device can query the sub-digital resources of the target parent digital resource in the sub-digital resource mapping table of the blockchain network to obtain the sub-digital resource list of the target parent digital resource. In this way, the sub-digital resources of the target parent digital resource can be quickly queried from the sub-digital resource mapping table through the asset certificate of the target parent digital resource, and the query efficiency is high. Since an index value corresponding to the sub-digital resource is generated when the sub-digital resource of the parent digital resource is generated, the index value can be used to indicate the location of the corresponding digital resource, and the corresponding sub-digital resource can be found through the index value. The computer device can respectively correspond to the index values ​​of the sub-digital resources in the sub-digital resource list. When the index values ​​corresponding to the sub-digital resources are accumulated, the computer device can determine the sub-digital resource with the largest index value from the sub-digital resource list as the last sub-digital resource of the target parent digital resource, that is, _childrenOf[tokenId]=lastTokenId. Furthermore, the computer device may replace the index value of the last sub-digital resource with the index value of the third digital resource, that is, _indexOfChildrenArray[lastTokenId]=_indexOfChildrenArray[tokenId], and destroy the third digital resource at the same time. For example, if the index value of the last sub-digital resource is 0019 and the index value of the third digital resource is 0012, the index value of the last sub-digital resource may be replaced with 0012. In this way, the index value of the last sub-digital resource is replaced with the index value of the third digital resource, and the digital resource with an index value greater than the index value of the third digital resource does not need to change the index value, thereby reducing the large changes in the index value of the digital resource. At the same time, the original index value of the last sub-digital resource may be deleted, such as deleting the above-mentioned 0019, and the third digital resource may be destroyed. Among them, the method of destroying the third digital resource may refer to destroying the relevant information about the third digital resource stored in the blockchain network (such as the third asset certificate or the resource attribute information of the third digital resource, etc.).

[0129] like Figure 6 As shown, Figure 6 is a schematic diagram of a digital resource hierarchy tree provided in an embodiment of the present application, such as Figure 6 As shown, the digital resource hierarchy tree includes the asset certificate structure of each digital resource, such as the parent node Q1 corresponding to the parent digital resource, and the child nodes of the child digital resources derived from the parent node corresponding to the parent digital resource, namely Q11, Q12, Q13, Q121, Q122, Q1221, Q12211 and Q131. Figure 6 As shown, nodes Q11, Q12 and Q13 are derived directly from the parent digital resource corresponding to parent node Q1, that is, the child nodes of parent node Q1 include nodes Q11, Q12 and Q13, and the parent nodes of nodes Q11, Q12 and Q13 are all parent node Q1. Nodes Q121 and Q122 are derived from the digital resource corresponding to node Q12, that is, the child nodes of node Q12 include nodes Q121 and Q122. Figure 6 As shown, node Q1221 is derived based on the digital resource corresponding to node Q122, that is, the child node of node Q122 is node Q1221, and the parent node of node Q1221 is node Q122. Node Q12211 is derived based on the digital resource corresponding to node Q1221, that is, the child node of node Q1221 is node Q12211, and the parent node of node Q12211 is node Q1221. Node Q131 is derived based on the digital resource corresponding to node Q13, that is, the child node of node Q13 is node Q131, and the parent node of node Q131 is node Q13. It can be seen that according to the hierarchical attribute relationship information associated with N digital resources, the digital resource hierarchical tree corresponding to the digital resources can be intuitively determined, and the hierarchical attribute relationship between the digital resources can be intuitively viewed in turn, thereby improving the efficiency of obtaining the hierarchical attribute relationship.

[0130] Optionally, if the computer device finds a sub-digital resource of the third digital resource in the digital resource hierarchy tree, it means that the third digital resource stores the sub-digital resource. If the destruction of the third digital resource will cause the risk of destroying the sub-digital resource of the third digital resource and the risk of failing to find the parent digital resource of the sub-digital resource, then the destruction of the third digital resource is not allowed. The computer device can suspend the destruction of the third digital resource, generate a destruction transaction failure result for the resource destruction transaction, and return the destruction transaction failure result to the service node. In this way, it is possible to avoid destroying the hierarchical attribute relationship between digital resources when destroying the digital resources.

[0131] Optionally, the resource destruction transaction carries the transaction signature data of the resource destruction transaction, and the specific method for the computer device to verify the legitimacy of the resource destruction transaction may include: if a resource destruction transaction for a third digital resource is received from a business node, the resource destruction transaction for the third digital resource is verified according to the public key corresponding to the business node and the transaction signature data of the resource destruction transaction. If the verification of the resource destruction transaction for the third digital resource is successful, the third asset certificate of the third digital resource is obtained, and the holder authority object corresponding to the third asset certificate is queried. If the holder authority object matches the transaction initiator object of the resource destruction transaction, a legitimacy verification result is generated indicating that the resource destruction transaction is legitimate.

[0132] Specifically, if the computer device receives a resource destruction transaction for a third digital resource from a business node, the resource destruction transaction for the third digital resource can be verified based on the public key corresponding to the business node and the transaction signature data of the resource destruction transaction. Since the resource destruction transaction carries the transaction signature data of the resource destruction transaction, the computer device can obtain the public key corresponding to the business node, verify the transaction signature data of the resource destruction transaction, and obtain the target transaction request data. The resource destruction transaction carries the original transaction request data. If the target transaction request data matches the original transaction request data, it means that the resource destruction transaction is sent by the business node (such as it has not been tampered with during the sending process or it is not sent by other business nodes), then it is determined that the resource destruction transaction for the third digital resource is successfully verified. If the target transaction request data does not match the original transaction request data, it means that the resource destruction transaction is not sent by the business node (such as it has been tampered with during the sending process or it is sent by other business nodes), then it is determined that the resource destruction transaction for the third digital resource has failed.

[0133] It should be understood that if the resource destruction transaction of the third digital resource is successfully verified, a legitimacy verification result is generated that the resource destruction transaction is not legitimate. If the resource destruction transaction of the third digital resource is successfully verified, the third asset certificate of the third digital resource is obtained, and the holder authority object corresponding to the third asset certificate is queried. If the holder authority object matches the transaction initiation object of the resource destruction transaction, a legitimacy verification result that the resource destruction transaction is legitimate is generated. Among them, the transaction initiation object may refer to the business object that initiates the resource destruction transaction. If the holder authority object does not match the transaction initiation object of the resource destruction transaction, a legitimacy verification result that the resource destruction transaction is not legitimate is generated.

[0134] like Figure 7 As shown, Figure 7 is a schematic diagram of hierarchical attribute relationship information provided by an embodiment of the present application, such as Figure 7As shown, taking the digital resources obtained by participating in the game activities in the target application as an example, the business object can participate in the game in the target application of the business node. When the business node detects that the business object implements step 1 to participate in the game in the target application, the business node can execute step 2 to query the digital resources of the business object in the digital asset service. Among them, the digital asset can be used as an intermediate service to communicate with the business node and the blockchain network to store relevant information about the digital resources held by the business object. The digital asset service can return the digital resources held by the business object, and the business node can execute step 3 to display the digital resources held by the business object in the resource display interface corresponding to the target application. The business node can execute step 4 to support the business object to participate in the game activities in the target application to obtain digital resources. When the business object detects that the business object initially triggers step 5 to trigger the sub-resource generation operation on the first digital resource, the first asset certificate of the first digital resource can be obtained, and the sub-resource attribute information of the sub-digital resource to be generated can be obtained. Among them, the first digital resource is a digital resource held by the business object. When the business object meets certain conditions in the target application, the sub-resource generation operation on the first digital resource can be triggered, that is, a new digital resource (i.e., a sub-digital resource) is cast based on the first digital resource. The business node can generate a sub-resource generation transaction for the first digital resource based on the first asset certificate and the sub-resource attribute information of the sub-digital resource to be generated, and execute step 6 to send the sub-resource generation transaction for the first digital resource to the digital asset service.

[0135] Further, the digital asset service can execute step 7 to authenticate the sub-resource generation transaction sent by the business node, such as detecting whether the sub-resource generation transaction is sent by the business node, and whether the business node has the authority to request the generation of the sub-digital resource of the first digital resource. If the authentication of the sub-resource generation transaction is successful, the digital asset service can obtain the private key corresponding to the business node, sign the sub-resource generation transaction, obtain the transaction signature data, add the signature data to the sub-resource generation transaction, and execute step 8 to send the sub-resource generation transaction carrying the transaction signature data to the blockchain network. After the blockchain network receives the sub-resource generation transaction, it can execute step 9 to verify the first asset certificate in the sub-resource generation transaction to verify the validity of the first asset certificate. For details, please refer to the content of the above step S102, which will not be repeated in this embodiment of the present application. Further, the blockchain network can generate a second asset certificate based on the first asset certificate, and generate target hierarchical attribute relationship information indicating that the second digital resource is derived from the first digital resource based on the first asset certificate and the second asset certificate. For details, please refer to the content of the above step S103, which will not be repeated in this embodiment of the present application. The blockchain network can execute step 10 to call the hierarchical attribute recording component to store the target hierarchical attribute relationship information in the blockchain network. At the same time, the blockchain network can execute step 11 to call the digital resource generation interface to derive the second digital resource from the first digital resource according to the sub-resource attribute information. For details, please refer to the content of the above step S102, and the embodiment of this application will not be repeated here. When the blockchain network successfully generates the second digital resource and successfully stores the target hierarchical attribute relationship information, a transaction execution result indicating that the sub-resource generation transaction is successfully executed can be generated according to the second asset certificate.

[0136] Specifically, the blockchain network can execute step 12 to return a transaction execution result indicating that the sub-resource generation transaction is successfully executed to the digital asset service, and the digital asset service can execute step 13 to add the content of the second digital resource in the database according to the second asset certificate, such as adding the second asset certificate of the second digital resource and the sub-resource attribute information of the second digital resource in the database. Further, the digital asset service can execute step 14 to return a transaction execution result indicating that the sub-resource generation transaction is successfully executed to the business node. After the business node receives the transaction execution result indicating that the sub-resource generation transaction is successfully executed, it can execute step 15 to update the digital resources held by the business object in the target application according to the second asset certificate. At the same time, the business node can execute step 16 to update the digital resource content held by the business object displayed in the front-end interface according to the second asset certificate. Specifically, the business object can aggregate and query its digital resources on the blockchain network in the blockchain application. When the blockchain application detects that the business object implements step 17 to aggregate and query all its digital resources on the blockchain in the blockchain application, it can execute step 18 to output the business object login interface and indicate that the business object logs in to the object information to verify the viewing authority of the business object. When the business object successfully logs in, the blockchain application can execute step 19, and perform an aggregate query on the digital resources held by the business object from the digital asset service according to the object information of the business object. The digital resource service can query all digital resources held by the business object according to the object information of the business object to obtain the aggregate query result. The digital asset service can execute step 20 to return the aggregate query result to the blockchain application, and update the resource attribute information (i.e., metadata) of the digital asset at the same time. Further, the blockchain application can execute step 21, and after receiving the aggregate query result, the digital resources queried by the aggregate query result, i.e., the digital resources held by the business object, can be displayed on the front-end interface. It can be seen that the embodiment of the present application generates the target hierarchical attribute relationship information between the first digital resource and the second digital resource when generating the second digital resource, and stores the target hierarchical attribute relationship information in the blockchain network. In this way, the security of the target hierarchical attribute relationship information (such as avoiding tampering) can be ensured, and the target hierarchical attribute relationship information quickly obtained from the blockchain network is convenient, and the acquisition efficiency of the hierarchical attribute relationship between digital resources is improved.

[0137] By generating the sub-digital resource (i.e., the second digital resource) of the first digital resource, according to the asset certificate of the first digital resource and the asset certificate of the second digital resource, the target hierarchical attribute relationship information is generated, and the target hierarchical attribute relationship information is used to indicate that the first digital resource is derived from the second digital resource. Further, by calling the hierarchical attribute recording component, the target hierarchical attribute relationship information is stored in the blockchain network. In this way, the derivative relationship between the first digital resource and the second digital resource can be determined through the target hierarchical attribute relationship information in the blockchain network, and the efficiency of obtaining the derivative relationship between digital resources is improved. At the same time, the target hierarchical attribute relationship information is generated in the process of deriving the second digital resource from the first digital resource, and is stored on the blockchain network, which can avoid the target hierarchical attribute relationship information from being tampered with, and improve the storage security of the target hierarchical attribute relationship information. In addition, by quickly and accurately obtaining the hierarchical attribute relationship information between digital resources from the blockchain network, it is convenient to trade digital resources based on the obtained hierarchical attribute relationship information to meet the business development needs between digital resources. In addition, through the hierarchical attribute relationship between digital resources in the blockchain network, sub-digital resources can be generated and digital resources can be destroyed to avoid destroying the hierarchical structure between data resources, so that digital resources on the blockchain have hierarchical attribute functions and meet the development needs of business scenarios of digital resources.

[0138] For further information, see Figure 8 , Figure 8 is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application. The data processing method based on blockchain can be Figure 1 The method can be executed by any blockchain node in the application. The devices used to execute the method in this application can be collectively referred to as computer devices.

[0139] like Figure 8 As shown, the blockchain-based data processing method may include but is not limited to the following steps:

[0140] S201, receiving a sub-resource generation transaction regarding a first digital resource sent by a service node.

[0141] S202: derive a sub-digital resource of the first digital resource from the first digital resource according to the sub-resource attribute information as a second digital resource, and generate a second asset certificate for the second digital resource.

[0142] S203: Generate target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate.

[0143] S204, calling the hierarchical attribute recording component, storing the target hierarchical attribute relationship information in the blockchain network, and returning the second asset certificate to the business node.

[0144] Specifically, the contents of steps S201 to S204 in the embodiment of the present application can be referred to above. Figure 3 The contents of steps S101-S104 in this embodiment of the present application will not be repeated here.

[0145] S205, receiving the hierarchical attribute relationship verification transaction sent by the business node.

[0146] Specifically, when a business object conducts a business transaction on a digital resource, if the hierarchical attribute relationship information between digital resources is needed, a business node can be used to trigger a verification request for the hierarchical attribute relationship between the first digital resource and the second digital resource. The business node can obtain the hierarchical attribute relationship information to be verified between the first digital resource and the second digital resource, and obtain the first asset certificate of the first digital resource and the second asset certificate of the second digital resource. Further, the business node can generate a hierarchical attribute relationship verification transaction based on the hierarchical attribute relationship information to be verified, the first asset certificate, and the second asset certificate, and send the hierarchical attribute relationship verification transaction to the blockchain network. The computer device can receive the hierarchical attribute relationship verification transaction sent by the business node regarding the first digital resource and the second digital resource. Of course, the computer device can also verify the hierarchical attribute relationship verification transaction, such as detecting whether the hierarchical attribute relationship verification transaction is sent by the business node, and if it is determined that the hierarchical attribute relationship verification transaction is sent by the business node, the verification is passed. Alternatively, verify whether the transaction initiator of the hierarchical attribute relationship verification transaction has the verification authority for the hierarchical attribute relationship between the first digital resource and the second digital resource. If the transaction initiator of the hierarchical attribute relationship verification transaction has the verification authority for the hierarchical attribute relationship between the first digital resource and the second digital resource, it is determined that the verification is passed. For example, taking the digital resource as a digital pet, the first digital resource is digital pet Q1, and the second digital resource is digital pet Q12. If digital pet Q1 has a high value, the value of the sub-digital pet derived from digital pet Q1 will also be high. If the sub-digital pet Q12 of digital pet Q1 is sold, the business node can use the sub-digital pet Q12 derived from digital pet Q1 as the hierarchical attribute relationship information to be verified. Further, the business node can generate a hierarchical attribute relationship verification transaction for sub-digital pet Q12 and digital pet Q1 based on the asset certificates corresponding to sub-digital pet Q12 and digital pet Q1, and the hierarchical attribute relationship information to be verified, and send it to the blockchain network.

[0147] S206, reading target hierarchical attribute relationship information from the blockchain network according to the first asset certificate and the second asset certificate.

[0148] Specifically, the computer device can read the target hierarchical attribute relationship information between the first digital resource and the second digital resource from the blockchain network according to the first asset certificate and the second asset certificate. The target hierarchical attribute relationship information between the digital resources can be a digital resource mapping table stored in the blockchain network, and the digital resource mapping table can include a parent digital resource mapping table and a child digital resource mapping table. Specifically, the computer device can query the child digital resource of the first digital resource from the child digital resource mapping table according to the first asset certificate, or query the parent digital resource of the second digital resource from the parent digital resource mapping table according to the second asset certificate. The target hierarchical attribute relationship information can accurately determine the hierarchical attribute relationship between the first digital resource and the second digital resource.

[0149] S207, determining a relationship verification result regarding the hierarchical attribute relationship verification transaction according to the hierarchical attribute relationship information to be verified and the target hierarchical attribute relationship information, and returning the relationship verification result to the business node.

[0150] Specifically, the computer device can determine the relationship verification result of the hierarchical attribute relationship verification transaction according to the hierarchical attribute relationship information to be verified and the target hierarchical attribute relationship information, and return the relationship verification result to the business node. Specifically, the computer device can detect whether the hierarchical attribute relationship information to be verified and the target hierarchical attribute relationship information match. If the hierarchical attribute relationship information to be verified and the target hierarchical attribute relationship information match, a relationship verification result indicating that the hierarchical attribute relationship information to be verified is correct is generated; if the hierarchical attribute relationship information to be verified and the target hierarchical attribute relationship information do not match, a relationship verification result indicating that the hierarchical attribute relationship information to be verified is incorrect is generated. For example, the hierarchical attribute relationship information to be verified is that the sub-digital pet Q12 is derived from the digital pet Q1. If it is determined according to the target hierarchical attribute relationship information that the sub-digital pet Q12 is derived from the digital pet Q1, a relationship verification result indicating that the hierarchical attribute relationship information to be verified is correct is generated; if it is determined according to the target hierarchical attribute relationship information that the sub-digital pet Q12 is not derived from the digital pet Q1, a relationship verification result indicating that the hierarchical attribute relationship information to be verified is incorrect is generated. In this way, the hierarchical attribute relationship information between digital resources stored in the blockchain network can be used to quickly and accurately verify the hierarchical attribute relationship information to be verified between digital resources.

[0151] In an embodiment of the present application, in the process of generating a sub-digital resource (i.e., a second digital resource) of a first digital resource, target hierarchical attribute relationship information is generated according to the asset certificate of the first digital resource and the asset certificate of the second digital resource, and the target hierarchical attribute relationship information is used to indicate that the first digital resource is derived from the second digital resource. Further, by calling the hierarchical attribute recording component, the target hierarchical attribute relationship information is stored in the blockchain network. In this way, the derivative relationship between the first digital resource and the second digital resource can be determined by the target hierarchical attribute relationship information in the blockchain network, thereby improving the efficiency of obtaining the derivative relationship between digital resources. At the same time, the target hierarchical attribute relationship information is generated in the process of deriving the second digital resource from the first digital resource, and is stored on the blockchain network, which can avoid the target hierarchical attribute relationship information from being tampered with, and improve the storage security of the target hierarchical attribute relationship information. In addition, by quickly and accurately obtaining the hierarchical attribute relationship information between digital resources from the blockchain network, it is convenient to trade digital resources based on the acquired hierarchical attribute relationship information to meet the business development needs between digital resources. In addition, through the hierarchical attribute relationship between digital resources in the blockchain network, sub-digital resources can be generated and digital resources can be destroyed to avoid destroying the hierarchical structure between data resources, so that digital resources have hierarchical attribute functions on the blockchain and meet the development needs of digital resource business scenarios. At the same time, through the hierarchical attribute relationship information between digital resources stored in the blockchain network, the hierarchical attribute relationship information to be verified between digital resources can be quickly and accurately verified.

[0152] For further information, see Fig. 9 , Fig. 9 : is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application. The blockchain-based data processing device may be a computer program (including program code) running in a computer device. For example, the blockchain-based data processing device is an application software; the blockchain-based data processing device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. Fig. 9 As shown, the blockchain-based data processing device can be any blockchain node that maintains the first blockchain. The blockchain-based data processing device can include: a first receiving module 11, a derivation module 12, a generation module 13, a storage module 14, a verification module 15, a first reading module 16, a destruction module 17, a first return module 18, a second receiving module 19, a second reading module 20 and a second return module 21.

[0153] A first receiving module 11 is used to receive a sub-resource generation transaction about a first digital resource sent by a business node, where the sub-resource generation transaction includes sub-resource attribute information and a first asset certificate of the first digital resource;

[0154] The derivation module 12 is used to derive a sub-digital resource of the first digital resource from the first digital resource according to the sub-resource attribute information, as a second digital resource, and generate a second asset certificate for the second digital resource;

[0155] A generating module 13 is used to generate target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate; the target hierarchical attribute relationship information is used to indicate that the second digital resource is derived from the first digital resource;

[0156] The storage module 14 is used to call the hierarchical attribute recording component, store the target hierarchical attribute relationship information in the blockchain network, and return the second asset certificate to the business node.

[0157] The derivative module 12 includes:

[0158] The verification unit 1201 is used to verify the validity of the first asset certificate if there is a historical asset certificate matching the first asset certificate in the historical asset certificate set, and obtain a validity verification result of the first asset certificate; the historical asset certificate set includes historical asset certificates corresponding to M digital resources generated in the historical time period, where M is a positive integer;

[0159] The derivation unit 1202 is configured to perform derivation processing on the first asset certificate to obtain a second asset certificate for a second digital resource if the validity check result indicates that the first asset certificate is valid.

[0160] Wherein, the generating module 13 comprises:

[0161] An establishing unit 1301 is used to establish a certificate correspondence relationship between the first asset certificate and the second asset certificate;

[0162] The first generating unit 1302 is used to generate first-level attribute relationship information according to the certificate correspondence relationship and the first asset certificate; the first-level attribute relationship information is used to indicate that the first digital resource is the parent digital resource of the second digital resource;

[0163] The second generating unit 1303 is used to generate second-level attribute relationship information according to the certificate correspondence relationship and the second asset certificate; the second-level attribute relationship information is used to indicate that the second digital resource is a sub-digital resource of the first digital resource;

[0164] The first determining unit 1304 is configured to determine the first-level attribute relationship information and the second-level attribute relationship information as target-level attribute relationship information.

[0165] The storage module 14 includes:

[0166] The first recording unit 1401 is used to call the hierarchical attribute recording component, and according to the first hierarchical attribute relationship information, record the second asset certificate under the resource field to be recorded in the parent digital resource mapping table of the blockchain network, and record the first asset certificate under the parent resource field in the parent digital resource mapping table;

[0167] The second recording unit 1402 is used to record the first asset certificate under the resource field to be recorded in the sub-digital resource mapping table of the blockchain network according to the second-level attribute relationship information, and record the second asset certificate under the sub-resource field in the sub-digital resource mapping table.

[0168] Among them, the data processing device based on blockchain also includes:

[0169] The verification module 15 is used to perform a legality verification on the resource destruction transaction and obtain a legality verification result if a resource destruction transaction about the third digital resource sent by the service node is received;

[0170] The first reading module 16 is used to read the hierarchical attribute relationship information associated with N digital resources from the blockchain network if the legitimacy check result indicates that the resource destruction transaction is legitimate; N is a positive integer; there is a hierarchical attribute relationship between the N digital resources, and the third digital resource is one of the N digital resources;

[0171] A destruction module 17, configured to destroy the third digital resource according to the hierarchical attribute relationship information associated with the N digital resources;

[0172] The first returning module 18 is used to generate a destruction transaction success result regarding the resource destruction transaction when the third digital resource is destroyed successfully, and return the destruction success result to the service node.

[0173] Among them, the destruction module 17 includes:

[0174] The second determining unit 1701 is used to determine the node positions corresponding to the N digital resources respectively according to the hierarchical attribute relationship information associated with the N digital resources;

[0175] The third generating unit 1702 is used to generate a digital resource hierarchical tree according to the node positions corresponding to the N digital resources respectively; the digital resource hierarchical tree includes a parent node corresponding to the parent digital resource among the N digital resources, and a child node corresponding to the child digital resource derived from the parent node corresponding to the parent digital resource;

[0176] The destroying unit 1703 is used to destroy the third digital resource according to the digital resource hierarchy tree.

[0177] The destruction unit 1703 is specifically used for:

[0178] Query the child digital resources of the third digital resource from the digital resource hierarchy tree;

[0179] If no child digital resource of the third digital resource is found in the digital resource hierarchy tree, then the parent digital resource of the third digital resource is determined from the digital resource hierarchy tree as the target parent digital resource;

[0180] The third digital resource is destroyed according to the target parent digital resource.

[0181] The method includes destroying the third digital resource according to the target parent digital resource, including:

[0182] In the sub-digital resource mapping table of the blockchain network, query the sub-digital resources of the target parent digital resource to obtain the sub-digital resource list of the target parent digital resource;

[0183] Obtain the index values ​​corresponding to the sub-digital resources in the sub-digital resource list, and determine the sub-digital resource with the largest index value from the sub-digital resource list as the last sub-digital resource of the target parent digital resource;

[0184] The index value of the last sub-digital resource is replaced with the index value of the third digital resource, and the third digital resource is destroyed.

[0185] The destruction unit 1703 is further specifically used for:

[0186] If a sub-digital resource of the third digital resource is found in the digital resource hierarchy tree, the destruction of the third digital resource is suspended;

[0187] Generate a destruction transaction failure result for the resource destruction transaction, and return the destruction transaction failure result to the business node.

[0188] Among them, the resource destruction transaction carries the transaction signature data of the resource destruction transaction;

[0189] The verification module 15 includes:

[0190] The signature verification unit 1501 is used to verify the resource destruction transaction for the third digital resource according to the public key corresponding to the business node and the transaction signature data of the resource destruction transaction if a resource destruction transaction for the third digital resource is received from the business node;

[0191] The query unit 1502 is used to obtain the third asset certificate of the third digital resource if the resource destruction transaction of the third digital resource is successfully verified, and query the holding authority object corresponding to the third asset certificate;

[0192] The fourth generating unit 1503 is used to generate a legitimacy verification result indicating that the resource destruction transaction is legitimate if the permission holding object matches the transaction initiating object of the resource destruction transaction.

[0193] Among them, the data processing device based on blockchain also includes:

[0194] The second receiving module 19 is used to receive a hierarchical attribute relationship verification transaction sent by the service node; the hierarchical attribute relationship verification transaction includes information about the hierarchical attribute relationship to be verified between the first digital resource and the second digital resource;

[0195] The second reading module 20 is used to read the target hierarchical attribute relationship information from the blockchain network according to the first asset certificate and the second asset certificate;

[0196] The second returning module 21 is used to determine the relationship verification result of the hierarchical attribute relationship verification transaction according to the hierarchical attribute relationship information to be verified and the target hierarchical attribute relationship information, and return the relationship verification result to the business node.

[0197] According to one embodiment of the present application, Fig. 9 The various modules in the blockchain-based data processing device 1 shown can be separately or completely combined into one or several units to constitute, or one (some) of the units can be further divided into multiple functionally smaller sub-units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above modules are divided based on logical functions. In practical applications, the functions of a module can also be implemented by multiple units, or the functions of multiple modules can be implemented by one unit. In other embodiments of the present application, the video data processing device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0198] In an embodiment of the present application, in the process of generating a sub-digital resource (i.e., a second digital resource) of a first digital resource, target hierarchical attribute relationship information is generated according to the asset certificate of the first digital resource and the asset certificate of the second digital resource, and the target hierarchical attribute relationship information is used to indicate that the first digital resource is derived from the second digital resource. Further, by calling the hierarchical attribute recording component, the target hierarchical attribute relationship information is stored in the blockchain network. In this way, the derivative relationship between the first digital resource and the second digital resource can be determined by the target hierarchical attribute relationship information in the blockchain network, thereby improving the efficiency of obtaining the derivative relationship between digital resources. At the same time, the target hierarchical attribute relationship information is generated in the process of deriving the second digital resource from the first digital resource, and is stored on the blockchain network, which can avoid the target hierarchical attribute relationship information from being tampered with, and improve the storage security of the target hierarchical attribute relationship information. In addition, by quickly and accurately obtaining the hierarchical attribute relationship information between digital resources from the blockchain network, it is convenient to trade digital resources based on the acquired hierarchical attribute relationship information to meet the business development needs between digital resources. In addition, through the hierarchical attribute relationship between digital resources in the blockchain network, sub-digital resources can be generated and digital resources can be destroyed to avoid destroying the hierarchical structure between data resources, so that digital resources have hierarchical attribute functions on the blockchain and meet the development needs of digital resource business scenarios. At the same time, through the hierarchical attribute relationship information between digital resources stored in the blockchain network, the hierarchical attribute relationship information to be verified between digital resources can be quickly and accurately verified.

[0199] For further information, see Fig.10 , Fig.10 Schematic diagram of a computer device provided in an embodiment of the present application. Fig.10 As shown, the computer device 3000 may be the above Figure 1 For any blockchain node in the corresponding embodiment, the computer device 3000 may include: at least one processor 3001, such as a CPU, at least one network interface 3004, a user interface 3003, a memory 3005, and at least one communication bus 3002. The communication bus 3002 is used to realize the connection and communication between these components. The user interface 3003 may include a display screen (Display) and a keyboard (Keyboard), and the network interface 3004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 3005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The storage 3005 may optionally also be at least one storage device located away from the aforementioned processor 3001. As Fig.10As shown, the memory 3005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.

[0200] exist Fig.10 In the computer device 3000 shown, the network interface 3004 is mainly used for the second node device to communicate with the target relay server and the target oracle server; the user interface 3003 is mainly used to provide an input interface for the user; and the processor 3001 can be used to call the device control application stored in the memory 3005 to achieve:

[0201] receiving a sub-resource generation transaction about a first digital resource sent by a service node, where the sub-resource generation transaction includes sub-resource attribute information and a first asset certificate of the first digital resource;

[0202] According to the sub-resource attribute information, a sub-digital resource of the first digital resource is derived from the first digital resource as a second digital resource, and a second asset certificate for the second digital resource is generated;

[0203] Generate target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate; the target hierarchical attribute relationship information is used to indicate that the second digital resource is derived from the first digital resource;

[0204] The hierarchical attribute recording component is called to store the target hierarchical attribute relationship information in the blockchain network, and return the second asset certificate to the business node.

[0205] It should be understood that the computer device 3000 described in the embodiment of the present application can execute the above Figure 3 or Figure 8 The description of the data processing method based on blockchain in the corresponding embodiment can also be performed as described above. Fig. 9 The description of the data processing device based on blockchain in the above description will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here.

[0206] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the blockchain-based data processing device mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above-mentioned Figure 3 or Figure 8 The description of the blockchain-based data processing method in the corresponding embodiment will therefore not be repeated here.

[0207] In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, program instructions can be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.

[0208] On one hand, the present application provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the above Figure 3 or Figure 8 The description of the data processing method based on blockchain in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated here.

[0209] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0210] The above disclosure is only the preferred embodiment 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 data processing method based on blockchain, characterized in that: include: receiving a sub-resource generation transaction about a first digital resource sent by a service node, wherein the sub-resource generation transaction includes sub-resource attribute information and a first asset certificate of the first digital resource; According to the sub-resource attribute information, derive a sub-digital resource of the first digital resource from the first digital resource as a second digital resource, and generate a second asset certificate for the second digital resource; generating target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate; The target hierarchical attribute relationship information is used to indicate that the second digital resource is derived from the first digital resource; Calling a hierarchical attribute recording component, storing the target hierarchical attribute relationship information in the blockchain network, and returning the second asset certificate to the business node.

2. The method according to claim 1, characterized in that: The generating of the second asset certificate regarding the second digital resource comprises: If there is a historical asset warrant matching the first asset warrant in the historical asset warrant set, verify the validity of the first asset warrant to obtain a validity verification result of the first asset warrant; the historical asset warrant set includes historical asset warrants corresponding to M digital resources generated in a historical time period, where M is a positive integer; If the validity check result indicates that the first asset certificate is valid, the first asset certificate is subjected to derivative processing to obtain a second asset certificate regarding the second digital resource.

3. The method according to claim 1, characterized in that The step of generating target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate includes: Establishing a corresponding relationship between the first asset warrant and the second asset warrant; Generate first-level attribute relationship information according to the certificate correspondence relationship and the first asset certificate; the first-level attribute relationship information is used to indicate that the first digital resource is the parent digital resource of the second digital resource; Generate second-level attribute relationship information according to the certificate correspondence relationship and the second asset certificate; the second-level attribute relationship information is used to indicate that the second digital resource is a sub-digital resource of the first digital resource; The first hierarchical attribute relationship information and the second hierarchical attribute relationship information are determined as the target hierarchical attribute relationship information.

4. The method according to claim 3, characterized in that The calling hierarchical attribute recording component stores the target hierarchical attribute relationship information in the blockchain network, including: Calling a hierarchical attribute recording component, based on the first hierarchical attribute relationship information, records the second asset certificate under the resource to be recorded field in the parent digital resource mapping table of the blockchain network, and records the first asset certificate under the parent resource field in the parent digital resource mapping table; According to the second-level attribute relationship information, the first asset certificate is recorded under the resource field to be recorded in the sub-digital resource mapping table of the blockchain network, and the second asset certificate is recorded under the sub-resource field in the sub-digital resource mapping table.

5. The method according to claim 1, characterized in that The method further comprises: If a resource destruction transaction regarding a third digital resource sent by the service node is received, a legality check is performed on the resource destruction transaction to obtain a legality check result; If the legitimacy check result indicates that the resource destruction transaction is legitimate, then read the hierarchical attribute relationship information associated with N digital resources from the blockchain network; N is a positive integer; there is a hierarchical attribute relationship between the N digital resources, and the third digital resource is one of the N digital resources; Destroying the third digital resource according to the hierarchical attribute relationship information associated with the N digital resources; When the third digital resource is destroyed successfully, a destruction transaction success result regarding the resource destruction transaction is generated, and the destruction success result is returned to the service node.

6. The method according to claim 5, characterized in that The destroying the third digital resource according to the hierarchical attribute relationship information associated with the N digital resources includes: Determining node positions corresponding to the N digital resources respectively according to hierarchical attribute relationship information associated with the N digital resources; Generate a digital resource hierarchy tree according to the node positions corresponding to the N digital resources respectively; the digital resource hierarchy tree includes a parent node corresponding to a parent digital resource among the N digital resources, and a child node corresponding to a child digital resource derived from the parent node corresponding to the parent digital resource; The third digital resource is destroyed according to the digital resource hierarchy tree.

7. The method according to claim 6, characterized in that The destroying the third digital resource according to the digital resource hierarchy tree comprises: Query the sub-digital resources of the third digital resource from the digital resource hierarchy tree; If no child digital resource of the third digital resource is found in the digital resource hierarchy tree, then the parent digital resource of the third digital resource is determined from the digital resource hierarchy tree as the target parent digital resource; The third digital resource is destroyed according to the target parent digital resource.

8. The method according to claim 7, characterized in that The destroying the third digital resource according to the target parent digital resource includes: In the sub-digital resource mapping table of the blockchain network, query the sub-digital resources of the target parent digital resource to obtain a list of sub-digital resources of the target parent digital resource; Obtaining index values ​​corresponding to the sub-digital resources in the sub-digital resource list, and determining the sub-digital resource with the largest index value from the sub-digital resource list as the last sub-digital resource of the target parent digital resource; The index value of the last sub-digital resource is replaced with the index value of the third digital resource, and the third digital resource is destroyed.

9. The method according to claim 7, characterized in that: The method further comprises: If a sub-digital resource of the third digital resource is found in the digital resource hierarchy tree, then the destruction of the third digital resource is suspended; Generate a destruction transaction failure result regarding the resource destruction transaction, and return the destruction transaction failure result to the service node.

10. The method according to claim 5, characterized in that The resource destruction transaction carries transaction signature data of the resource destruction transaction; If a resource destruction transaction for a third digital resource is received from the service node, a legality check is performed on the resource destruction transaction to obtain a legality check result, including: If a resource destruction transaction for a third digital resource is received from the service node, verifying the signature of the resource destruction transaction for the third digital resource according to the public key corresponding to the service node and the transaction signature data of the resource destruction transaction; If the resource destruction transaction of the third digital resource is successfully verified, the third asset certificate of the third digital resource is obtained, and the holder authority object corresponding to the third asset certificate is queried; If the authority holding object matches the transaction initiating object of the resource destruction transaction, a legitimacy verification result is generated indicating that the resource destruction transaction is legitimate.

11. The method according to claim 1, characterized in that: The method further comprises: receiving a hierarchical attribute relationship verification transaction sent by the service node; the hierarchical attribute relationship verification transaction includes information about the hierarchical attribute relationship to be verified between the first digital resource and the second digital resource; Reading the target hierarchical attribute relationship information from the blockchain network according to the first asset certificate and the second asset certificate; According to the to-be-verified hierarchical attribute relationship information and the target hierarchical attribute relationship information, a relationship verification result regarding the hierarchical attribute relationship verification transaction is determined, and the relationship verification result is returned to the business node.

12. A data processing device based on blockchain, characterized in that: include: A first receiving module, configured to receive a sub-resource generation transaction regarding a first digital resource sent by a service node, wherein the sub-resource generation transaction includes sub-resource attribute information and a first asset certificate of the first digital resource; A derivation module, configured to derive a sub-digital resource of the first digital resource from the first digital resource according to the sub-resource attribute information, as a second digital resource, and generate a second asset certificate for the second digital resource; A generating module, used for generating target hierarchical attribute relationship information according to the first asset certificate and the second asset certificate; The target hierarchical attribute relationship information is used to indicate that the second digital resource is derived from the first digital resource; A storage module is used to call the hierarchical attribute recording component, store the target hierarchical attribute relationship information in the blockchain network, and return the second asset certificate to the business node.

13. A computer device, characterized in that: include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 11.

15. A computer program product or a computer program, characterized in that The computer program product or computer program comprises computer instructions, which are stored in a computer-readable storage medium and are suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 11.