CN114862573A - User interaction method and device based on block chain and node of block chain - Google Patents

User interaction method and device based on block chain and node of block chain Download PDF

Info

Publication number
CN114862573A
CN114862573A CN202210461602.1A CN202210461602A CN114862573A CN 114862573 A CN114862573 A CN 114862573A CN 202210461602 A CN202210461602 A CN 202210461602A CN 114862573 A CN114862573 A CN 114862573A
Authority
CN
China
Prior art keywords
user
information
transaction
digital resource
blockchain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210461602.1A
Other languages
Chinese (zh)
Inventor
王吉元
宋杨
夏凝
张如意
王莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Ant Blockchain Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ant Blockchain Technology Shanghai Co Ltd filed Critical Ant Blockchain Technology Shanghai Co Ltd
Priority to CN202210461602.1A priority Critical patent/CN114862573A/en
Publication of CN114862573A publication Critical patent/CN114862573A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Abstract

The specification provides a user interaction method and device based on a block chain and a node of the block chain, wherein the method comprises the following steps: receiving a first transaction sent by first user equipment of a first user, wherein the first transaction is used for uploading interactive information for sending to a second user to the blockchain, the first transaction is sent by the first user equipment in response to the operation of the first user after displaying identification information of the second user in a first virtual space, the information displayed by the first user equipment is received from a server, and the display information of the first virtual space is generated by the server according to information of a first digital resource stored in the blockchain; and executing the first transaction, and storing the interaction information in the blockchain.

Description

User interaction method and device based on block chain and node of block chain
Technical Field
The embodiment of the specification belongs to the technical field of block chains, and particularly relates to a user interaction method and device based on a block chain and a node of the block chain.
Background
The Blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. In the block chain system, data blocks are combined into a chain data structure in a sequential connection mode according to a time sequence, and a distributed account book which is not falsifiable and counterfeitable is ensured in a cryptographic mode. Because the blockchain has the characteristics of decentralization, information non-tampering, autonomy and the like, the blockchain is also paid more and more attention and is applied by people. Digital resources can be generated in a block chain based on Non-homogeneous Tokens (NFT) technology, and the digital resources are generally characterized by irreplaceability, limitation, and the like and are not divisible. Different block chains may use different NFT protocol standards to generate the digital resource. The current mainstream protocol standards include ERC721, ERC1155, ERC998, and the like. The ERC721 is the most common NFT protocol standard, and under the ERC721 standard, each generated digital resource has a unique identifier, and different digital resources are not replaceable with each other. Under the ERC1155 standard, the resource identification does not correspond to one resource but corresponds to one type of resource, different types of resources are not replaceable, different resources in one type of resource are not different and can be replaced mutually, and the quantity of the types of the resources is finite. In the ERC998 standard, digital resources generated based on NFT technology may be bundled or combined with digital resources generated based on the homogenization certification (FT) technology (e.g., ETH coins).
It follows that NFT technology offers the possibility of tokenizing items, records, etc., for example, real world (or virtual space) land, houses, etc. can be mapped to digital resources. To enable brand promotion, a brand party of a brand may create virtual resources (e.g., virtual land, virtual building, etc.) in a virtual space associated with the brand for interaction with users of the brand through the virtual resources or to provide a conduit for interaction between users of the brand through the virtual resources.
Disclosure of Invention
One or more embodiments of the present specification describe a blockchain-based user interaction method and apparatus, and a node of a blockchain.
According to a first aspect, a user interaction method based on a blockchain is provided, which is applied to a node of the blockchain, and the method includes: receiving a first transaction sent by first user equipment of a first user, wherein the first transaction is used for uploading interactive information for sending to a second user to the blockchain, the first transaction is sent by the first user equipment in response to the operation of the first user after displaying identification information of the second user in a first virtual space, information displayed by the first user equipment is received from a server, and the display information of the first virtual space is generated by the server according to information of a first digital resource stored in the blockchain; and executing the first transaction, and storing the interaction information in the block chain.
According to a second aspect, a blockchain-based user interaction method is provided, which is applied to a server, and includes: receiving first user position information from first user equipment of a first user, wherein the first user position information is used for indicating that identification information of the first user is positioned in a first virtual space displayed by the first user equipment; generating first display information, wherein the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information is used for indicating that the identification information of the second user is located in the first virtual space; sending the first display information to the first user equipment; receiving, from the first user device, a first transaction sent by a first user device of the first user, the first transaction being used to upload, to the blockchain, interaction information for transmission to the second user, the first transaction being generated by the first user device in response to an operation of the first user after displaying identification information of the second user located in the first virtual space; and sending the first transaction to the blockchain.
According to a third aspect, a method for user interaction based on a blockchain is provided, which is applied to a first user equipment, and includes: sending first user position information to a server, wherein the first user position information is obtained based on the operation of a first user on the first user equipment, and the first user position information is used for indicating that identification information of the first user is located in a first virtual space displayed by the first user equipment; acquiring first display information from the server, wherein the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information is used for indicating that the identification information of the second user is located in the first virtual space; displaying the first display information; generating a first transaction in response to the operation of the first user, wherein the first transaction is used for uploading interaction information used for being sent to the second user to the block chain; and sending the first transaction to the server.
According to a fourth aspect, there is provided a node of a blockchain, the node comprising: a first receiving unit, configured to receive a first transaction sent by a first user device of a first user, where the first transaction is used to upload interaction information to the blockchain, where the interaction information is used to be sent to a second user, the first transaction is sent by the first user device in response to an operation of the first user after displaying identification information of the second user located in a first virtual space, information displayed by the first user device is received from a server, and display information of the first virtual space is generated by the server according to information of a first digital resource stored in the blockchain; and the execution unit is configured to execute the first transaction and store the interaction information in the block chain.
According to a fifth aspect, there is provided a blockchain-based user interaction device disposed in a server, the device including: a first user location receiving unit, configured to receive first user location information from a first user device of a first user, where the first user location information is used to indicate that identification information of the first user is located in a first virtual space displayed by the first user device; a first display information generating unit configured to generate first display information, where the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information indicates that the identification information of the second user is located in the first virtual space; a first display information transmitting unit configured to transmit the first display information to the first user equipment; a first transaction receiving unit configured to receive, from the first user device, a first transaction transmitted by a first user device of the first user, the first transaction being used to upload, to the blockchain, interaction information for transmission to the second user, the first transaction being generated by the first user device in response to an operation of the first user after displaying identification information of the second user located in the first virtual space; a first transaction forwarding unit configured to send the first transaction to the blockchain.
According to a sixth aspect, there is provided a device for user interaction based on a blockchain, the device being disposed at a first user equipment, the device including: a first user location sending unit, configured to send first user location information to a server, where the first user location information is obtained based on an operation of a first user on the first user equipment, and the first user location information is used to indicate that identification information of the first user is located in a first virtual space displayed by the first user equipment; a first display information acquiring unit configured to acquire first display information from the server, where the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information is used to indicate that the identification information of the second user is located in the first virtual space; a first display information display unit configured to display the first display information; a first transaction generating unit configured to generate a first transaction in response to an operation of the first user, where the first transaction is used to upload interaction information for sending to the second user to the block chain; and the first transaction sending unit is configured to send the first transaction to the server.
According to a seventh aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method as described in any one of the implementations of the first aspect.
According to an eighth aspect, there is provided a node of a blockchain, comprising a memory and a processor, wherein the memory stores executable code, and the processor executes the executable code to implement the method described in any one of the implementation manners of the first aspect.
According to a ninth aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method as described in any one of the implementations of the second aspect.
According to a tenth aspect, there is provided a server, comprising a memory and a processor, wherein the memory stores executable code, and the processor executes the executable code to implement the method described in any one of the implementation manners of the second aspect.
According to an eleventh aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method as described in any implementation manner of the third aspect.
According to a twelfth aspect, there is provided a first user equipment, comprising a memory and a processor, wherein the memory stores executable codes, and the processor executes the executable codes to implement the method described in any implementation manner of the third aspect.
According to the user interaction method and device based on the blockchain and the node of the blockchain, the node of the blockchain can firstly receive a first transaction sent by a first user device of a first user, and the first transaction is used for uploading interaction information sent to a second user to the blockchain. The first transaction is sent by the first user equipment in response to the operation of the first user after displaying the identification information of the second user located in the first virtual space, the information displayed by the first user equipment is received from the server, and the display information of the first virtual space is generated by the server according to the information of the first digital resource stored in the block chain. Thereafter, the nodes of the blockchain may perform a first transaction to store the interaction information in the blockchain. Therefore, user interaction based on the block chain is realized, interaction information between users is stored in the block chain, and the safety and the non-tampering of the interaction information are guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and it is obvious for a person skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 illustrates a block chain architecture diagram in one embodiment;
FIG. 2 shows a schematic diagram of one application scenario in which embodiments of the present specification may be applied;
FIG. 3 is a schematic flow chart illustrating a first party creating a second digital resource corresponding to a target parcel;
FIG. 4 is a diagram illustrating an example of a data structure of a second digital resource corresponding to a target parcel;
FIG. 5 is a schematic diagram illustrating a process for creating a first digital asset corresponding to a target exhibition hall;
fig. 6 is a diagram showing an example of a data structure of a first digital asset corresponding to a target exhibition hall;
FIG. 7 is a schematic diagram illustrating a process for creating a third digital asset corresponding to a target exhibit;
FIG. 8 is a diagram illustrating an example of a data structure of a third digital asset corresponding to a target exhibit;
FIG. 9 illustrates an interaction diagram of a blockchain based user interaction method according to one embodiment;
FIG. 10 is a diagram illustrating an example of a data structure in which interaction information between users is stored on a blockchain;
FIG. 11 shows a schematic block diagram of a node of a blockchain in accordance with one embodiment;
FIG. 12 shows a schematic block diagram of a blockchain based user interaction device in accordance with one embodiment;
fig. 13 shows a schematic block diagram of a blockchain based user interaction device according to another embodiment.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without making any creative effort shall fall within the protection scope of the present specification.
The block chain technology is a special distributed database technology designed by artificial bitcoin (a digital currency) with a name of 'Zhongbenwis', is suitable for storing simple data which has precedence relationship and can be verified in a system, and guarantees that the data cannot be tampered and forged by using cryptography and consensus algorithms. To further illustrate the blockchain technique, FIG. 1 illustrates a blockchain architecture diagram in one embodiment. In the block chain architecture diagram shown in fig. 1, for example, 6 nodes are included in the block chain 100. The lines between the nodes schematically represent P2P (Peer-to-Peer) connections. The nodes may have a full ledger stored on them, i.e. the status of all blocks and all accounts. Wherein each node in the blockchain can generate the same state in the blockchain by performing the same transaction, and each node in the blockchain can store the same state database. It is to be understood that although fig. 1 illustrates 6 nodes included in the blockchain, embodiments of the present specification are not limited thereto and may include other numbers of nodes. Specifically, the nodes included in the block chain can meet the Byzantine Fault Tolerance (BFT) requirement. The byzantine fault tolerance requirement can be understood as that byzantine nodes can exist in a block chain, and the block chain does not show the byzantine behavior to the outside. Generally, some Byzantine Fault-tolerant algorithms require the number of nodes to be greater than 3f +1, where f is the number of Byzantine nodes, such as the practical Byzantine Fault-tolerant algorithm pbft (practical Byzantine Fault tolerance).
A transaction in the blockchain domain may refer to a unit of task that is performed in the blockchain and recorded in the blockchain. The transaction typically includes a send field (From), a receive field (To), and a Data field (Data). Where the transaction is a transfer transaction, the From field indicates the address of the account From which the transaction was initiated (i.e., From which a transfer task To another account was initiated), the To field indicates the address of the account From which the transaction was received (i.e., From which a transfer was received), and the Data field includes the transfer amount. In the case of a transaction calling an intelligent contract in a blockchain, the From field represents the account address From which the transaction was initiated, the To field represents the account address of the contract called by the transaction, and the Data field includes the name of the function in the calling contract, and Data such as incoming parameters To the function, for use in retrieving the code of the function From the blockchain and executing the code of the function when the transaction is executed.
The block chain may provide the functionality of an intelligent contract. An intelligent contract on a blockchain is a contract that can be executed on a blockchain system triggered by a transaction. An intelligent contract may be defined in the form of code. Calling the intelligent contract in the Ethernet workshop initiates a transaction pointing to the intelligent contract address, so that each node in the Ethernet workshop runs the intelligent contract code in a distributed mode. It should be noted that, in addition to the creation of the smart contracts by the users, the smart contracts may also be set by the system in the creation block. Such contracts are generally referred to as foundational contracts. In general, the data structure, parameters, attributes and methods of some blockchains may be set in the startup contract. Further, an account with system administrator privileges may create a contract at the system level, or modify a contract at the system level (simply referred to as a system contract). Wherein the system contract is usable to add data structures for different services in a blockchain.
In the scenario of contract deployment, for example, Bob sends a transaction containing information to create an intelligent contract (i.e., a deployment contract) into the blockchain as shown in fig. 1, the data field of the transaction includes the code (e.g., bytecode or machine code) of the contract to be created, and the to field of the transaction is null to indicate that the transaction is for contract deployment. After the agreement is achieved among the nodes through a consensus mechanism, a contract address '0 x6f8ae93 …' of the contract is determined, each node adds a contract account corresponding to the contract address of the intelligent contract in a state database, allocates a state storage corresponding to the contract account, and stores a contract code in the state storage of the contract, so that the contract creation is successful.
In the scenario of invoking a contract, for example, Bob sends a transaction for invoking a smart contract into the blockchain as shown in fig. 1, where the from field of the transaction is the address of the account of the transaction initiator (i.e., Bob), and "0 x6f8ae93 …" in the to field represents the address of the invoked smart contract, and the data field of the transaction includes the method and parameters for invoking the smart contract. After the transaction is identified in the blockchain, each node in the blockchain can execute the transaction respectively, so that the contract is executed respectively, and the state database is updated based on the execution of the contract.
In aspects of embodiments of the present specification, the intelligent contracts deployed in a blockchain may include NFT intelligent contracts, which may be code on the blockchain that enables NFT functionality. For example, the NFT function may include a coinage function, a transfer function, an inquiry function, and the like. Here, the coinage function may be used to create NFT resources in a blockchain, specifically, to document resource identification and attributes of NFT resources in a contracted state of an NFT smart contract in a blockchain. The transfer function may be used to transfer NFT resources from the current owner to another user. The query function may be used for attribute information of NFT resources.
As previously described, to implement brand promotion, a brand party of a brand may create virtual resources in a virtual space that are associated with the brand, e.g., create a virtual parcel, a virtual exhibition hall, etc. The brand users can interact through the virtual resources, and particularly how to realize the interaction between the users based on the virtual resources and how to ensure the safety of the interaction information between the users are problems to be considered. Here, the brand may be, for example, an intellectual property brand (IP brand).
To this end, an embodiment of the present specification provides a block chain-based user interaction method, and as an example, fig. 2 shows a schematic diagram of an application scenario to which the embodiment of the present specification may be applied. As shown in fig. 2, in the application scenario, the first virtual space is a target exhibition hall, the second virtual space is a target parcel K, and the target exhibition hall is constructed in the target parcel K. The target exhibition hall corresponds to the first digital resource, and the target parcel K corresponds to the second digital resource. The blockchain 100 may store information of the first digital resource and information of the second digital resource. Specifically, the blockchain 100 may be deployed with an intelligent contract, where the intelligent contract may be used to cast an NFT resource related to a brand, the NFT resource may include the first digital resource and the second digital resource, and information of the first digital resource and information of the second digital resource may be stored in a contract state of the intelligent contract.
The user device used by the user X can present the virtual space including the target parcel and the target exhibition hall to the user X through the browser. Specifically, an Application (APP) for displaying and operating the metacosmic virtual space may be installed in the user equipment, and the user equipment sends a virtual space display request to a server of the APP after receiving an operation of opening the APP by a user. Before that, after the intelligent contract of the block chain casts the NFT resource, the information of the NFT resource may also be transmitted to the server. In this way, after receiving the virtual space display request sent by the user equipment, the server may generate the display information of the target parcel K and the display information of the target exhibition hall on the target parcel K according to the information of the second digital resource and the information of the first digital resource. For example, processing such as rendering processing is performed based on the information of the first digital resource and the information of the second digital resource to obtain display information of the target parcel K and display information of the target exhibition hall suitable for display on the browser. Thereafter, the server may send display information to the user device of user X, and the browser of the user device of user X may display the target parcel K and the target exhibition hall located within the target parcel K. The user device of user X may also transmit user location information indicating that the identification information of user X is located in the target exhibition hall to the server. Here, the identification information of the user may include an account number of the user, a nickname, an avatar of the user in a virtual space, and the like. The first user device of user X may obtain first display information from the server, where the first display information includes display information of user X and display information of user Y. The display information of the user X may include identification information of the user X and first user location information, where the first user location information may be used to indicate that the identification information of the user X is located in a target exhibition hall displayed by the device of the user X; the display information of the user Y may include identification information of the user Y and second user location information, and the second user location information may be used to indicate that the identification information of the user Y is located in a target exhibition hall displayed by the device of the user Y. The identification information of user Y and the second user location information may be generated by the server based on an operation of user Y at its user device. In this way, the user device of user X may render in the browser according to the received first display information, thereby displaying the target parcel K, the target exhibition hall, and the user located in the target exhibition hall on the browser. Since both user X and user Y are located in the target exhibition hall in the virtual space, user X can see the identification information of user Y on the browser of its user device. At this time, the user X may send a first transaction to a node of the blockchain through the server, where the first transaction is used to upload the interaction information for sending to the user Y to the blockchain. The node of the blockchain may perform the first transaction, storing the interaction information in the blockchain. In addition, the block link point may also send the interactive information to the user equipment of the user Y through the server. Therefore, interaction between users located in the same target exhibition hall is achieved based on the block chain, interaction information between the users is stored in the block chain, and safety and non-tampering property of the interaction information are guaranteed.
As an example, fig. 3 shows a flow diagram of a first party creating a second digital resource corresponding to a target parcel. In the example shown in fig. 3, the following contents may be specifically included:
s301, a node of the blockchain may receive a second transaction from the server for creating a second digital resource.
In this implementation, a node of the blockchain may receive, from the server, a second transaction for creating a second digital resource corresponding to the target parcel in the virtual space. The second transaction may be received by the server from a device of the first brand party, and the second transaction may include the first location information in the virtual space and brand party information of the first brand party. In practice, the first card side can select an area in the virtual space for creating the target parcel according to actual needs. Taking the selected area as a rectangular area as an example, the first position information may include the length, width, and coordinate point of the lower left corner of the rectangular area. The branding party information for the first brand party may include a brand account, a brand name, a brand description, and so on.
S302, based on the first position information and the brand side information of the first brand side, a resource identifier of the second digital resource is generated.
In this implementation, the node of the block chain may generate the resource identifier of the second digital resource according to the first location information and the brand side information of the first brand side. Here, the resource identification of the second digital resource may be generated in various ways. For example, the first location information and the on-chain account of the first brand may be directly concatenated as the resource identifier of the second digital resource. For another example, the first location information and the brand side information of the first brand side may be concatenated and then subjected to hash calculation, and the calculation result may be used as the resource identifier of the second digital resource.
S303, storing information of the second digital resource in association with the resource identification of the second digital resource in the blockchain.
In this implementation, the node of the blockchain may store information of the second digital resource in the blockchain in association with the resource identification of the second digital resource. The information of the second digital resource comprises first position information and an identifier of the first brand. Here, the identification of the first brand party may include a brand account, a brand name, and so forth.
And S304, sending the information of the second digital resource to a server.
In this implementation, the node of the block chain may send the information of the second digital resource to the server for the server to generate the display information for the target parcel based on the information of the second digital resource. The server may send the generated display information for the target parcel to the user equipment, so that the user equipment can show the target parcel to the user.
In some alternative implementations, the second digital resource may be a non-homogenous certified NFT. The second transaction may invoke the smart contract, and the nodes of the blockchain may execute the second transaction to cast a corresponding second digital resource of the target parcel and store the cast second digital resource in a contract state of the smart contract.
As an example, fig. 4 shows a schematic diagram of an example of a data structure of the second digital resource corresponding to the target parcel. In the example shown in fig. 4, the second digital resource corresponds to a target parcel of the virtual space, and the on-chain data structure of the second digital resource may include metadata information, location information, and branding party information. The metadata information may include a parcel number, a parcel alias, a parcel length, a parcel width, and other information describing various attributes of the target parcel; the location information may include a coordinate point of a lower left corner of the target parcel; the brand side information may include information of the brand to which the target parcel belongs, and may specifically include a brand account, a brand name, a brand description, and the like. In this example, the branding party information may refer to information of the first branding party that created the second digital resource, in the case where the second digital resource originates from a post-creation transfer. For ease of understanding, the types of various information are also shown in fig. 4. It is to be understood that the data structure depicted in fig. 4 is only illustrative and not limiting of the data structure of the second digital resource, and in practice, different data structures may be defined for the second digital resource according to actual needs.
As another example, fig. 5 shows a flow diagram for creating a first digital asset corresponding to a target exhibition hall. In the example shown in fig. 5, the following contents may be specifically included:
s501, a third transaction for creating a first digital resource is received from a server.
In this implementation, a node of the blockchain may receive, from the server, a third transaction for creating a first digital resource corresponding to a target exhibition hall located within the target parcel. The third transaction may be received by the server from a device of the first brand party or the second brand party. Wherein the third transaction may include a resource identification of the second digital resource and branding party information of a branding party sending the third transaction. Taking the target plot as the first brand party creation as an example, that is, the first brand party may create a target exhibition hall belonging to the first brand party in the target plot created by the first brand party, and the second brand party may also create a target exhibition hall belonging to the second brand party in the target plot created by the first brand party, thereby realizing the joint-name activity of the first brand party and the second brand party.
S502, based on the resource identification of the second digital resource and the brand side information of the brand side, the resource identification of the first digital resource is generated.
In this implementation manner, the node of the block chain may generate the resource identifier of the first digital resource according to the resource identifier of the second digital resource and the brand party information of the brand party included in the third transaction. Here, the resource identification of the first digital resource may be generated in various ways. For example, the resource identifier of the second digital resource and the on-chain account of the branding party can be directly connected in series to serve as the resource identifier of the first digital resource. For another example, the resource identifier of the second digital resource and the brand information of the brand may be concatenated and then hash-calculated, and the calculation result may be used as the resource identifier of the first digital resource, and as an example, the hash value obtained by calculation may be used as the exhibition hall number.
S503, storing information of the first digital resource in association with the resource identifier of the first digital resource in the blockchain.
In this implementation, a node of the blockchain may store information of the first digital resource in the blockchain in association with a resource identification of the first digital resource. The information of the first digital resource may include the second location information and brand side information of a brand side that sent the third transaction. The second location information may be determined based on the first location information. Here, the first location information may represent location information of the target parcel, and the second location information may represent location information of the target exhibition hall, and the second location information may be determined based on the first location information since the target exhibition hall is located within the target parcel. For example, when the node of the block chain executes the third transaction, the node may determine the information of the second digital resource based on the resource identifier of the second digital resource, determine the first location information from the information of the second digital resource, and then determine the second location information according to the first location information.
S504, the information of the first digital resource is sent to a server.
In this embodiment, the node of the blockchain may send the information of the first digital resource to the server, so that the server generates display information for the target exhibition hall based on the information of the first digital resource. The server can send the generated display information for the target exhibition hall to the user equipment so that the user equipment can display the target exhibition hall to the user.
In some alternative implementations, the first digital resource may be a non-homogenous certified NFT. The third transaction may invoke the smart contract, and the nodes of the blockchain may execute the third transaction to cast the first digital resource corresponding to the target exhibition hall and store the cast first digital resource in a contract state of the smart contract.
As an example, fig. 6 is a diagram illustrating an example of a data structure of a first digital resource corresponding to a target exhibition hall. In the example shown in fig. 6, the target exhibition hall in the target block corresponding to the first digital resource, the on-chain data structure of the first digital resource may include basic information of the exhibition hall, coordinate information, time information, and the like. The basic information may include a exhibition hall number, an exhibition hall theme, a maximum exhibited item number, whether to be opened to other brands, an exhibition hall status, and a brand account, a brand name, and the like of a brand party to which the exhibition hall belongs. Here, the showroom status may include available, frozen, down, and so on. For example, when an exhibition hall is purchased and is in a home transfer, the exhibition hall status may be set to be frozen; when the exhibition hall is not sold, the exhibition hall state can be set to be off-shelf. The coordinate information may include the abscissa and ordinate of the lower left corner of the target exhibition hall, and the pixel length and the pixel width occupied by the target exhibition hall in the virtual space. The time information may include a showroom start time and a showroom end time. In addition, the data structure of the first digital resource may further include a resource identifier of the second digital resource corresponding to the target parcel where the target exhibition hall is located. For ease of understanding, the data types of the various information are also shown in fig. 6. It is to be understood that the data structure depicted in fig. 6 is only illustrative and not limiting of the data structure of the first digital resource, and in practice, different data structures may be defined for the first digital resource according to actual needs.
As another example, fig. 7 shows a schematic flow chart of creating a third digital resource corresponding to a target exhibit. In the example shown in fig. 7, the following contents may be specifically included:
s701, a fourth transaction for creating a third digital resource is received from the server.
In this implementation, a node of the blockchain may receive, from the server, a fourth transaction for creating a third digital resource corresponding to a target exhibit within the target exhibition hall. The fourth transaction may be received by the server from a device of the first brand party or the second brand party. The fourth transaction may invoke the smart contract to cast a third digital resource corresponding to the target exhibit. Here, the third digital resource corresponds to a target exhibit for display in the target exhibition hall. Optionally, the third digital resource may be a non-homogeneous certified NFT. The fourth transaction may include a resource identifier of the first digital resource corresponding to the target exhibit, an identifier of a brand party corresponding to the target exhibit, and data information of the target exhibit.
Optionally, the information of the first digital resource may include information indicating whether to open to another brand, and in the case of opening to another brand, the fourth transaction may be received by the server from a device of a brand different from the brand corresponding to the first digital resource.
For example, if the first digital resource corresponding to the target exhibition hall is created by the first brand party and the ownership of the first digital resource is not transferred, the brand party corresponding to the first digital resource is the first brand party. In the case that the target exhibition hall is open to other brands, the reception of the blockchain may receive and execute not only the transaction for creating the third digital resource corresponding to the target exhibition, which is sent by the first brand party through the server, but also the transaction for creating the third digital resource corresponding to the target exhibition, which is sent by the second brand party through the server. That is, in the case where the target exhibition hall is open to other brands, not only the transaction for creating the third digital resource transmitted by the brand party corresponding to the target exhibition hall can be received and executed, but also the transaction for creating the third digital resource transmitted by the brand party different from the brand party corresponding to the target exhibition hall can be received and executed.
S702, based on the fourth transaction, generating a resource identifier of the third digital resource.
In this implementation, the node of the blockchain may generate the resource identifier of the third digital resource according to the fourth transaction. Here, the resource identification of the third digital resource may be generated in various ways. For example, all or part of the information included in the fourth transaction may be subjected to hash calculation, and the calculation result may be used as the resource identifier of the third digital resource.
S703, storing information of the third data resource in association with the resource identifier of the third digital resource in the contract state of the intelligent contract.
In this implementation manner, the node of the block chain may store information of the third digital resource in association with a resource identifier of the third digital resource in a contract state of the smart contract, where the information of the third digital resource may include an identifier of the first digital resource corresponding to the target exhibition hall, an identifier of a brand party corresponding to the target exhibit, and data information of the target exhibit. For example, the data information of the target exhibit may include an exhibit number, exhibit metadata, exhibit price, whether to sell, exhibit status, and the like.
And S704, sending the information of the third digital resource to a server.
In this embodiment, the node of the blockchain may send the information of the third digital resource to the server, so that the server generates display information for the target exhibit based on the information of the third digital resource. The server can send the generated display information for the target exhibit to the user equipment so that the user equipment can display the target exhibit to the user.
In some optional implementations, the information of the third digital resource may include information indicating a home account of the target exhibit and whether the target exhibit is saleable, and in a case that the target exhibit is saleable, the node of the blockchain may further perform the following: and receiving a fifth transaction sent by the first user, wherein the fifth transaction can be used for changing the home account of the third digital resource into the account number of the first user in the information of the third digital resource, the fifth transaction can be sent by the first user after the first user purchases a target exhibit based on the target exhibit in the target exhibit displayed in the user equipment of the first user, and the display information of the target exhibit is generated according to the information of the third digital resource stored in the blockchain.
In practice, the browser of the user equipment can display a target exhibition hall in the virtual space and a target exhibit in the target exhibition hall, and based on this, the user can purchase the target exhibit and send a transaction after purchasing the target exhibit to change the home account of the target exhibit purchased by the user to the account of the user. Namely, the ownership transfer of the target exhibit is completed.
As an example, fig. 8 shows a schematic diagram of an example of a data structure of a third digital resource corresponding to a target exhibit. In the example shown in fig. 8, the third digital resource corresponds to a target exhibit displayed in the target exhibition hall, and the on-chain data structure of the third digital resource may include basic information, exhibition information, brand side information of a brand to which the exhibit belongs, and the like. The basic information can include an exhibit number, an exhibit hall number, a home account, exhibit metadata, exhibit price, whether to sell, exhibit status, and the like, wherein the exhibit status can include available, frozen, off-shelf, and the like; the participation information may include a participation time and an end time. The branding information for the brand to which the exhibit belongs may include branding accounts, brand names, brand themes, brand descriptions, and the like. For ease of understanding, the data types of the various information are also shown in fig. 8. It is to be understood that the data structure depicted in fig. 8 is only illustrative and not limiting of the data structure of the third digital resource, and in practice, different data structures may be defined for the third digital resource according to actual needs.
FIG. 9 shows an interaction diagram of a blockchain-based user interaction method according to one embodiment. In this example, the nodes of the blockchain may be implemented as any computing, processing capable device, server or cluster of devices, and so on. As shown in fig. 9, the user interaction method based on the blockchain includes the following steps:
s901, a server receives first user position information from first user equipment of a first user;
s903, the server receives second user position information from second user equipment of a second user;
s905, the server generates first display information.
In this embodiment, the server may generate first display information, where the first display information may include display information of the first virtual space, display information of the first user, and display information of the second user. In this example, the first virtual space is a target exhibition hall, and the display information of the first virtual space is generated based on the information of the first digital resource stored in the block chain. The display information of the first user may include identification information of the first user and first user location information. The display information of the second user may include identification information of the second user and second user location information, where the second user location information is received from a second user device of the second user, and the second user location information is used to indicate that the identification information of the second user is located in the first virtual space.
For example, the first display information may further include display information of a second virtual space, and the second virtual space may be a target parcel. The target exhibition hall corresponds to the first digital resource and the target parcel corresponds to the second digital resource. A first user device used by a first user may display to the first user virtual items within the virtual space, including a target showroom located within the target parcel, a target exhibit located within the target showroom, and other users currently located within the target showroom. For example, a user may customize an avatar to play in a virtual space according to personal preferences, e.g., may customize an avatar, virtual animal, etc. The avatar may serve as identification information of the user in the virtual space, and the user may control the position, motion, etc. of the avatar within the virtual space based on the user device used. Meanwhile, the user equipment can also display other avatars nearby the corresponding avatar of the user in the virtual space. Therefore, when the first user and the second user enter the target exhibition hall at the same time, the identification information of the second user can be displayed in the target exhibition hall displayed by the user equipment of the first user.
S907, the server sends the first display information to the first user equipment.
S909, the first user equipment displays the first display information.
S911, the first user equipment responds to the operation of the first user to generate a first transaction.
In this embodiment, a first transaction is used to upload interaction information to the blockchain for transmission to the second user, where the first transaction is generated by the first user device in response to an operation of the first user after displaying identification information of the second user located in the first virtual space.
S913, the first user device sends the first transaction to the server.
S915, the server sends the first transaction to a node of the blockchain.
S917, the node of the block chain performs the first transaction, and stores the interaction information in the block chain. For example, the mutual information is stored into blocks of the blockchain. As an example, the first transaction may invoke a smart contract to upload interaction information to nodes of the blockchain.
S919, the nodes of the block chain send interaction information to the server.
And S921, the server sends the interactive information to the second user equipment.
In some alternative ways, the first user and the second user may interact through the server in addition to interacting through the blockchain. That is, after receiving the first transaction of the first user, the server forwards the first transaction to the node of the blockchain, so as to store the interaction information in the blockchain.
In some optional implementation manners, the interactive information may be ciphertext information generated by the user equipment of the first user after encrypting the ciphertext information by using the public key of the blockchain account of the second user, so that only the second user may decrypt the obtained ciphertext information by using the private key of the blockchain account of the second user, thereby obtaining plaintext information corresponding to the ciphertext information. By the implementation mode, the safety of interaction between the first user and the second user can be ensured.
As an example, fig. 10 shows a schematic diagram of one example of a data structure in which interaction information between users is stored on a blockchain. In the example shown in fig. 10, the on-chain data structure of the interaction information may include encryption information and communication information, where the encryption information may include an encryption account and a ciphertext, and the encryption account may refer to a blockchain account corresponding to a public key used for encryption. The communication information may include a sending account, a receiving account, a communication time, and a tile height. For ease of understanding, the data types of the various information are also shown in fig. 10. It is understood that the data structure depicted in fig. 10 is only illustrative and not limiting of the data structure of the interaction information, and in practice, different data structures may be defined for the interaction information according to actual needs.
Referring back to the above procedure, in the above embodiments of the present specification, a node of a blockchain may first receive a first transaction sent by a first user device of a first user, the first transaction being used to upload interaction information sent to a second user to the blockchain. The first transaction is sent by the first user equipment in response to the operation of the first user after displaying the identification information of the second user located in the first virtual space, the information displayed by the first user equipment is received from the server, and the display information of the first virtual space is generated by the server according to the information of the first digital resource stored in the block chain. Thereafter, the nodes of the blockchain may perform a first transaction to store the interaction information in the blockchain. Therefore, user interaction based on the block chain is realized, interaction information between users is stored in the block chain, and the safety and the non-tampering of the interaction information are guaranteed.
As an example, another method of a blockchain-based user interaction method, which may be applied to a server, is also shown in an embodiment of the present specification. The user interaction method based on the block chain can comprise the following steps:
step 1), receiving first user position information from first user equipment of a first user.
In this embodiment, the first user device may install an application for displaying and operating the metacosmic virtual space. In this way, the server of the application may receive first user location information from a first user device of a first user, where the first user location information may be used to indicate that identification information of the first user is located within a first virtual space displayed by the first user device. In this example, the first virtual space may refer to a target exhibition hall located in a target parcel.
And step 2), generating first display information.
In this embodiment, the server may generate first display information, where the first display information may include display information of the first virtual space, display information of the first user, and display information of the second user. The display information of the first virtual space may be generated based on the information of the first digital resource stored in the block chain, the display information of the first user may include identification information (e.g., an avatar, a nickname, etc.) of the first user and first user location information, and the display information of the second user may include identification information of the second user and second user location information. Second user location information may be received from a second user device of a second user, and the second user location information may be used to indicate that identification information of the second user is located within the first virtual space. The identification information and location information of the second user may be generated based on operation of the second user at their user device. For example, the second user may customize an avatar to play in the virtual space based on personal preferences, e.g., may customize an avatar, virtual animal, etc. The avatar may serve as identification information of a second user in the virtual space, and the second user may control the position, motion, and the like of the avatar within the virtual space by operating the used user equipment. Thus, the server can determine the position information of the identification information of the second user in the virtual space based on the operation of the second user on the user equipment.
And 3) sending the first display information to the first user equipment.
Step 4), receiving a first transaction sent by a first user device of a first user from the first user device.
In this embodiment, when a first user and a second user enter a target exhibition hall of a virtual space at the same time, identification information of the second user may be displayed in the target exhibition hall displayed by a first user device of the first user, and then the first user may send a first transaction to a node of a blockchain through the first user device, where the first transaction may be used to upload interaction information for sending to the second user to the blockchain. The first transaction is generated by the first user device in response to operation by the first user after displaying identification information of a second user located within the first virtual space.
And 5) sending the first transaction to the blockchain.
In this embodiment, the server may forward the received first transaction to a blockchain node of the blockchain.
In some optional implementations, the above method for user interaction based on a blockchain may further include the following: first, interaction information is received from a tile link. Then, the interaction information is sent to the user equipment of the second user. By the implementation mode, the interaction between the users can be completed through the block chain.
As another example, yet another method of a blockchain-based user interaction method is also shown in an embodiment of the present specification, which may be applied to a first user device of a first user. The user interaction method based on the block chain can comprise the following steps:
and step I, sending the first user position information to a server.
In this embodiment, the first user device of the first user may send first user location information to the server, where the first user location information may be obtained based on an operation of the first user on the first user device, and the first user location information may be used to indicate that the identification information of the first user is located in the first virtual space displayed by the first user device.
And step two, acquiring the first display information from the server.
In this embodiment, the first display information may include display information of the first virtual space, display information of the first user, and display information of the second user. The display information of the first virtual space may be generated based on the information of the first digital resource stored in the block chain, the display information of the first user may include identification information (e.g., an avatar, a nickname, etc.) of the first user and first user location information, and the display information of the second user may include identification information of the second user and second user location information. Second user location information may be received from a second user device of a second user, and the second user location information may be used to indicate that identification information of the second user is located within the first virtual space. The identification information and location information of the second user may be generated based on operation of the second user at his user device. For example, the second user may customize an avatar to play in the virtual space based on personal preferences, e.g., may customize an avatar, virtual animal, etc. The avatar may serve as identification information of a second user in the virtual space, and the second user may control the position, motion, and the like of the avatar within the virtual space by operating the used user equipment. Thus, the server can determine the position information of the identification information of the second user in the virtual space based on the operation of the second user on the user equipment.
And step three, displaying the first display information.
In this embodiment, the first user device of the first user may display the first display information acquired from the server for the first user to view.
And fourthly, responding to the operation of the first user to generate a first transaction.
In this embodiment, the first user device may generate a first transaction according to an operation of the first user, and the first transaction may be used to upload interaction information to the blockchain for sending to the second user. For example, when the first user and the second user enter the target exhibition hall of the virtual space at the same time, the identification information of the second user can be displayed in the target exhibition hall displayed by the first user device of the first user. At this time, if the first user wants to interact with the second user, the first user equipment may be operated, for example, to input contents to be interacted with. The first user device may generate a first transaction in accordance with an operation of the first user.
And step five, sending the first transaction to a server.
In this embodiment, the first user device may send the first transaction to the server.
According to an embodiment of another aspect, a node of a blockchain is provided. The nodes of the blockchain may be implemented as any device, platform, or device cluster having computing and processing capabilities.
Fig. 11 shows a schematic block diagram of a node of a blockchain according to one embodiment. The node 1100 of the blockchain comprises: a first receiving unit 1101 configured to receive a first transaction sent by a first user device of a first user, the first transaction being used to upload interaction information for sending to a second user to the blockchain, the first transaction being sent by the first user device in response to an operation of the first user after displaying identification information of the second user located in a first virtual space, information displayed by the first user device being received from a server, the display information of the first virtual space being generated by the server according to information of a first digital resource stored in the blockchain; the execution unit 1102 is configured to execute the first transaction, and store the interaction information in the blockchain.
In some optional implementations of this embodiment, the node 1100 of the block chain further includes: a sending unit (not shown in the figure) configured to send the interaction information to the server for sending to a second user device of the second user.
In some optional implementations of this embodiment, the first virtual space is a target exhibition hall built in a target block in a second virtual space, the target block corresponds to the second digital resource in the block chain, and the node 1100 of the block chain further includes: a second receiving unit (not shown in the figure) configured to receive, from the server, a second transaction for creating the second digital resource, wherein the second transaction includes first location information in a virtual space and brand side information of the first brand side, and the second transaction is received by the server from a device of the first brand side; a first generating unit (not shown in the figure) configured to generate a resource identifier of the second digital resource based on the first location information and brand side information of the first brand side; a first storage unit (not shown in the figure) configured to store information of the second digital resource in the block chain in association with a resource identifier of the second digital resource, where the information of the second digital resource includes the first location information and an identifier of the first party; and the first sending unit is configured to send the information of the second digital resource to the server.
In some optional implementations of this embodiment, the node 1100 of the block chain further includes: a third receiving unit (not shown in the figure) configured to receive, from the server, a third transaction for creating the first digital resource, wherein the third transaction includes a resource identifier of the second digital resource and branding party information of the branding party, and the third transaction is received by the server from a device of the first branding party or the second branding party; a second generating unit (not shown in the figure) configured to generate the resource identifier of the first digital resource based on the resource identifier of the second digital resource and the brand side information of the brand side; a second storage unit (not shown in the figure) configured to store information of the first digital resource in the block chain in association with a resource identifier of the first digital resource, the information of the first digital resource including second location information and brand side information, the second location information being determined based on the first location information; and a second transmitting unit configured to transmit information of the first digital resource to the server.
In some optional implementations of this embodiment, the first transaction, the second transaction, and the third transaction invoke a smart contract, and the information of the second digital resource are stored in a contract state of the smart contract.
In some optional implementations of this embodiment, the node 1100 of the block chain further includes: a fourth receiving unit (not shown in the figure), configured to receive, from the server, a fourth transaction for creating a third digital resource, the fourth transaction invoking the smart contract, wherein the third digital resource corresponds to a target exhibit for display in the target exhibition hall, the fourth transaction includes a resource identifier of the first digital resource, an identifier of a brand party corresponding to the target exhibit, and data information of the target exhibit, and the fourth transaction is received by the server from a device of a first brand party or a second brand party; a third generating unit (not shown in the figure) configured to generate a resource identifier of the third digital resource based on the fourth transaction; a third storage unit (not shown in the figure), configured to store information of the third digital resource in association with the resource identifier of the third digital resource in the contract state of the smart contract, where the information of the third digital resource includes the resource identifier of the first digital resource, the identifier of the brand party corresponding to the target exhibit, and data information of the target exhibit; and a third transmitting unit configured to transmit information of the third digital resource to the server.
In some optional implementations of this embodiment, the information of the first digital resource includes information indicating whether to open to another brand, and in the case of opening to another brand, the fourth transaction is received by the server from a device of a brand party different from the brand party corresponding to the first digital resource.
In some optional implementation manners of this embodiment, the information of the third digital resource includes information indicating whether the home account and the target exhibit are saleable, and in a case that the target exhibit is saleable, the node 1100 of the block chain further includes: a fifth receiving unit (not shown in the figure), configured to receive a fifth transaction sent by a first user, the fifth transaction being used for changing the home account of the third digital resource into the account of the first user in the information of the third digital resource, the fifth transaction being sent by the first user after purchasing the target exhibit based on the target exhibit in the target exhibit displayed in the user equipment of the first user, the display information of the target exhibit being generated according to the information of the third digital resource stored in the blockchain.
In some optional implementations of this embodiment, the first digital resource, the second digital resource, and the third digital resource are non-homogeneous certified NFTs.
In some optional implementation manners of this embodiment, the interactive information is ciphertext information generated by the user equipment of the first user after encrypting the user equipment by using the public key of the second user.
In some optional implementation manners of this embodiment, the interaction information includes an encryption account, ciphertext information, a sending account, a receiving account, and communication time.
According to an embodiment of another aspect, a schematic block diagram of a blockchain based user interaction device is provided. The user interaction device based on the block chain can be arranged at a server.
Fig. 12 shows a schematic block diagram of a blockchain based user interaction device according to an embodiment. The apparatus 1200 includes: a first user location receiving unit 1201 configured to receive first user location information from a first user device of a first user, where the first user location information is used to indicate that identification information of the first user is located in a first virtual space displayed by the first user device; a first display information generating unit 1202 configured to generate first display information, where the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information indicates that the identification information of the second user is located in the first virtual space; a first display information sending unit 1203 configured to send the first display information to the first user equipment; a first transaction receiving unit 1204, configured to receive, from the first user device, a first transaction sent by a first user device of the first user, where the first transaction is used to upload, to the blockchain, interaction information for transmission to the second user, and the first transaction is generated by the first user device in response to an operation of the first user after displaying identification information of the second user located in the first virtual space; a first transaction forwarding unit 1205 is configured to send the first transaction to the blockchain.
In some optional implementations of this embodiment, the apparatus 1200 may further include: an interworking information receiving unit (not shown) configured to receive the interworking information from the block chain; and an interactive information sending unit (not shown in the figure) configured to send the interactive information to the user equipment of the second user.
According to an embodiment of another aspect, a schematic block diagram of another blockchain based user interaction device is provided. The user interaction device based on the block chain can be arranged at the first user equipment.
Fig. 13 shows a schematic block diagram of a blockchain based user interaction device according to another embodiment. The apparatus 1300 includes: a first user location sending unit 1301, configured to send first user location information to a server, where the first user location information is obtained based on an operation of a first user on the first user equipment, and the first user location information is used to indicate that identification information of the first user is located in a first virtual space displayed by the first user equipment; a first display information obtaining unit 1302, configured to obtain first display information from the server, where the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information is used to indicate that the identification information of the second user is located in the first virtual space; a first display information display unit 1303 configured to display the first display information; a first transaction generating unit 1304, configured to generate a first transaction in response to an operation of the first user, where the first transaction is used to upload interaction information for sending to the second user to the blockchain; a first transaction sending unit 1305 configured to send the first transaction to the server.
According to an embodiment of another aspect, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method described in fig. 9.
According to another embodiment of the present invention, there is also provided a node of a blockchain, including a memory and a processor, wherein the memory stores executable code, and the processor executes the executable code to implement the method described in fig. 9.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a server system. Of course, this application does not exclude that with future developments in computer technology, the computer implementing the functionality of the above described embodiments may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device or a combination of any of these devices.
Although one or more embodiments of the present description provide method operational steps as described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive approaches. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or end product executes, it may execute sequentially or in parallel (e.g., parallel processors or multi-threaded environments, or even distributed data processing environments) according to the method shown in the embodiment or the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. For example, if the terms first, second, etc. are used to denote names, they do not denote any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is intended to be illustrative of one or more embodiments of the disclosure, and is not intended to limit the scope of one or more embodiments of the disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims.

Claims (19)

1. A user interaction method based on a block chain is applied to a node of the block chain, and the method comprises the following steps:
receiving a first transaction sent by first user equipment of a first user, wherein the first transaction is used for uploading interactive information for sending to a second user to the blockchain, the first transaction is sent by the first user equipment in response to the operation of the first user after displaying identification information of the second user in a first virtual space, the information displayed by the first user equipment is received from a server, and the display information of the first virtual space is generated by the server according to information of a first digital resource stored in the blockchain;
and executing the first transaction, and storing the interaction information in the blockchain.
2. The method of claim 1, wherein the method further comprises:
and sending the interaction information to the server for sending to second user equipment of the second user.
3. The method of claim 1, wherein the first virtual space is a target lobby built into a target block in a second virtual space, the target block corresponding to a second digital resource in the block chain, the method further comprising:
receiving, from the server, a second transaction for creating the second digital resource, wherein the second transaction includes first location information in a virtual space and branding party information for the first brand party, the second transaction received by the server from a device of the first branding party;
generating a resource identifier of the second digital resource based on the first location information and brand side information of the first brand side;
storing information of the second digital resource in the block chain in association with a resource identifier of the second digital resource, the information of the second digital resource including the first location information and the identifier of the first branding party;
and sending the information of the second digital resource to the server.
4. The method of claim 3, wherein the method further comprises:
receiving, from the server, a third transaction for creating the first digital resource, wherein the third transaction includes a resource identification of the second digital resource and branded party information of the branded party, the third transaction received by the server from a device of the first branded party or the second branded party;
generating a resource identifier of the first digital resource based on the resource identifier of the second digital resource and brand party information of a brand party;
storing information of the first digital resource in the blockchain in association with a resource identifier of the first digital resource, the information of the first digital resource including second location information and brand party information of a brand party, the second location information being determined based on the first location information;
and sending the information of the first digital resource to the server.
5. The method of claim 4, wherein the first, second, and third transactions invoke a smart contract, and information of the first digital resource and information of the second digital resource are stored in a contract state of the smart contract.
6. The method of claim 5, wherein the method further comprises:
receiving, from the server, a fourth transaction for creating a third digital resource, the fourth transaction invoking the smart contract, wherein the third digital resource corresponds to a target exhibit for display in the target exhibit hall, the fourth transaction including a resource identifier of the first digital resource, an identifier of a brand party to which the target exhibit corresponds, and data information of the target exhibit, the fourth transaction being received by the server from a device of a first brand party or a second brand party;
generating a resource identification for the third digital resource based on the fourth transaction;
storing information of a third digital resource in a contract state of the intelligent contract in association with a resource identifier of the third digital resource, wherein the information of the third digital resource comprises a resource identifier of the first digital resource, an identifier of a brand party corresponding to the target exhibit and data information of the target exhibit;
and sending the information of the third digital resource to the server.
7. The method of claim 6, wherein the information of the first digital resource includes information indicating whether to open to other brands, in which case the fourth transaction is received by the server from a device of a brand party other than the brand party corresponding to the first digital resource.
8. The method of claim 6, wherein the information of the third digital resource includes information indicating whether a home account and the target exhibit are saleable, in which case the method further comprises:
receiving a fifth transaction sent by a first user, wherein the fifth transaction is used for changing the attribution account of the third digital resource into the account of the first user in the information of the third digital resource, the fifth transaction is sent by the first user after the first user purchases the target exhibit based on the target exhibit in the target exhibit displayed in the user equipment of the first user, and the display information of the target exhibit is generated according to the information of the third digital resource stored in the blockchain.
9. The method of claim 6, wherein the first, second, and third digital resources are non-homogeneous certified NFTs.
10. The method of claim 1, wherein the interaction information comprises ciphertext information generated by the user device of the first user after encrypting with the public key of the second user.
11. The method of claim 10, wherein the interaction information further comprises an encryption account, a sending account, a receiving account, and a communication time.
12. A user interaction method based on a block chain is applied to a server, and the method comprises the following steps:
receiving first user position information from first user equipment of a first user, wherein the first user position information is used for indicating that identification information of the first user is positioned in a first virtual space displayed by the first user equipment;
generating first display information, wherein the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information is used for indicating that the identification information of the second user is located in the first virtual space;
sending the first display information to the first user equipment;
receiving, from the first user device, a first transaction sent by a first user device of the first user, the first transaction being used to upload interaction information to the blockchain for sending to the second user, the first transaction being generated by the first user device in response to an operation of the first user after displaying identification information of the second user located within the first virtual space;
sending the first transaction to the blockchain.
13. The method of claim 12, wherein the method further comprises:
receiving the interaction information from the blockchain;
and sending the interaction information to the user equipment of the second user.
14. A user interaction method based on a block chain is applied to first user equipment, and the method comprises the following steps:
sending first user position information to a server, wherein the first user position information is obtained based on the operation of a first user on first user equipment, and the first user position information is used for indicating that identification information of the first user is located in a first virtual space displayed by the first user equipment;
acquiring first display information from the server, wherein the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information is used for indicating that the identification information of the second user is located in the first virtual space;
displaying the first display information;
generating a first transaction in response to the operation of the first user, wherein the first transaction is used for uploading interaction information for sending to the blockchain to the second user;
sending the first transaction to the server.
15. A node of a blockchain, the node comprising:
a first receiving unit, configured to receive a first transaction sent by a first user device of a first user, where the first transaction is used to upload interaction information to the blockchain for sending to a second user, the first transaction is sent by the first user device in response to an operation of the first user after displaying identification information of the second user located in a first virtual space, the information displayed by the first user device is received from a server, and the display information of the first virtual space is generated by the server according to information of a first digital resource stored in the blockchain;
an execution unit configured to execute the first transaction, storing the interaction information in the blockchain.
16. A blockchain-based user interaction apparatus disposed in a server, the apparatus comprising:
a first user location receiving unit configured to receive first user location information from a first user device of a first user, where the first user location information is used to indicate that identification information of the first user is located in a first virtual space displayed by the first user device;
a first display information generating unit, configured to generate first display information, where the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information is used to indicate that the identification information of the second user is located in the first virtual space;
a first display information sending unit configured to send the first display information to the first user equipment;
a first transaction receiving unit configured to receive, from the first user device, a first transaction transmitted by a first user device of the first user, the first transaction being used for uploading interaction information for transmission to the blockchain to the second user, the first transaction being generated by the first user device in response to an operation of the first user after displaying identification information of the second user located within the first virtual space;
a first transaction forwarding unit configured to send the first transaction to the blockchain.
17. A blockchain-based user interaction apparatus, disposed at a first user equipment, the apparatus comprising:
a first user position sending unit, configured to send first user position information to a server, where the first user position information is obtained based on an operation of a first user on the first user equipment, and the first user position information is used to indicate that identification information of the first user is located in a first virtual space displayed by the first user equipment;
a first display information obtaining unit, configured to obtain first display information from the server, where the first display information includes display information of the first virtual space, display information of the first user, and display information of a second user, the display information of the first virtual space is generated based on information of a first digital resource stored in a block chain, the display information of the first user includes identification information of the first user and first user location information, the display information of the second user includes identification information of the second user and second user location information, the second user location information is received from a second user device of the second user, and the second user location information is used to indicate that the identification information of the second user is located in the first virtual space;
a first display information display unit configured to display the first display information;
a first transaction generation unit configured to generate a first transaction in response to an operation of the first user, the first transaction being used for uploading interaction information for transmission to the blockchain to the second user;
a first transaction sending unit configured to send the first transaction to the server.
18. A computer-readable storage medium, on which a computer program is stored which, when executed in a computer, causes the computer to carry out the method of any one of claims 1-11.
19. A blockchain node comprising a memory and a processor, wherein the memory has stored therein executable code, and wherein the processor, when executing the executable code, implements the method of any of claims 1-11.
CN202210461602.1A 2022-04-28 2022-04-28 User interaction method and device based on block chain and node of block chain Pending CN114862573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210461602.1A CN114862573A (en) 2022-04-28 2022-04-28 User interaction method and device based on block chain and node of block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210461602.1A CN114862573A (en) 2022-04-28 2022-04-28 User interaction method and device based on block chain and node of block chain

Publications (1)

Publication Number Publication Date
CN114862573A true CN114862573A (en) 2022-08-05

Family

ID=82633957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210461602.1A Pending CN114862573A (en) 2022-04-28 2022-04-28 User interaction method and device based on block chain and node of block chain

Country Status (1)

Country Link
CN (1) CN114862573A (en)

Similar Documents

Publication Publication Date Title
US10754513B2 (en) Updating assets rendered in a virtual world environment based on detected user interactions in another world
US10382371B2 (en) System and methods for card interaction and assigning cards to devices
CN104836715B (en) Run on the mobile apparatus it is multiple using data sharing method and apparatus
CN110766458A (en) Data processing method and device based on block chain
CN108769153B (en) Data processing method and system for network application
CN110088788A (en) The personalized calendar of digital media content dependent event
CN110728558B (en) Virtual package transmitting method, device, equipment and storage medium
CN115730277A (en) Supplemental digital content access control using non-homogeneous token NFT
KR20140126152A (en) Method and server for providing service of using music contents
CN106022010A (en) File display method and device
KR20190075596A (en) Method for creating augmented reality contents, method for using the contents and apparatus using the same
WO2023214934A1 (en) Decentralized procedural digital asset creation in augmented reality applications
US20230162303A1 (en) Information processing apparatus, information processing method, and storage medium
CN110020070A (en) Webpage circle selects data processing method, apparatus and system
CN114862573A (en) User interaction method and device based on block chain and node of block chain
KR102109201B1 (en) Network server mediating game item transaction between user terminals and method of operating thereof
CN115983997A (en) Block chain-based collection management method, block chain node and system
CN115860884A (en) Method and device for processing digital resources in block chain system
CN105939251B (en) Creation method, server, client and the system of customer relationship
JP2022014904A (en) Method and apparatus for generating bundle invitation link related to multiple communities
Peuhkurinen et al. Embedding web apps in mixed reality
CN114785800A (en) Cross-link communication method and device
JP2022148548A (en) object management system
CN115880071A (en) Method for processing digital resources and nodes of block chain
WO2023142601A1 (en) Blockchain-based data processing method, and device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination