A data processing method, device and readable storage medium based on blockchain

By storing the metadata of virtual resources in the blockchain network and rendering and displaying them on terminal devices, the problems of limited blockchain storage space and data type limitations are solved, and efficient storage and interactive display of virtual resources are achieved.

CN116561187BActive Publication Date: 2025-09-16TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210114515.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-30
Publication Date
2025-09-16
Estimated Expiration
2042-01-30

AI Technical Summary

Technical Problem

When storing data, existing blockchains have limited space and data type restrictions, making them unable to effectively store large virtual resources.

Method used

By storing the metadata of virtual resources in the blockchain network instead of the actual resources themselves, and parsing and rendering them through terminal devices, interactive operations of virtual resources can be achieved.

Benefits of technology

Save blockchain storage space, improve data storage applicability, and enhance the display effect of virtual resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116561187B_ABST
    Figure CN116561187B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, device, and readable storage medium based on blockchain. The method includes: sending a first resource acquisition request for a target virtual resource with an object identifier to a blockchain network, so that the blockchain network queries a target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and obtains metadata having a binding relationship with the target warrant identifier; the target warrant identifier is used to represent that the object identifier has ownership of the target virtual resource; according to the metadata returned by the blockchain network, the target virtual resource is obtained; and in response to a trigger operation for interacting with the target virtual resource, the target virtual resource is controlled to perform interactive output. The use of this application can not only save blockchain storage space, but also improve the applicability of blockchain storage data, and furthermore, improve the display effect of the target virtual resource.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Due to its decentralized and tamper-proof nature, blockchain technology can effectively ensure the authenticity and security of on-chain data. Therefore, with the rapid development of network technology, governments and enterprises are increasingly strengthening their application of blockchain.

[0003] When using blockchain to store data, entities (such as businesses, governments, and individuals) upload their complete data to the blockchain and then retrieve the complete data from the blockchain. Given the limited space of the blockchain and the increasing number of entities joining the blockchain, the space occupied by the data uploaded to the blockchain (the amount of data) is usually small, such as simple text and low-resolution images. Obviously, the existing blockchain data storage method has limitations on the type of data stored. Summary of the Invention

[0004] The embodiments of the present application provide a blockchain-based data processing method, device, and readable storage medium, which can not only save blockchain storage space, but also improve the applicability of blockchain storage data. In addition, it can also improve the display effect of target virtual resources.

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

[0006] Sending a first resource acquisition request for the target virtual resource by the object identifier to the blockchain network, so that the blockchain network queries the target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and obtains metadata having a binding relationship with the target warrant identifier; the target warrant identifier is used to represent that the object identifier has ownership of the target virtual resource;

[0007] Obtain the target virtual resources based on the metadata returned by the blockchain network;

[0008] In response to a trigger operation for interacting with a target virtual resource, the target virtual resource is controlled to perform interactive output.

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

[0010] The terminal device displays the target virtual resource in the digital asset application logged in via the object identifier; the target virtual resource is obtained based on the metadata returned by the blockchain network; the metadata is obtained by the terminal device sending a first resource acquisition request for the target virtual resource to the blockchain network via the object identifier; the first resource acquisition request is used to instruct the blockchain network to query the target warrant identifier associated with the object identifier and the target virtual resource, and obtain metadata that has a binding relationship with the target warrant identifier; the target warrant identifier is used to indicate that the object identifier has ownership of the target virtual resource;

[0011] In response to a trigger operation for interacting with a target virtual resource, the target virtual resource is controlled to perform interactive output.

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

[0013] A request sending module, configured to send a first resource acquisition request for a target virtual resource by an object identifier to a blockchain network, so that the blockchain network queries a target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and obtains metadata having a binding relationship with the target warrant identifier; the target warrant identifier is used to indicate that the object identifier has ownership of the target virtual resource;

[0014] The first acquisition module is used to obtain the target virtual resource according to the metadata returned by the blockchain network;

[0015] The interactive output module is used to respond to a trigger operation for interacting with a target virtual resource and control the target virtual resource to perform interactive output.

[0016] The request sending module includes:

[0017] A first acquisition unit is configured to respond to a resource acquisition instruction in a digital asset application logged in via an object identifier and acquire a to-be-verified certificate identifier for a target virtual resource;

[0018] A first generating unit is configured to generate a first resource acquisition request according to the to-be-verified certificate identifier and the object identifier, and to sign the first resource acquisition request to obtain signature information;

[0019] The first sending unit is used to send a first resource acquisition request carrying signature information to the blockchain network; the signature information is used to instruct the blockchain network to verify the legitimacy of the object identifier; the object identifier is used to instruct the blockchain network to obtain a set of warrant identifiers that have a binding relationship with the object identifier when determining that the object identifier has legal authority; the warrant identifier set includes a target warrant identifier; the warrant identifier to be verified is used to instruct the blockchain network to determine the object identifier's holding authority for the target virtual resource based on the warrant identifier set; the holding authority is used to indicate that the warrant identifier to be verified is the same as the target warrant identifier.

[0020] The first acquisition module includes:

[0021] A second acquisition unit is configured to acquire metadata sent by the blockchain network in the digital asset application logged in via the object identifier;

[0022] A second sending unit is configured to parse the metadata, obtain a storage path corresponding to the target virtual resource, and send a second resource acquisition request to a storage device corresponding to the storage path;

[0023] The third acquiring unit is configured to acquire resource data for the target virtual resource returned by the storage device, and display the target virtual resource according to the resource data.

[0024] The third acquisition unit includes:

[0025] The data parsing subunit is used to parse the resource data and obtain the resource data to be rendered;

[0026] The data rendering subunit is used to call the physical engine and render the resource data to be rendered through the rendering pipeline in the physical engine to obtain the target virtual resource for display in the display interface.

[0027] The data rendering sub-unit includes:

[0028] A first acquisition subunit is configured to acquire the three-dimensional vertex coordinates of the vertices of the target virtual resource in the three-dimensional space from the resource data to be rendered;

[0029] The second acquisition subunit is used to obtain the target projection position, call the vertex shader, map the three-dimensional vertex coordinates to the two-dimensional space according to the target projection position, and obtain the two-dimensional vertex coordinates of the vertex of the target virtual resource at the target projection position;

[0030] A first generating subunit is configured to draw, in a two-dimensional space, two-dimensional lines corresponding to the two-dimensional vertex coordinates and a two-dimensional plane generated by the two-dimensional lines according to the connection relationship between the vertices of the target virtual resource;

[0031] The second generating subunit is configured to display the target virtual resource at the target projection position in the display interface according to the two-dimensional lines and the two-dimensional plane.

[0032] The data to be rendered includes a target color corresponding to the target virtual resource;

[0033] The second generating subunit is specifically used to determine the geometric primitives of the target virtual resource in the two-dimensional space according to the two-dimensional lines and the two-dimensional plane;

[0034] The second generating subunit is further specifically configured to perform rasterization processing on the geometric primitives to obtain fragments to be shaded including the target virtual resource displayed at the target projection position;

[0035] The second generating subunit is further specifically configured to render the target virtual resource in the fragment to be colored through a fragment shader, and display the target virtual resource with a target color in a display interface based on the rendering result.

[0036] The interactive output module includes:

[0037] a fourth acquiring unit configured to acquire interaction input data in response to a triggering operation for interacting with a target virtual resource in a digital asset application logged in by the object identifier;

[0038] A first synchronization unit is configured to determine, through an interaction distribution component, an interaction type corresponding to the interaction input data, and synchronize the interaction input data to a data processing component corresponding to the interaction type;

[0039] A second generating unit is configured to execute interaction logic according to the interaction input data in the data processing component to obtain interaction output data;

[0040] The second generating unit is further configured to output the interactive output data in the target virtual resource.

[0041] The interactive output module includes:

[0042] a fifth acquisition unit, configured to, in the digital asset application logged in by the object identifier, respond to a triggering operation for performing motion interaction with the target virtual resource, acquire angular motion data by the angular motion detection component, and synchronize the angular motion data to the interaction distribution component;

[0043] A second synchronization unit is configured to determine, in the interaction distribution component, that the interaction type corresponding to the angular motion data is a motion interaction type, and synchronize the angular motion data to a physics engine component corresponding to the motion interaction type;

[0044] The third generating unit is configured to output, in the physical engine component, a motion trajectory of the target virtual resource according to the angular motion data.

[0045] The interactive output module includes:

[0046] a sixth acquisition unit, configured to, in the digital asset application logged in by the object identifier, respond to a triggering operation for multimedia interaction with the target virtual resource and acquire multimedia input data by means of a multimedia acquisition component;

[0047] A third synchronization unit is configured to determine, through the interaction distribution component, that the interaction type corresponding to the multimedia input data is a multimedia interaction type, and synchronize the multimedia input data to the multimedia control component corresponding to the multimedia interaction type;

[0048] The fourth generating unit is configured to determine multimedia output data corresponding to the multimedia input data through the multimedia control component, and play the multimedia output data in the target virtual resource.

[0049] The data processing device based on blockchain further includes:

[0050] A first generating module is used to create a target virtual resource, generate metadata corresponding to the target virtual resource, and generate a resource summary corresponding to the target virtual resource;

[0051] The second generation module is used to generate a resource issuance request based on the metadata, resource summary and object identifier, and send the resource issuance request to the blockchain network so that the blockchain network can reach a consensus on the resource issuance request. When the consensus is passed, a target warrant identifier with a binding relationship with the resource issuance request is created;

[0052] The second acquisition module is used to obtain the target certificate identifier issued to the object identifier returned by the blockchain network.

[0053] The first generation module includes:

[0054] The seventh acquisition unit is used to acquire the name corresponding to the target virtual resource, the description text corresponding to the target virtual resource, and X attribute information corresponding to the target virtual resource; X is a positive integer;

[0055] A fifth generating unit, configured to generate basic resource information corresponding to the target virtual resource according to the name, description text, and X attribute information;

[0056] A third sending unit is configured to send a resource storage request carrying a target virtual resource to a storage device, so that the storage device writes the target virtual resource;

[0057] The sixth generating unit is configured to obtain a storage path for the target virtual resource returned by the storage device, and generate metadata according to the storage path and basic resource information.

[0058] On one hand, an embodiment of the present application provides a blockchain-based data processing device, which runs on a terminal device and includes:

[0059] A resource display module is configured to display a target virtual resource in a digital asset application logged in via an object identifier; the target virtual resource is obtained based on metadata returned by the blockchain network; the metadata is obtained by a terminal device sending a first resource acquisition request for the target virtual resource to the blockchain network via the object identifier; the first resource acquisition request is configured to instruct the blockchain network to query a target warrant identifier associated with the object identifier and the target virtual resource, and to obtain metadata that is bound to the target warrant identifier; the target warrant identifier is configured to indicate that the object identifier has ownership of the target virtual resource;

[0060] The interactive output module is used to respond to a trigger operation for interacting with a target virtual resource and control the target virtual resource to perform interactive output.

[0061] Wherein, the target virtual resources include three-dimensional models;

[0062] Interactive output module, including:

[0063] a first acquiring unit configured to acquire a rotation indication direction in response to a triggering operation for rotating the three-dimensional model, and control the three-dimensional model to rotate according to the rotation indication direction;

[0064] The second acquiring unit is configured to acquire a scaling ratio in response to a triggering operation for scaling the three-dimensional model, and control the three-dimensional model to be scaled according to the scaling ratio.

[0065] The target virtual resource includes a virtual character and Y direction controls that are bound to the virtual character; the Y direction controls include a target direction control; Y is a positive integer;

[0066] Interactive output module, including:

[0067] a trajectory output unit for outputting a to-be-confirmed motion trajectory for the virtual character in response to a trigger operation for activating a target area; the to-be-confirmed motion trajectory being generated based on the target area and an initial area for displaying the virtual character; the target area being an area of ​​the interface for displaying the target virtual resource excluding the initial area;

[0068] The first control unit is configured to respond to a trigger operation for confirming a motion trajectory to be confirmed, and control the virtual character to move according to the confirmed motion trajectory;

[0069] The second control unit is configured to control the virtual character to move in the direction indicated by the target direction control in response to a trigger operation on the target direction control.

[0070] Wherein, the target virtual resources include virtual characters;

[0071] Interactive output module, including:

[0072] A state updating unit, configured to respond to a triggering operation for activating a virtual character and update the interaction pause state of the virtual character to an interaction activation state;

[0073] The third control unit is used to respond to a trigger operation for audio interaction with the virtual character in the interactive activation state, and control the virtual character to output feedback audio data during the audio interaction.

[0074] The third control unit includes:

[0075] A data acquisition subunit, configured to respond to a triggering operation for audio interaction with a virtual character, acquire audio input data input for the virtual character, and acquire position information and environmental information;

[0076] A feedback determination subunit, configured to input both the position information and the environmental information into the audio interaction logic, and determine, through the audio interaction logic, feedback audio data associated with the position information and the environmental information;

[0077] The feedback playback subunit is used to control the virtual character to play feedback audio data.

[0078] The target virtual resource includes Z audio data playback controls; the Z audio data playback controls include a first audio data playback control and a second audio data playback control; and Z is a positive integer greater than 1.

[0079] Interactive output module, including:

[0080] a third acquiring unit, configured to acquire first audio data corresponding to the first audio data playing control in response to a triggering operation on the first audio data playing control at a first moment;

[0081] The third acquisition unit is further configured to acquire, in response to a triggering operation on the second audio data playback control at a second moment, second audio data corresponding to the second audio data playback control; the second moment is later than the first moment, and a time interval between the second moment and the first moment is less than a duration threshold;

[0082] The fourth control unit is used to control the target virtual resource to play the first audio data and the second audio data in sequence if the trigger operation for Z audio data playback controls is not responded to at the third moment; the third moment is later than the second moment, and the time interval between the third moment and the second moment is greater than or equal to the duration threshold.

[0083] On one hand, the present application provides a computer device, including: a processor, a memory, and a network interface;

[0084] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide data communication function, the above-mentioned memory is used to store computer programs, and the above-mentioned processor is used to call the above-mentioned computer program so that the computer device executes the method in the embodiment of the present application.

[0085] 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 by a processor and executing the method in the embodiment of the present application.

[0086] On the one hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions, and 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 executes the method in the embodiment of the present application.

[0087] In an embodiment of the present application, a computer device sends a first resource acquisition request for a target virtual resource to a blockchain network, which enables the blockchain network to query the target certificate identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, wherein the target certificate identifier is used to characterize that the object identifier has ownership of the target virtual resource; further, the blockchain network can obtain metadata that has a binding relationship with the target certificate identifier; based on the metadata returned by the blockchain network, the computer device can obtain the target virtual resource; further, by responding to a trigger operation for interacting with the target virtual resource, the target virtual resource can be controlled to perform interactive output. As can be seen from the above, the present application can avoid storing the target virtual resource in the blockchain network by storing the metadata corresponding to the target virtual resource and the target certificate identifier in the blockchain network. Because the occupied space corresponding to the metadata is smaller than the occupied space corresponding to the target virtual resource, the present application can not only save blockchain storage space, but also improve the applicability of blockchain storage data by storing the metadata corresponding to the target virtual resource. Therefore, when the target virtual resource has a large occupied space, its authenticity can still be guaranteed through the blockchain network. The target virtual resource in the embodiment of the present application has both asset attributes and interactive attributes. Therefore, by adopting the present application, the display effect of the target virtual resource can be improved by implementing interactive operations with the target virtual resource. BRIEF DESCRIPTION OF THE DRAWINGS

[0088] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative work.

[0089] Figure 1 This is a schematic diagram of a system architecture provided by an embodiment of the present application;

[0090] Figure 2 This is a schematic diagram of a blockchain-based data processing scenario provided by an embodiment of the present application;

[0091] Figure 3 This is a flowchart of a blockchain-based data processing method provided in an embodiment of the present application;

[0092] Figure 4 This is a schematic diagram of a blockchain-based data processing scenario provided by an embodiment of the present application;

[0093] Figure 5 This is a flow chart of a data processing method provided in an embodiment of the present application;

[0094] Figure 6 This is a schematic diagram of a blockchain-based data processing scenario provided by an embodiment of the present application;

[0095] Figure 7 This is a flow chart of a data processing method provided in an embodiment of the present application;

[0096] Figure 8 This is a flowchart of a blockchain-based data processing method provided in an embodiment of the present application;

[0097] Figure 9 This is a flowchart of a blockchain-based data processing method provided in an embodiment of the present application;

[0098] Figure 10 This is a flowchart of a blockchain-based data processing method provided in an embodiment of the present application;

[0099] Figure 11 This is a schematic diagram of a blockchain-based data processing scenario provided by an embodiment of the present application;

[0100] Figure 12 This is a schematic diagram of a blockchain-based data processing scenario provided by an embodiment of the present application;

[0101] Figure 13This is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application;

[0102] Figure 14 This is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application;

[0103] Figure 15 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application;

[0104] Figure 16 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0105] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0106] To facilitate understanding, we first provide a brief explanation of some nouns:

[0107] 1. Blockchain: In a narrow sense, blockchain is a chained data structure based on blocks. Blocks use digital summaries to verify previously acquired transaction histories, making them suitable for the tamper-proof and scalability requirements of distributed ledgers. Broadly speaking, blockchain also refers to the distributed ledger technologies implemented by blockchain structures, including distributed consensus, privacy and security protections, peer-to-peer communication technologies, network protocols, and smart contracts. The goal of blockchain is to create a distributed data record book that only allows additions, not deletions. The underlying structure of this ledger is a linear linked list. This linked list consists of a series of "blocks," with successive blocks recording the hash values ​​of previous blocks. The legitimacy of each block (and the transactions within it) can be quickly verified by calculating the hash value. If a node in the network proposes to add a new block, the block must be confirmed through a consensus mechanism.

[0108] 2. Blockchain Nodes: Blockchain networks categorize nodes into consensus nodes (also called core nodes) and synchronization nodes (which can include data nodes and light nodes). Consensus nodes are responsible for consensus across the entire blockchain network; synchronization nodes are responsible for synchronizing the consensus nodes' ledger information, specifically the latest block data. Both consensus and synchronization nodes have internal network communication components. Because blockchain networks are essentially peer-to-peer (P2P) networks, they require P2P components to communicate with other nodes in the blockchain network. Resources and services within a blockchain network are distributed across nodes, and information transmission and service delivery occur directly between nodes, without the need for intermediaries or centralized servers (third parties).

[0109] 3. Public key and private key: A public key and a private key are a key pair (one public key and one private key) derived through an algorithm. The public key is the public portion of the key pair, while the private key is the private portion. Public keys are commonly used for encrypting data, verifying digital signatures, and other purposes. This algorithm ensures that the resulting key pair is unique. When using this key pair, if one key is used to encrypt a piece of data, the other key must be used to decrypt it. For example, data encrypted with the public key must be decrypted with the private key, and data encrypted with the private key must also be decrypted with the public key; otherwise, the decryption will fail.

[0110] 4. Hash value: Also known as an information characteristic value or eigenvalue, a hash value is generated by converting input data of any length into a cipher and producing a fixed output using a hash algorithm. The original input data cannot be retrieved by decrypting the hash value; it is a one-way encryption function. In a blockchain, each block (except the initial block) contains the hash value of the previous block, which is called the parent block of the current block. The hash value is the core foundation and most important aspect of the potential of blockchain technology. It preserves the authenticity of recorded and viewed data, as well as the integrity of the blockchain as a whole.

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

[0112] 6. Wallet: This is used to provide the function of conducting digital asset transactions, including initiating transactions (i.e., sending the transaction record of the current transaction to other nodes in the blockchain system. After successful verification by other nodes, as a response to acknowledge the validity of the transaction, the transaction record data is stored in a temporary block of the blockchain. Of course, the wallet also supports querying the remaining digital assets in the digital asset address.

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

[0114] Among them, it is understandable that Figure 1 The blockchain nodes 10a, 10b, 10c, and 10d shown may each have a one-to-one correspondence with the corresponding roles (i.e., entity objects in the corresponding business scenarios) that need to be connected to the blockchain network 100a. The business scenarios herein may specifically include electronic billing scenarios, social scenarios, resource issuance scenarios, payment scenarios, etc. In this case, the business data information in the corresponding business scenarios may specifically include electronic bill information in the electronic billing scenario, data interaction information in the social scenario, resource issuance information in the resource issuance scenario, asset transfer records in the payment scenario, etc. The specific content of the business data information in the corresponding business scenarios will not be listed here one by one.

[0115] It is understandable that the above system may include one or more application servers, and the number of application servers is not limited here; Figure 1 The application server 100b shown can be connected to the blockchain network 100a so as to be able to interact with the blockchain network 100a through the network connection. Figure 1 The application server 100b shown can be connected to the storage device 200a via a network connection to facilitate data exchange with the storage device 200a. The application server 100b can be a backend server corresponding to an application that has business functions associated with digital assets in the blockchain network 100a.

[0116] The storage device 200a can be a device with data storage function, such as a cloud file server or Inter Planetary File System (IPFS) distributed storage. The storage device 200a can provide data storage function for terminal device clusters, application servers 100b, etc.

[0117] The terminal device cluster may include terminal device 100c, terminal device 100d, terminal device 100e, ..., terminal device 100f. It is understood that the terminal device cluster may include one or more terminal devices, and the embodiments of the present application do not limit the number of terminal devices. A network connection may exist between the terminal clusters, for example, a network connection exists between terminal device 100c and terminal device 100d. At the same time, any terminal device in the terminal cluster may have a network connection with application server 100b, for example, a network connection exists between terminal device 100f and application server 100b. At the same time, any terminal device in the terminal cluster may have a network connection with blockchain network 100a, for example, a network connection exists between terminal device 100d and blockchain network 100a. At the same time, any terminal device in the terminal cluster may have a network connection with storage device 200a, for example, a network connection exists between terminal device 100f and storage device 200a. The above-mentioned network connection does not limit the connection method and may be directly or indirectly connected via a wired network, directly or indirectly connected via a wireless network, or through other methods, which are not limited by the present application.

[0118] It should be understood that Figure 1 Each terminal device in the terminal cluster shown can be installed with an application client. When the application client runs in each terminal device, it can be respectively connected to the above Figure 1 The application server 100b shown in the figure performs data interaction, i.e. the above-mentioned network connection. Among them, the application client can be an application client with digital asset processing function such as video application, live broadcast application, social application, instant messaging application, game application, music application, shopping application, novel application, browser, digital asset application, etc. Among them, the application client can be an independent client or an embedded sub-client integrated in a certain client (for example, a social client, an educational client, and a multimedia client, etc.), which is not limited here. Taking the digital asset application as an example, the application server 100b can be a collection of multiple servers such as a background server and a data processing server corresponding to the digital asset application. Therefore, each terminal device can transmit data with the application server 100b through the application client corresponding to the digital asset application. For example, each terminal device can upload a digital asset transfer request to the application server 100b through the application client of the digital asset application, and then the application server 100b can issue the digital asset transfer request to other terminal devices or transmit it to the blockchain network 100a.

[0119] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0120] To facilitate subsequent understanding and explanation, the embodiments of the present application can be Figure 1 A terminal device is selected from the terminal cluster shown as the target terminal device, for example, terminal device 100c is used as the target terminal device. When the terminal device 100c obtains a first resource acquisition request in the digital asset application logged in through the object identifier, the first resource acquisition request can be sent to the application server 100b. In this application, the user object (i.e., the terminal user) corresponding to the terminal device 100c and the application account for the digital asset application registered in the blockchain network 100a are referred to as object identifiers; the digital asset application can be the above-mentioned wallet; the first resource acquisition request refers to a request for requesting the blockchain network 100a to obtain the target virtual resource; the target virtual resource can be any interactive virtual resource, which can specifically include three-dimensional models and two-dimensional models.

[0121] Furthermore, the application server 100b can forward the first resource acquisition request to the blockchain network 100a, so that the blockchain network 100a can query the target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and then obtain metadata that has a binding relationship with the target warrant identifier, wherein the target warrant identifier is used to represent that the object identifier has ownership of the target virtual resource; the application server 100b can obtain the storage path corresponding to the target virtual resource based on the metadata returned by the blockchain network 100a, so it can send a second resource acquisition request to the storage device 200a corresponding to the storage path; further, the application server 100b obtains the resource data for the target virtual resource returned by the storage device 200a; further, the application server 100b returns the resource data to the terminal device 100c, and after the terminal device 100c receives the resource data returned by the application server 100b, it can display the target virtual resource on its corresponding screen; further, the terminal device 100c responds to the trigger operation for interacting with the target virtual resource, and can control the target virtual resource to perform interactive output.

[0122] Optionally, the application server 100b returns the metadata returned by the blockchain network 100a to the terminal device 100c. The terminal device 100c can obtain the storage path corresponding to the target virtual resource by parsing the metadata. The subsequent process of obtaining the target virtual resource is consistent with the process of the application server 100b obtaining the target virtual resource, so it is not repeated here. Optionally, the application server 100b returns the storage path to the terminal device 100c. The subsequent process of the terminal device 100c obtaining the target virtual resource based on the storage path is consistent with the process described above, so it is not repeated here. Optionally, the terminal device 100c directly transmits the first resource acquisition request to the blockchain network 100a, so that the blockchain network 100a returns the metadata for the target virtual resource. For the subsequent process of obtaining the target virtual resource, please refer to the description above and it is not repeated here.

[0123] It can be understood that the above-mentioned application server 100b, terminal device 100c, terminal device 100d, terminal device 100e..., terminal device 100f can all be blockchain nodes in the blockchain network 100a, and the data described in the full text (such as the storage path) can be stored. The storage method can be that the blockchain node generates blocks based on the data and adds the blocks to the blockchain for storage.

[0124] As can be seen from the above, the methods provided in the embodiments of the present application can be executed by computer devices, including but not limited to terminal devices or application servers. The above-mentioned application server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The above-mentioned terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, and vehicle-mounted terminals.

[0125] Further, see Figure 2 , Figure 2 This is a schematic diagram of a data processing scenario based on blockchain provided by an embodiment of the present application. The implementation process of the data processing scenario can be carried out in the application server, in the terminal device, or interactively in the terminal device and the application server, which is not limited here. The terminal device can be the above-mentioned Figure 1 Any terminal device in the terminal cluster of the corresponding embodiment, Figure 2 Taking the terminal device 100c as an example, the application server can be the above Figure 1The application server 100b of the corresponding embodiment. The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.

[0126] like Figure 2 As shown, the operation object 101c has a binding relationship with the terminal device 100c, and the operation object 101c can log in the object identifier in the digital asset application 200b installed by the terminal device 100c. The embodiment of the present application uses the identifier "111XXXX2222" as an example of the object identifier. The object identifier can be understood as the operation object 101c, the account (address) of the digital asset application 200b in the blockchain network 100a. The terminal device 100c can also include the avatar of the operation object 101c in the display interface of the digital asset application 200b, the asset name corresponding to the asset held by the object identifier 200c (such as Figure 2 Virtual Resource 1 and Virtual Resource 2 in the example), and the selection controls bound to each asset name (such as Figure 2 The operation object 101c can perform a trigger operation on the display interface of the digital asset application 200b provided by the terminal device 100c. For example, the selection control 200e can be triggered, and then the "confirm" control on the display interface of the digital asset application 200b can be triggered. At this time, the terminal device 100c determines the asset (resource) corresponding to the virtual resource 2 as the target virtual resource, responds to the acquisition operation for the target virtual resource, and performs Figure 2 Step S1 shown is sending a first resource acquisition request to the blockchain node 10a.

[0127] After the blockchain node 10a obtains the first resource acquisition request sent by the terminal device 100c, it can broadcast it to the blockchain network 100a so that the blockchain network 100a can verify the legitimacy of the request (i.e., reach a consensus), that is, Figure 2 For the detailed verification process, please refer to the following step S2. Figure 3 The description of the corresponding embodiment is not expanded for the moment. When the blockchain network 100a determines that the first resource acquisition request is a legitimate request, it obtains metadata with a binding relationship with the target certificate identifier (the certificate identifier to be verified is equal to the target certificate identifier) ​​to execute Figure 2 Step S3 in the process. The target certificate identifier is the identifier of the target virtual resource (the virtual resource off the chain), which corresponds to the on-chain virtual resource in the blockchain network 10a. It can indicate that the object identifier has ownership of the target virtual resource.

[0128] After the terminal device 100c obtains the metadata, it can obtain the target virtual resource in the digital asset application 200b, that is, Figure 2In step S4, the target virtual resource can be further displayed in the digital asset application 200b. For ease of understanding, the target virtual resource in this embodiment of the present application is an interactive three-dimensional model 200d. Furthermore, in response to a trigger operation for rotating the three-dimensional model, the terminal device 200c obtains an indicated rotation direction and controls the three-dimensional model to rotate in the indicated rotation direction. In response to a trigger operation for scaling the three-dimensional model, the terminal device obtains a scaling ratio and controls the three-dimensional model to scale in accordance with the scaling ratio.

[0129] like Figure 2 As shown, the operation object 101c views the target virtual resource (such as Figure 2 The three-dimensional model 200d of the example has interactive properties. If the operating object 101c is on the touch screen and the finger slides the three-dimensional model 200d left and right or up and down, the three-dimensional model 200d can make a corresponding rotation effect, that is, it rotates smoothly in all directions according to the operation of the operating object 101c, such as Figure 2 In step S5, the terminal device 100c responds to the trigger operation for rotating the three-dimensional model 200d and obtains the rotation indication direction and angle. The embodiment of the present application uses the display interface as the reference interface, so Figure 2 The operating object 101c rotates the three-dimensional model 200d downward by 90°, so the terminal device 100c controls the three-dimensional model 200d to rotate downward by 90°, so that the three-dimensional model 201d can be displayed in the display interface.

[0130] If the operating object 101c uses a finger to perform a "zoom out" or "zoom in" operation, then execute Figure 2 In step S6, terminal device 100c responds to the triggering operation for scaling 3D model 200d, obtains the scaling ratio, and controls the scaling of 3D model 201d according to the scaling ratio. This embodiment of the present application uses scaling down as an example, so the scaled-down 3D model 202d can be displayed in digital asset application 200b. It should be understood that 3D model 200d, 3D model 201d, and 3D model 202d all represent the same 3D model; they differ only in their representation.

[0131] It should be noted that the target virtual resource is displayed in the terminal device 100c in the form of a static image, a dynamic image or a video clip, but this application is to perform interactive operations on the target virtual resource itself, rather than on the image or video including the target virtual resource.

[0132] It is understandable that Figure 2The interfaces and controls shown are merely some reference forms of expression. In actual business scenarios, developers can make relevant designs based on product requirements. The embodiments of this application do not limit the specific forms of the interfaces and controls involved.

[0133] Further, see Figure 3 , Figure 3 This is a flowchart of a data processing method based on blockchain provided by an embodiment of the present application. The embodiment of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc. The data processing method based on blockchain can be Figure 1 The application server in the Figure 1 The terminal device in the Figure 1 The application server and the terminal device in the embodiment interact and execute, for the sake of ease of understanding, the embodiment of the present application takes the terminal device executing the method as an example for explanation. Figure 3 As shown, the blockchain-based data processing method may at least include the following steps S101-S103.

[0134] Step S101: Send a first resource acquisition request for a target virtual resource by an object identifier to a blockchain network, so that the blockchain network queries a target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and obtains metadata having a binding relationship with the target warrant identifier; the target warrant identifier is used to represent that the object identifier has ownership of the target virtual resource.

[0135] Specifically, in response to a resource acquisition instruction in a digital asset application logged in through an object identifier, a certificate identifier to be verified for a target virtual resource is obtained; based on the certificate identifier to be verified and the object identifier, a first resource acquisition request is generated, the first resource acquisition request is signed to obtain signature information; the first resource acquisition request carrying the signature information is sent to the blockchain network; the signature information is used to instruct the blockchain network to verify the legitimacy of the object identifier; the object identifier is used to instruct the blockchain network to obtain a set of certificate identifiers that have a binding relationship with the object identifier when determining that the object identifier has legal authority; the certificate identifier set includes the target certificate identifier; the certificate identifier to be verified is used to instruct the blockchain network to determine the object identifier's holding authority for the target virtual resource based on the certificate identifier set; the holding authority is used to characterize that the certificate identifier to be verified is the same as the target certificate identifier.

[0136] Digital asset applications can be independent applications (such as Figure 2 ), or it can be a subroutine application integrated into a standalone application (as shown below Figure 3As shown), it can also be a plug-in embedded in the subroutine application. The embodiment of this application does not limit the implementation form of the digital asset application. Please refer to Figure 4 , Figure 4 This is a schematic diagram of a data processing scenario based on blockchain provided by an embodiment of the present application. Figure 4 As shown, when the terminal device 100d corresponds to the user object (equivalent to the above Figure 2 ), an independent application installed on the terminal device 100d (such as Figure 2 In the social application exemplified in the example, when the digital asset application 30a is opened (the digital asset application 30a is integrated into the social application as a small program application), the terminal device 100d can display a login interface for the digital asset application 30a, and the login interface can prompt the user to enter an account and password, wherein the account can be the address registered by the user for the digital asset application 30a in the blockchain network 100a (bound to the public and private key pair, which is equivalent to the object identification, such as Figure 4 The example identifier 111XXXX2222) can also be the application identifier of the user object in the digital asset application 30a (there is a mapping relationship between the application identifier and the object identifier. When the user object enters the application identifier, the terminal device 100d can obtain the object identifier based on the above mapping relationship and the application identifier to access the blockchain network 100a). It can also be the mobile phone number of the user object (equivalent to the above application identifier). It can also be authorized to log in through a social application. The embodiment of the present application does not limit the way in which the user object logs in to the digital asset application 30a in the terminal device 100d. The user object authorization is sufficient.

[0137] Please see again Figure 4 When the user enters the account number and password, the terminal device 100d can prompt the user to read the information related to the user, such as Figure 4 The example prompts the user to read and understand the "User Agreement" and "Privacy Policy". When the user triggers the read control 301a, the user can trigger the "Login" control. The embodiment of the present application does not limit the conditions for the terminal device 100d to respond to the resource acquisition instruction in the digital asset application logged in by the object identifier. Figure 2 As described above, after the terminal device 100d successfully logs into the digital asset application 30a, the asset name corresponding to the asset held by the object identifier can be displayed. When selecting an asset name (such as Figure 2The target virtual resource 2) is obtained by obtaining the resource acquisition instruction, and then obtaining the certificate identifier to be verified for the target virtual resource. The resource acquisition instruction can also be responded to in the following manner, that is, when the terminal device 100d successfully logs into the digital asset application 30a, the terminal device 100d responds to the resource acquisition instruction in the digital asset application 30a logged in through the object identifier. In the second manner, the target virtual resource can include all virtual resources held by the object identifier (in Figure 2 In the provided method, the target virtual resource is one of the virtual resources held by the object identifier).

[0138] Please see again Figure 4 , the terminal device 100d obtains the to-be-verified certificate identifier for the target virtual resource. The total number of virtual resources held by the example object identifier in the embodiment of the present application is two, so two to-be-verified certificate identifiers can be obtained, such as Figure 4 The example of the certificate identifier 1 to be verified and the certificate identifier 2 to be verified, further, according to the certificate identifier 1 to be verified, the certificate identifier 2 to be verified and the object identifier (such as Figure 4 The example identifier 111XXXX2222) generates a first resource acquisition request 30b. It can be understood that in actual application scenarios, the first resource acquisition request 30b can also include other data, such as the hash value corresponding to the target virtual resource, etc. The embodiment of the present application does not limit the content of the data carried by the first resource acquisition request 30b.

[0139] The terminal device 100d obtains the private key 301c and signs the first resource acquisition request 30b with the private key 301c to obtain the signature information 30d. It can be understood that the terminal device 100d holds an asymmetric key pair for the digital asset application 30a, which includes the private key 301c and the public key 302c. The terminal device 100d sends the first resource acquisition request 30b carrying the signature information 30d to the blockchain network 100a. Figure 4As shown, the blockchain network 100a verifies the signature information 30d through the public key 302c to obtain a first digital digest, obtains the second digital digest corresponding to the first resource acquisition request 30b through the hash algorithm, and compares the first digital digest and the second digital digest. If the two are different, the blockchain network 100a can determine that the object identifier does not have legal authority and refuse to process the first resource acquisition request 30b; if the first digital digest is the same as the second digital digest, it can be determined that the object identifier has legal authority. Further, the blockchain network 100a obtains a warrant identifier set 30e that has a binding relationship with the object identifier. The embodiment of the present application does not limit the binding method between the object identifier and the warrant identifier set 30e, and can be set according to the actual application scenario. The embodiment of the present application is an example in which the warrant identifier set 30e includes the object identifier and the warrant identifier corresponding to the warrant held by the object identifier, that is, the target warrant identifier. The total number of target warrant identifiers corresponding to the embodiment of the present application is 2, as shown in the example. Figure 4 The examples include the Warrant ID 1 and the Warrant ID 2.

[0140] The blockchain network 100a can compare the certificate identifier 1 to be verified with the target certificate identifier (such as Figure 4 1 and the certificate identifier 2 are compared. If the target certificate identifier does not contain the same certificate identifier as the certificate identifier 1 to be verified, it can be determined that the object identifier does not have the holding authority of the certificate identifier 1 to be verified (equivalent to the object identifier not having the ownership of the virtual resource corresponding to the certificate identifier 1 to be verified), or the certificate identifier 1 to be verified is not a legal certificate identifier. At this time, the blockchain network 100a can return a resource acquisition failure message for the certificate identifier 1 to be verified to the terminal device 100d; if the target certificate identifier contains the same certificate identifier as the certificate identifier 1 to be verified (for example, certificate identifier 1), the blockchain network 100a can determine that the object identifier has the holding authority of the object identifier 1 to be verified, which is equivalent to determining the holding authority for the virtual resource corresponding to the object identifier 1 to be verified. At this time, the metadata with which the certificate identifier 1 to be verified has a binding relationship can be obtained. It can be understood that the processing process of the blockchain network 100a for the certificate identifier 2 to be verified is consistent with the processing process corresponding to the certificate identifier 1 to be verified, so please refer to the above description and do not repeat it.

[0141] Please see again Figure 4 , the embodiment of the present application indicates that the certificate identifier to be verified is the same as the target certificate identifier, so the blockchain network obtains metadata, such as Figure 4 The example shows metadata 1 having a binding relationship with the to-be-verified ticket identifier 1, and metadata 2 having a binding relationship with the to-be-verified ticket identifier 2.

[0142] Step S102: Obtain the target virtual resource according to the metadata returned by the blockchain network.

[0143] Specifically, in the digital asset application logged in through the object identifier, the metadata sent by the blockchain network is obtained; the metadata is parsed to obtain the storage path corresponding to the target virtual resource, and a second resource acquisition request is sent to the storage device corresponding to the storage path; the resource data for the target virtual resource returned by the storage device is obtained, and the target virtual resource is displayed according to the resource data.

[0144] Optionally, the specific process of displaying the target virtual resource based on the resource data may include: parsing the resource data to obtain the resource data to be rendered; calling the physical engine, rendering the resource data to be rendered through the rendering pipeline in the physical engine, and obtaining the target virtual resource for display in the display interface.

[0145] Optionally, the specific process of obtaining the target virtual resource for display in the display interface may include: obtaining the three-dimensional vertex coordinates of the vertices of the target virtual resource in the three-dimensional space in the resource data to be rendered; obtaining the target projection position, calling the vertex shader, and mapping the three-dimensional vertex coordinates to the two-dimensional space according to the target projection position to obtain the two-dimensional vertex coordinates of the vertices of the target virtual resource at the target projection position; drawing two-dimensional lines corresponding to the two-dimensional vertex coordinates and a two-dimensional plane generated by the two-dimensional lines in the two-dimensional space according to the connection relationship between the vertices of the target virtual resource; and displaying the target virtual resource at the target projection position in the display interface based on the two-dimensional lines and the two-dimensional plane.

[0146] Optionally, the data to be rendered includes a target color corresponding to the target virtual resource; the specific process of displaying the target virtual resource at the target projection position in the display interface may include: determining the geometric primitives of the target virtual resource in the two-dimensional space based on two-dimensional lines and two-dimensional planes; rasterizing the geometric primitives to obtain fragments to be colored including the target virtual resource displayed at the target projection position; rendering the target virtual resource in the fragment to be colored through a fragment shader, and displaying the target virtual resource with the target color in the display interface based on the rendering result.

[0147] Combined with the description of step S101, please refer to Figure 4 , in the object identification (such as Figure 4 In the digital asset application 30a logged in by the example identifier 111XXXX2222), the terminal device 100d obtains the metadata sent by the blockchain network 100a, where the metadata is data about data describing the target virtual resource, mainly information describing the data attributes of the target virtual resource, used to support functions such as indicating the storage location (i.e., storage path), historical data, resource search, file records, etc.

[0148] Furthermore, the terminal device 100d parses the metadata. It can be understood that the process of parsing metadata 1 and obtaining the virtual resources corresponding to metadata 1 is consistent with the process of the terminal device 100d parsing metadata 2 and obtaining the virtual resources corresponding to metadata 2. Therefore, the processing example of metadata 1 is described here. For the process of obtaining other virtual resources in the target virtual resources, please refer to the description below.

[0149] The terminal device 100d parses the metadata 1 and obtains the storage path 30g of the virtual resource (belonging to the target virtual resource) corresponding to the ticket identifier 1, such as Figure 4 The example " / / / mmmnnn / / / " is shown, so the second resource acquisition request can be sent to the storage device 30h corresponding to the storage path. Optionally, the terminal device 100d uses the private key 301c to sign the second resource acquisition request, obtains the signature information corresponding to the second resource acquisition request (in order to distinguish the signature information corresponding to the first resource acquisition request in the previous text, the signature information here is referred to as the second signature information), and sends the second resource acquisition request carrying the second signature information to the storage device 30h, so that the storage device 30h confirms the legitimacy of the terminal device 100d based on the second signature information. For the specific process, please refer to the blockchain network 100a above, the process of verifying the legitimacy of the first resource acquisition request based on the public key 302c.

[0150] The terminal device 100d obtains the resource data of the virtual resource corresponding to the ticket identifier 1 returned by the storage device 30h, wherein the resource data may include the original data of the target virtual resource and the interaction logic of the target virtual resource. The terminal device 100d first parses the resource data to obtain the resource data to be rendered, and then calls the physical engine, which may be a 3D graphics protocol (Web Graphics Library, abbreviated as WebGL), to render the resource data to be rendered through the rendering pipeline in the physical engine. Please refer to Figure 5 , Figure 5 This is a flow chart of a data processing method provided by an embodiment of the present application. Figure 5As shown, the rendering process is actually the process of the terminal device mapping the three-dimensional data of the target virtual resource to the two-dimensional space. First, the three-dimensional vertex coordinates of the vertices of the target virtual resource in the three-dimensional space are obtained from the data to be rendered. The terminal device maps each three-dimensional vertex coordinate to the two-dimensional space according to the set projection position (i.e., the target projection position) through the vertex shader to determine the two-dimensional vertex coordinates; further, the terminal device can draw the two-dimensional lines and two-dimensional planes of the target virtual resource in the two-dimensional space according to the connection relationship between the vertices of the target virtual resource, so the geometric primitives of the target virtual resource in the two-dimensional space can be determined; further, the terminal device rasterizes the geometric primitives. The so-called rasterization refers to mapping the geometric primitives to the pixels of the terminal device's screen, describing them in the form of square pixels, and obtaining fragments to be colored; finally, the fragment shader is used to assign corresponding colors to each pixel in the fragment to be colored, and the target virtual resource in the three-dimensional space can be rendered onto the two-dimensional screen based on pixels.

[0151] Please also see Figure 6 , Figure 6 This is a schematic diagram of a data processing scenario based on blockchain provided by an embodiment of the present application. Figure 4 as well as Figure 6 As can be seen from step S101, the embodiment of the present application is to obtain the metadata returned by the blockchain network when the terminal device successfully obtains the object identifier in the digital asset application, so that the resource data can be obtained, and then the target virtual resource can be obtained. Therefore, when the terminal device displays the display interface for the digital asset application 30a, the terminal device has obtained the target virtual resource (in Figure 4 as well as Figure 6 In the embodiment of the present application, the target virtual resource may include the assets held by the object identifier, such as the virtual resource represented by the asset name "virtual resource 1" and the virtual resource represented by the asset name "virtual resource 2", so when the object is used to trigger the selection control 30j and trigger the "confirm" control, the terminal device can directly display the virtual resource that has a binding relationship with the asset name "virtual resource 1". In the embodiment of the present application, the virtual resource that has a binding relationship with the asset name "virtual resource 1" is exemplified as a virtual piano 30k with interactive attributes.

[0152] Step S103 : responding to a triggering operation for interacting with the target virtual resource, controlling the target virtual resource to perform interactive output.

[0153] Specifically, in a digital asset application logged in through an object identifier, a trigger operation for interacting with a target virtual resource is responded to to obtain interaction input data; through an interaction distribution component, the interaction type corresponding to the interaction input data is determined, and the interaction input data is synchronized to a data processing component corresponding to the interaction type; in the data processing component, interaction logic is executed according to the interaction input data to obtain interaction output data; and the interaction output data is output in the target virtual resource.

[0154] Feasibly, the target virtual resource includes Z audio data playback controls; the Z audio data playback controls include a first audio data playback control and a second audio data playback control; Z is a positive integer greater than 1; in response to a trigger operation on the first audio data playback control at a first moment, the first audio data corresponding to the first audio data playback control is obtained; in response to a trigger operation on the second audio data playback control at a second moment, the second audio data corresponding to the second audio data playback control is obtained; the second moment is later than the first moment, and the time interval between the second moment and the first moment is less than the duration threshold; if there is no response to the trigger operation on the Z audio data playback controls at a third moment, the target virtual resource is controlled to play the first audio data and the second audio data in sequence; the third moment is later than the second moment, and the time interval between the third moment and the second moment is greater than or equal to the duration threshold.

[0155] The target virtual resource in the embodiment of the present application has two attributes. One is the asset attribute, that is, the target virtual resource, as an off-chain virtual resource, has its corresponding on-chain virtual resource in the blockchain network. The on-chain virtual resource can be characterized by a target warrant identifier, which can be issued to an object identifier; the second is the interactive attribute. It should be noted that the interactive attribute described in this application refers to the interaction between the object and the target virtual resource, rather than the interaction between the object and the carrier (such as an image or video) that presents the target virtual resource. The embodiment of the present application does not limit the category of the target virtual resource and can be any virtual resource with interactive attributes.

[0156] When the user object views the target virtual resource in the digital asset application logged in by the object identifier, the user object can interact with the target virtual resource, that is, perform a trigger operation for interacting with the target virtual resource, and the terminal device can respond to the trigger operation and obtain interactive input data. It can be understood that the user object can perform the trigger operation for interacting with the target virtual resource by touching the screen of the terminal device, and can also perform the above-mentioned trigger operation through voice input, keyboard (mouse) input, etc., and can also use various sensors of the terminal device (such as gravity sensors, temperature sensors), or detection components to perform the above-mentioned trigger operation. The embodiment of the present application does not limit the way in which the user object interacts with the target virtual resource, and can be set according to the actual application scenario.

[0157] After obtaining the interactive input data, the terminal device can determine the interaction type corresponding to the interactive input data through the interactive distribution component. The interaction type can be divided into two categories. One is the motion interaction type, for example Figure 2 The three-dimensional model shown in the example; one type is multimedia interaction type, such as Figure 6 The virtual piano 30k shown in the example; further, the terminal device synchronizes the interactive input data to the data processing component corresponding to the interaction type. It can be understood that the data processing component can be set according to the actual application scenario, including but not limited to the physical engine component (for rendering the target virtual resource) and the multimedia control component (for controlling the target virtual resource for multimedia interaction); in the data processing component, the terminal device can execute the interactive logic according to the interactive input data. It can be understood that the interactive logic is set when the target virtual resource is created, so the terminal device can obtain the interactive output data corresponding to the interactive input data through the interactive logic.

[0158] Please refer to the above process Figure 7 , Figure 73a is a flow chart of a data processing method provided by an embodiment of the present application. Step 3a, triggering interaction, specifically, through a terminal device, using an object in a digital asset application logged in through an object identifier, executing a trigger operation for interacting with a target virtual resource, wherein the terminal device may include an interactive distribution component, a physics engine component, and a multimedia control component; when the trigger operation is used for motion interaction with the target virtual resource, step 3b may be executed, and when the trigger operation is used for multimedia interaction with the target virtual resource, step 3d may be executed; step 3b, synchronizing angular motion data, the terminal device responds to the interactive operation in step 3a, and synchronizes the angular motion data to the physics engine component to execute step 3c; step 3c, the physics engine component may output a motion trajectory and render the target virtual resource after movement; step 3d, synchronizing multimedia input data, the terminal device responds to the multimedia interactive operation in step 3a, and synchronizes the multimedia input data to the multimedia control component to execute step 3e; step 3e, playing multimedia output data. It can be understood that the target virtual resource can have the function of performing multiple types of interactions with the user object, such as multimedia interaction and motion interaction.

[0159] In summary, the target virtual resource (a digital asset) in this application is interactive. After the object identifier possesses the target virtual resource, in addition to holding the on-chain asset ownership of the target virtual resource, it can also display the interaction of the target virtual resource in the digital asset application (such as a wallet application). For example, if the target virtual resource is a virtual musical instrument (a drum, a bell, a guitar, a piano), then the user's interactive operation on the virtual instrument can trigger the virtual instrument to display animations associated with the interactive logic or play sounds. If the target virtual resource is a game character, then in the digital asset application (after leaving the game), the user can still interact with the game character through interactive operations. For example, after clicking on the game character, the game character can have different action feedback, or when the microphone is turned on, the user can realize voice dialogue with the game character, etc. Even if the original game is discontinued, the digital asset still has basic interactivity in the digital asset application.

[0160] For easier understanding, please refer to Figure 6 , the terminal device can display the target virtual resource (such as Figure 6The virtual piano 30k and the voice component 30i with the pickup function and the broadcasting function in the embodiment of the present invention are provided. The virtual piano 30k may include multiple keys (belonging to the audio data playback control), and the multiple keys may include a first key 301k (which may be equivalent to the first audio data playback control) and a second key 302k (which may be equivalent to the second audio data playback control). When the user triggers the first key 301k at the first moment, the terminal device may obtain the first audio data corresponding to the first key 301k (such as Figure 6 The interactive logic may be to continuously detect the trigger operation for interacting with the virtual piano 30k within a time threshold. If the user does not trigger the key within the time threshold, the virtual piano 30k may play the first audio data through the voice component 30i. If the user triggers the second key 302k within the time threshold (for example, at the second moment), the terminal device may obtain the second audio data corresponding to the second key 302k (for example, Figure 6 The subsequent processing is consistent with the above-mentioned processing of triggering the first key 301k, so it will not be described in detail. It is understood that the description of the above scenario is only for ease of understanding. In actual application, the multimedia data playback should be implemented according to the set interaction logic.

[0161] like Figure 6 As shown, if after obtaining the first audio data and the second audio data, the user does not trigger the piano key within the time threshold, the terminal device can play the first audio data and the second audio data in sequence at the initial volume at the third moment. If during the playback process, the user wants to increase the volume, the user can input voice data through the voice component 30i, such as "increase the playback volume". At this time, the terminal device can increase the playback volume of the voice component 30i through the interactive logic, and subsequently, play the first audio data and the second audio data in sequence by adjusting the volume.

[0162] The above execution process is based on the terminal device as the execution subject, and the following is based on the application server as the execution subject. Please refer to Figure 8 , Figure 8 This is an interactive diagram of a data processing method based on blockchain provided by an embodiment of the present application. The system between the terminal device and the application server can adopt a client / server (Client / Server, C / S) mode or a browser and server (Browser / Server, B / S) mode. Step 1: The user object corresponding to the terminal device triggers the details page of the target virtual resource in the terminal device, such as Figure 2 In the example, the operation object 101c triggers the "Confirm" control. This application also supports the above Figure 4 As described in, when the object is used to log in to the digital asset application, the terminal device executes step 2; step 2, the terminal device sends a first resource acquisition request to the application server; step 3, the application server sends the first resource acquisition request to the blockchain network; step 4, the blockchain network returns metadata; step 5, the application server returns metadata to the terminal device; step 6, the terminal device parses the metadata and obtains the storage path; step 7, the terminal device sends a second resource acquisition request to the storage device according to the storage path, wherein the storage device in this application can be a cloud server or IPFS distribution; step 8, the storage device returns word data to the terminal device; step 9, the terminal device parses the resource data and displays the target virtual resource; step 10, the object is used to trigger the interactive operation; step 11, the terminal device obtains the interactive input data and executes the interactive logic; step 12, the terminal device determines the interactive output data; step 13, the terminal device feeds back the interactive output data to the user object. Figure 8 For the specific implementation process, please refer to the above Figure 2 as well as Figure 4 The descriptions in the corresponding embodiments respectively.

[0163] The core design of this application is to introduce human-computer interaction into the display mode of digital asset applications, so that the target virtual resources have more playability and functional attributes, rather than being limited to collection and viewing.

[0164] As can be seen from the above, this application can avoid storing the target virtual resource in the blockchain network by storing the metadata corresponding to the target virtual resource and the target warrant identifier in the blockchain network. Because the space occupied by the metadata is smaller than the space occupied by the target virtual resource, the application can not only save the blockchain storage space, but also improve the applicability of the blockchain storage data by storing the metadata corresponding to the target virtual resource. Therefore, when the target virtual resource has a large space occupied, its authenticity can still be guaranteed through the blockchain network. The target virtual resource in the embodiment of the present application has both asset attributes and interactive attributes. Therefore, the application can be used to improve the display effect of the target virtual resource by realizing interactive operations with the target virtual resource.

[0165] Further, see Figure 9 , Figure 9 This is a flow chart of a data processing method based on blockchain provided by an embodiment of the present application. The data processing method based on blockchain can be Figure 1 The application server in the Figure 1 The terminal device in the Figure 1 The application server and the terminal device in the embodiment interact and execute, for the sake of ease of understanding, the embodiment of the present application takes the terminal device executing the method as an example for explanation. Figure 9As shown, the blockchain-based data processing method may at least include the following steps S201-S206.

[0166] Step S201: Create a target virtual resource.

[0167] Specifically, it is understandable that the terminal device may create the target virtual resource locally, or may receive the target virtual resource from other devices.

[0168] Step S202: Generate metadata corresponding to the target virtual resource.

[0169] Specifically, the name corresponding to the target virtual resource, the description text corresponding to the target virtual resource, and X attribute information corresponding to the target virtual resource are obtained, where X is a positive integer; basic resource information corresponding to the target virtual resource is generated based on the name, the description text, and the X attribute information; a resource storage request carrying the target virtual resource is sent to a storage device so that the storage device writes the target virtual resource; a storage path for the target virtual resource returned by the storage device is obtained, and metadata is generated based on the storage path and the basic resource information.

[0170] Please refer to Table 1, which is a schematic diagram of the composition of metadata provided in an embodiment of the present application.

[0171] Table 1

[0172]

[0173]

[0174] The resource name represents the name of the target virtual resource, such as Figure 2 The name "Virtual Resource 1" is shown in the example; the resource description can represent the descriptive text corresponding to the target virtual resource, which can include interaction logic, three-dimensional vertex coordinates, target projection position, and the connection relationship between the vertices corresponding to the target virtual resource. The content of the descriptive text can be set according to the actual application scenario; Table 1 uses three resource attributes as example attribute information. Assuming that the target virtual resource is a virtual pedestrian, resource attribute type 1 can be gender, then the resource attribute value can be male or female; resource attribute type 2 can be age, then the resource attribute value can be child; resource attribute type 3 can be emotion, then the resource attribute value can be happy. It can be understood that the above description is only for ease of understanding, and does not mean that the target virtual resource has only three attribute information, nor does it mean that the attribute information can only be gender, age and emotion. It can be set according to the actual application scenario.

[0175] Step S203: Call the blockchain network to issue the target virtual resources.

[0176] Specifically, a resource summary corresponding to the target virtual resource is generated; a resource issuance request is generated based on the metadata, resource summary and object identifier, and the resource issuance request is sent to the blockchain network so that the blockchain network can reach a consensus on the resource issuance request. When the consensus is passed, a target warrant identifier with a binding relationship with the resource issuance request is created; and the target warrant identifier issued to the object identifier returned by the blockchain network is obtained.

[0177] When creating the target virtual resource, the terminal device can upload the resource hash of the target virtual resource and the storage address of the target virtual resource on the Internet (i.e., storage path) to the chain. When the upload is successful, the blockchain network can generate an on-chain digital asset for the target virtual resource, as well as a warrant identifier corresponding to the on-chain digital asset (i.e., target warrant identifier), add the target warrant identifier to the warrant identifier set corresponding to the object identifier, and return it to the terminal device.

[0178] Step S204: Obtain target virtual resources.

[0179] Specifically, it can be understood that a terminal device installed with a digital asset application logged in through an object identifier can have resource issuance authority, as described in steps S201-S203. In addition, it can also have resource collection authority, for example, it can collect virtual resources issued by other issuing object identifiers, or it can collect virtual resources held by other object identifiers, and it can also collect target object identifiers held by other object identifiers (for example, other object identifiers first collect the target virtual resources from the object identifier, and then the object identifier collects the target virtual resources from other object identifiers).

[0180] Step S205: display the target virtual resource.

[0181] Step S206: responding to a triggering operation for interacting with the target virtual resource.

[0182] Specifically, in combination with step S205 and step S206, in the digital asset application logged in through the object identifier, the terminal device responds to the trigger operation for motion interaction with the target virtual resource, obtains angular motion data through the angular motion detection component, and synchronizes the angular motion data to the interaction distribution component; in the interaction distribution component, it is determined that the interaction type corresponding to the angular motion data is a motion interaction type, and the angular motion data is synchronized to the physical engine component corresponding to the motion interaction type; in the physical engine component, the motion trajectory of the target virtual resource is output according to the angular motion data.

[0183] In a digital asset application logged in through an object identifier, the terminal device responds to a trigger operation for multimedia interaction with a target virtual resource, and obtains multimedia input data through a multimedia acquisition component; through an interaction distribution component, determines that the interaction type corresponding to the multimedia input data is a multimedia interaction type, and synchronizes the multimedia input data to a multimedia control component corresponding to the multimedia interaction type; through the multimedia control component, determines the multimedia output data corresponding to the multimedia input data, and plays the multimedia output data in the target virtual resource.

[0184] As can be seen from the above, this application can avoid storing the target virtual resource in the blockchain network by storing the metadata corresponding to the target virtual resource and the target warrant identifier in the blockchain network. Because the space occupied by the metadata is smaller than the space occupied by the target virtual resource, the application can not only save the blockchain storage space, but also improve the applicability of the blockchain storage data by storing the metadata corresponding to the target virtual resource. Therefore, when the target virtual resource has a large space occupied, its authenticity can still be guaranteed through the blockchain network. The target virtual resource in the embodiment of the present application has both asset attributes and interactive attributes. Therefore, the application can be used to improve the display effect of the target virtual resource by realizing interactive operations with the target virtual resource.

[0185] Further, see Figure 10 , Figure 10 This is a flow chart of a data processing method based on blockchain provided by an embodiment of the present application. The data processing method based on blockchain can be Figure 1 The terminal device in the Figure 1 The application server and the terminal device in the embodiment interact and execute, for the sake of ease of understanding, the embodiment of the present application takes the terminal device executing the method as an example for explanation. Figure 10 As shown, the blockchain-based data processing method may at least include the following steps S301-S302.

[0186] In step S301, the terminal device displays the target virtual resource in the digital asset application logged in via the object identifier; the target virtual resource is obtained based on the metadata returned by the blockchain network; the metadata is obtained by the terminal device sending a first resource acquisition request for the target virtual resource to the blockchain network via the object identifier; the first resource acquisition request is used to instruct the blockchain network to query the target warrant identifier associated with the object identifier and the target virtual resource, and obtain metadata that has a binding relationship with the target warrant identifier; the target warrant identifier is used to indicate that the object identifier has ownership of the target virtual resource;

[0187] For the specific implementation process of step S301, please refer to the above Figure 4Step S101 in the corresponding embodiment is not described in detail here.

[0188] Step S302 : responding to a triggering operation for interacting with a target virtual resource, controlling the target virtual resource to perform interactive output.

[0189] Specifically, the target virtual resource includes a virtual character and Y direction controls that are bound to the virtual character; the Y direction controls include a target direction control; Y is a positive integer; if in response to a trigger operation for activating a target area, a motion trajectory to be confirmed for the virtual character is output; the motion trajectory to be confirmed is generated based on the target area and an initial area for displaying the virtual character; the target area refers to an area other than the initial area in an interface for displaying the target virtual resource; in response to a trigger operation for confirming the motion trajectory to be confirmed, the virtual character is controlled to move according to the confirmed motion trajectory; if in response to a trigger operation for the target direction control, the virtual character is controlled to move in the direction indicated by the target direction control.

[0190] It is feasible that the target virtual resource includes a virtual character; in response to a trigger operation for activating the virtual character, the interaction pause state of the virtual character is updated to an interaction activation state; in the interaction activation state, in response to a trigger operation for audio interaction with the virtual character, the virtual character is controlled to output feedback audio data during the audio interaction process.

[0191] Among them, the specific process of controlling the virtual character to output feedback audio data during the audio interaction process may include: responding to a trigger operation for audio interaction with the virtual character, obtaining audio input data input for the virtual character, and obtaining position information and environmental information; inputting both the position information and the environmental information into the audio interaction logic, and determining the feedback audio data associated with the position information and the environmental information through the audio interaction logic; and controlling the virtual character to play the feedback audio data.

[0192] The target virtual resource can include a virtual character and a direction control for controlling the virtual character to perform interactive operations. Please refer to Figure 11 , Figure 11 This is a schematic diagram of a data processing scenario based on blockchain provided by an embodiment of the present application. Figure 11 As shown, after the operation object 101c logs in the object identifier in the digital asset application 90c installed on the terminal device 100c, it can view the target virtual resources that the object identifier has ownership in the blockchain network, such as Figure 11 The virtual character 90a and the Y direction controls 90f having a binding relationship with the virtual character 90c are shown in the example. If the screen corresponding to the terminal device 100a is used as a reference, then Figure 11The Y direction controls 90f may include four direction controls, namely an up control, a down control, a left control, and a right control.

[0193] If the operation object 101c selects the target area 90b as the next display position of the virtual character 90b in the interface for displaying the target virtual resource, the terminal device 100c can respond to the trigger operation for activating the target area 90b, and output the to-be-confirmed motion trajectory 90g for the virtual character 90a, wherein the to-be-confirmed motion trajectory 90g uses the initial area of ​​the virtual character 90a as the starting display position and the target area as the target display position; when the operation object 101c triggers the "Confirm" control, the terminal device responds to the trigger operation for confirming the to-be-confirmed motion trajectory 90g, and the control virtual character 90a moves according to the confirmed motion trajectory (at this time, equivalent to the to-be-confirmed motion trajectory 90g), and the virtual character 90d can be obtained.

[0194] Subsequently, if operating object 101c selects the down control, terminal device 100c determines the down control as the target direction control. When operating object 101c triggers the "Confirm" control, terminal device 100c can control virtual character 90d to move in the downward direction, thereby obtaining virtual character 90e. It can be understood that virtual characters 90a, 90d, and 90e all represent the same virtual resource, differing only in their representation.

[0195] For another possible solution, please refer to Figure 12 , Figure 12 This is a schematic diagram of a data processing scenario based on blockchain provided by an embodiment of the present application. Figure 12 As shown, the target virtual resource may include a virtual character 90h and an audio control 90i that is bound to the virtual character 90h. The audio control 90i may have a pickup function and a broadcasting function. The user object corresponding to the terminal device 90k, after logging in the object identifier in the digital asset application 90c installed on the terminal device 90k, can view the target virtual resource that the object identifier has ownership of in the blockchain network in the digital asset application 90c, such as Figure 12 If the user performs a trigger operation for audio interaction with the virtual character 90h, such as inputting the voice "Hello, XX" by the user, the terminal device 90k can respond to the trigger operation for activating the virtual character 90h and update the interaction pause state of the virtual character 90h to the interaction activation state, as shown by the virtual character 90j. At this time, the terminal device 90k can output the voice "Hello, I am happy to serve you" through the voice control 90i. In the interaction activation state, the user can perform audio interaction with the virtual character 90j through the voice control 90i, such as Figure 12 In the example, the user asks the virtual character 90j what the weather is like today through the voice control 90i. The terminal device 90k can respond to the trigger operation for audio interaction with the virtual character and obtain the audio input data input for the virtual character, that is, the voice "What's the weather like today?". Since the user asks about the weather, the terminal device 90k can obtain the location information and the environmental information; further, the location information and the environmental information are input into the audio interaction logic, and the audio interaction logic determines the feedback audio data associated with the location information and the environmental information; further, the terminal device 90k controls the virtual character 90j to play the feedback audio data, such as Figure 12 In the example shown, the virtual character 90j plays "Today's temperature is 19° to 23°, cloudy" through the voice control 90i.

[0196] It is understandable that Figure 2 、 Figure 3 、 Figure 9 as well as Figure 10 The interaction forms involved can be combined according to actual conditions to form richer interaction methods. In addition, the interaction methods can also be set according to the characteristics of different terminal devices. For example, on a mobile terminal (such as a mobile phone), an angular motion detection component (such as a gyroscope), a position sensor (such as a positioning component), and a temperature sensor (such as a thermometer) can be combined to use variables such as angular motion data, geographic location, and temperature as interaction input data; the present application can use the actual situation of the mobile device in the physical position to perform various types of interactions such as gravity, position, direction, and temperature; in devices that use virtual reality (VR) technology (such as VR helmets / glasses), digital asset applications can fuse the target virtual resources and the environmental information in the projected scene, and then interact with the user object corresponding to the terminal device. For example, a target virtual resource is superimposed on a real environment through augmented reality glasses. For example, if there is a table in the real environment, the target virtual resource can be automatically attached to the table. If the user extends his hand, the target virtual resource can be placed on the user's hand.

[0197] As can be seen from the above, this application can avoid storing the target virtual resource in the blockchain network by storing the metadata corresponding to the target virtual resource and the target warrant identifier in the blockchain network. Because the space occupied by the metadata is smaller than the space occupied by the target virtual resource, the application can not only save the blockchain storage space, but also improve the applicability of the blockchain storage data by storing the metadata corresponding to the target virtual resource. Therefore, when the target virtual resource has a large space occupied, its authenticity can still be guaranteed through the blockchain network. The target virtual resource in the embodiment of the present application has both asset attributes and interactive attributes. Therefore, the application can be used to improve the display effect of the target virtual resource by realizing interactive operations with the target virtual resource.

[0198] Further, see Figure 13 , Figure 13 This is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application. The blockchain-based data processing device can be a computer program (including program code) running on a computer device. For example, the blockchain-based data processing device is an application software; the device can be used to execute the corresponding steps of the method provided in the embodiment of the present application. Figure 13 As shown, the blockchain-based data processing device 1 may include: a request sending module 11, a first acquisition module 12 and an interactive output module 13.

[0199] The request sending module 11 is configured to send a first resource acquisition request for a target virtual resource by an object identifier to a blockchain network, so that the blockchain network queries a target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and obtains metadata having a binding relationship with the target warrant identifier; the target warrant identifier is used to indicate that the object identifier has ownership of the target virtual resource;

[0200] A first acquisition module 12 is used to acquire target virtual resources according to the metadata returned by the blockchain network;

[0201] The interactive output module 13 is configured to respond to a triggering operation for interacting with a target virtual resource and control the target virtual resource to perform interactive output.

[0202] The specific functional implementation of the request sending module 11, the first acquisition module 12 and the interactive output module 13 can be found in the above Figure 3 Steps S101 to S103 in the corresponding embodiment are not described again here.

[0203] See also Figure 13 The request sending module 11 may include: a first obtaining unit 111, a first generating unit 112 and a first sending unit 113.

[0204] The first acquisition unit 111 is configured to respond to a resource acquisition instruction in a digital asset application logged in via an object identifier and acquire a to-be-verified certificate identifier for a target virtual resource;

[0205] The first generating unit 112 is configured to generate a first resource acquisition request according to the to-be-verified certificate identifier and the object identifier, and to sign the first resource acquisition request to obtain signature information;

[0206] The first sending unit 113 is used to send a first resource acquisition request carrying signature information to the blockchain network; the signature information is used to instruct the blockchain network to verify the legitimacy of the object identifier; the object identifier is used to instruct the blockchain network to obtain a set of warrant identifiers that have a binding relationship with the object identifier when determining that the object identifier has legal authority; the warrant identifier set includes a target warrant identifier; the warrant identifier to be verified is used to instruct the blockchain network to determine the object identifier's holding authority for the target virtual resource based on the warrant identifier set; the holding authority is used to characterize that the warrant identifier to be verified is the same as the target warrant identifier.

[0207] The specific functional implementation of the first acquisition unit 111, the first generation unit 112 and the first sending unit 113 can be found in the above Figure 3 The step S101 in the corresponding embodiment will not be described again here.

[0208] See also Figure 13 The first acquisition module 12 may include: a second acquisition unit 121, a second sending unit 122 and a third acquisition unit 123.

[0209] The second acquisition unit 121 is used to acquire metadata sent by the blockchain network in the digital asset application logged in through the object identifier;

[0210] The second sending unit 122 is configured to parse the metadata, obtain a storage path corresponding to the target virtual resource, and send a second resource acquisition request to a storage device corresponding to the storage path;

[0211] The third obtaining unit 123 is configured to obtain resource data for the target virtual resource returned by the storage device, and display the target virtual resource according to the resource data.

[0212] The specific functional implementation of the second acquisition unit 121, the second sending unit 122 and the third acquisition unit 123 can be found in the above Figure 3 The step S102 in the corresponding embodiment will not be described again here.

[0213] See also Figure 13The third acquiring unit 123 may include: a data parsing subunit 1231 and a data rendering subunit 1232 .

[0214] The data parsing subunit 1231 is used to parse the resource data and obtain the resource data to be rendered;

[0215] The data rendering sub-unit 1232 is used to call the physical engine and render the resource data to be rendered through the rendering pipeline in the physical engine to obtain the target virtual resource for display in the presentation interface.

[0216] The specific functional implementation of the data parsing subunit 1231 and the data rendering subunit 1232 can be found in the above Figure 3 The step S102 in the corresponding embodiment will not be described again here.

[0217] See also Figure 13 The data rendering subunit 1232 may include: a first acquiring subunit 12321 , a second acquiring subunit 12322 , a first generating subunit 12323 , and a second generating subunit 12324 .

[0218] The first acquisition subunit 12321 is used to obtain the three-dimensional vertex coordinates of the vertices of the target virtual resource in the three-dimensional space from the resource data to be rendered;

[0219] The second acquisition subunit 12322 is used to obtain the target projection position, call the vertex shader, map the three-dimensional vertex coordinates to the two-dimensional space according to the target projection position, and obtain the two-dimensional vertex coordinates of the vertex of the target virtual resource at the target projection position;

[0220] The first generating subunit 12323 is configured to draw, in a two-dimensional space, two-dimensional lines corresponding to the two-dimensional vertex coordinates and a two-dimensional plane generated by the two-dimensional lines according to the connection relationship between the vertices of the target virtual resource;

[0221] The second generating subunit 12324 is configured to display the target virtual resource at the target projection position in the display interface according to the two-dimensional lines and the two-dimensional plane.

[0222] The specific functional implementation of the first acquisition subunit 12321, the second acquisition subunit 12322, the first generation subunit 12323 and the second generation subunit 12324 can be found in the above Figure 3 The step S102 in the corresponding embodiment will not be described again here.

[0223] See also Figure 13 , the data to be rendered includes a target color corresponding to the target virtual resource;

[0224] The second generating subunit 12324 is specifically configured to determine the geometric primitives of the target virtual resource in the two-dimensional space according to the two-dimensional lines and the two-dimensional plane;

[0225] The second generating subunit 12324 is further specifically configured to perform rasterization processing on the geometric primitives to obtain fragments to be shaded including the target virtual resource displayed at the target projection position;

[0226] The second generating subunit 12324 is further specifically configured to render the target virtual resource in the fragment to be colored by using a fragment shader, and display the target virtual resource with a target color in the display interface based on the rendering result.

[0227] The specific functional implementation of the second generation subunit 12324 can be found in the above Figure 3 The step S102 in the corresponding embodiment will not be described again here.

[0228] See also Figure 13 The interactive output module 13 may include: a fourth acquiring unit 131 , a first synchronizing unit 132 and a second generating unit 133 .

[0229] The fourth acquisition unit 131 is configured to acquire interaction input data in response to a trigger operation for interacting with a target virtual resource in a digital asset application logged in via an object identifier;

[0230] The first synchronization unit 132 is used to determine the interaction type corresponding to the interaction input data through the interaction distribution component, and synchronize the interaction input data to the data processing component corresponding to the interaction type;

[0231] The second generating unit 133 is configured to execute the interaction logic according to the interaction input data in the data processing component to obtain the interaction output data;

[0232] The second generating unit 133 is further configured to output the interactive output data in the target virtual resource.

[0233] The specific functional implementation of the fourth acquisition unit 131, the first synchronization unit 132 and the second generation unit 133 can be found in the above Figure 3 The corresponding step S103 in the embodiment will not be described again here.

[0234] See also Figure 13 The interactive output module 13 may include: a fifth acquiring unit 134 , a second synchronizing unit 135 and a third generating unit 136 .

[0235] a fifth acquiring unit 134 configured to, in the digital asset application logged in via the object identifier, respond to a triggering operation for performing motion interaction with a target virtual resource, acquire angular motion data via the angular motion detection component, and synchronize the angular motion data to the interaction distribution component;

[0236] The second synchronization unit 135 is configured to determine, in the interaction distribution component, that the interaction type corresponding to the angular motion data is a motion interaction type, and synchronize the angular motion data to the physics engine component corresponding to the motion interaction type;

[0237] The third generating unit 136 is configured to output the motion trajectory of the target virtual resource according to the angular motion data in the physical engine component.

[0238] The specific functional implementation of the fifth acquisition unit 134, the second synchronization unit 135 and the third generation unit 136 can be found in the above Figure 3 The corresponding step S103 in the embodiment will not be described again here.

[0239] See also Figure 13 The interactive output module 13 may include: a sixth acquiring unit 137 , a third synchronizing unit 138 and a fourth generating unit 139 .

[0240] A sixth acquisition unit 137 is configured to acquire multimedia input data through a multimedia acquisition component in response to a triggering operation for multimedia interaction with a target virtual resource in the digital asset application logged in through the object identifier;

[0241] The third synchronization unit 138 is configured to determine, through the interaction distribution component, that the interaction type corresponding to the multimedia input data is a multimedia interaction type, and synchronize the multimedia input data to the multimedia control component corresponding to the multimedia interaction type;

[0242] The fourth generating unit 139 is configured to determine multimedia output data corresponding to the multimedia input data through the multimedia control component, and play the multimedia output data in the target virtual resource.

[0243] The specific functional implementation of the sixth acquisition unit 137, the third synchronization unit 138 and the fourth generation unit 139 can be found in the above Figure 3 The corresponding step S103 in the embodiment will not be described again here.

[0244] See also Figure 13 The blockchain-based data processing device 1 may further include: a first generation module 14, a second generation module 15 and a second acquisition module 16.

[0245] A first generating module 14 is configured to create a target virtual resource, generate metadata corresponding to the target virtual resource, and generate a resource summary corresponding to the target virtual resource;

[0246] The second generation module 15 is used to generate a resource issuance request based on the metadata, resource summary, and object identifier, and send the resource issuance request to the blockchain network so that the blockchain network can reach a consensus on the resource issuance request. When the consensus is reached, a target warrant identifier is created that is bound to the resource issuance request;

[0247] The second acquisition module 16 is used to obtain the target certificate identifier issued to the object identifier returned by the blockchain network.

[0248] The specific functional implementation of the first generation module 14, the second generation module 15 and the second acquisition module 16 can be found in the above Figure 9 Steps S201 to S203 in the corresponding embodiment are not described again here.

[0249] See also Figure 13 The first generating module 14 may include: a seventh acquiring unit 141 , a fifth generating unit 142 , a third sending unit 143 and a sixth generating unit 144 .

[0250] The seventh acquiring unit 141 is configured to acquire a name corresponding to a target virtual resource, a description text corresponding to the target virtual resource, and X pieces of attribute information corresponding to the target virtual resource; X is a positive integer;

[0251] The fifth generating unit 142 is configured to generate basic resource information corresponding to the target virtual resource according to the name, description text, and X attribute information;

[0252] The third sending unit 143 is configured to send the resource storage request carrying the target virtual resource to the storage device, so that the storage device writes the target virtual resource;

[0253] The sixth generating unit 144 is configured to obtain the storage path for the target virtual resource returned by the storage device, and generate metadata according to the storage path and basic resource information.

[0254] The specific functional implementation of the seventh acquisition unit 141, the fifth generation unit 142, the third sending unit 143 and the sixth generation unit 144 can be found in the above Figure 9 The step S202 in the corresponding embodiment will not be described again here.

[0255] As can be seen from the above, this application can avoid storing the target virtual resource in the blockchain network by storing the metadata corresponding to the target virtual resource and the target warrant identifier in the blockchain network. Because the space occupied by the metadata is smaller than the space occupied by the target virtual resource, the application can not only save the blockchain storage space, but also improve the applicability of the blockchain storage data by storing the metadata corresponding to the target virtual resource. Therefore, when the target virtual resource has a large space occupied, its authenticity can still be guaranteed through the blockchain network. The target virtual resource in the embodiment of the present application has both asset attributes and interactive attributes. Therefore, the application can be used to improve the display effect of the target virtual resource by realizing interactive operations with the target virtual resource.

[0256] Further, see Figure 14 , Figure 14 This is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application. The blockchain-based data processing device can be a computer program (including program code) running on a computer device, for example, the data processing device is an application software; the device can be used to execute the corresponding steps of the method provided in the embodiment of the present application. Figure 14 As shown, the data processing device 2 can be run on a terminal device, which can be the above-mentioned Figure 3 The terminal device in the corresponding embodiment. The blockchain-based data processing device 2 may include: a resource display module 21 and an interactive output module 22.

[0257] The resource display module 21 is used to display the target virtual resource in the digital asset application logged in via the object identifier; the target virtual resource is obtained based on the metadata returned by the blockchain network; the metadata is obtained by the terminal device sending a first resource acquisition request for the target virtual resource to the blockchain network via the object identifier; the first resource acquisition request is used to instruct the blockchain network to query the target warrant identifier associated with the object identifier and the target virtual resource, and obtain metadata having a binding relationship with the target warrant identifier; the target warrant identifier is used to indicate that the object identifier has ownership of the target virtual resource;

[0258] The interactive output module 22 is configured to respond to a triggering operation for interacting with a target virtual resource and control the target virtual resource to perform interactive output.

[0259] The specific functional implementation of the resource display module 21 and the interactive output module 22 can be found in the above Figure 10 Steps S301 and S302 in the corresponding embodiment will not be described in detail here.

[0260] See also Figure 14,The target virtual resources include three-dimensional models;

[0261] The interactive output module 22 may further include: a first acquiring unit 221 and a second acquiring unit 222 .

[0262] The first acquiring unit 221 is configured to acquire a rotation indication direction in response to a triggering operation for rotating the three-dimensional model, and control the three-dimensional model to rotate according to the rotation indication direction;

[0263] The second acquiring unit 222 is configured to acquire a scaling ratio in response to a triggering operation for scaling the three-dimensional model, and control the three-dimensional model to be scaled according to the scaling ratio.

[0264] The specific functional implementation of the first acquisition unit 221 and the second acquisition unit 222 can be found in the above Figure 2 The description in the corresponding embodiment will not be repeated here.

[0265] See also Figure 14 , the target virtual resource includes a virtual character and Y direction controls having a binding relationship with the virtual character; the Y direction controls include a target direction control; Y is a positive integer;

[0266] The interactive output module 22 may further include a trajectory output unit 223 , a first control unit 224 , and a second control unit 225 .

[0267] The trajectory output unit 223 is configured to output a pending motion trajectory for the virtual character in response to a trigger operation for activating a target area; the pending motion trajectory is generated based on the target area and an initial area for displaying the virtual character; the target area is the area of ​​the interface for displaying the target virtual resource other than the initial area;

[0268] The first control unit 224 is configured to respond to a trigger operation for confirming a motion trajectory to be confirmed, and control the virtual character to move according to the confirmed motion trajectory;

[0269] The second control unit 225 is configured to control the virtual character to move in the direction indicated by the target direction control in response to a trigger operation on the target direction control.

[0270] The specific functional implementation of the trajectory output unit 223, the first control unit 224 and the second control unit 225 can be found in the above Figure 10 The step S302 in the corresponding embodiment will not be described again here.

[0271] See also Figure 14 ,The target virtual resources include virtual characters;

[0272] The interactive output module 22 may further include: a state updating unit 226 and a third control unit 227 .

[0273] The state updating unit 226 is configured to update the interaction pause state of the virtual character to the interaction activation state in response to a trigger operation for activating the virtual character;

[0274] The third control unit 227 is configured to respond to a triggering operation for audio interaction with the virtual character in the interaction activation state, and control the virtual character to output feedback audio data during the audio interaction.

[0275] The specific functional implementation of the state update unit 226 and the third control unit 227 can be found in the above Figure 10 The step S302 in the corresponding embodiment will not be described again here.

[0276] See also Figure 14 The third control unit 227 may include: a data acquisition subunit 2271, a feedback determination subunit 2272 and a feedback playback subunit 2273.

[0277] The data acquisition subunit 2271 is used to respond to a trigger operation for audio interaction with the virtual character, acquire audio input data input for the virtual character, and acquire position information and environmental information;

[0278] Feedback determination subunit 2272, configured to input both the position information and the environment information into the audio interaction logic, and determine feedback audio data associated with the position information and the environment information through the audio interaction logic;

[0279] The feedback playing subunit 2273 is used to control the virtual character to play feedback audio data.

[0280] The specific functional implementation of the data acquisition subunit 2271, the feedback determination subunit 2272 and the feedback playback subunit 2273 can be found in the above Figure 10 The step S302 in the corresponding embodiment will not be described again here.

[0281] See also Figure 14 , the target virtual resource includes Z audio data playback controls; the Z audio data playback controls include a first audio data playback control and a second audio data playback control; Z is a positive integer greater than 1;

[0282] The interactive output module 22 may include: a third acquiring unit 228 and a fourth control unit 229 .

[0283] A third acquisition unit 228 is used to respond to a trigger operation on the first audio data playback control at the first moment and acquire the first audio data corresponding to the first audio data playback control;

[0284] The third acquiring unit 228 is further configured to acquire, in response to a triggering operation on a second audio data playback control at a second moment, second audio data corresponding to the second audio data playback control; the second moment is later than the first moment, and a time interval between the second moment and the first moment is less than a duration threshold;

[0285] The fourth control unit 229 is used to control the target virtual resource to play the first audio data and the second audio data in sequence if the trigger operation for Z audio data playback controls is not responded to at the third moment; the third moment is later than the second moment, and the time interval between the third moment and the second moment is greater than or equal to the duration threshold.

[0286] The specific functional implementation of the third acquisition unit 228 and the fourth control unit 229 can be found in the above Figure 3 The corresponding step S103 in the embodiment will not be described again here.

[0287] As can be seen from the above, this application can avoid storing the target virtual resource in the blockchain network by storing the metadata corresponding to the target virtual resource and the target warrant identifier in the blockchain network. Because the space occupied by the metadata is smaller than the space occupied by the target virtual resource, the application can not only save the blockchain storage space, but also improve the applicability of the blockchain storage data by storing the metadata corresponding to the target virtual resource. Therefore, when the target virtual resource has a large space occupied, its authenticity can still be guaranteed through the blockchain network. The target virtual resource in the embodiment of the present application has both asset attributes and interactive attributes. Therefore, the application can be used to improve the display effect of the target virtual resource by realizing interactive operations with the target virtual resource.

[0288] Further, see Figure 15 , Figure 15 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 15As shown, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 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 also be at least one storage device located away from the aforementioned processor 1001. As Figure 15 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.

[0289] exist Figure 15 In the computer device 1000 shown, the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an interface for user input; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0290] Sending a first resource acquisition request for the target virtual resource by the object identifier to the blockchain network, so that the blockchain network queries the target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and obtains metadata having a binding relationship with the target warrant identifier; the target warrant identifier is used to represent that the object identifier has ownership of the target virtual resource;

[0291] Obtain the target virtual resources based on the metadata returned by the blockchain network;

[0292] In response to a trigger operation for interacting with a target virtual resource, the target virtual resource is controlled to perform interactive output.

[0293] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 、 Figure 9 as well as Figure 10 The description of the data processing method based on blockchain in the corresponding embodiment can also be performed as described above. Figure 13 The description of the blockchain-based data processing device 1 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.

[0294] Further, see Figure 16 , Figure 16 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 16 As shown, the computer device 2000 can be the above Figure 3 Corresponding to the terminal device in the embodiment, the above-mentioned computer device 2000 may include: a processor 2001, a network interface 2004 and a memory 2005. In addition, the above-mentioned computer device 2000 may also include: a user interface 2003, and at least one communication bus 2002. The communication bus 2002 is used to realize the connection and communication between these components. The user interface 2003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 2003 may optionally include a standard wired interface and a wireless interface. The network interface 2004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 2005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 2005 may optionally also be at least one storage device located away from the aforementioned processor 2001. As Figure 16 As shown, the memory 2005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application.

[0295] exist Figure 16 In the computer device 2000 shown, the network interface 2004 can provide network communication functions; the user interface 2003 is mainly used to provide an interface for user input; and the processor 2001 can be used to call the device control application stored in the memory 2005 to achieve:

[0296] In a digital asset application logged in via an object identifier, a target virtual resource is displayed; the target virtual resource is obtained based on metadata returned by the blockchain network; the metadata is obtained by the terminal device sending a first resource acquisition request for the target virtual resource to the blockchain network via the object identifier; the first resource acquisition request is used to instruct the blockchain network to query the target warrant identifier associated with the object identifier and the target virtual resource, and obtain metadata that has a binding relationship with the target warrant identifier; the target warrant identifier is used to indicate that the object identifier has ownership of the target virtual resource;

[0297] In response to a trigger operation for interacting with a target virtual resource, the target virtual resource is controlled to perform interactive output.

[0298] It should be understood that the computer device 2000 described in the embodiment of the present application can execute the above Figure 3 、 Figure 6 、 Figure 7 as well as Figure 8 The description of the data processing method based on blockchain in the corresponding embodiment can also be performed as described above. Figure 14 The description of the blockchain-based data processing device 2 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.

[0299] The present invention also provides a computer-readable storage medium that stores a computer program. The computer program includes program instructions that are executed by a processor to implement Figure 3 、 Figure 9 as well as Figure 10 The data processing methods based on blockchain provided in each step can be found in the above Figure 3 、 Figure 9 as well as Figure 10 The implementation methods provided by each step will not be described in detail here. In addition, the description of the beneficial effects of adopting the same method will not be described in detail here either.

[0300] The computer-readable storage medium can be the blockchain-based data processing device provided in any of the aforementioned embodiments, or the internal storage unit of the computer device, such as the computer device's hard drive or memory. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc. Furthermore, the computer-readable storage medium can include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or is about to be output.

[0301] The present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, so that the computer device can execute the aforementioned Figure 3 、 Figure 9 as well as Figure 10 The description of the blockchain-based data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated here.

[0302] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or device comprising a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, apparatuses, products, or devices.

[0303] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0304] The methods and related devices provided by the embodiments of the present application are described with reference to the method flow charts and / or structural diagrams provided by the embodiments of the present application. Specifically, each process and / or block in the method flow charts and / or structural diagrams, as well as the combination of processes and / or blocks in the flow charts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 Schematic diagram of one or more processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including the instruction device, which implements the function specified in the process. Figure 1 Schematic diagram of one or more processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the process. Figure 1 The flow or flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.

[0305] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method based on blockchain, characterized in that: include: Sending a first resource acquisition request for a target virtual resource using an object identifier to a blockchain network, so that the blockchain network queries a target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and obtains metadata having a binding relationship with the target warrant identifier; The target certificate identifier is used to represent that the object identifier has ownership of the target virtual resource; Acquire the target virtual resource according to the metadata returned by the blockchain network; In response to a triggering operation for interacting with the target virtual resource, the target virtual resource is controlled to perform interactive output.

2. The method according to claim 1, characterized in that The sending of a first resource acquisition request for a target virtual resource with an object identifier to a blockchain network includes: Responding to a resource acquisition instruction in the digital asset application logged in by the object identifier, acquiring a to-be-verified certificate identifier for a target virtual resource; Generate a first resource acquisition request according to the to-be-verified certificate identifier and the object identifier, and sign the first resource acquisition request to obtain signature information; The first resource acquisition request carrying the signature information is sent to the blockchain network; the signature information is used to instruct the blockchain network to verify the legitimacy of the object identifier; the object identifier is used to instruct the blockchain network to obtain a set of warrant identifiers that are bound to the object identifier when determining that the object identifier has legal authority; the warrant identifier set includes the target warrant identifier; the warrant identifier to be verified is used to instruct the blockchain network to determine the holding authority of the object identifier for the target virtual resource based on the warrant identifier set; the holding authority is used to characterize that the warrant identifier to be verified is the same as the target warrant identifier.

3. The method according to claim 1, characterized in that The acquiring the target virtual resource according to the metadata returned by the blockchain network includes: In the digital asset application logged in by the object identifier, obtaining the metadata sent by the blockchain network; Parsing the metadata to obtain a storage path corresponding to the target virtual resource, and sending a second resource acquisition request to a storage device corresponding to the storage path; The resource data for the target virtual resource returned by the storage device is acquired, and the target virtual resource is displayed according to the resource data.

4. The method according to claim 3, characterized in that Displaying the target virtual resource according to the resource data includes: Parsing the resource data to obtain resource data to be rendered; The physical engine is called, and the resource data to be rendered is rendered through a rendering pipeline in the physical engine to obtain the target virtual resource for display in the presentation interface.

5. The method according to claim 4, characterized in that The rendering of the resource data to be rendered to obtain the target virtual resource for display in the presentation interface includes: Obtaining the three-dimensional vertex coordinates of the vertices of the target virtual resource in the three-dimensional space from the resource data to be rendered; Obtaining a target projection position, calling a vertex shader, mapping the three-dimensional vertex coordinates to a two-dimensional space according to the target projection position, and obtaining the two-dimensional vertex coordinates of the vertex of the target virtual resource at the target projection position; Drawing, in the two-dimensional space, two-dimensional lines corresponding to the two-dimensional vertex coordinates and a two-dimensional plane generated by the two-dimensional lines according to the connection relationship between the vertices of the target virtual resource; The target virtual resource at the target projection position is displayed in a display interface according to the two-dimensional line and the two-dimensional plane.

6. The method according to claim 5, characterized in that The data to be rendered includes a target color corresponding to the target virtual resource; The displaying of the target virtual resource at the target projection position in a display interface according to the two-dimensional line and the two-dimensional plane includes: Determining geometric primitives of the target virtual resource in the two-dimensional space according to the two-dimensional lines and the two-dimensional plane; Performing rasterization processing on the geometric primitives to obtain fragments to be shaded including the target virtual resource displayed at the target projection position; The target virtual resource in the to-be-colored fragment is rendered by a fragment shader, and the target virtual resource having the target color is displayed in a presentation interface based on the rendering result.

7. The method according to claim 1, characterized in that The response is used to trigger an operation of interacting with the target virtual resource, and controlling the target virtual resource to perform interactive output, including: In the digital asset application logged in by the object identifier, responding to a trigger operation for interacting with the target virtual resource, obtaining interaction input data; Determine, by means of an interactive distribution component, an interaction type corresponding to the interactive input data, and synchronize the interactive input data to a data processing component corresponding to the interaction type; In the data processing component, interactive logic is executed according to the interactive input data to obtain interactive output data; The interactive output data is output in the target virtual resource.

8. The method according to claim 1, characterized in that The response is used to trigger an operation of interacting with the target virtual resource, and controlling the target virtual resource to perform interactive output, including: In the digital asset application logged in by the object identifier, in response to a triggering operation for performing motion interaction with the target virtual resource, obtaining angular motion data by an angular motion detection component, and synchronizing the angular motion data to the interaction distribution component; In the interaction distribution component, determining that the interaction type corresponding to the angular motion data is a motion interaction type, and synchronizing the angular motion data to a physics engine component corresponding to the motion interaction type; In the physics engine component, a motion trajectory of the target virtual resource is output according to the angular motion data.

9. The method according to claim 1, characterized in that The response is used to trigger an operation of interacting with the target virtual resource, and controlling the target virtual resource to perform interactive output, including: In the digital asset application logged in by the object identifier, in response to a triggering operation for multimedia interaction with the target virtual resource, acquiring multimedia input data by a multimedia acquisition component; Determining, through the interactive distribution component, that the interaction type corresponding to the multimedia input data is a multimedia interaction type, and synchronizing the multimedia input data to the multimedia control component corresponding to the multimedia interaction type; The multimedia output data corresponding to the multimedia input data is determined through the multimedia control component, and the multimedia output data is played in the target virtual resource.

10. The method according to claim 1, characterized in that The method further comprises: Creating the target virtual resource, generating the metadata corresponding to the target virtual resource, and generating a resource summary corresponding to the target virtual resource; Generate a resource issuance request based on the metadata, the resource summary, and the object identifier, send the resource issuance request to the blockchain network, so that the blockchain network reaches a consensus on the resource issuance request, and when the consensus is reached, create the target warrant identifier that has a binding relationship with the resource issuance request; Obtain the target warrant identifier issued to the object identifier returned by the blockchain network.

11. The method according to claim 10, characterized in that The generating the metadata corresponding to the target virtual resource includes: Obtaining a name corresponding to the target virtual resource, a description text corresponding to the target virtual resource, and X attribute information corresponding to the target virtual resource; X is a positive integer; Generate resource basic information corresponding to the target virtual resource according to the name, the description text and the X attribute information; Sending a resource storage request carrying the target virtual resource to a storage device, so that the storage device writes the target virtual resource; The storage path for the target virtual resource returned by the storage device is obtained, and the metadata is generated according to the storage path and the basic information of the resource.

12. A data processing method based on blockchain, characterized in that: include: The terminal device displays the target virtual resource in the digital asset application logged in through the object identifier; The target virtual resource is obtained based on metadata returned by the blockchain network; the metadata is obtained by the terminal device sending a first resource acquisition request for the target virtual resource to the blockchain network through the object identifier; the first resource acquisition request is used to instruct the blockchain network to query the target warrant identifier associated with the object identifier and the target virtual resource, and obtain the metadata having a binding relationship with the target warrant identifier; The target certificate identifier is used to represent that the object identifier has ownership of the target virtual resource; In response to a triggering operation for interacting with the target virtual resource, the target virtual resource is controlled to perform interactive output.

13. The method according to claim 12, characterized in that The target virtual resource includes a three-dimensional model; The response is used to trigger an operation of interacting with the target virtual resource, and controlling the target virtual resource to perform interactive output, including: If a trigger operation for rotating the three-dimensional model is responded to, obtaining a rotation indication direction, and controlling the three-dimensional model to rotate according to the rotation indication direction; If a trigger operation for scaling the three-dimensional model is responded to, a scaling ratio is obtained, and the three-dimensional model is controlled to be scaled according to the scaling ratio.

14. The method according to claim 12, characterized in that The target virtual resource includes a virtual character and Y direction controls that are bound to the virtual character; the Y direction controls include a target direction control; Y is a positive integer; The response is used to trigger an operation of interacting with the target virtual resource, and controlling the target virtual resource to perform interactive output, including: In response to a trigger operation for activating a target area, a to-be-confirmed motion trajectory for the virtual character is output; the to-be-confirmed motion trajectory is generated based on the target area and an initial area for displaying the virtual character; the target area is an area other than the initial area in an interface for displaying the target virtual resource; In response to a triggering operation for confirming the to-be-confirmed motion trajectory, controlling the virtual character to move according to the confirmed motion trajectory; If the trigger operation for the target direction control is responded to, the virtual character is controlled to move in the direction indicated by the target direction control.

15. The method according to claim 12, characterized in that The target virtual resource includes a virtual character; The response is used to trigger an operation of interacting with the target virtual resource, and controlling the target virtual resource to perform interactive output, including: In response to a trigger operation for activating the virtual character, updating the interaction pause state of the virtual character to an interaction activation state; In the interaction activation state, in response to a triggering operation for audio interaction with the virtual character, the virtual character is controlled to output feedback audio data during the audio interaction.

16. The method according to claim 15, characterized in that The response is used to trigger an audio interaction with the virtual character, and controls the virtual character to output feedback audio data during the audio interaction, including: In response to a triggering operation for audio interaction with the virtual character, obtaining audio input data input for the virtual character, and obtaining position information and environmental information; Inputting the position information and the environment information into audio interaction logic, and determining, through the audio interaction logic, feedback audio data associated with the position information and the environment information; The virtual character is controlled to play the feedback audio data.

17. The method according to claim 12, characterized in that The target virtual resource includes Z audio data playback controls; the Z audio data playback controls include a first audio data playback control and a second audio data playback control; Z is a positive integer greater than 1; The response is used to trigger an operation of interacting with the target virtual resource, and controlling the target virtual resource to perform interactive output, including: In response to a triggering operation on the first audio data playback control at a first moment, obtaining first audio data corresponding to the first audio data playback control; In response to a triggering operation on the second audio data playback control at a second moment, obtaining second audio data corresponding to the second audio data playback control; the second moment is later than the first moment, and the time interval between the second moment and the first moment is less than a duration threshold; If the trigger operation for the Z audio data playback controls is not responded to at the third moment, the target virtual resource is controlled to play the first audio data and the second audio data in sequence; the third moment is later than the second moment, and the time interval between the third moment and the second moment is greater than or equal to the duration threshold.

18. A data processing device based on blockchain, characterized in that: include: a request acquisition module, configured to send a first resource acquisition request for a target virtual resource using an object identifier to a blockchain network, so that the blockchain network queries a target warrant identifier associated with the object identifier and the target virtual resource based on the first resource acquisition request, and acquires metadata having a binding relationship with the target warrant identifier; The target certificate identifier is used to represent that the object identifier has ownership of the target virtual resource; A first acquisition module, configured to acquire the target virtual resource according to the metadata returned by the blockchain network; The interactive output module is configured to respond to a triggering operation for interacting with the target virtual resource and control the target virtual resource to perform interactive output.

19. A data processing device based on blockchain, characterized in that: The blockchain-based data processing device runs on a terminal device and includes: A resource display module is configured to display a target virtual resource in a digital asset application logged in via an object identifier; the target virtual resource is obtained based on metadata returned by a blockchain network; the metadata is obtained by the terminal device sending a first resource acquisition request for the target virtual resource to the blockchain network via the object identifier; the first resource acquisition request is configured to instruct the blockchain network to query a target warrant identifier associated with the object identifier and the target virtual resource, and obtain the metadata having a binding relationship with the target warrant identifier; the target warrant identifier is configured to indicate that the object identifier has ownership of the target virtual resource; The interactive output module is configured to respond to a triggering operation for interacting with the target virtual resource and control the target virtual resource to perform interactive output.

20. A computer device, characterized in that: include: A processor, a memory, and a network interface; the processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, 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 described in any one of claims 1 to 17.

21. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which 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 17.

22. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The computer instructions are suitable for being read and executed by a processor, so as to enable a computer device having the processor to perform the method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Naming and blockchain record of the internet of things (IoT)

    CN110024422A

  • Method and device for processing virtual resource data, computer equipment and storage medium

    CN111061558A