Asset management method and device in block chain, equipment and medium

By deploying asset management contracts on the blockchain and creating a hierarchical asset structure, the problem of low asset management efficiency on the blockchain is solved, associated management between multiple asset data is realized, and management efficiency is improved.

CN118550967APending Publication Date: 2024-08-27TENPAY PAID TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310193046.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Asset management efficiency on the blockchain is low and cannot effectively reflect the correlation between assets of the same type, resulting in low independent management efficiency.

Method used

By deploying asset management contracts on the blockchain, a hierarchical asset structure is created, and the root node and sub-layer nodes are used to build the target hierarchical asset structure to achieve associated management between multiple asset data.

Benefits of technology

It improves the efficiency of asset data management on the blockchain, achieves unified management of multiple asset data and presentation of correlation relationships through one root node data, and simplifies operations such as asset transfer and destruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550967A
    Figure CN118550967A
Patent Text Reader

Abstract

The embodiment of the invention provides an asset management method and device in a block chain, equipment and a medium, and the method comprises the steps: obtaining first asset data and first extension configuration information, and creating the first asset data and the first extension configuration information as root node data through an asset creation interface in an asset management contract; obtaining first participation application information of the second object, and if the first participation application information meets an extension condition indicated by the first extension configuration information, determining that the second object has a participation permission; obtaining second asset data and second extension configuration information, and creating the second asset data and the second extension configuration information as first sub-layer node data through the asset creation interface; constructing a target hierarchical asset structure according to the root node data and the first sub-layer node data; the node data in the target hierarchical asset structure belongs to a first asset address of the first object on the block chain. According to the embodiment of the invention, the management efficiency of the on-chain asset data can be improved.
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 an asset management method, device, equipment and medium in a blockchain. Background Art

[0002] In the current asset management scenario on the blockchain, blockchain technology can be used to register the information, property rights and transaction methods of the assets held by each object (such as object A), so as to effectively connect the assets held by object A with the token on the blockchain. The token here can be used as the asset data of object A on the blockchain; of course, the assets held by object A can be stored on the blockchain, that is, the objects held by object A can be stored on the chain. Token is the unique number of the assets held by object A in the blockchain, and a series of subsequent operations such as the transfer and destruction of the assets held by object A can be performed using the token.

[0003] However, when the same object holds multiple asset data of the same type, or different objects hold the same type of asset data, each asset data stored on the chain can correspond to a unique token on the blockchain, and these tokens on the blockchain cannot reflect the correlation between asset data of the same type. That is, all asset data on the blockchain need to be managed independently (for example, the transfer and destruction of a single asset data), resulting in low asset management efficiency on the blockchain. Summary of the invention

[0004] The embodiments of the present application provide an asset management method, device, equipment and medium in a blockchain, which can improve the management efficiency of asset data on the blockchain.

[0005] The present application provides, on the one hand, a method for managing assets in a blockchain, including:

[0006] Obtaining first asset data associated with the first object and first extended configuration information corresponding to the first asset data, creating the first asset data and the first extended configuration information as root node data through an asset creation interface in an asset management contract deployed on the blockchain, and storing the root node data in the blockchain;

[0007] Acquire first participation application information corresponding to the second object, and if the first participation application information satisfies the extension condition indicated by the first extension configuration information, determine that the second object has the participation authority for the first asset data;

[0008] Obtain the second asset data corresponding to the second object with participation authority and the second extended configuration information corresponding to the second asset data, create the second asset data and the second extended configuration information as the first sub-layer node data corresponding to the root node data through the asset creation interface, and store the first sub-layer node data in the blockchain;

[0009] A target hierarchical asset structure associated with the first asset data is constructed based on the root node data and the first sub-layer node data; the node data included in the target hierarchical asset structure belongs to the first asset address registered by the first object on the blockchain.

[0010] An embodiment of the present application provides, on one hand, an asset management device in a blockchain, including:

[0011] A first asset creation module, used to obtain first asset data associated with the first object and first extended configuration information corresponding to the first asset data, create the first asset data and the first extended configuration information as root node data through the asset creation interface in the asset management contract deployed on the blockchain, and store the root node data in the blockchain;

[0012] A participation authority determination module, used to obtain first participation application information corresponding to the second object, and if the first participation application information satisfies the extension condition indicated by the first extension configuration information, determine that the second object has the participation authority for the first asset data;

[0013] A second asset creation module is used to obtain second asset data corresponding to a second object with participation authority and second extended configuration information corresponding to the second asset data, and to create the second asset data and the second extended configuration information as first sub-layer node data corresponding to the root node data through an asset creation interface, and to store the first sub-layer node data in the blockchain;

[0014] A hierarchical structure construction module is used to construct a target hierarchical asset structure associated with the first asset data based on the root node data and the first sub-layer node data; the node data included in the target hierarchical asset structure belongs to the first asset address registered by the first object on the blockchain.

[0015] The first asset creation module creates the first asset data and the first extended configuration information as root node data through the asset creation interface in the asset management contract deployed on the blockchain, and stores the root node data in the blockchain, including:

[0016] Encapsulate the first asset data and the first extended configuration information into the first data block, execute the transaction data in the first data block, call the asset creation interface in the asset management contract deployed on the blockchain, generate the first asset identification information corresponding to the first asset data, and set the parent node identification of the first asset data as the target identification information;

[0017] Create the first asset identification information, the first asset data, the target identification information and the first extended configuration information as root node data;

[0018] If a consensus is reached on the first data block in the blockchain network, the first data block is stored in the blockchain, and a binding relationship between the root node data and the first asset address is established.

[0019] The device further comprises:

[0020] The transaction acquisition module is used to obtain the contract deployment transaction submitted by the business node, verify the digital signature in the contract deployment transaction according to the node public key corresponding to the business node, and obtain the signature verification result corresponding to the contract deployment transaction;

[0021] The signature verification module is used to deploy the business logic corresponding to the asset management contract in the contract deployment transaction in the blockchain if the signature verification result indicates that the verification is passed, and obtain the contract deployment result corresponding to the asset management contract;

[0022] The deployment success module is used to obtain the contract address of the asset management contract in the blockchain if the contract deployment result indicates that the contract deployment is successful; the contract address is used to call the asset management contract deployed on the blockchain.

[0023] The participation authority determination module obtains first participation application information corresponding to the second object, and if the first participation application information satisfies the extension condition indicated by the first extension configuration information, determines that the second object has the participation authority for the first asset data, including:

[0024] Obtain an asset participation request from the second object for the first asset data, call the configuration query interface in the asset management contract according to the asset participation request, query the blockchain for the first extended configuration information corresponding to the first asset data, and notify the second object of the first extended configuration information;

[0025] Acquire first participation application information of the second object for the first asset data, and acquire the extension condition indicated by the first extension configuration information;

[0026] If the first participation application information is consistent with the extension condition indicated by the first extension configuration information, it is determined that the second object has the participation authority for the first asset data.

[0027] The second asset creation module creates the second asset data and the second extended configuration information as the first sub-layer node data corresponding to the root node data through the asset creation interface, and stores the first sub-layer node data in the blockchain, including:

[0028] Encapsulate the second asset data and the second extended configuration information into the second data block, execute the transaction data in the second data block, call the asset creation interface in the asset management contract, generate the second asset identification information corresponding to the second asset data, and set the parent node identifier of the second asset data to the first asset identification information corresponding to the first asset data;

[0029] The second asset identification information, the second asset data, the first asset identification information and the second extended configuration information are created as first sub-layer node data corresponding to the root node data;

[0030] If a consensus is reached on the second data block in the blockchain network, the second data block is stored in the blockchain, and a binding relationship is established between the first sub-layer node data and the second asset address of the second object in the blockchain.

[0031] The device further comprises:

[0032] A configuration update request acquisition module, configured to receive a configuration update request from a first object for first asset data, and acquire target extended configuration information carried in the configuration update request;

[0033] The extended configuration information update module is used to call the extended configuration interface in the asset management contract according to the configuration update request, and update the first extended configuration information corresponding to the root node data in the blockchain to the target extended configuration information.

[0034] The device further comprises:

[0035] An asset destruction request acquisition module is used to receive an asset destruction request from a first object for first asset data, call a sub-node query interface in the asset management contract according to the asset destruction request, and obtain M first sub-layer node data in the target hierarchical asset structure of the first asset identification information carried in the asset destruction request; M is a positive integer;

[0036] The asset data destruction module is used to call the asset destruction interface in the asset management contract, destroy the root node data corresponding to the first asset identification information from the target hierarchical asset structure, determine the M first sub-layer node data in the target hierarchical asset structure as the newly added root node data, and create hierarchical asset data corresponding to each newly added root node in the blockchain.

[0037] The device further comprises:

[0038] An asset transfer request acquisition module, configured to receive an asset transfer request corresponding to a first object, and acquire an identifier of an asset to be transferred carried in the asset transfer request, and a first asset address of the first object on the blockchain;

[0039] The first asset transfer module is used to call the recursive transfer interface in the asset management contract if it is detected that the asset data corresponding to the asset identifier to be transferred is the root node data in the target hierarchical asset structure, and transfer the node data contained in the target hierarchical asset structure from the first asset address to the target asset address indicated by the asset transfer request.

[0040] The device further comprises:

[0041] The second asset transfer module is used to call the asset transfer interface in the asset management contract if it is detected that the asset data corresponding to the asset identifier to be transferred is the leaf node data in the target hierarchical asset structure, and transfer the first sub-layer node data corresponding to the asset identifier to be transferred from the first asset address to the target asset address indicated by the asset transfer request.

[0042] The device further comprises:

[0043] a participation authority determination module, used to obtain second participation application information of a third object for the second asset data, and determine that the third object has participation authority for the second asset data if the second participation application information satisfies the extension condition indicated by the second extension configuration information;

[0044] The third asset creation module is used to obtain the third asset data corresponding to the third object with participation permissions, and the third extended configuration information corresponding to the third asset data, and create the third asset data and the third extended configuration information as the second sub-layer node data corresponding to the first sub-layer node data through the asset creation interface, and add the second sub-layer node data to the target hierarchical asset structure.

[0045] The device further comprises:

[0046] A switching request acquisition module, used to receive a parent node switching request from a third object for third asset data, and acquire third asset identification information carried in the parent node switching request;

[0047] The parent node switching module is used to call the parent node change interface in the asset management contract according to the parent node switching request, and switch the parent node of the second sub-layer node data indicated by the third asset identification information from the first sub-layer node data to the target node data indicated by the parent node switching request.

[0048] On one hand, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory is connected to the processor, 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 provided in the above aspect of the embodiment of the present application.

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

[0050] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or 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 performs the method provided in the above aspect.

[0051] In the embodiment of the present application, the first asset data and the first extended configuration information associated with the first object can be obtained, and the first asset data and the first extended configuration information can be created as root node data by calling the asset creation interface in the asset management contract, that is, the first asset data held by the first object can be stored in the blockchain as the root node data in the hierarchical asset structure; if the second object agrees with the first extended configuration information corresponding to the first asset data, the first sub-layer node data can continue to be created under the root node data, and the root node data and the first sub-layer node data can constitute the target hierarchical asset structure, and the node data in the target hierarchical asset structure can continue to be expanded, and each asset data in the target hierarchical asset structure can be attributed to the first asset address of the first object on the blockchain. In other words, the target hierarchical asset structure can be used to present the association relationship between multiple asset data held by each object, and the management of multiple asset data can be achieved through one root node data, which can improve the management efficiency of asset data on the blockchain. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0053] Figure 1 It is a structural diagram of a network architecture provided by an embodiment of the present application;

[0054] Figure 2 This is a schematic diagram of creating a hierarchical asset structure in a blockchain provided by an embodiment of the present application;

[0055] Figure 3 This is a flowchart of an asset management method in a blockchain provided by an embodiment of the present application. Figure 1 ;

[0056] Figure 4 This is a flowchart of an asset management method in a blockchain provided by an embodiment of the present application. Figure 2 ;

[0057] Figure 5 This is a schematic diagram of the deployment of an asset management contract in a blockchain provided by an embodiment of the present application;

[0058] Figure 6 This is a schematic diagram of a process for creating asset data in a blockchain provided by an embodiment of the present application;

[0059] Figure 7 This is a schematic diagram of a process for destroying asset data in a blockchain provided by an embodiment of the present application;

[0060] Figure 8 This is a schematic diagram of the transfer process of asset data in a blockchain provided by an embodiment of the present application;

[0061] Fig. 9 It is a structural diagram of an asset management device in a blockchain provided by an embodiment of the present application;

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

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

[0064] For ease of understanding, the basic technologies involved in the embodiments of the present application are described below:

[0065] Blockchain: Blockchain is a decentralized infrastructure with distributed storage characteristics. Specifically, it is a data structure that organizes data blocks in a time sequence in a manner similar to a linked list. It can safely store data that has a sequential relationship and can be verified within the system, and cryptographically ensure that the data has the characteristics of traceability, non-repudiation, non-tampering, non-forgeability, and decentralization. The underlying blockchain platform can include processing modules such as basic services, smart contracts, and operation management. Among them, the basic service module is deployed on all blockchain node devices to verify the validity of business requests and record the valid requests to the storage after consensus is reached. For a new business request, the basic service first performs interface adaptation analysis and authentication processing (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). After encryption, it is transmitted to the shared ledger in a complete and consistent manner (network communication) and recorded and stored; the smart contract module is responsible for the registration and release of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a certain programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. At the same time, it also provides the function of contract upgrade and cancellation; the operation management module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarms, management network conditions, management node equipment health status, etc.

[0066] Smart contract: A computer protocol designed to disseminate, verify or execute contracts in an information-based manner. Smart contracts can be understood as computer programs that run on a distributed ledger (i.e., blockchain) with preset rules, states, and conditional responses, and can encapsulate, verify, and execute complex behaviors of distributed nodes to complete information exchange, value transfer, and asset management. Based on the distributed architecture and consensus algorithm of blockchain, smart contracts allow users who do not trust each other to complete transactions without the need for any third-party trusted intermediary or authority; at the same time, digital smart contracts can be flexibly embedded in various tangible or intangible assets, transactions, and data to achieve active or passive asset and information management and control, and gradually build programmable smart assets and systems.

[0067] On-chain assets (i.e. asset data on the blockchain): Mapping the information, rights and interests of traditional asset data to the blockchain. In simple terms, it is to use blockchain technology to register the information, property rights and transaction methods of asset data held by each object, so as to effectively connect the asset data held by each object with the token on the blockchain. Among them, common on-chain assets can include evidence, such as the hash value of asset data s1 can be put on the chain, then the hash value of asset data s1 can be considered as an on-chain asset.

[0068] Transaction: A form of blockchain execution. The transaction contains the private key signature of the initiator, which can ensure the authenticity, non-forgeability and non-repudiation of the transaction content.

[0069] See also Figure 1 , Figure 1 1 is a schematic diagram of a network architecture provided in an embodiment of the present application; the network architecture may include a terminal device 10a and a blockchain network. The terminal device 10a may be an electronic device outside the blockchain network, such as Figure 1 The number of terminal devices in the network architecture shown is for illustration only. The number of terminal devices in the network architecture can be one or more, and this application does not limit the number of terminal devices in the network architecture; the blockchain network can be composed of multiple blockchain nodes, and this application does not limit the number of blockchain nodes contained in the blockchain network. Figure 1 Taking 6 blockchain nodes as an example, each blockchain node in the blockchain network is networked in a P2P (Peer-to-Peer, peer-to-peer network) manner, and blockchain nodes can communicate with each other according to the P2P protocol. Each blockchain node in the blockchain network follows the broadcast mechanism and consensus mechanism to jointly ensure that the data on the blockchain cannot be tampered with or forged, and at the same time realize the decentralization and trustlessness of the blockchain.

[0070] in, Figure 1 The blockchain nodes in the blockchain network shown can be called node devices, which can be terminal devices or servers, and this application does not limit this. Terminal devices can include but are not limited to: PC (Personal Computer, personal computer), smart phones, tablet computers, laptops, PDAs, mobile Internet devices (mobile internet device, MID), wearable devices (such as smart watches, smart bracelets, etc.), smart voice interaction devices, smart home appliances (such as smart TVs, etc.), vehicle-mounted devices, aircraft and other electronic devices, and this application does not limit this. The server can be an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platforms and other basic cloud computing services, and this application does not limit this.

[0071] like Figure 1In the network architecture shown, the blockchain maintained by the blockchain nodes in the blockchain network can be composed of a series of blocks, which can also be called data blocks; after a block is created, it needs to perform consensus processing in the blockchain network. When the consensus of the block succeeds, the block is allowed to be added to the blockchain; the blocks in the blockchain can be connected into a chain structure in the order of creation timestamps from small to large. Blockchain is a distributed ledger, and the information data contained in each block on the blockchain is the ledger data of the distributed ledger.

[0072] It should be noted that if Figure 1 The terminal device 10a in the network architecture shown or the node device in the blockchain network can run a decentralized application (also referred to as a blockchain application), which can be a blockchain applet or a decentralized application client. This application does not limit the type of decentralized application. Among them, the decentralized application can provide an asset platform. Since each object cannot directly interact with the blockchain maintained by the blockchain nodes in the blockchain network, each object can interact with the blockchain through the asset platform provided by the decentralized application. For example, when the first object wants to store the first asset data it holds on the chain, it can submit the first asset data to the asset platform, and the asset platform will complete the chain processing of the first asset data.

[0073] The embodiment of the present application can associate the asset data with hierarchical relationship on the blockchain through the asset management contract pre-deployed on the blockchain, and construct a hierarchical asset structure containing these asset data with hierarchical relationship. The hierarchical asset structure can be a tree-type hierarchical asset model, or it can be other hierarchical asset models with hierarchical structure, and the present application does not limit this. Among them, the embodiment of the present application mainly relates to asset data with hierarchical relationship, such as comment data in forum scenes, organizational structure data in group organizations (for example, enterprise groups) scenes, commodity category data in e-commerce scenes, etc., and the present application does not limit the type of asset data. For example, if the asset data involved in the embodiment of the present application is comment data in the forum scene, the root node data in the hierarchical asset structure can be a topic published by any object (for example, the first object), and the child node data in the hierarchical asset structure can be any object (for example, the second object, the third object, etc.) The comment data published on the topic. If the asset data involved in the embodiment of the present application is the organizational structure data in the group organization scenario, the root node data in the hierarchical asset structure can be the corporate group headquarters, and the sub-node data in the hierarchical asset structure can be the subsidiary enterprises / divisions / departments under the corporate group headquarters. If the asset data involved in the embodiment of the present application can be the commodity category (type) data in the e-commerce scenario, the root node data in the hierarchical asset structure can be the first-level commodity category (for example, clothing, electrical appliances, beauty and other categories), and the sub-node data in the hierarchical asset structure can be the second-level, third-level, etc. commodity categories (for example, women's clothing and men's clothing under the clothing category, jackets, sweatshirts, shirts, skirts, dresses, pants, etc. under the women's clothing category, suits, shirts, jeans, etc. under the men's clothing category).

[0074] For ease of understanding, the present application embodiment takes the hierarchical asset structure as an example to describe the tree-type hierarchical structure, see Figure 2 , Figure 2 This is a schematic diagram of creating a hierarchical asset structure in a blockchain provided by an embodiment of the present application. Figure 2 The terminal device 20a shown may be an electronic device used by object A, the terminal device 20d may be an electronic device used by object B, the terminal device 20e may be an electronic device used by object N, and so on. Figure 2 The terminal device 20a, the terminal device 20d and the terminal device 20e shown in the figure can all be Figure 1 The external device of the blockchain network shown, and the terminal device 20a, the terminal device 20d and the terminal device 20e can all run the asset platform; Figure 2 The blockchain node 20b shown can be Figure 1 Any blockchain node in the blockchain network shown.

[0075] If object A wants to build a root node in a hierarchical asset structure on the blockchain (the root node represents an asset data on the blockchain, and for ease of understanding, the root node can also be called root node data), then object A can submit asset data s1 in the asset platform run by the terminal device 20a, and set extended configuration information p1 for the asset data s1. Among them, the extended configuration information p1 is used to specify whether to allow expansion on the asset data s1 node, the conditions that need to be met to expand a new node on the asset data s1 (for example, the fees that need to be paid, etc.), the parent node to which the asset data s1 is attached, and other information; if the asset data s1 is the root node data, then the parent node of the asset data s1 can be set to the target character (for example, the character "0"). The asset platform running in the terminal device 20a can submit the asset data s1 and the extended configuration information p1 to the blockchain node 20b in the form of a transaction, and the blockchain node 20b can call the asset management contract pre-deployed on the blockchain to create the asset data s1 and the extended configuration information p1 as the root node data in the hierarchical asset structure 20c.

[0076] If object B wants to expand new node data on the root node data corresponding to asset data s1, object B can query the extended configuration information p1 corresponding to the root node data of the hierarchical asset structure 20c from the blockchain through the asset platform running in the terminal device 20d, and return the extended configuration information p1 to object B. If object B confirms that the extended configuration information p1 is within its tolerance, it can perform corresponding operations (for example, pay corresponding fees, etc.) according to the extended configuration information p1, and then submit asset data s2 in the asset platform running in the terminal device 20d, and set extended configuration information p2 for the asset data s2. Among them, the extended configuration information p2 is used to specify whether to allow expansion on the node of asset data s2, the conditions that need to be met to expand a new node on the asset data s2 (for example, the fees that need to be paid, etc.), the parent node to which the asset data s1 is attached (such as the root node data in the hierarchical asset structure 20c), and other information. The asset platform running in the terminal device 20d can submit the asset data s2 and the extended configuration information p2 to the blockchain node 20b in the form of a transaction. The blockchain node 20b can call the asset management contract pre-deployed on the blockchain to create the asset data s2 and the extended configuration information p2 as the next layer of node data d1 of the root node data of the hierarchical asset structure 20c. In other words, the node data d1 is the child node data under the root node data of the hierarchical asset structure 20c.

[0077] It is understandable that other objects can continue to expand new node data on the root node data of the hierarchical asset structure 20c, or can continue to expand new node data on the node data d1 of the hierarchical asset structure 20c, such as continuing to expand node data d2, node data d3, etc. on the root node data of the hierarchical asset structure 20c, continuing to expand node data d4 on the node data d1 of the hierarchical asset structure 20c, continuing to expand node data d5 and node data d6 on the node data d3 of the hierarchical asset structure 20c, etc. If object N wants to expand new node data on the node data d6 of the hierarchical asset structure 20c, then object N can query the extended configuration information p6 corresponding to the node data d6 of the hierarchical asset structure 20c from the blockchain through the asset platform running in the terminal device 20e, and return the extended configuration information p6 to object N. If the object N confirms that the extended configuration information p6 is within its tolerance, it can perform corresponding operations (e.g., pay corresponding fees, etc.) according to the extended configuration information p6, and then submit the asset data sn in the asset platform run by the terminal device 20e, and set the extended configuration information pn for the asset data sn. The extended configuration information pn is used to specify whether to allow expansion on the asset data sn node, the conditions that need to be met to expand a new node on the asset data sn (e.g., the fees that need to be paid, etc.), the parent node to which the asset data sn is attached (e.g., the node data d6 in the hierarchical asset structure 20c), and other information. The asset platform running in the terminal device 20e can submit the asset data sn and the extended configuration information pn to the blockchain node 20b in the form of a transaction. The blockchain node 20b can call the asset management contract pre-deployed on the blockchain to create the asset data sn and the extended configuration information pn as the next layer of node data dn of the node data d6 of the hierarchical asset structure 20c. In other words, the node data dn is the child node data under the node data d6 of the hierarchical asset structure 20c.

[0078] Figure 2As shown, the node data in the hierarchical asset structure 20c have an associated nature, and the tree structure allows the asset data held by each object to be a node in the hierarchical asset structure 20c. The root node data of the hierarchical asset structure 20c can have child node data (other node data in the hierarchical asset structure 20c except the root node data), and the child node data can continue to expand or have brother nodes (for example, the node data d1, node data d2 and node data d3 of the hierarchical asset structure 20c are brother nodes to each other). It can be understood that all node data in the hierarchical asset structure 20c can be attributed to the asset address of object A in the blockchain. At the same time, node data d1 and the child node data of node data d1 (inflow, node data d4) can also be attributed to the asset address of object B in the blockchain, and node data dn can also be attributed to the asset address of object N in the blockchain, etc.; all child node data in the hierarchical asset structure 20c can be uniformly managed through the root node data of the hierarchical asset structure 20c, which can improve the management efficiency of asset data in the blockchain.

[0079] See also Figure 3 , Figure 3 This is a flowchart of an asset management method in a blockchain provided by an embodiment of the present application. Figure 1 It can be understood that the method can be executed by a node device, such as Figure 1 Any blockchain node in the blockchain network shown, or an external device that can interact with the blockchain network, is not limited in this application. Figure 3 As shown, the asset management method in the blockchain may include at least the following steps S101 to S104:

[0080] Step S101, obtain the first asset data associated with the first object, and the first extended configuration information corresponding to the first asset data, create the first asset data and the first extended configuration information as root node data through the asset creation interface in the asset management contract deployed on the blockchain, and store the root node data in the blockchain.

[0081] In the embodiment of the present application, a hierarchical asset structure on the blockchain can be created through a smart contract (for example, Figure 2 The hierarchical asset structure 20c in the corresponding embodiment can be used to manage the asset data with hierarchical relationships stored in the blockchain. In the embodiment of the present application, the smart contract for managing asset data with hierarchical relationships can be called an asset management contract. The hierarchical asset structure involved in the embodiment of the present application can be a tree structure, or a graph structure, etc., and the types of hierarchical asset structures are not given one by one here. The business node (also called the business party) can be connected through an external device (for example, Figure 1The terminal device 10a shown in FIG. 10a) or the blockchain node (such as Figure 1 The asset platform running in the blockchain (any blockchain node in the blockchain network shown) deploys the asset management contract on the blockchain. After the asset management contract is successfully deployed in the blockchain, the contract address of the asset management contract in the blockchain can be obtained. The contract address can be stored locally in the asset platform, or the contract address can be notified to each object that has completed identity registration in the asset platform. It is understandable that the asset platform needs to use the contract address of the asset management contract in the blockchain when calling the asset management contract, that is, the contract address can be used to call the asset management contract deployed on the blockchain.

[0082] It is understandable that the asset management contract can be a piece of business code, which can run at the bottom of the blockchain. After the business node successfully deploys it to the blockchain, when the transaction that needs to call the asset management contract is obtained later, each blockchain node in the blockchain network can execute the business code in the asset management contract by consensus, and each blockchain node can get the same result. In other words, the asset management contract can be a computer program code, and developers can use smart contract high-level languages ​​to write it. The compiler can compile the contract written in the high-level language into bytecode in the virtual machine of the blockchain node, and the virtual machine can be used to interpret and execute the bytecode in the smart contract. Smart contract high-level languages ​​can include but are not limited to Solidity (a smart contract programming language), Serpent (a smart contract programming language), and LLL (a smart contract programming language). For example, developers can use Solidity to write asset management contracts, and use the compiler to compile the asset management contract written in Solidity into virtual machine bytecode, and then deploy the compiled virtual machine bytecode in the blockchain.

[0083] After the asset management contract is successfully deployed on the blockchain, if the first object (e.g. Figure 2 In the corresponding embodiment, object A) wants to create a root node (also referred to as root node data) of a hierarchical asset structure on a blockchain. Then, the first object uploads the first asset data (for example, Figure 2 The asset data s1 in the corresponding embodiment) and set the first extended configuration information for the first asset data in the asset platform (for example, Figure 2The corresponding embodiment of the extended configuration information p1). Among them, the first asset data held by the first object can be a topic published by the first object in the forum, or can be the enterprise group information of the first object as the legal representative, or can be the store type of the first object in the e-commerce platform, etc. The embodiment of the present application does not limit the type of the first asset data. The first extended configuration information may include the access extension rule corresponding to the first asset data, through which it can be specified whether to allow the extension of new node data on the first asset data, and the extension conditions that need to be met when the new node data is extended on the first asset data; the extension condition can be the fee to be paid for the extension of new node data on the first asset data, or can be the time limit to be reached for the extension of new node data on the first asset data (for example, when the first asset data is a topic in the forum, users who have registered in the forum for 1 year can post comments), etc., or other conditions can be set based on actual needs, and the types of extension conditions are not given one by one here. It can be understood that different extension configuration information can be set for asset data in different scenarios, and multiple extension conditions can be set for asset data in the same scenario, and this application does not limit this.

[0084] The node device can obtain the first asset data held by the first object and the first extended configuration information set by the first object for the first asset data through the asset platform. The first asset data and the first extended configuration information can be uploaded to the chain by the asset platform running in the node device. For example, the first asset data and the first extended configuration information can be encapsulated into a first data block. During the consensus process of the first data block, the transaction data in the first data block can be executed, and the asset creation interface in the asset management contract deployed on the blockchain can be called to generate the first asset identification information corresponding to the first asset data, and the parent node identification of the first asset data can be set as the target identification information; then the first asset identification information, the first asset data, the target identification information and the first extended configuration information can be created as root node data. If the first data block reaches a consensus in the blockchain network, the first data block can be stored in the blockchain, and a binding relationship between the root node data and the first asset address registered by the first object on the blockchain can be established, that is, the root node data stored on the blockchain belongs to the first object and is stored in the first asset address registered by the first object on the blockchain. If the first data block does not reach a consensus in the blockchain (i.e., the consensus fails), the first data block cannot be stored in the blockchain temporarily, and a prompt message of the failure of the consensus of the first data block can be notified to each consensus node in the blockchain network, so that the blockchain nodes in the blockchain network can repackage the first data block.

[0085] In one or more embodiments, the first asset data and the first extended configuration information corresponding to the first object can be encapsulated as a transaction tx1, and then the transaction tx1 can be synchronized in the blockchain network, so that each blockchain node in the blockchain network can obtain the transaction tx1, and the blockchain node in the blockchain network can encapsulate the transaction tx1 into the first data block. The block generation node corresponding to the first data block (which can be understood as the blockchain node that generates the first data block in the blockchain network) can broadcast the first data block in the blockchain network, so that the blockchain nodes participating in the consensus process in the blockchain network (which can be called consensus nodes) can obtain the first data block and perform consensus processing on the obtained first data block. In the process of consensus processing of the first data block by the consensus node in the blockchain network, each consensus node can execute each transaction in the first data block (including the aforementioned transaction tx1) and obtain the execution result of each transaction. It can be understood that when executing transaction tx1, the consensus node can call the asset management contract pre-deployed on the blockchain, and specifically call the asset creation interface in the asset management contract to create root node data for the first asset address of the first object on the blockchain.

[0086] Among them, the asset creation interface can be an interface method for maintaining asset data with a hierarchical relationship contained in the asset management contract. For example, the asset creation interface can be represented as a mint interface, which can be used to create asset data on the blockchain (i.e., create on-chain assets). After the digital asset is successfully on the chain, it can be sent to the asset address of the corresponding object on the blockchain. The on-chain asset created by calling the mint interface can be represented in the form of mint (to, tokenid, data, parentTokenid, open, pay); wherein the field to in the mint interface method can represent the asset address pre-registered on the blockchain for receiving this asset data; the field tokenid can represent the unique number of the digital asset on the blockchain (the unique number here can be called asset identification information); the field data can represent the detailed data of the on-chain asset data; the field parentTokenid can represent the parent node identifier of the asset data currently on the chain; the field open can indicate whether node expansion is allowed on the asset data currently on the chain; the field pay can indicate the expansion conditions that need to be met when node expansion is performed on the asset data currently on the chain (for example, fees to be paid, etc.). For example, the root node data on the aforementioned blockchain can be created by calling the mint(to, tokenid, data, parentTokenid, open, pay) interface in the asset management contract. For the root node data, the field to in the mint interface can be configured as the first asset address pre-registered by the first object on the blockchain; the field tokenid can be configured as the first asset identification information corresponding to the first asset data; the field data can be configured as the detailed data of the first asset data; the field parentTokenid can be configured as the target identification information (for example, the character "0"), which is used to indicate that the first asset data is the root node in the hierarchical asset structure and is not attached to any node; the field open can be configured to allow node expansion on the current first asset data; and the field pay can be configured as the fee to be paid when performing node expansion on the first asset data.

[0087] It is understandable that the asset platform run by the node device can call the extended configuration interface in the asset management contract to set the first extended configuration information for the first asset data; the extended configuration interface can be represented as the setMintRule interface method, which can be used by the parent node in the hierarchical asset structure to modify the extended conditions (for example, the fees to be paid) when extending new node data on its own node data at any time. The logic of the extended configuration interface can verify the owner's authority of the calling object, and specifically can verify the owner's authority of the asset identification information corresponding to the asset data held by the calling object. The extended configuration information set by calling the setMintRule interface can be represented by setMintRule(tokenid,open,pay); for example, the first extended configuration information can refer to the access extension rules set for the first asset data by calling the setMintRule(tokenid,open,pay) interface.

[0088] Step S102, obtaining first participation application information corresponding to the second object, and if the first participation application information meets the extension condition indicated by the first extension configuration information, determining that the second object has the participation authority for the first asset data.

[0089] In the embodiment of the present application, after the node device creates the root node data for the first object on the blockchain through the asset platform, other objects can perform node expansion on the root node data. For example, if the second object wants to perform node expansion on the root node data, the second object can initiate an asset participation request in the asset platform run by the node device, and the asset platform run by the node device can obtain the asset participation request of the second object for the root node data, that is, the asset participation request of the second object for the first asset data. According to the asset participation request, the configuration query interface in the asset management contract can be called, and the first extended configuration information corresponding to the first asset data can be queried in the blockchain through the configuration query interface, and the first extended configuration information is notified to the second object.

[0090] If the second object recognizes the first extended configuration information, the first participation application information can be entered into the asset platform run by the node device. At this time, the asset platform can obtain the first participation application information of the second object for the first asset data, and obtain the extension conditions indicated by the first extended configuration information. If the first participation application information is consistent with the extension conditions indicated by the first extended configuration information, it can be determined that the second object has the right to participate in the first asset data, and the participation right indicates that the second object can perform node expansion under the root node data. Among them, the first participation application information can refer to the application information entered by the second object in order to expand the node on the root node data. If the extension conditions indicated by the first extended configuration information include the need to pay a certain fee when expanding the node on the root node data, then the first participation application information can include the fees actually paid by the second object.

[0091] It is understandable that the configuration query interface in the asset management contract can be expressed as a getMintRule interface method, which can be used to indicate whether an object can add node data when it wants to expand its own on-chain assets on the node data in the hierarchical asset data. For example, the first extended configuration information can be queried through the getMintRule (tokenid) interface, and the field tokenid in the getMintRule (tokenid) interface can be used to indicate which asset data needs to be queried. For example, when the field tokenid in the getMintRule (tokenid) interface is configured as the first asset identification information, it means that the first extended configuration information corresponding to the first asset data needs to be queried from the blockchain.

[0092] Step S103, obtain the second asset data corresponding to the second object with participation authority, and the second extended configuration information corresponding to the second asset data, and create the second asset data and the second extended configuration information as the first sub-layer node data corresponding to the root node data through the asset creation interface, and store the first sub-layer node data in the blockchain.

[0093] In the embodiment of the present application, after the second object has the participation authority for the root node data, the second object can upload the second asset data in the asset platform (for example, Figure 2 The asset data s2 in the corresponding embodiment) and the asset platform calls the extended configuration interface (such as the setMintRule interface) in the asset management contract to set the second extended configuration information for the second asset data (for example, Figure 2The corresponding extended configuration information p2 in the embodiment). When the first asset data is a topic published by the first object in a forum, the second asset data may be a comment on the topic published by the second object; when the first asset data is information about a corporate group represented by the first object as a legal person, the asset data may be information about a sub-group under the corporate group information, etc. The second extended configuration information may include an access extension rule corresponding to the second asset data, through which it may be specified whether it is allowed to extend new node data on the second asset data, and information such as extension conditions that need to be met when extending new node data on the second asset data.

[0094] The node device can obtain the second asset data corresponding to the second object and the second extended configuration information corresponding to the second asset data through the asset platform. The second asset data and the second extended configuration information can be uploaded to the chain by the asset platform running in the node device. For example, the second asset data and the second extended configuration information can be encapsulated into a second data block. During the consensus process of the second data block, the transaction data in the second data block can be executed, and the asset creation interface (such as the mint interface) in the asset management contract deployed on the blockchain can be called to generate the second asset identification information corresponding to the second asset data, and the parent node identification of the second asset data is set to the first asset identification information corresponding to the first asset data; and then the second asset identification information, the second asset data, the first asset identification information and the second extended configuration information can be created as the first sub-layer node data corresponding to the root node data. If the second data block reaches a consensus in the blockchain network, the second data block can be stored in the blockchain, and a binding relationship between the first sub-layer node data and the second asset address registered by the second object on the blockchain is established, that is, the first sub-layer node data stored on the blockchain belongs to the second object and is stored in the second asset address registered by the second object on the blockchain. If the second data block does not reach a consensus in the blockchain (i.e., the consensus fails), the second data block cannot be stored in the blockchain temporarily, and each consensus node in the blockchain network can be notified of a prompt message that the second data block consensus fails, so that the blockchain nodes in the blockchain network can repackage the second data block. The first sub-layer node data may refer to the sub-node data with the root node data as the parent node in the hierarchical asset structure, i.e., the sub-node data of the next layer of the root node data.

[0095] It should be noted that the on-chain processing process of the second asset data and the second extended configuration information corresponding to the second object is similar to the on-chain processing process of the first asset data and the first extended configuration information corresponding to the aforementioned first object. Please refer to the relevant description in the aforementioned step S101, and no further details will be given here.

[0096] Step S104, constructing a target hierarchical asset structure associated with the first asset data according to the root node data and the first sub-layer node data; the node data included in the target hierarchical asset structure belongs to the first asset address registered by the first object on the blockchain.

[0097] In the embodiment of the present application, the first object can create root node data on the blockchain by calling the asset management contract, and other objects can extend new node data on the root node data, such as the second object can extend new node data (i.e., the first sub-layer node data) on the root node data, then the hierarchical asset structure containing the root node data and the first sub-layer node data can be called the target hierarchical asset structure. In other words, the root node data in the target hierarchical asset structure can be the first asset data corresponding to the first object, and the first sub-layer node data can be the sub-node data in the target hierarchical asset structure. All node data (including root node data and sub-node data) in the target hierarchical asset structure can be attributed to the first asset address registered by the first object on the blockchain. Of course, each parent node data in the target hierarchical asset structure and the sub-node data corresponding to the parent node data can be attributed to the asset address registered by the parent node on the blockchain. For example, the first sub-layer node data can be attributed to the first asset address of the first object on the blockchain, or to the second asset address of the second object on the blockchain, and the sub-node data corresponding to the first sub-layer node data can be attributed to the second asset address.

[0098] It is understandable that other objects (for example, third objects, etc.) can continue to expand new node data on the root node data. At this time, the node data can be called the brother node data of the first sub-layer node data, and can also continue to expand new node data on the first sub-layer node data. For example, if the third object wants to expand new node data on the first sub-layer node data, then the third object can initiate an asset participation request in the asset platform run by the node device. The asset platform can obtain the asset participation request of the third object for the root node data, that is, the asset participation request of the third object for the second asset data. According to the asset participation request at this time, the configuration query interface (getMintRule interface method) in the asset management contract can be called. Through the configuration query interface, the second extended configuration information corresponding to the second asset data can be queried in the blockchain, and the second extended configuration information can be notified to the third object.

[0099] If the third object recognizes the second extended configuration information, the second participation application information can be input into the asset platform run by the node device. At this time, the asset platform can obtain the second participation application information of the third object for the second asset data. If the second participation application information meets the extension condition indicated by the second extended configuration information, it can be determined that the third object has the participation authority for the second asset data. The participation authority at this time indicates that the third object can expand new node data on the first sub-layer node data. Among them, the second participation application information can refer to the application information input by the third object in order to expand new node data on the first sub-layer node data.

[0100] After the third object has the right to participate in the first sub-layer node data, the third object can upload the third asset data in the asset platform, and call the extended configuration interface (such as the setMintRule interface) in the asset management contract through the asset platform to set the third extended configuration information for the third asset data, and create the third asset data and the third extended configuration information as the second sub-layer node data corresponding to the first sub-layer node data through the asset creation interface (such as the mint interface) in the asset management contract, and add the second sub-layer node data to the target hierarchical asset structure. Among them, the second sub-layer node data can be the child node data of the leaf node data in the target hierarchical asset structure. The on-chain processing process of the third asset data and the third extended configuration information corresponding to the third object is similar to the on-chain processing process of the first asset data and the first extended configuration information corresponding to the aforementioned first object. Please refer to the relevant description in the aforementioned step S101, which will not be repeated here.

[0101] It should be noted that, for each node data in the target hierarchical asset structure, its corresponding parent node data can be changed, such as the parent node data of certain node data can be changed directly in the target hierarchical asset structure, or the node data in the target hierarchical asset structure can be attached to the node data in another hierarchical asset structure, etc. In other words, the parent node data of the node data can be changed in the target hierarchical asset structure where the node data is located, or the parent node data of the node data can be changed between different hierarchical asset structures, and this application does not limit this. For ease of understanding, the following description takes the example of changing the parent node data of the node data in the target hierarchical asset structure where the node data is located.

[0102] For example, if a third object wants to change the parent node data of the second sub-layer node data in the target hierarchical asset structure, the third object can initiate a parent node switching request in the asset platform. At this time, the asset platform can receive the parent node switching request of the third object for the third asset data, and obtain the third asset identification information carried by the parent node switching request; call the parent node change interface in the asset management contract according to the parent node switching request, and switch the parent node of the second sub-layer node data indicated by the third asset identification information from the first sub-layer node data to the target node data indicated by the parent node switching request. Among them, the parent node change interface in the asset management contract can be expressed as the changeParentTokenid interface method, which can be used to switch the parent node data of the node data in the target hierarchical asset structure; for example, the parent node data of the second sub-layer node data can be changed in the form of changeParentTokenid (tokenid, parentTokenid). At this time, the field tokenid in the changeParentTokenid interface method can be set to the third asset identifier corresponding to the second sub-layer node data whose parent node data needs to be changed, and the field parentTokenid can be set to the asset identification information corresponding to the parent node data after the second sub-layer node data is changed, that is, the asset identification information corresponding to the aforementioned target node data. By calling the parent node change interface in the asset management contract, multiple scattered asset data can be attached to the same root node data, so that the root node data and all the child node data under the root node data can be packaged and transferred together later.

[0103] In the embodiment of the present application, the first asset data and the first extended configuration information associated with the first object can be obtained, and the first asset data and the first extended configuration information can be created as root node data by calling the asset creation interface in the asset management contract, that is, the first asset data held by the first object can be stored in the blockchain as the root node data in the hierarchical asset structure; if the second object agrees with the first extended configuration information corresponding to the first asset data, the first sub-layer node data can continue to be created under the root node data, and the root node data and the first sub-layer node data can constitute the target hierarchical asset structure, and the node data in the target hierarchical asset structure can continue to be expanded, and each asset data in the target hierarchical asset structure can be attributed to the first asset address of the first object on the blockchain. In other words, the target hierarchical asset structure can be used to present the association relationship between multiple asset data held by each object, and the management of multiple asset data can be achieved through one root node data, which can improve the management efficiency of asset data on the blockchain.

[0104] See also Figure 4 , Figure 4 This is a flowchart of an asset management method in a blockchain provided by an embodiment of the present application. Figure 2 It can be understood that the method can be executed by a node device, such as Figure 1 Any blockchain node in the blockchain network shown, or an external device that can interact with the blockchain network, is not limited in this application. Figure 4 As shown, the asset management method in the blockchain may include at least the following steps S201 to S210:

[0105] Step S201, obtain the contract deployment transaction submitted by the business node, verify the digital signature in the contract deployment transaction according to the node public key corresponding to the business node, and obtain the signature verification result corresponding to the contract deployment transaction.

[0106] In an embodiment of the present application, in order to manage asset data with a hierarchical relationship on the blockchain, an asset management contract can be deployed on the blockchain, and a hierarchical asset structure can be created on the blockchain through the asset management contract. The created hierarchical asset structure can be used to manage asset data with a hierarchical relationship. After the asset management contract is written, the business node can initiate a contract deployment request through the asset platform running in the node device. After the asset platform obtains the contract deployment request, it can encapsulate the asset management contract carried by the contract deployment request into a contract deployment transaction, and notify the business node to sign the contract deployment transaction, and the signed contract deployment transaction can be uploaded to the blockchain network. For example, the business node can use its own node private key to sign the contract deployment transaction, generate a digital signature corresponding to the business node, and the contract deployment transaction carrying the digital signature of the business node can be uploaded to the blockchain network by the asset platform.

[0107] After receiving the contract deployment transaction, the blockchain node in the blockchain network (the blockchain node at this time can be called a node device) can use the node public key corresponding to the business node to verify the digital signature in the contract deployment transaction and obtain the signature verification result corresponding to the contract deployment transaction. If the signature verification result indicates that the verification is passed, it can be determined that the contract deployment transaction meets the legality conditions, that is, the contract deployment transaction can be considered a valid transaction; if the signature verification result indicates that the verification is not passed, it can be determined that the contract deployment transaction does not meet the legality conditions, and the contract deployment transaction is set as an invalid transaction, and then the contract deployment transaction can be deleted, and the business node is notified to resubmit the contract deployment transaction.

[0108] Among them, the verification process of the digital signature in the contract deployment transaction may include: using the node public key corresponding to the business node to decrypt the digital signature in the contract deployment transaction to obtain the first summary information corresponding to the contract deployment transaction; using the hash algorithm to perform a hash operation on the contract deployment transaction to obtain the second summary information (hash value) corresponding to the contract deployment transaction; if the first summary information is the same as the second summary information, it means that the contract deployment transaction is a valid transaction, that is, the signature verification result corresponding to the contract deployment transaction indicates that the verification is passed; if the first summary information is different from the second summary information, it means that the contract deployment transaction is an invalid transaction (the contract deployment transaction may be maliciously tampered with during the transmission process), that is, the signature verification result corresponding to the contract deployment transaction indicates that the verification is not passed, and then the contract deployment transaction can be discarded. It should be noted that the hash algorithm used by the node device may refer to the hash algorithm used by the business node when signing the contract deployment transaction. The hash algorithm may include but is not limited to: SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512, and this application does not limit this.

[0109] Step S202: If the signature verification result indicates that the verification is passed, the business logic corresponding to the asset management contract in the contract deployment transaction is deployed in the blockchain to obtain the contract deployment result corresponding to the asset management contract; if the contract deployment result indicates that the contract deployment is successful, the contract address of the asset management contract in the blockchain is obtained.

[0110] Specifically, if the signature verification result indicates that the verification is passed, the contract deployment transaction can be cached to the transaction pool of the current node device, and multiple transactions can be selected from the transaction pool for packaging to generate a third data block containing the contract deployment transaction. In the consensus process of the third data block, all transaction data in the third data block can be executed, including the contract deployment transaction in the third data block. When executing the asset management contract corresponding to the contract deployment exchange, the business logic corresponding to the asset management contract in the contract deployment transaction can be deployed to obtain the contract deployment result corresponding to the asset management contract.

[0111] Among them, the above-mentioned contract deployment result can be used to indicate that the contract deployment is successful, or can be used to indicate that the contract deployment fails; if the third data block containing the contract deployment transaction reaches a consensus in the blockchain network, the third data block can be stored in the blockchain, and the contract deployment result corresponding to the asset management contract is generated. The contract deployment result at this time is used to indicate that the contract deployment is successful, and then the contract address of the asset management contract in the blockchain can be obtained. The contract address can be returned to the asset platform for each object to view and save, and the contract address can be used to call the asset management contract deployed in the blockchain; if the third data block containing the contract deployment transaction does not reach a consensus in the blockchain network, the third data block cannot be temporarily stored in the blockchain, and the contract deployment result corresponding to the asset management contract is generated. The contract deployment result at this time is used to indicate that the contract deployment fails.

[0112] See also Figure 5 , Figure 5 This is a schematic diagram of the deployment of an asset management contract in a blockchain provided by an embodiment of the present application. Figure 5 The terminal device 30a shown can be a business node that submits a contract deployment transaction, or can be an electronic device corresponding to a business node. After completing the writing of the asset management contract, the written asset management contract can be uploaded to the terminal device 30a, and a contract deployment request for the asset management contract can be initiated; the terminal device 30a can obtain the contract deployment request and encapsulate the contract deployment request as a transaction, and the transaction at this time can be called a contract deployment transaction. The terminal device 30a can notify the business node to digitally sign the contract deployment transaction, obtain a contract deployment transaction carrying a digital signature, and submit the contract deployment transaction to the blockchain node 30b in the blockchain network.

[0113] After receiving the contract deployment transaction, the blockchain node 30b can first use the node public key corresponding to the business node to verify the correctness of the digital signature carried by the contract deployment transaction. If the digital signature carried by the contract deployment transaction is wrong, then the blockchain node 30b can determine that the contract deployment transaction verification has not passed, that is, the contract deployment transaction is an invalid transaction, and return the verification failure prompt information to the terminal device 30a. The verification failure prompt information is used to notify the business node to re-initiate the contract deployment request for the asset management contract. If the digital signature carried by the contract deployment transaction is correct, then the blockchain node 30d can determine that the contract deployment transaction verification has passed, that is, the contract deployment transaction is a valid transaction, and the verified contract deployment transaction can be encapsulated into block X.

[0114] Among them, the block header of block X (X is a positive integer) may include the summary value corresponding to the block with the maximum block height in the blockchain, such as the summary value of block X-1, and may also include the summary value of the current block X and the Merkle root of the current block X; the block body of block X may include the complete information data of the current block X, and the complete information data here may include the asset management contract submitted by the business node. The blockchain node 30b may broadcast the newly generated block X in the blockchain network, that is, it may send block X to all consensus nodes participating in the consensus process in the blockchain network, so that the consensus nodes in the blockchain network may perform consensus verification on block X. When block X passes the consensus, block X may be added to the blockchain for formal chaining, indicating that the asset management contract is successfully deployed on the blockchain, and the contract address of the asset management contract on the blockchain may be returned, and the contract address may be used to call the asset management contract deployed on the blockchain.

[0115] Step S203, obtain the first asset data associated with the first object, and the first extended configuration information corresponding to the first asset data, create the first asset data and the first extended configuration information as root node data through the asset creation interface in the asset management contract deployed on the blockchain, and store the root node data in the blockchain.

[0116] Step S204, obtaining first participation application information corresponding to the second object, and if the first participation application information meets the extension condition indicated by the first extension configuration information, determining that the second object has the participation authority for the first asset data.

[0117] Step S205, obtain the second asset data corresponding to the second object with participation authority, and the second extended configuration information corresponding to the second asset data, and create the second asset data and the second extended configuration information as the first sub-layer node data corresponding to the root node data through the asset creation interface, and store the first sub-layer node data in the blockchain.

[0118] Step S206, constructing a target hierarchical asset structure associated with the first asset data according to the root node data and the first sub-layer node data; the node data included in the target hierarchical asset structure belongs to the first asset address registered by the first object on the blockchain.

[0119] The specific implementation of the above steps S203 to S206 can be found in the above Figure 3 The relevant descriptions of steps S101 to S104 in the corresponding embodiment will not be repeated here.

[0120] Step S207: receiving a configuration update request from the first object for the first asset data, and obtaining target extended configuration information carried in the configuration update request.

[0121] Specifically, the extended configuration information corresponding to each node data in the target hierarchical asset structure can be changed. For example, when calling the extended configuration interface (such as the setMintRule interface) to set the extended configuration information (or it can be called the access extension rule), the extended configuration information under different conditions can be set, such as the node data can use the extended configuration information p3 within six months after creation, the extended configuration information p4 can be used within six months to one year after creation, and the extended configuration information p5 can be used one year after creation, etc.; or the extended configuration information can be modified subsequently according to the quality of the subordinate node data of the node data. For example, the more high-quality node data attached to the node data, the greater the value of other objects attached, so the extension conditions in the extended configuration information can be increased (such as the fee to be paid when extending new node data on the node data can be changed). The embodiment of the present application does not limit the method of changing the extended configuration information.

[0122] In one or more embodiments, if there are more and more high-quality nodes attached to the root node data, the first object can change the first extended configuration information corresponding to the root node data, such as initiating a configuration update request on the asset platform running in the node device. After obtaining the configuration update request of the first object for the root node data, the asset platform can set new extended configuration information by calling the extended configuration interface (such as the setMintRule interface) in the asset management contract. The set new extended configuration information can be called the target extended configuration information. When the asset platform calls the extended configuration interface in the asset management contract, it can first verify whether the first object has the authority to modify the first extended configuration information of the root node data, such as verifying whether the root node data belongs to the first asset address of the first object on the blockchain. If the first object has the authority to modify the first extended configuration information, the target extended configuration information corresponding to the root node data can be obtained by resetting the fields tokenid, open, and pay in setMintRule (tokenid, open, pay).

[0123] Step S208: Call the extended configuration interface in the asset management contract according to the configuration update request, and update the first extended configuration information corresponding to the root node data in the blockchain to the target extended configuration information.

[0124] Specifically, after setting the target extended configuration information through the extended configuration interface (such as the setMintRule interface) in the asset management contract, the newly set target extended configuration information can be stored in the blockchain. After successful storage on the blockchain, the first extended configuration information corresponding to the root node data can be updated to the target extended configuration information. In other words, whether it is the first extended configuration information of the root node data or the changed target extended configuration information, both can be processed on the chain, so as to facilitate the subsequent tracing of the data of each node in the target hierarchical asset structure, thereby improving the openness and transparency of the data of each node in the target hierarchical asset structure.

[0125] Step S209: receiving an asset transfer request corresponding to the first object, obtaining the asset identifier to be transferred carried in the asset transfer request, and the first asset address of the first object on the blockchain.

[0126] Specifically, each node data in the target hierarchical asset structure can be transferred as an asset, such as an object holding a node data can transfer it to other objects. If the first object wants to transfer the asset data it holds to other objects, the first object can initiate an asset transfer request in the asset platform. After the asset platform obtains the asset transfer request, it can obtain the asset identifier to be transferred carried by the asset transfer request, as well as the first asset address of the first object on the blockchain. Among them, the asset identifier to be transferred can be used to represent the asset identification information corresponding to the asset data that the first object wants to transfer, and the first asset address can refer to the address of the asset data stored by the first object on the blockchain.

[0127] Step S210: If it is detected that the asset data corresponding to the asset identifier to be transferred is the root node data in the target hierarchical asset structure, the recursive transfer interface in the asset management contract is called to transfer the node data contained in the target hierarchical asset structure from the first asset address to the target asset address indicated by the asset transfer request.

[0128] Specifically, if it is detected that the asset data corresponding to the asset identifier to be transferred is the root node data in the target hierarchical asset structure, then it can be considered that the first object wants to transfer the root node data and the lower-level child node data of the root node data, and the recursive transfer interface in the asset management contract can be called. Based on the recursive transfer interface, the node data contained in the target hierarchical asset structure is transferred from the first asset address to the target asset address indicated by the asset transfer request. Of course, each node data in the target hierarchical asset structure transferred to the target asset address still belongs to the asset address that created the node data, such as the leaf node data in the target hierarchical asset structure still belongs to the second asset address of the second object on the blockchain. If it is detected that the asset data corresponding to the asset identifier to be transferred is the leaf node data in the target hierarchical asset structure, the asset transfer interface in the asset management contract can be called, and based on the asset transfer interface, the leaf node data corresponding to the asset identifier to be transferred is transferred from the first asset address to the target asset address indicated by the asset transfer request.

[0129] It should be noted that the root node confirmation interface in the asset management contract can be called to query whether the current asset identification information is the root node data. The root node confirmation interface here can be expressed as the isRoot(tokenid) interface. When the field tokenid in the isRoot(tokenid) interface is set to the asset identifier to be transferred, the isRoot(tokenid) interface can be used to query whether the node data corresponding to the asset identifier to be transferred is the root node data. In addition, by checking whether the asset identifier to be transferred is the root node data, it can be determined whether the asset data currently to be transferred is all the node data under the same root node data, or only a certain node data in the target hierarchical asset structure. If the node data corresponding to the asset identifier to be transferred is the root node data, then the asset data to be transferred is all the node data in the target hierarchical asset structure; if the node data corresponding to the asset identifier to be transferred is not the root node data, then the asset data to be transferred is the node data corresponding to the asset identifier to be transferred. Optionally, during the transfer of node data in the target hierarchical asset structure, it is also possible to determine whether the asset data currently to be transferred refers to all node data under the same root node data, or only a certain node data in the target hierarchical asset structure is transferred, based on the transfer interface type in the asset management contract. For example, if the asset transfer interface in the asset management contract is called, it means that only a certain node data in the target hierarchical asset structure is transferred; if the recursive transfer interface in the asset management contract is called, it means that all node data in the target hierarchical asset structure is transferred.

[0130] Among them, the asset transfer interface can be a transfer(tokenid,to) interface method, and the logic of the transfer interface can verify whether the asset data corresponding to the asset identifier to be transferred belongs to the first asset address of the first object on the blockchain; the field tokenid in transfer(tokenid,to) can be set to the identifier information to be transferred, and the field to can be set to the target asset address to receive the asset data. If the logic of the transfer interface verifies that the node data corresponding to the asset identifier to be transferred belongs to the first asset address, the node data corresponding to the asset identifier to be transferred can be transferred to the target asset address indicated by the asset transfer request; if the logic of the transfer interface verifies that the node data corresponding to the asset identifier to be transferred does not belong to the first asset address, the node data corresponding to the asset identifier to be transferred cannot be transferred, that is, the transfer operation fails.

[0131] The recursive transfer interface can be a transferAll(rootTokenid,to) interface method. The logic of the transferAll interface can verify whether the node data corresponding to the current asset identifier to be transferred and all node data attached to the node data belong to the first asset address, and traverse the node data corresponding to the asset identifier to be transferred and all node data attached to the node data and transfer them to the target asset address; the field rootTokenid in the transferAll(rootTokenid,to) interface method can be set to the identification information to be transferred, and the field to can be set to the target asset address to receive the asset data. If the logic of the transferAll interface verifies that the node data corresponding to the asset identifier to be transferred and all the node data attached to the node data belong to the first asset address, then the node data corresponding to the asset identifier to be transferred and all the node data attached to the node data can be transferred to the target asset address indicated by the asset transfer request, that is, a batch of node data can be transferred at one time, which can improve the transfer efficiency of asset data on the blockchain; if the logic of the transferAll interface verifies that the node data corresponding to the asset identifier to be transferred and all the node data attached to the node data do not belong to the first asset address, then the node data corresponding to the asset identifier to be transferred and all the node data attached to the node data cannot be transferred, that is, the transfer operation fails.

[0132] In one or more embodiments, each object that has created node data in the target hierarchical asset structure may choose to continue to retain the node data or to destroy the node data. If the first object wants to destroy the node data that it has created in the target hierarchical asset structure, the first object may initiate an asset destruction request in the asset platform. After the asset platform receives the asset destruction request from the first object for the first asset data, it may call the sub-node query interface in the asset management contract according to the asset destruction request to obtain the first asset identification information carried by the asset destruction request in the target hierarchical asset structure. The M first sub-layer node data, M is a positive integer, such as M can be 1, 2, ...; and then the asset destruction interface in the asset management contract may be called to destroy the root node data corresponding to the first asset identification information from the target hierarchical asset structure, determine the M first sub-layer node data in the target hierarchical asset structure as the newly added root node data, and create hierarchical asset data corresponding to each newly added root node in the blockchain.

[0133] Among them, the child node query interface can be expressed as the childrenOf(parentTokenid) interface method, for example: when the field parentTokenid in the childrenOf(parentTokenid) interface is set to the first asset identification information, the asset identification information array list of all child node data contained in the root node data corresponding to the first asset identification information can be obtained by calling the childrenCountOf(parentTokenid) interface. Optionally, the number of all child node data attached to a certain node data can also be obtained by calling the child node quantity query interface in the asset management contract. The child node quantity query interface can be expressed as the childrenCountOf(parentTokenid) interface method, for example: when the field parentTokenid (parent node identification information) in the childrenCountOf(parentTokenid) interface is set to the first asset identification information, the number of child node data contained in the root node data corresponding to the first asset identification information can be queried by calling the childrenCountOf(parentTokenid) interface. The asset destruction interface can be expressed as the burnTokenid(tokenid) interface method. When the field tokenid in the burnTokenid interface is set to the first asset identification information, the root node data corresponding to the first asset identification information can be destroyed through the burnTokenid interface, and then the child node data attached to the root node data corresponding to the first asset identification information can be determined as the new root node data.

[0134] It should be noted that the asset management contract may also include a parent node query interface and an asset owner query interface. Among them, the parent node query interface can be expressed as a parentOf(tokenid) interface method. For example, when the field tokenid in the parentOf(tokenid) interface is set to the first asset identification information, the parentOf interface can be used to query whether the asset data corresponding to the first asset identification information is the root node data. The asset owner query interface can be expressed as an isOwnOf(tokenid) interface method. For example, when the field tokenid in the isOwnOf interface is set to the first asset identification information, the isOwnOf interface can be used to determine whether the node data corresponding to the first asset identification information belongs to the specified asset address (for example, the first asset address).

[0135] It is understandable that the following takes the first asset data held by the first object as an example of a topic published by the first object in a forum scenario, and combines the attached Figures 6 to 8 The creation, destruction and transfer process of asset data in the blockchain is described. Each object can store an asset data on the blockchain every time it publishes a topic in the application client (for example, video client, communication client, game client, etc.), that is, the object creates an asset data on the blockchain, and the topic published by the object can be used as the root node data on the blockchain. Under this topic, you can control whether it is open to comments by other objects, set whether other objects' comments are charged, and other objects can comment on this topic for free or for a fee. The above information can be set in the extended configuration information corresponding to the asset data. In the forum scenario, if object A creates asset data (such as topics or comments), the ownership of the asset data can belong to object A. The topic can be used as the parent node data in the target hierarchical asset structure, and the comment can be used as the child node data in the target hierarchical asset structure. All node data in the target hierarchical asset structure can belong to object A, and these topics and comments can be stored on the blockchain.

[0136] The on-chain assets created by each object can belong to itself. The object that creates the on-chain assets can choose whether to destroy or transfer the asset data it holds. When the asset data created by each object opens the comment rights to other objects for free, other objects can continue to expand new node data under the node data they created, so that high-quality content can be generated. For example, a comment is particularly valuable, which makes the parent node data appreciate. At this time, some objects feel that if they continue to expand new node data under the parent node data, the parent node data and the node data attached to the parent node data can be used as a set, and the parent node data can continue to increase its value. At this time, the extended configuration information of the parent node data can be dynamically adjusted. Only objects that meet the newly set extended configuration information can continue to expand new node data under the parent node data. If each node data in the target hierarchical asset structure feels that the current parent node data cannot increase the value of its own node data, it can also choose to transfer the node data it holds to other parent node data.

[0137] All node data in the target hierarchical asset structure can be completely stored in the blockchain, and the ownership on the blockchain can be attributed to the asset address of the corresponding object on the blockchain. Only the private key of the corresponding object can operate the node data in the target hierarchical asset structure. The object to which each node data in the target hierarchical asset structure belongs can destroy its own asset data, and the sub-node data mounted under its own node data can become the new root node data when destroyed; among them, the node data in the target hierarchical asset structure and the hierarchical asset structure corresponding to the new root node data can be managed by the pre-deployed asset management contract. It can be understood that a business can deploy an asset management contract, such as topics and comments in a forum scenario can deploy an asset management contract, and corporate group information and sub-group information in an enterprise organization scenario can deploy another asset management contract, etc. This application does not limit the specific functional limitations of the asset management contract; all node data in the target hierarchical asset structure can be maintained through its corresponding asset management contract, which helps to isolate the asset data on the blockchain. Publicity and trustworthiness.

[0138] See also Figure 6 , Figure 6 This is a schematic diagram of the creation process of asset data in a blockchain provided by an embodiment of the present application; Figure 6 As shown, the process of creating asset data in the blockchain may include the following steps S301 to S307:

[0139] S301, the first object publishes a topic (first asset data), creates root node data, sets access extension rules (first extension configuration information), and submits it to the asset platform.

[0140] Specifically, the first object can publish a topic (the first asset data corresponding to the first object) in the application client, and create the topic published by the first object as root node data, and set access extension rules for the root node data (which can be the first extension configuration information), and then the root node data and the access extension rules can be submitted to the asset platform running in the node device.

[0141] S302, calling the asset creation interface to create an on-chain asset for the topic published by the first object.

[0142] Specifically, the asset platform can process the topics published by the first object and the access extension rules on the chain on behalf of the first object. For example, it can call the asset creation interface (such as the mint interface method) in the asset management contract to create root node data for the first object on the blockchain, that is, create on-chain assets for the first object.

[0143] S303: The second object posts a comment and queries the access extension rules corresponding to the root node data.

[0144] Specifically, after the first object creates the root node data on the blockchain, other objects can post comments under the topic published by the first object, and attach their comments to the root node data created by the first object. For example, if the second object needs to post a comment under the topic published by the first object, the second object can query the access extension rules (first extension configuration information) corresponding to the root node data through the asset platform running in the node device.

[0145] S304, querying the access extension rules corresponding to the root node data on behalf of the user.

[0146] Specifically, the asset platform can call the configuration query interface (getMintRule interface method) in the asset management contract instead of the second object, and query the access extension rules (first extension configuration information) corresponding to the root node data from the blockchain.

[0147] S305, returning the access extension rule corresponding to the root node data.

[0148] S306: Agree to the access extension rule corresponding to the root node data.

[0149] S307, calling the asset creation interface to attach the comment posted by the second object to the topic created by the first object.

[0150] Specifically, the asset platform can return the access extension rules corresponding to the queried root node data to the second object. If the second object feels that the extension conditions indicated by the access extension rules corresponding to the root node data are within its tolerance range, it can agree to the access extension rules corresponding to the root node data, such as entering the first participation application information associated with the extension conditions indicated by the access extension rules (for example, the fees actually paid by the second object, etc.). Further, if the first participation application information is consistent with the extension conditions indicated by the access extension rules corresponding to the root node data, the asset creation interface (such as the mint interface method) in the asset management contract can be called to create the first sub-layer node data corresponding to the root node data for the second object on the blockchain, that is, to create on-chain assets for the second object, and to attach the on-chain assets corresponding to the second object to the topic (i.e., root node data) published by the first object. The second object can also set access extension rules for the first sub-layer node data. Similarly, the third object can also make comments and attach its comments to the topic published by the first object; the fourth object can also make comments and attach its comments to the comments published by the second object, etc.

[0151] See also Figure 7 , Figure 7 This is a schematic diagram of the destruction process of asset data in a blockchain provided by an embodiment of the present application; Figure 7 As shown, the destruction process of asset data in the blockchain may include the following steps S401 to S404:

[0152] S401, the first object deletes the topic it published, destroys the root node data, and submits it to the asset platform.

[0153] Specifically, if the first object deletes the topic it published, the first object needs to destroy the root node data in the target hierarchical asset structure and initiate an asset destruction request in the asset platform, that is, submit a request to delete the root node data to the asset platform.

[0154] S402, calling a sub-node query interface to query the comments and their owners attached to the topic published by the first object.

[0155] Specifically, after receiving the asset destruction request for the root node data from the first object, the asset platform can call the child node query interface (such as the childrenOf interface method) in the asset management contract. Based on the childrenOf interface, the comments attached to the topic (root node data) published by the first object and the owner of each comment (that is, the object to which each comment belongs) can be queried.

[0156] S403, notifying the first object that the root node data it holds has been destroyed, and the first sub-layer node data of the second object becomes the new root node data.

[0157] Specifically, the asset platform can notify the objects to which all comments attached to the topic belong (for example, the second object) that the first object has destroyed the topic it posted. At this time, the node data (such as the first sub-layer node data) created by the second object in the target hierarchical asset structure is called the new root node data, that is, the first sub-layer node data created by the second object has no parent node data.

[0158] S404, calling the asset destruction interface to destroy the root node data of the first object on the blockchain.

[0159] Specifically, after the asset platform queries the comments and comment owners under the topic published by the first object by calling the childrenOf interface, it can submit an asset destruction transaction to the blockchain network on behalf of the first object. When executing the asset destruction transaction, the asset destruction interface in the asset management contract (such as the burnTokenid interface method) can be called to destroy the root node data of the first object in the blockchain (the topic published by the first object) based on the burnTokenid interface.

[0160] It is understandable that after the root node data (topic) created by the first object is stored in the blockchain, the root node data can belong to the first object; that is, the first object has the authority to destroy the root node data. Here, additional logic can be added to the burnTokenid interface method, for example: the additional logic can be used to indicate that when the root node data is destroyed, the fees paid for the node data attached to the root node data need to be paid. When the first object destroys the root node data it created, it needs to submit a transaction to the blockchain network. The transaction at this time can be called an asset destruction transaction. The asset destruction transaction can indicate that the asset management contract needs to destroy the root node data of the first object on the blockchain. Before destroying the root node data, the childrenOf interface can be called to query the comments attached to the topic (root node data) published by the first object and the owner of each comment, and notify the comment owners (the objects that published these comments). Regardless of whether the notification is successful, the burnTokenid interface method will eventually be called to destroy the root node data of the first object on the blockchain.

[0161] See also Figure 8 , Figure 8 Schematic diagram of the transfer process of asset data in a blockchain provided by an embodiment of the present application; Figure 8 As shown, the asset data transfer process in the blockchain may include the following steps S501 to S504:

[0162] S501, the first object creates or transfers the asset data it holds and submits it to the asset platform.

[0163] Specifically, the hierarchical asset structure can support transferring the root node data and all node data attached to the root node data to other objects by only transmitting the root node data. For example, the first object can create or transfer asset data and submit the created or transferred asset data to the asset platform.

[0164] S502, calling the asset creation interface to create node data for the first object on the blockchain, and calling the parent node change interface to package the asset data held by the first object and attach them to the same root node data.

[0165] S503, the first object can batch-package and transfer the asset data attached to the same root node data at one time.

[0166] Specifically, the asset platform can call the asset creation interface (such as the mint interface method) in the asset management contract to create node data for the first object in the blockchain. The asset platform can also call the parent node change interface (such as the changeParentTokenid interface) in the asset management contract to move the asset data it holds and attach the asset data it holds to the same root node data. In other words, the digital assets held by the first object can be transferred to the same hierarchical asset structure (for example, the target hierarchical asset structure) by calling the changeParentTokenid interface, and then all node data in the target hierarchical asset structure can be transferred to other objects at one time.

[0167] S504, calling the recursive transfer interface to package and transfer the asset data under the same root node data to the target asset address at one time.

[0168] Specifically, the recursive transfer interface in the asset management contract (such as the transferAll interface method) can be called. When implementing the logic of the transferAll interface, the permissions of all node data in the target hierarchical asset structure can be verified (such as whether the first object has the transfer permission of the node data in the target hierarchical asset structure, or whether the node data in the target hierarchical asset structure belongs to the asset address of the first object on the blockchain). After the verification is passed, the asset address to which the node data in the target hierarchical asset structure belongs can be modified (for example, the first asset address to which the node data in the target hierarchical asset structure belongs can be changed to the target asset address) to achieve the effect of transferring to other objects.

[0169] In an embodiment of the present application, the first asset data and the first extended configuration information associated with the first object can be obtained, and by calling the asset creation interface in the asset management contract, the first asset data and the first extended configuration information can be created as root node data, that is, the first asset data held by the first object can be stored in the blockchain as the root node data in the hierarchical asset structure; if the second object agrees to the first extended configuration information corresponding to the first asset data, the first sub-layer node data can continue to be created under the root node data, and the root node data and the first sub-layer node data can constitute the target hierarchical asset structure. The node data in the target hierarchical asset structure can continue to be expanded, and each asset data in the target hierarchical asset structure can be attributed to the first asset address of the first object on the blockchain. In other words, the target hierarchical asset structure can be used to present the association relationship between multiple asset data held by each object. Through one root node data, the management of multiple asset data can be realized, which can improve the management efficiency of asset data on the blockchain; the blockchain supports each object to build its own root node data, and the asset data held by it can be uniformly packaged and attached to the same root node data. Through the recursive transfer interface provided by the asset management contract, all asset data attached to the root node data can be transferred at one time, that is, the asset data held by each object can be associated and packaged according to the hierarchical structure, and assets can be gathered for easy management, which can improve the efficiency of asset transfer on the blockchain; for the node data of different levels contained in the target hierarchical asset structure, the permissions they have (for example, voting weights) can also be different, and the classified management of node data of different levels can be realized, which not only retains the differences between node data, but also reflects the association relationship between node data in scenarios with organizational needs.

[0170] It is understandable that in the specific implementation of the present application, account information (for example, asset address) of users (for example, the first object, the second object, and the third object, etc.) may be involved. When the above embodiments of the present application are applied to specific products or technologies, the user's 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.

[0171] See also Fig. 9 , Fig. 9 It is a structural diagram of an asset management device in a blockchain provided by an embodiment of the present application. It can be understood that the asset management device 1 in the blockchain can be applied to any blockchain node in the blockchain network, or can be applied to an external device of the blockchain network (which can interact with the blockchain network), and the present application does not limit this; Fig. 9As shown, the asset management device 1 in the blockchain may include: a first asset creation module 101, a participation authority determination module 102, a second asset creation module 103, and a hierarchical structure construction module 104;

[0172] The first asset creation module 101 is used to obtain first asset data associated with the first object and first extended configuration information corresponding to the first asset data, create the first asset data and the first extended configuration information as root node data through the asset creation interface in the asset management contract deployed on the blockchain, and store the root node data in the blockchain;

[0173] The participation authority determination module 102 is used to obtain the first participation application information corresponding to the second object, and if the first participation application information satisfies the extension condition indicated by the first extension configuration information, determine that the second object has the participation authority for the first asset data;

[0174] The second asset creation module 103 is used to obtain the second asset data corresponding to the second object with participation authority and the second extended configuration information corresponding to the second asset data, and create the second asset data and the second extended configuration information as the first sub-layer node data corresponding to the root node data through the asset creation interface, and store the first sub-layer node data in the blockchain;

[0175] The hierarchical structure construction module 104 is used to construct a target hierarchical asset structure associated with the first asset data based on the root node data and the first sub-layer node data; the node data included in the target hierarchical asset structure belongs to the first asset address registered by the first object on the blockchain.

[0176] In one or more embodiments, the first asset creation module 101 creates the first asset data and the first extended configuration information as root node data through the asset creation interface in the asset management contract deployed on the blockchain, and stores the root node data in the blockchain, including:

[0177] Encapsulate the first asset data and the first extended configuration information into the first data block, execute the transaction data in the first data block, call the asset creation interface in the asset management contract deployed on the blockchain, generate the first asset identification information corresponding to the first asset data, and set the parent node identification of the first asset data as the target identification information;

[0178] Create the first asset identification information, the first asset data, the target identification information and the first extended configuration information as root node data;

[0179] If a consensus is reached on the first data block in the blockchain network, the first data block is stored in the blockchain, and a binding relationship between the root node data and the first asset address is established.

[0180] In one or more embodiments, the participation permission determination module 102 obtains first participation application information corresponding to the second object, and if the first participation application information satisfies the extension condition indicated by the first extension configuration information, determines that the second object has the participation permission for the first asset data, including:

[0181] Obtain an asset participation request from the second object for the first asset data, call the configuration query interface in the asset management contract according to the asset participation request, query the blockchain for the first extended configuration information corresponding to the first asset data, and notify the second object of the first extended configuration information;

[0182] Acquire first participation application information of the second object for the first asset data, and acquire the extension condition indicated by the first extension configuration information;

[0183] If the first participation application information is consistent with the extension condition indicated by the first extension configuration information, it is determined that the second object has the participation authority for the first asset data.

[0184] In one or more embodiments, the second asset creation module 103 creates the second asset data and the second extended configuration information as the first sub-layer node data corresponding to the root node data through the asset creation interface, and stores the first sub-layer node data in the blockchain, including:

[0185] Encapsulate the second asset data and the second extended configuration information into the second data block, execute the transaction data in the second data block, call the asset creation interface in the asset management contract, generate the second asset identification information corresponding to the second asset data, and set the parent node identifier of the second asset data to the first asset identification information corresponding to the first asset data;

[0186] The second asset identification information, the second asset data, the first asset identification information and the second extended configuration information are created as first sub-layer node data corresponding to the root node data;

[0187] If a consensus is reached on the second data block in the blockchain network, the second data block is stored in the blockchain, and a binding relationship is established between the first sub-layer node data and the second asset address of the second object in the blockchain.

[0188] The specific functional implementation of the first asset creation module 101, the participation authority determination module 102, the second asset creation module 103, and the hierarchical structure construction module 104 can be found in Figure 3 Steps S101 to S104 in the corresponding embodiment will not be described in detail here.

[0189] In one or more embodiments, the asset management device 1 in the blockchain may further include: a transaction acquisition module 105, a signature verification module 106, a deployment success module 107, a configuration update request acquisition module 108, an extended configuration information update module 109, an asset destruction request acquisition module 110, an asset data destruction module 111, an asset transfer request acquisition module 112, a first asset transfer module 113, a second asset transfer module 114, a participation authority determination module 115, a third asset creation module 116, a switching request acquisition module 117, and a parent node switching module 118;

[0190] The transaction acquisition module 105 is used to obtain the contract deployment transaction submitted by the business node, verify the digital signature in the contract deployment transaction according to the node public key corresponding to the business node, and obtain the signature verification result corresponding to the contract deployment transaction;

[0191] The signature verification module 106 is used to deploy the business logic corresponding to the asset management contract in the contract deployment transaction in the blockchain if the signature verification result indicates that the verification is passed, and obtain the contract deployment result corresponding to the asset management contract;

[0192] The deployment success module 107 is used to obtain the contract address of the asset management contract in the blockchain if the contract deployment result indicates that the contract deployment is successful; the contract address is used to call the asset management contract deployed on the blockchain.

[0193] The configuration update request acquisition module 108 is used to receive a configuration update request from a first object for first asset data, and acquire target extended configuration information carried in the configuration update request;

[0194] The extended configuration information updating module 109 is used to call the extended configuration interface in the asset management contract according to the configuration update request, and update the first extended configuration information corresponding to the root node data in the blockchain to the target extended configuration information.

[0195] The asset destruction request acquisition module 110 is used to receive an asset destruction request from a first object for first asset data, and call a sub-node query interface in the asset management contract according to the asset destruction request to obtain M first sub-layer node data in the target hierarchical asset structure of the first asset identification information carried in the asset destruction request; M is a positive integer;

[0196] The asset data destruction module 111 is used to call the asset destruction interface in the asset management contract, destroy the root node data corresponding to the first asset identification information from the target hierarchical asset structure, determine the M first sub-layer node data in the target hierarchical asset structure as the newly added root node data, and create hierarchical asset data corresponding to each newly added root node in the blockchain.

[0197] The asset transfer request acquisition module 112 is used to receive the asset transfer request corresponding to the first object, and obtain the asset identifier to be transferred carried by the asset transfer request, and the first asset address of the first object on the blockchain;

[0198] The first asset transfer module 113 is used to call the recursive transfer interface in the asset management contract if it is detected that the asset data corresponding to the asset identifier to be transferred is the root node data in the target hierarchical asset structure, and transfer the node data contained in the target hierarchical asset structure from the first asset address to the target asset address indicated by the asset transfer request.

[0199] The second asset transfer module 114 is used to call the asset transfer interface in the asset management contract if it is detected that the asset data corresponding to the asset identifier to be transferred is the leaf node data in the target hierarchical asset structure, and transfer the first sub-layer node data corresponding to the asset identifier to be transferred from the first asset address to the target asset address indicated by the asset transfer request.

[0200] The participation authority determination module 115 is used to obtain the second participation application information of the third object for the second asset data, and if the second participation application information satisfies the extension condition indicated by the second extension configuration information, determine that the third object has the participation authority for the second asset data;

[0201] The third asset creation module 116 is used to obtain the third asset data corresponding to the third object with participation authority, and the third extended configuration information corresponding to the third asset data, and create the third asset data and the third extended configuration information as the second sub-layer node data corresponding to the first sub-layer node data through the asset creation interface, and add the second sub-layer node data to the target hierarchical asset structure.

[0202] The switching request obtaining module 117 is used to receive a parent node switching request of a third object for third asset data, and obtain the third asset identification information carried in the parent node switching request;

[0203] The parent node switching module 118 is used to call the parent node change interface in the asset management contract according to the parent node switching request, and switch the parent node of the second sub-layer node data indicated by the third asset identification information from the first sub-layer node data to the target node data indicated by the parent node switching request.

[0204] Among them, the transaction acquisition module 105, the signature verification module 106, the deployment success module 107, the configuration update request acquisition module 108, the extended configuration information update module 109, the asset destruction request acquisition module 110, the asset data destruction module 111, the asset transfer request acquisition module 112, the first asset transfer module 113, the second asset transfer module 114, the participation authority determination module 115, the third asset creation module 116, the switching request acquisition module 117, and the parent node switching module 118 can be referred to in the above for the specific functional implementation methods. Figure 3 and Figure 4 The relevant descriptions in the corresponding embodiments will not be repeated here.

[0205] According to the embodiment of the present application, Fig. 9 The various modules in the asset management device 1 in the blockchain shown can be separately or completely combined into one or several other modules to constitute, or one (some) of the modules can be further divided into multiple smaller functional units to constitute, 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 one module can also be implemented by multiple modules, or the functions of multiple modules can be implemented by one module. In other embodiments of the present application, the asset management device 1 in the blockchain may also include other modules. In practical applications, these functions can also be implemented with the assistance of other modules, and can be implemented by the collaboration of multiple modules.

[0206] In an embodiment of the present application, the first asset data and the first extended configuration information associated with the first object can be obtained, and by calling the asset creation interface in the asset management contract, the first asset data and the first extended configuration information can be created as root node data, that is, the first asset data held by the first object can be stored in the blockchain as the root node data in the hierarchical asset structure; if the second object agrees to the first extended configuration information corresponding to the first asset data, the first sub-layer node data can continue to be created under the root node data, and the root node data and the first sub-layer node data can constitute the target hierarchical asset structure. The node data in the target hierarchical asset structure can continue to be expanded, and each asset data in the target hierarchical asset structure can be attributed to the first asset address of the first object on the blockchain. In other words, the target hierarchical asset structure can be used to present the association relationship between multiple asset data held by each object. Through one root node data, the management of multiple asset data can be realized, which can improve the management efficiency of asset data on the blockchain; the blockchain supports each object to build its own root node data, and the asset data held by it can be uniformly packaged and attached to the same root node data. Through the recursive transfer interface provided by the asset management contract, all asset data attached to the root node data can be transferred at one time, that is, the asset data held by each object can be associated and packaged according to the hierarchical structure, and assets can be gathered for easy management, which can improve the efficiency of asset transfer on the blockchain; for the node data of different levels contained in the target hierarchical asset structure, the permissions they have (for example, voting weights) can also be different, and the classified management of node data of different levels can be realized, which not only retains the differences between node data, but also reflects the association relationship between node data in scenarios with organizational needs.

[0207] See also Fig.10 , Fig.10 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.10As shown, the computer device 1000 can be a user terminal or a server, which will not be limited here. For ease of understanding, this application takes the computer device as a user terminal as an example. The computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Fig.10 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0208] The network interface 1004 in the computer device 1000 can also provide a network communication function, and the optional user interface 1003 can also include a display screen (Display) and a keyboard (Keyboard). Fig.10 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0209] Obtaining first asset data associated with the first object and first extended configuration information corresponding to the first asset data, creating the first asset data and the first extended configuration information as root node data through an asset creation interface in an asset management contract deployed on the blockchain, and storing the root node data in the blockchain;

[0210] Acquire first participation application information corresponding to the second object, and if the first participation application information satisfies the extension condition indicated by the first extension configuration information, determine that the second object has the participation authority for the first asset data;

[0211] Obtain the second asset data corresponding to the second object with participation authority and the second extended configuration information corresponding to the second asset data, create the second asset data and the second extended configuration information as the first sub-layer node data corresponding to the root node data through the asset creation interface, and store the first sub-layer node data in the blockchain;

[0212] A target hierarchical asset structure associated with the first asset data is constructed based on the root node data and the first sub-layer node data; the node data included in the target hierarchical asset structure belongs to the first asset address registered by the first object on the blockchain.

[0213] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 , Figure 4 , Figures 6 to 8 The description of the asset management method in the blockchain in any corresponding embodiment can also be performed as described above. Fig. 9 The description of the asset management device 1 in the blockchain in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here.

[0214] 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 asset management device 1 in the blockchain mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above-mentioned Figure 3 , Figure 4 , Figures 6 to 8 The description of the asset management method in the blockchain in any corresponding embodiment will not be repeated here. 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 on a computing device for execution, 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 form a blockchain network.

[0215] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, which may include computer instructions, and the computer instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions, so that the computer device executes the above Figure 3 , Figure 4 , Figures 6 to 8 The description of the asset management method in the blockchain in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0216] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0217] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

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

[0219] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the computer 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. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0220] 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 method for asset management in a blockchain, characterized in that: include: Acquire first asset data associated with a first object, and first extended configuration information corresponding to the first asset data, create the first asset data and the first extended configuration information as root node data through an asset creation interface in an asset management contract deployed on a blockchain, and store the root node data in the blockchain; Acquire first participation application information corresponding to the second object, and if the first participation application information satisfies the extension condition indicated by the first extension configuration information, determine that the second object has the participation authority for the first asset data; Obtaining second asset data corresponding to a second object with participation authority and second extended configuration information corresponding to the second asset data, creating the second asset data and the second extended configuration information as first sub-layer node data corresponding to the root node data through the asset creation interface, and storing the first sub-layer node data in the blockchain; A target hierarchical asset structure associated with the first asset data is constructed based on the root node data and the first sub-layer node data; the node data included in the target hierarchical asset structure belongs to the first asset address registered by the first object on the blockchain.

2. The method according to claim 1, characterized in that: The step of creating the first asset data and the first extended configuration information as root node data through an asset creation interface in an asset management contract deployed on the blockchain, and storing the root node data in the blockchain includes: Encapsulate the first asset data and the first extended configuration information into a first data block, execute the transaction data in the first data block, call the asset creation interface in the asset management contract deployed on the blockchain, generate the first asset identification information corresponding to the first asset data, and set the parent node identification of the first asset data as the target identification information; Creating the first asset identification information, the first asset data, the target identification information, and the first extended configuration information as root node data; If the first data block reaches a consensus in the blockchain network, the first data block is stored in the blockchain, and a binding relationship between the root node data and the first asset address is established.

3. The method according to claim 1, characterized in that The method further comprises: Obtain the contract deployment transaction submitted by the business node, verify the digital signature in the contract deployment transaction according to the node public key corresponding to the business node, and obtain the signature verification result corresponding to the contract deployment transaction; If the signature verification result indicates that the verification is passed, the business logic corresponding to the asset management contract in the contract deployment transaction is deployed in the blockchain to obtain the contract deployment result corresponding to the asset management contract; If the contract deployment result indicates that the contract deployment is successful, the contract address of the asset management contract in the blockchain is obtained; the contract address is used to call the asset management contract deployed on the blockchain.

4. The method according to claim 1, characterized in that: The obtaining of first participation application information corresponding to the second object, and determining that the second object has participation rights for the first asset data if the first participation application information satisfies the extension condition indicated by the first extension configuration information, includes: Obtain an asset participation request from a second object for the first asset data, call a configuration query interface in the asset management contract according to the asset participation request, query the blockchain for first extended configuration information corresponding to the first asset data, and notify the second object of the first extended configuration information; Acquire first participation application information of the second object for the first asset data, and acquire extension conditions indicated by the first extension configuration information; If the first participation application information is consistent with the extension condition indicated by the first extension configuration information, it is determined that the second object has the right to participate in the first asset data.

5. The method according to claim 1, characterized in that The step of creating the second asset data and the second extended configuration information as first sub-layer node data corresponding to the root node data through the asset creation interface, and storing the first sub-layer node data in the blockchain includes: Encapsulate the second asset data and the second extended configuration information into a second data block, execute the transaction data in the second data block, call the asset creation interface in the asset management contract, generate the second asset identification information corresponding to the second asset data, and set the parent node identifier of the second asset data to the first asset identification information corresponding to the first asset data; Create the second asset identification information, the second asset data, the first asset identification information and the second extended configuration information as first sub-layer node data corresponding to the root node data; If a consensus is reached on the second data block in the blockchain network, the second data block is stored in the blockchain, and a binding relationship is established between the first sub-layer node data and the second asset address of the second object in the blockchain.

6. The method according to claim 1, characterized in that The method further comprises: receiving a configuration update request from the first object for the first asset data, and acquiring target extended configuration information carried in the configuration update request; The extended configuration interface in the asset management contract is called according to the configuration update request, and the first extended configuration information corresponding to the root node data in the blockchain is updated to the target extended configuration information.

7. The method according to claim 1, characterized in that The method further comprises: Receive an asset destruction request from the first object for the first asset data, call a sub-node query interface in the asset management contract according to the asset destruction request, and obtain M first sub-layer node data in the target hierarchical asset structure of the first asset identification information carried by the asset destruction request; M is a positive integer; Call the asset destruction interface in the asset management contract, destroy the root node data corresponding to the first asset identification information from the target hierarchical asset structure, determine the M first sub-layer node data in the target hierarchical asset structure as newly added root node data, and create hierarchical asset data corresponding to each newly added root node in the blockchain.

8. The method according to claim 1, characterized in that The method further comprises: Receiving an asset transfer request corresponding to the first object, and obtaining an asset identifier to be transferred carried in the asset transfer request, and a first asset address of the first object on the blockchain; If it is detected that the asset data corresponding to the asset identifier to be transferred is the root node data in the target hierarchical asset structure, the recursive transfer interface in the asset management contract is called to transfer the node data contained in the target hierarchical asset structure from the first asset address to the target asset address indicated by the asset transfer request.

9. The method according to claim 8, characterized in that The method further comprises: If it is detected that the asset data corresponding to the asset identifier to be transferred is the leaf node data in the target hierarchical asset structure, the asset transfer interface in the asset management contract is called to transfer the first sub-layer node data corresponding to the asset identifier to be transferred from the first asset address to the target asset address indicated by the asset transfer request.

10. The method according to claim 1, characterized in that The method further comprises: Acquire second participation application information of a third object for the second asset data, and if the second participation application information satisfies the extension condition indicated by the second extension configuration information, determine that the third object has the participation permission for the second asset data; Obtain the third asset data corresponding to the third object with participation authority, and the third extended configuration information corresponding to the third asset data, and create the third asset data and the third extended configuration information as the second sub-layer node data corresponding to the first sub-layer node data through the asset creation interface, and add the second sub-layer node data to the target hierarchical asset structure.

11. The method according to claim 10, characterized in that The method further comprises: receiving a parent node switching request from the third object for the third asset data, and acquiring third asset identification information carried in the parent node switching request; The parent node change interface in the asset management contract is called according to the parent node switching request, and the parent node of the second sub-layer node data indicated by the third asset identification information is switched from the first sub-layer node data to the target node data indicated by the parent node switching request.

12. An asset management device in a blockchain, characterized in that: include: A first asset creation module, used to obtain first asset data associated with a first object, and first extended configuration information corresponding to the first asset data, create the first asset data and the first extended configuration information as root node data through an asset creation interface in an asset management contract deployed on a blockchain, and store the root node data in the blockchain; a participation authority determination module, configured to obtain first participation application information corresponding to a second object, and determine that the second object has participation authority for the first asset data if the first participation application information satisfies an extension condition indicated by the first extension configuration information; A second asset creation module, used to obtain second asset data corresponding to a second object with participation authority, and second extended configuration information corresponding to the second asset data, and create the second asset data and the second extended configuration information as first sub-layer node data corresponding to the root node data through the asset creation interface, and store the first sub-layer node data in the blockchain; A hierarchical structure construction module is used to construct a target hierarchical asset structure associated with the first asset data based on the root node data and the first sub-layer node data; the node data included in the target hierarchical asset structure belongs to the first asset address registered by the first object on the blockchain.

13. A computer device, characterized in that: including memory and processor; The memory is connected to the processor, 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, characterized in that The method comprises a computer program / instruction, which implements the method according to any one of claims 1 to 11 when executed by a processor.