WO2023216786A1 - 基于区块链的数据处理方法、装置、设备及存储介质 - Google Patents

基于区块链的数据处理方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023216786A1
WO2023216786A1 PCT/CN2023/087202 CN2023087202W WO2023216786A1 WO 2023216786 A1 WO2023216786 A1 WO 2023216786A1 CN 2023087202 W CN2023087202 W CN 2023087202W WO 2023216786 A1 WO2023216786 A1 WO 2023216786A1
Authority
WO
WIPO (PCT)
Prior art keywords
asset
warrant
virtual
information
virtual asset
Prior art date
Application number
PCT/CN2023/087202
Other languages
English (en)
French (fr)
Inventor
陈自民
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2023216786A1 publication Critical patent/WO2023216786A1/zh

Links

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/42Confirmation, e.g. check or permission by the legal debtor of payment
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions

Definitions

  • This application relates to the fields of artificial intelligence, blockchain and cloud technology, and in particular to a data processing method, device, equipment and storage medium based on blockchain.
  • blockchain technology can provide a variety of digital items and physical items with unique virtual assets as certificate-type ownership certificates, and store and distribute them in a distributed manner.
  • asset issuer issues virtual assets in the blockchain network
  • registered users in the blockchain network can obtain the issued virtual assets through some activities or direct purchases.
  • the number of virtual assets is limited.
  • the asset value of a single virtual asset is very high, which further leads to the virtual asset being only used by a few registered users, making the utilization rate of the virtual asset relatively low.
  • the embodiment of this application provides a data processing method based on blockchain, including:
  • the leasing information is used to indicate that the virtual asset of the first object is in a state of being leased;
  • the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes the resource value of the electronic resource to be transferred for leasing the virtual asset to the second object;
  • the target asset warrant of the virtual asset transfers the target asset warrant of the virtual asset from the account address of the first object to the account address of the second object, and transfer the electronic resource of the resource value from the account address of the second object to the The account address of the first object;
  • the target asset warrant is used to indicate that the first object has ownership of the virtual asset;
  • the warrant attributes corresponding to the target asset warrant Determine the warrant attributes corresponding to the target asset warrant, generate a lease contract for the virtual asset based on the warrant attributes and the resource transfer information, and upload the lease contract to the blockchain network; the lease The contract is used to indicate that the second object has usage permissions on the virtual assets and does not have transfer permissions on the virtual assets.
  • the embodiment of this application provides a data processing device based on blockchain, including:
  • An upload module used to upload leasing information about virtual assets to the blockchain network; the leasing information is used to indicate that the virtual assets of the first object are in a state of being leased;
  • An acquisition module configured to acquire a lease request generated for the lease information; the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes electronic data to be transferred for leasing the virtual asset to the second object.
  • a transfer module configured to transfer the target asset warrant of the virtual asset from the account address of the first object to the account address of the second object, and transfer the electronic value of the resource value from the account address of the second object. Resources are transferred to the account address of the first object; the target asset warrant is used to indicate that the first object has ownership of the virtual asset;
  • Generating module used to determine the warrant attributes corresponding to the target asset warrants, generate a lease contract regarding the virtual asset based on the warrant attributes and the resource transfer information, and upload the lease contract to the blockchain network In; the leasing contract is used to indicate that the second object has the use rights for the virtual asset and does not have the transfer rights for the virtual asset.
  • An embodiment of the present application provides a computer device, including a memory and a processor.
  • the memory stores a computer program.
  • the processor executes the computer program, the steps of the method are implemented.
  • Embodiments of the present application provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method are implemented.
  • Embodiments of the present application provide a computer program product, which includes a computer program.
  • the computer program is executed by a processor, The steps of the method are now described.
  • Figure 1 is a schematic diagram of the architecture of a blockchain-based network system provided by this application.
  • Figure 2 is a schematic diagram of a scenario of interaction between a terminal provided by this application and a node device in a blockchain network;
  • Figure 3 is a schematic diagram of a scenario of interaction between a terminal provided by this application and a node device in a blockchain network;
  • Figure 4 is a schematic flow chart of a blockchain-based data processing method provided by this application.
  • Figure 5 is a schematic diagram of a scenario provided by this application for determining the warrant attributes of a target asset warrant
  • Figure 6 is a schematic flow chart of a blockchain-based data processing method provided by this application.
  • Figure 7 is a schematic diagram of a scenario provided by this application for using virtual assets to join a target game scene
  • Figure 8 is a schematic flow chart of a blockchain-based data processing method provided by this application.
  • Figure 9 is a schematic structural diagram of a blockchain-based data processing device provided by an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • FIG 1 is a schematic diagram of a network architecture provided by an embodiment of the present application.
  • Blockchain is a new application model of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism and encryption algorithm. It is mainly used to organize data in chronological order and encrypt it into a ledger, making it impossible to be tampered with and forged. , and data verification, storage and update can be performed at the same time.
  • the blockchain is essentially a decentralized database. Each node in the database stores an identical blockchain.
  • the blockchain network can divide the nodes into consensus nodes and business nodes, where the consensus node is responsible for the block. Chain consensus of the entire network.
  • the process of writing transaction data into the ledger in the blockchain network can be as follows: the client sends the transaction data to the business node, and then the transaction data is passed between the business nodes in the blockchain network in the form of a baton until the consensus node After receiving the transaction data, the consensus node packages the transaction data into a block and reaches consensus with other consensus nodes. After the consensus is passed, the block carrying the transaction data is written into the ledger.
  • a block is a data packet that carries transaction data (i.e. transaction business) on the blockchain network. It is a kind of data that is marked with a timestamp and the hash value of the previous block. Structure, blocks are verified by the network’s consensus mechanism and the transactions in the block are determined.
  • FIG. 1 is a schematic structural diagram of a blockchain network provided by an embodiment of the present invention.
  • the blockchain network is an end-to-end decentralized network composed of multiple node devices.
  • the number of node devices in the blockchain network can be deployed according to actual needs. This application does not limit the number of node devices; such as In Figure 1, the blockchain network includes four node devices as an example for illustration.
  • the four node devices are node device 101, node device 102, node device 103 and node device 104 respectively.
  • each node device can receive the data to be recorded when performing normal work, and maintain the blockchain based on the received data to be recorded.
  • a network connection 10 can exist between each node device in the blockchain network, and data transmission can be performed between node devices through the above network connection 10 .
  • any node device in the blockchain network receives the data to be recorded, other node devices in the blockchain network will verify the data to be recorded according to the consensus algorithm, and after the verification is successful (that is, a consensus is reached) Finally) the data to be recorded is stored as data in the blockchain, so that the data stored on all node devices in the blockchain network are consistent.
  • the network connection between the above-mentioned node devices can be based on node identification.
  • Each node device in the blockchain network has a corresponding node identification, and each of the above-mentioned node devices can store other nodes that are connected to itself.
  • the node identification of the device so that the acquired data or generated blocks can be subsequently broadcast to other node devices based on the node identifications of other node devices.
  • the node device 101 can maintain a node identification list, which stores other nodes.
  • the node name and node ID of the device are shown in Table 1:
  • the node identifier can be the Internet Protocol (IP) address of the interconnection between networks and any other information that can be used to identify the node device in the blockchain network.
  • IP Internet Protocol
  • Table 1 only takes the IP address as an example for explanation.
  • the node device 101 can send a data synchronization request to the node device 102 through 117.xxx.xxx.174, and the node device 102 passes the node identifier 117.xxx.
  • the data synchronization request is sent by the node device 101; similarly, the node device 102 can send transaction data A to the node device 101 through the node identifier 117.xxx.xxx.145, and the node device 101 passes From the node identifier 117.xxx.xxx.145, it can be known that the transaction data A is sent by the node device 101, and the same is true for data transmission between other node devices, so the details will not be described one by one.
  • connection method can be connected directly or indirectly through wired communication, it can also be connected directly or indirectly through wireless communication, or it can also be connected through other connection methods.
  • This application is here No restrictions.
  • the blockchain network in this application can be a blockchain network based on the alliance chain (such as the alliance chain blockchain network based on Fabric).
  • the alliance chain is a block participated by multiple organizations or institutions. chain network. That is, the alliance chain is a cluster composed of multiple private chains, a blockchain network jointly managed by multiple institutions. Each organization or institution manages one or more node devices, and its data is only allowed to be read by different institutions within the system. Write and send.
  • the blockchain network in this application can be a consortium chain composed of service devices of one or more game applications. This consortium chain can ensure that the virtual assets of a certain game application can be transferred within the same game application, or , which can ensure that the virtual assets of a certain game application can be transferred between different game applications.
  • each node device of the alliance chain usually has a corresponding entity organization, and can only join or exit the network after being authorized.
  • Various institutions and organizations form an alliance of stakeholders to jointly maintain the healthy operation of the blockchain.
  • the blockchain network based on the alliance chain has the following characteristics:
  • the consensus algorithm in the blockchain network based on the alliance chain can be customized by the management node device in the blockchain network based on the alliance chain.
  • the management node device can be customized by the blockchain network based on the alliance chain.
  • the node devices in the network are elected based on the institutional attributes of each institution (such as the institution to which the game application belongs).
  • the institutional attributes include one or more of the institution's credit rating, the amount of the institution's assets, the institution's creation time, and so on.
  • the consensus algorithm in the blockchain network based on the alliance chain can be jointly customized by each node device in the blockchain network based on the alliance chain.
  • the consensus algorithm in this application is followed by each node device in the blockchain network based on the alliance chain.
  • the consensus algorithm stipulates the leasing conditions for leasing virtual assets. Any node in the blockchain network based on the alliance chain When a node device receives a lease request for a virtual asset, the consensus node device in the blockchain network based on the alliance chain needs to verify the legality of the lease request for the virtual asset based on the consensus algorithm. If the lease request satisfies the consensus algorithm When the rental conditions are met, it is determined that the rental request is legal and the rental request can be executed.
  • the node device 101, the node device 102, the node device 103 and the node device 104 can each be an independent physical server, or can be a server cluster or distributed system composed of at least two physical servers, or can provide cloud services.
  • Cloud database cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms and other basic clouds Cloud server for computing services.
  • cloud computing cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms and other basic clouds Cloud server for computing services.
  • CDN Content Delivery Network
  • the objects in this application may refer to users.
  • the user's permission or consent needs to be obtained, and the user's object attribute information (such as object identification, account address ) and other user information need to comply with relevant laws, regulations and standards of relevant countries and regions. That is to say, the computer device can obtain user information such as the user's object attribute information only when it obtains the user's authorization information for the above information.
  • the computer device can display a permission prompt interface in the user interface.
  • the permission prompt interface is used to prompt the user that the user's object attribute information is currently being collected. After the user sends a confirmation operation to the permission prompt interface, the computer device starts to obtain the user's object attribute information. Object attribute information step, otherwise end.
  • the virtual assets in this application may refer to assets that can be circulated on the Internet.
  • the virtual assets may refer to game props, game equipment, game skins, and games issued on the Internet by an organization to which a certain game application belongs. Pets, etc., these virtual assets can be transferred in the game application, such as game props can be exchanged between different game players, etc.
  • Virtual assets can also refer to digital paintings, film and television works, etc. Virtual assets are unique, indivisible, irreplaceable and provable. Provability can mean that the ownership of the virtual asset can be verified, etc.
  • the electronic resources in this embodiment refer to the package of electronic vouchers of a certain amount. Electronic vouchers can be digital legal tender, or electronic currency (such as game currency) issued by a third party that can be used to redeem products or services.
  • the node device in the blockchain network can interact with the terminal to implement the blockchain-based data processing method of the present application.
  • the node device in the blockchain network and the node device in the blockchain network The interaction process between them can be seen in Figures 2 and 3.
  • the node device 10a in Figures 2 and 3 can refer to any node device in the blockchain network in Figure 1.
  • the terminal 11a may refer to the first terminal corresponding to the first object
  • the terminal 12a may refer to the second terminal corresponding to the second object.
  • the first object has an account address A (marked as 13b).
  • the first object's account address A includes asset warrant 1 for virtual asset 1 and asset warrant 2 for virtual asset 2.
  • the first The objects have rental rights, transfer rights, and use rights for virtual asset 1 and virtual asset 2 respectively.
  • the terminal 11a receives the rental instruction for the asset certificate 1 of the virtual asset 1, the terminal 11a can obtain the rental information of the virtual asset 1 as the rental information 1.
  • the rental information 1 includes the name, asset value, use, etc. of the virtual asset 1. information, and send the lease information 1 to each node device in the blockchain network.
  • each node device After each node device receives the lease information 1, it can verify the authenticity of the lease information. If the lease information 1 passes the verification, each node device writes the lease information 1 to the blockchain in the blockchain network. . As shown in Figure 2.
  • the node device 10a writes the lease information 1 into the block 14b.
  • the block 14b also includes the lease information 2 and may also include block header and other information. Further, the node device 10a can also send the rental information to the terminal 12a corresponding to the second object.
  • the terminal 12a displays the rental information 1, rental information 2, ..., etc. on the rental information interface 15b. If the terminal 12a detects that the rental information is If the touch operation of the option is performed, it is determined that the second object needs to rent virtual asset 1.
  • the terminal 12a generates a leasing request carrying resource transfer information.
  • the resource transfer information which can also be called payment information, includes the account address of the second object and the resource value of the electronic resource to be transferred by the second object for the leased virtual asset 1, such as The resource value can be K.
  • the second object's account address B includes K electronic resources.
  • the second object has the transfer right for the K electronic resources.
  • the node device 10a receives a rental request for the virtual asset 1 at time T+1, and transfers the asset certificate 1 of the virtual resource 1 from the account address A of the first object to the account address of the second terminal.
  • B Transfer K electronic resources from the second object's account address B to the first object's account address A.
  • the terminal 11a can display K electronic resources newly added to the account address A in the account interface 13b, and the first object has the transfer right for the K electronic resources.
  • the terminal 12a can display the newly added asset warrant 1 in the account address B in the account interface 15b.
  • the first object and the second object can know whether the lease is successful by checking their respective account addresses.
  • the node device 10a can obtain the warrant attribute of the asset certificate 1, and generate a lease contract based on the warrant attribute and the resource transfer information carried in the lease request.
  • the lease contract is used to indicate that the second object has rights for the virtual asset during the lease period.
  • the use right of 1 has the transfer right for virtual asset 1.
  • the first object does not have ownership of virtual asset 1 during the lease period (for example, it may include rental rights, transfer rights and use rights).
  • the lease contract may be used to indicate that the second object has the right to rent the virtual asset during the lease period, or the lease contract may be used to indicate that the second object does not have the right to rent the virtual asset during the lease period. right.
  • the lease contract When the lease contract is used to indicate that the second object has the right to rent the virtual asset during the lease period, it indicates that the second object can sublease the virtual asset 1 to other users. At this time, the second object subleases the virtual asset 1 The time period given to other users cannot exceed the time period in which the first object will be virtualized. The lease period during which the virtual asset 1 is leased to the first object.
  • the terminal in this application may refer to a vehicle-mounted terminal, a smartphone, a tablet, a notebook computer, a desktop computer, a smart speaker, a screen speaker, a smart watch, etc., but is not limited thereto.
  • the right to use in this application may refer to using virtual assets as a condition for joining a certain activity.
  • the conditions for joining a target game scene are: the user needs to have at least 3 virtual assets, then the second object applies to join the target game scene.
  • the computer device can verify whether the second object has 3 virtual assets. If so, the second object is added to the target game scene.
  • the virtual assets are still in the account address of the second object and have not been transferred.
  • the transfer right can refer to allowing the asset warrant of the virtual asset to be transferred from account address A to account address B. After the asset warrant is transferred, the ownership of the asset warrant belongs to the corresponding object of account address B.
  • the right to rent can refer to allowing the asset warrant of a virtual asset to be transferred from account address A to account address B. After the asset warrant is transferred, the right to use the asset warrant during the lease period belongs to the corresponding object of account address B.
  • the system time exceeds the lease time. segment, the ownership of the asset warrant belongs to the object corresponding to account address A.
  • the ownership of virtual assets includes the right to use, transfer and lease.
  • K electronic resources is much smaller than the asset value of virtual asset 1. That is to say, the second object only needs to spend a small amount of electronic resources to obtain the right to use the virtual asset through leasing, that is, it only needs The second object pays a certain rental fee and does not require the second object to mortgage additional items or electronic resources. This can reduce the cost of the second object participating in the virtual asset ecology, improve the utilization of virtual assets, and the equipment resources of the blockchain node equipment. Utilization and operational efficiency.
  • Figure 4 is a schematic flow chart of a blockchain-based data processing method provided by an embodiment of the present application. As shown in Figure 4, this method can be executed by any node device in Figure 1, or by a terminal, or by both the terminal and the node device.
  • the devices used to execute the method in this application can be collectively referred to as for computer equipment.
  • the blockchain-based data processing method may include the following steps S101 to S104:
  • the computer device uploads the leasing information about the virtual asset to the blockchain network; the leasing information is used to indicate that the virtual asset of the first object is in a waiting state for leasing.
  • the first terminal corresponding to the first object can generate a rental request for the virtual asset, and the rental request carries the
  • the lease information of the virtual asset and the object identifier of the first object that sends the release request are sent to the computer device, and the computer device can verify the legality of the lease request. If the lease request is legal, the lease information will be uploaded to the blockchain network. At this time, any registered user in the blockchain network can view the lease information and determine whether to lease the virtual asset according to their own needs;
  • the lease information may include the name of the virtual asset, the leaseable time period of the virtual asset, the lease fee, and so on.
  • step S101 may include: the computer device may obtain a release request regarding the rental information of the virtual asset, and the release request carries the lease information of the virtual asset and the object identification of the first object that sent the release request. Then, determine the unit asset value of each unit asset amount of the virtual asset based on the release request, and verify the legality of the release request based on the object identifier of the first object and the unit asset value. If the release request is legal, Then the leasing information about the virtual asset will be uploaded to the blockchain network.
  • the computer device may obtain a release request for the lease information of the virtual asset from the first terminal corresponding to the first object, where the release request carries the lease information of the virtual asset and the object identifier of the first object that sent the release request.
  • a node device in the blockchain network publishes leasing information to the blockchain network
  • each node device needs to consume a certain amount of storage space to store the leasing information.
  • the first terminal corresponding to the first object needs to be transferred to each node device.
  • the fees for posting rental information usually if the unit asset value of a virtual asset is relatively low, users are more willing to obtain the right to use the virtual asset by purchasing.
  • the success rate of leasing this kind of virtual assets is relatively low, which will lead to a waste of storage resources of each node device in the blockchain network and a waste of transfer fees for the first object to publish leasing information.
  • the unit asset value of the virtual asset is relatively high, the user is more willing to obtain the right to use the virtual asset through leasing.
  • this kind of The success rate of virtual asset leasing is relatively high, which will improve the utilization of storage resources of each node device in the blockchain network and improve the utilization of the cost spent by the first object to publish leasing information.
  • the computer device can determine the unit asset value of the virtual asset per unit amount of the asset according to the issuance request, that is, the unit asset value can refer to the asset value of one virtual asset or one The asset value of a virtual asset. Then, the legality of the release request is verified based on the object identifier of the first object and the unit asset value; if the release request is legal, the leasing information about the virtual asset is uploaded to the blockchain network. By verifying the legality of the release request based on the unit asset value and the object identification of the first object, it can effectively avoid releasing the lease information corresponding to the invalid release request to the blockchain network, and improve the security of the node equipment in the blockchain network. Improve the utilization of storage resources and improve the success rate of virtual asset leasing.
  • the computer device can verify the legality of the release request based on the object identifier of the first object and the unit asset value through either of the following two methods or a combination of the two methods:
  • Method 1 If the asset value of the unit is greater than the asset value threshold, query the asset warrants owned by the first object in the blockchain network according to the object identifier of the first object, and obtain the second asset warrant set; in the In the blockchain network, the description information of the asset warrants in the second asset warrant set is queried; based on the description information, the asset warrants of the virtual asset are queried in the second asset warrant set. Then, if the asset warrant of the virtual asset is found in the second asset warrant set, the asset warrant obtained by the query is determined to be the target asset warrant of the virtual asset, and the issuance request is determined to be legal.
  • the computer device can refuse to release the leasing information to the blockchain network. If the value of the unit asset is greater than the asset value threshold, indicating that the success rate of leasing the virtual asset is relatively high, the computer device can query the first object in the blockchain network based on the object identifier of the first object. of asset warrants to obtain a second asset warrant set. In the blockchain network, query the description information of the asset warrants in the second asset warrant set. The description information of the asset warrants here is used to indicate the second asset warrant set.
  • the virtual assets to which each asset warrant belongs that is, which virtual asset each asset warrant belongs to.
  • the asset warrant of the virtual asset can be queried in the second asset warrant set. If the asset warrant of the virtual asset is queried in the second asset warrant set, the asset warrant obtained by the query is determined as
  • the target asset warrant of a virtual asset indicates that the first object has ownership of the virtual asset, that is, the virtual asset belongs to the first object.
  • the ownership here includes the right to transfer and the right to use. Therefore, the computer device can determine that the publishing request is legitimate at this time.
  • the legality of the publishing request is verified through the asset warrant owned by the first object and the unit asset value of the virtual asset. That is, only when the success rate of leasing the virtual asset is relatively high, the user who owns the virtual asset is allowed to publish information about the virtual asset.
  • the leasing information of virtual assets prevents illegal users from publishing leasing information about virtual assets and improves the leasing security of virtual assets.
  • Method 2 If the asset value of the unit is greater than the asset value threshold, query the credit rating of the first object in the blockchain network based on the object identifier of the first object. If the credit rating of the first object is greater than the rating threshold, , then it is determined that the publishing request is legal.
  • the computer device can refuse to release the leasing information to the blockchain network. If the value of the unit asset is greater than the asset value threshold, indicating that the success rate of leasing the virtual asset is relatively high, the computer device can query the credit of the first object in the blockchain network based on the object identifier of the first object. The credit rating may be determined based on one or more of the number of times the first object has complied with the lease contract, the length of registration in the blockchain network, and the total asset amount of the virtual assets owned by the first object.
  • the credit rating of the first object is less than or equal to the rating threshold, it indicates that the probability of the first object complying with the lease contract is relatively small. Therefore, it can be determined that the release request of the first object is not legal and the first object is refused to release the lease information. If the credit rating of the first object is greater than the rating threshold, it indicates that the probability of the first object complying with the lease contract is relatively high. Therefore, it can be determined that the release request of the first object is legal, that is, the first object is allowed to release the lease information.
  • the computer device obtains a lease request generated based on the lease information; the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes the resource value of the electronic resource to be transferred for the second object to lease the virtual asset.
  • the second terminal corresponding to the second object is triggered to generate a leasing request based on the leasing information and send the leasing request.
  • the computer device may receive a lease request generated based on the lease information.
  • the lease request carries the resource transfer information of the virtual asset.
  • the resource transfer information includes the resource value of the electronic resource that the second object needs to pay to lease the virtual asset.
  • the resource The transfer information may also include the account address of the second object and so on.
  • the computer device transfers the target asset warrant of the virtual asset from the account address of the first object to the account address of the second object, and transfers the electronic resource of the resource value from the account address of the second object to the first object.
  • the object's account address; the target asset warrant is used to indicate that the first object has ownership of the virtual asset.
  • the computer equipment can transfer the target asset warrant of the virtual asset from the account address of the first object to the account address of the second object, and transfer the resource from the account address of the second object.
  • the numerical electronic resource is transferred to the account address of the first object; the target asset warrant is used to indicate that the first object has ownership of the virtual asset.
  • the electronic resources here may refer to legal currencies circulating on the Internet.
  • the asset value of the virtual assets is much higher than the value of the electronic resources of the resource value.
  • the second object uses electronic resources with less asset value. Obtain the right to use virtual assets with high asset value, reduce the cost of the second object participating in the virtual asset ecology, and increase the utilization rate of virtual assets.
  • the computer device determines the warrant attributes corresponding to the target asset warrant, generates a lease contract for the virtual asset based on the warrant attributes and the resource transfer information, and uploads the lease contract to the blockchain network; the lease contract is used for Indicates that the second object has usage rights regarding the virtual asset and does not have transfer rights regarding the virtual asset.
  • the computer device can determine the warrant attributes corresponding to the target asset warrant.
  • the warrant attributes include unique warrant attributes (also called first warrant attributes) and universal warrant attributes (also called second warrant attributes).
  • the unique warrant attributes It is used to indicate that the virtual asset has only one asset warrant, and the asset warrant is unique, that is, unique, and no other virtual asset has the same asset warrant as the virtual asset.
  • the universal warrant attribute is used to reflect that the virtual asset has M identical asset warrants. These M asset warrants are all the same, and the M asset warrants of the virtual asset are different from the asset warrants of other virtual assets. These M asset warrants can Belong to the same user or at least two different users. An object with one of the M asset warrants has partial ownership of the above virtual assets.
  • an object with one asset warrant has a certain share of ownership of the above virtual assets.
  • a lease contract for the virtual asset is generated based on the warrant attributes and resource transfer information, and the lease contract is uploaded to the blockchain network.
  • the lease contract is used to indicate that the second object has the right to use the virtual asset during the lease period and does not have the right to transfer the virtual asset.
  • the first object does not have the right to use the virtual asset during the lease period. ownership.
  • determining the warrant attributes corresponding to the target asset warrant in step S104 includes: querying the asset warrant of the virtual asset in the blockchain network, obtaining the first asset warrant set, and counting the first asset warrant set. The total number of asset warrants; the target asset warrant belongs to the first asset warrant set; if the total number of asset warrants in the first asset warrant set is one, then the asset warrants in the first asset warrant set will be , determine the target asset warrant of the virtual asset, and determine the warrant attribute of the target asset warrant as the unique warrant attribute; the object of the asset warrant with the unique warrant attribute has all ownership of the virtual asset; if the first asset warrant The total number of concentrated asset warrants is M, then the asset warrant belonging to the first object among the M asset warrants is determined as the target asset warrant of the virtual asset, and the warrant attribute of the target asset warrant is determined to be a universal warrant Attribute; the object of an asset warrant with a general warrant attribute has partial ownership of the virtual asset, and M is a positive integer greater than or equal to 2.
  • the node device 10 in Figure 5 can refer to any node device in the blockchain network in Figure 1, and the virtual assets can refer to 100 game pets.
  • the computer device ie, the node device 10a
  • the computer device can query the asset warrants of the virtual asset in the blockchain network, obtain the first asset warrant set, and count the total number of asset warrants in the first asset warrant set. If the total number of asset warrants in the first asset warrant set is one, it means that this asset warrant in the first asset warrant set is a target asset warrant, and the warrant attribute of the target asset warrant is determined to be the only warrant attribute.
  • the object of the asset warrant with this unique warrant attribute has all ownership of the virtual asset, that is, the first object has ownership of the virtual asset, and the virtual asset only belongs to the first object.
  • the warrant attribute of the target asset warrant is a general warrant attribute.
  • the object of an asset warrant with this general warrant attribute has partial ownership of the virtual asset, and M is a positive integer greater than or equal to 2.
  • asset warrants which can be called asset warrants 1, asset warrants 2,..., asset warrants M
  • different asset warrants correspond to different shares of the virtual assets
  • asset warrant 1 corresponds to 20% of the virtual assets
  • asset warrant 2 corresponds to 5% of the virtual assets
  • asset warrant M corresponds to 7% of the virtual assets. Therefore, user 1 with asset certificate 1 has ownership of 20 game pets out of these 100 game pets, user 2 with asset certificate 2 has ownership of 5 game pets out of these 100 game pets,..., has User M of asset warrant M has ownership of 7 game pets among the 100 game pets.
  • the attributes of M asset warrants can be said to be universal.
  • the above-mentioned generation of a lease contract for the virtual asset based on the warrant attribute and the resource transfer information includes: determining the first asset amount of the virtual asset owned by the first object based on the warrant attribute; The asset amount estimates the asset value of the virtual asset owned by the first object; determines the lease period for the second object to lease the virtual asset based on the asset value and the resource transfer information; and generates the first object based on the lease period.
  • the object's first permission information for the virtual asset, and the second object's second permission information for the virtual asset are used to indicate that the first object is within the rental period does not have ownership of the virtual asset
  • the second permission information is used to indicate that the second object has usage permission for the virtual asset of the first asset amount within the lease period, and does not Having transfer authority for the virtual asset of the first asset amount. Then, a rental contract regarding the virtual asset is generated based on the first authority information and the second authority information.
  • the computer device can determine the first asset amount of the virtual asset owned by the first object based on the warrant attribute, and then can determine the first asset amount of the virtual asset owned by the first object based on the warrant attribute.
  • the first asset amount estimates the asset value of the virtual asset owned by the first object.
  • the lease time period for the second object to lease the virtual asset is determined based on the asset value and the resource transfer information. The lease time period is used to limit the use time of the virtual asset by the second object.
  • the first permission information for the virtual asset of the first object is generated, and the second permission information of the second object for the virtual asset is generated;
  • the first permission information is used to indicate that the first object is leasing. does not have ownership of the virtual assets during the lease period, that is, the first object is not allowed to use, rent, or transfer the virtual assets during the lease period;
  • the second permission information is used to indicate that the second object has ownership rights for the third object during the lease period.
  • the right to use the virtual asset of an asset amount and does not have the transfer right of the virtual asset for the first asset amount, that is, within the lease period, the second object is allowed to use the virtual asset, and the second object is not allowed Transfer the virtual asset.
  • a lease contract for the virtual asset is generated based on the first authority information and the second authority information.
  • the above determination of the first asset amount of the virtual asset owned by the first object based on the warrant attribute includes: obtaining the total asset amount of the virtual asset as the second asset amount; if the warrant attribute is a unique warrant attribute, the second asset amount is determined to be the first asset amount of the virtual asset owned by the first object; if the warrant attribute is a general warrant attribute, then the first object's information about the first asset is obtained from the blockchain network
  • the possession share of the virtual asset determines the first asset amount of the virtual asset owned by the first object based on the second asset amount and the possession share.
  • the computer device can obtain the total asset amount of the virtual asset as the second asset amount. If the warrant attribute is the only warrant attribute, it indicates that the first object has all ownership of the virtual asset. Therefore, the second asset amount can be determined as The first asset amount of the virtual asset owned by the first object. If the warrant attribute is a general warrant attribute, it indicates that an asset warrant corresponds to a certain share of virtual assets. Therefore, the computer device can obtain the first object's share of the virtual asset from the blockchain network and transfer the second object to the virtual asset. The product of the asset amount and the share is determined as the first asset amount of the virtual asset owned by the first object. The first asset amount of the virtual assets owned by the first object is determined through the warrant attribute, that is, the first object can only lease virtual assets belonging to the first object, thereby improving the security and fairness of virtual asset leasing.
  • the computer device can upload leasing information about the virtual assets to the blockchain network.
  • the leasing information is used to indicate that the virtual assets of the first object are in a state of being leased.
  • any one in the blockchain network Registered users can view the leasing information and determine whether they need to rent the virtual asset based on their own needs.
  • the computer device may obtain a lease request generated based on the lease information, the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes the resource value of the electronic resource to be transferred when the second object leases the virtual asset.
  • the target asset warrant is used to indicate that the first object has ownership of the virtual asset.
  • the computing device can determine the warrant attributes corresponding to the target asset warrant, generate a lease contract about the virtual asset based on the warrant attributes and the resource transfer information, and upload the lease contract to the blockchain network; the lease contract It is used to indicate that the second object has usage rights regarding the virtual asset and does not have transfer rights regarding the virtual asset.
  • the blockchain network records the leasing information released by the first object during the virtual asset leasing process, the leasing request sent by the second object, and the leasing contract corresponding to the generated virtual asset, and can also generate and arrive at the leasing contract. After the period, the permissions of the virtual assets owned by the first object and the second object can be automatically updated.
  • this aspect takes advantage of the characteristics of the blockchain network that the data is difficult to tamper with and the recorded information is more authentic and reliable, achieving the safety, reliability, data transparency and high credibility of the data information in the virtual asset leasing process.
  • the first object can lease the virtual assets it owns to a second person who needs the virtual assets.
  • the second object can transfer a certain rent to the first object leasing fees, improving the utilization rate of virtual assets and the equipment resource utilization and operating efficiency of blockchain node equipment, and reducing the cost of the second object participating in the virtual asset ecology.
  • the second object after the second object obtains the target asset warrant of the virtual asset, the second object has the right to use the virtual asset and can use the virtual asset to parameterize certain online activities (such as activities in a certain game application),
  • the second object does not have the right to transfer the virtual assets, that is, the second object cannot transfer the virtual assets to other people for use. This can avoid that the virtual assets cannot be returned to the first object after the lease contract expires. issues to ensure the security and fairness of virtual asset leasing.
  • Figure 6 is a schematic flow chart of a blockchain-based data processing method provided by an embodiment of the present application. As shown in Figure 6, this method can be executed by any node device in Figure 1, or by a terminal, or by both the terminal and the node device. The devices used to execute the method in this application can be collectively referred to as for computer equipment. Among them, the blockchain-based data processing method may include the following steps S201 to S207:
  • the computer device uploads the leasing information about the virtual asset to the blockchain network; the leasing information is used to indicate that the virtual asset of the first object is in a waiting state for leasing.
  • the computer device can complete the registration of the users in the following manner: the computer device can obtain the object registration request sent by the third terminal.
  • the registration request includes the object identification of the third object corresponding to the third terminal and the account address of the third object.
  • the registration function in the smart contract in the blockchain network is called, and the object attribute information of the third object corresponding to the third terminal is obtained based on the registration function.
  • the object attribute information of the third object is obtained.
  • the user information may include name and age, and the legitimacy of the third object is verified based on the attribute information of the third object, for example, verifying whether the age of the third object meets a preset age, etc.
  • the registration request of the third object is rejected. If the third object is legal, the account address corresponding to the third terminal and the object identifier corresponding to the third terminal are associated and stored in the blockchain network, thereby completing the registration of the third object in the blockchain network. registration in. In particular, for the registration process of the first object and the second object in the blockchain network, you can refer to the registration process of the third object in the blockchain network. Duplication will not be repeated.
  • the account address of the third object may be generated based on the private key of the third object, for example, the account address of the third object may refer to the public key of the third object.
  • the private key and the public key form a key pair.
  • the public key is the public part of the key pair, and the private key is the non-public part.
  • the public key can also be used to encrypt data, verify digital signatures, etc. This algorithm can ensure that the key pair obtained is unique.
  • this key pair if one of the keys is used to encrypt a piece of data, another key needs to be used to decrypt it. For example, if the public key is used to encrypt the data, You need to use the private key to decrypt. If you use the private key to encrypt, you also need to use the public key to decrypt, otherwise the decryption will not succeed.
  • the computer device obtains a lease request generated based on the lease information; the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes the resource value of the electronic resource to be transferred for the second object to lease the virtual asset.
  • the computer device transfers the target asset warrant of the virtual asset from the account address of the first object to the account address of the second object, and transfers the electronic resource of the resource value from the account address of the second object to the first object.
  • the object's account address; the target asset warrant is used to indicate that the first object has ownership of the virtual asset.
  • the computer device determines the warrant attributes corresponding to the target asset warrant, generates a lease contract for the virtual asset based on the warrant attributes and the resource transfer information, and uploads the lease contract to the blockchain network; the lease contract is used for Indicates that the second object has usage rights regarding the virtual asset and does not have transfer rights regarding the virtual asset.
  • the computer device obtains the current system time; if the current system time does not belong to the rental time period, returns the target asset warrant of the virtual asset to the account address of the first object.
  • the computer device generates invalidation indication information indicating that the status of the lease contract is in an invalidated state, and uploads the invalidation indication information to the blockchain network.
  • the computer device sends the failure indication information to the first terminal corresponding to the first object and the second terminal corresponding to the second object respectively; the failure indication information is also used to instruct the first object to restore the virtual asset. ownership, and the second object loses the right to use the virtual asset.
  • the computer device can obtain the current system time. If the current system time does not belong to the rental time period of the rental contract, the second object's lease period for the virtual asset has expired. Therefore, the target asset of the virtual asset The warrant is returned to the account address of the first object; the computer device can generate invalidation indication information indicating that the status of the lease contract is invalid, and upload the invalidation indication information to the blockchain network.
  • the computer device may send the failure indication information to the first terminal corresponding to the first object and the second terminal corresponding to the second object respectively; the failure indication information is also used to instruct the first object to restore the virtual asset.
  • the permissions of the first object and the second object to the virtual assets are updated, and the updated permissions are recorded in the blockchain network, realizing the safety, reliability, data transparency and high credibility of the data information in the virtual asset leasing process, and improving the virtual asset leasing process. Lease security and fairness of assets.
  • the computer device may process the transfer request in the following manner: obtain a transfer request regarding the virtual asset, where the transfer request carries the object identifier of the transferor ; If the object identifier of the transferor is the same as the object identifier of the first object, query the transaction data associated with the virtual asset in the blockchain network; if the transaction data associated with the virtual asset includes If the lease contract of the virtual asset includes the expiration indication information of the lease contract of the virtual asset, then execute the transfer request of the virtual asset; if the transaction data associated with the virtual asset includes the lease contract of the virtual asset , and does not include the expiration indication information of the rental contract of the virtual asset, then the transfer request of the virtual asset is suspended.
  • the computer device can obtain a transfer request for the virtual asset.
  • the transfer request carries the transferor's object identifier.
  • the transferor's object identifier can refer to the account address sent by the transferor when registering in the blockchain network.
  • the object identifier of the first object may also refer to the account address of the first object in the blockchain network
  • the object identifier of the second object may refer to the account address of the second object in the blockchain network. Therefore, if the object identifier of the transferor is the same as the object identifier of the first object, it indicates that the transfer request is sent by the first object.
  • the computer device can query the transaction data associated with the virtual asset in the blockchain network.
  • the computer device can execute the transfer request of the virtual asset. If the transaction data associated with the virtual asset includes the lease contract of the virtual asset and does not include the expiration indication information of the lease contract of the virtual asset, it indicates that the lease contract has not expired, that is, the first object does not own the virtual asset. Ownership (such as rights of use, transfer and rental), therefore, the computer equipment can suspend the execution of transfer requests for virtual assets.
  • the computer device detects whether the lease contract of the virtual asset has expired, and only executes the transfer request when the lease contract of the virtual asset expires to prevent the first object from leasing the virtual asset.
  • the virtual assets are transferred to other users, resulting in the second object not being able to use the virtual assets during the lease period, which is conducive to ensuring the legitimate rights and interests of the second object and improving the security of the transfer and leasing of virtual assets. .
  • the computer device may suspend execution of the transfer request and generate transfer suspension indication information, and the transfer suspension indication information is used to Indicate that the second object does not have the transfer authority for the virtual asset; send the suspension transfer instruction information to the second terminal corresponding to the second object, and upload the transfer request to the blockchain network In; adjust the credit level of the second object according to the transfer request to obtain an adjusted credit level; if the adjusted credit level is less than a level threshold, suspend the execution of the leasing request for the second object.
  • the computer device can suspend execution.
  • the transfer request generates transfer suspension indication information, and the transfer suspension indication information is used to indicate that the second object does not have the transfer authority for the virtual asset.
  • the computer device may send the pause transfer instruction information to the second terminal corresponding to the second object, and upload the transfer request to the blockchain network. Further, adjusting the credit rating of the second object according to the transfer request to obtain the adjusted credit rating, that is, reducing the credit rating of the second object according to the transfer request to obtain the adjusted credit rating. The degree of reduction can be based on the second object.
  • the computer device can obtain a joining request about the target game scene in the game application, and based on the joining request, the computer device can obtain the joining request from the target game scene in the game application.
  • the joining conditions for joining the target game scene are queried in the blockchain network; the join request is used to instruct the second object to be added to the target game scene.
  • the joining permission information is generated; the joining permission information is used to indicate that the second object has the joining permission regarding the target game scene; the joining permission information is uploaded to the blockchain network , the adding permission information is sent to an application server of the game application; the joining permission information is used to instruct the application server to add the second object to the target game scene.
  • the node device 70a in Figure 7 can refer to any node device in the blockchain network in Figure 1, a terminal 71a may refer to the second terminal corresponding to the second object.
  • the terminal 71a can display the game scene 1 and the game scene 2 of the game application on the game interface 72b. If it receives a touch operation for the game scene 1, the terminal 71a can use the game scene 1 as the target game scene of the game application and send it to the node device 70a.
  • a request to join the target game scenario The computer device (i.e., the node device 70a) can obtain a joining request regarding the target game scene in the game application, and query the joining conditions for joining the target game scene from the blockchain network according to the joining request.
  • the joining conditions are used to define Conditions for adding the target game scene.
  • the target game scene can refer to the scene of logging into the game application, or one of the single-player game scenes, multi-player battle game scenes, practice game scenes, indoor game scenes, outdoor game scenes, or Various.
  • the computer device can obtain the game attribute information of the second object regarding the game application.
  • the game attribute information includes the time when the second object joined the game application, the game level in the game application, and the victory or defeat in the game application.
  • the verification result includes whether the joining request is legal or the joining request is not legal. sex.
  • the joining request is not legal, indicating that the second object does not meet the joining conditions for joining the target game scene, the joining request is refused to be executed. If the joining request is legal, indicating that the second object meets the joining conditions for joining the target game scene, then the joining permission information is generated; the joining permission information is used to indicate that the second object has the joining permission for the target game scene. Further, the computer device can return the verification result to the terminal 71a. If the verification result indicates that the joining request is legal, the terminal 71a can display a prompt message indicating that the joining request is successful in the interface 73b. If the verification result indicates that the joining request is not legal, The terminal 71a may display a prompt message indicating that the joining fails in the interface 74b.
  • the joining permission information is uploaded to the blockchain network, and the joining permission information is sent to the application server of the game application; the joining permission information is used to instruct the application server to add the second object to the target game.
  • the joining permission information is used to instruct the application server to add the second object to the target game.
  • verifying the legality of the join request based on the game attribute information, the rental contract, and the joining conditions of the target scene includes: determining the rental time for the second object to rent the virtual asset according to the rental contract segment, and the first asset amount of the virtual asset leased to the second object, determine the game level of the second object in the game application based on the game attribute information, and based on the game level, from the joining conditions of the target game scene , query the virtual asset limit amount of the second object added to the target game scene; if the first asset amount is greater than the virtual asset limit amount, obtain the generation time of the join request; if the generation time of the join request belongs to the third If the two objects rent the virtual asset within the lease period, it is determined that the joining request is legal.
  • the computer device may determine the lease period for the second object to lease the virtual asset according to the lease contract, and the first asset amount of the virtual asset leased to the second object, and determine the second object's participation in the game according to the game attribute information.
  • Game level in the app Furthermore, usually the amount of assets required for users with different game levels to join the target game scene is different. Therefore, the computer device can query the second object's virtual status for joining the target game scene from the joining conditions of the target game scene according to the game level.
  • Asset limit amount, the virtual asset limit amount may refer to the minimum amount of assets required for a user with the game level to join the target game scenario. If the amount of the first asset is greater than the limit amount of the virtual asset, the generation time of the join request is obtained.
  • the generation time of the join request falls within the lease time period of the second object leasing the virtual asset, it means that the second object is leasing the virtual asset at this time. If the second object has the right to use the virtual asset, it is determined that the joining request is legal, indicating that the second object meets the joining conditions for joining the target game scene. Verify the legality of the second object's request to join the target game scene through the rental contract, the game attribute information and the conditions for joining the target game scene, that is, the second object can reasonably use the virtual asset during the rental period, ensuring that the second object The legitimate rights and interests of the two objects and improve the utilization rate of virtual assets.
  • the first terminal corresponding to the first object and the second terminal corresponding to the second object may include a blockchain client, and the blockchain client may refer to a blockchain applet or a blockchain application. programs, blockchain web pages, etc., the following description takes the first terminal and the second terminal having blockchain applications as an example.
  • the computer device in this application may be an independent device or a collection of multiple devices.
  • the computer device may include an authentication server, an asset server, and a blockchain node device. Each device may interact to implement the blockchain-based data processing method in this application.
  • the implementation process of this method includes As follows S1 ⁇ S7:
  • the first terminal corresponding to the first object can send a registration request to the authentication server through the blockchain application.
  • the registration request carries the user's real-name information of the first object.
  • the user's real-name information is the object attribute information of the first object.
  • the authentication server can verify the user real-name information of the first object and obtain the verification result. If the verification result is that the verification is passed, step S3 is executed; if the verification result is that the verification is not passed, This ends the process.
  • the authentication server can return the object identifier and account address of the first object to the first terminal according to the user's real-name information of the first object.
  • the authentication server can send the object identifier and account address of the first object to the blockchain node device (that is, the node device in the blockchain network), and the blockchain node device stores the object identifier and account address of the first object. in the blockchain.
  • the first terminal can send the rental information of the virtual asset to the application server of the blockchain application, and the application server can display the rental information in the block On the blockchain application, all registered users on the blockchain application (that is, the blockchain network) can view the leasing information.
  • the second terminal corresponding to the second object can send a lease request to the asset server through the blockchain application.
  • the asset server forwards the lease request to the blockchain node device, and the blockchain node device stores the lease request in the area. in the blockchain.
  • the blockchain node device can transfer the target asset warrant of the virtual asset from the account address of the first object to the account address of the second object, and transfer the electronic resource of resource value from the account address of the second object to the account address of the first object. account address, generate a rental contract, and store the rental contract in the blockchain. Then, the blockchain node device returns the leasing result to the asset server, and the asset server returns the leasing result to the first terminal and the second terminal.
  • the first object can check the electronic resources of the received resource value through the blockchain application
  • the second object can check the ownership of the virtual assets through the blockchain application and start counting down the usage time of the virtual assets.
  • the computer device can upload leasing information about the virtual assets to the blockchain network.
  • the leasing information is used to indicate that the virtual assets of the first object are in a state of being leased.
  • any one in the blockchain network Registered users can view the leasing information and determine whether they need to rent the virtual asset based on their own needs.
  • the computer device may obtain a lease request generated based on the lease information, the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes the resource value of the electronic resource to be transferred when the second object leases the virtual asset.
  • the target asset warrant is used to indicate that the first object has ownership of the virtual asset.
  • the computing device can determine the warrant attributes corresponding to the target asset warrant, generate a lease contract about the virtual asset based on the warrant attributes and the resource transfer information, and upload the lease contract to the blockchain network; the lease contract It is used to indicate that the second object has usage rights regarding the virtual asset and does not have transfer rights regarding the virtual asset.
  • the blockchain network records the leasing information released by the first object during the virtual asset leasing process, the leasing request sent by the second object, and the leasing contract corresponding to the generated virtual asset, and can also generate and arrive at the leasing contract. After the period, the permissions of the virtual assets owned by the first object and the second object can be automatically updated.
  • this aspect takes advantage of the characteristics of the blockchain network that the data is difficult to tamper with and the recorded information is more authentic and reliable, achieving the safety, reliability, data transparency and high credibility of the data information in the virtual asset leasing process.
  • the first object can lease the virtual assets it owns to a second person who needs the virtual assets.
  • the second object can transfer a certain rental fee to the first object, improve the utilization rate of virtual assets and the equipment resource utilization and operating efficiency of the blockchain node equipment, and reduce the cost of the second object participating in the virtual asset ecology.
  • the second object after the second object obtains the target asset warrant of the virtual asset, the second object has the right to use the virtual asset and can use the virtual asset to parameterize certain online activities (such as activities in a certain game application),
  • the second object does not have the right to transfer the virtual assets, that is, the second object cannot transfer the virtual assets to other people for use. This can avoid that the virtual assets cannot be returned to the first object after the lease contract expires. issues to ensure the security and fairness of virtual asset leasing.
  • FIG. 9 is a schematic structural diagram of a blockchain-based data processing device provided by an embodiment of the present application.
  • the above-mentioned blockchain-based data processing device can be a computer program (including program code) running in a network device.
  • the blockchain-based data processing device is an application software; this device can be used to execute the implementation of this application.
  • the blockchain-based data processing device may include: an upload module 911, an acquisition module 912, a transfer module 913, and a generation module 914.
  • An upload module used to upload leasing information about virtual assets to the blockchain network; the leasing information is used to indicate that the virtual assets of the first object are in a state of being leased;
  • An acquisition module configured to acquire a lease request generated for the lease information; the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes electronic data to be transferred for leasing the virtual asset to the second object.
  • a transfer module configured to transfer the target asset warrant of the virtual asset from the account address of the first object to the account address of the second object, and transfer the electronic resource of the resource value from the account address of the second object.
  • the address is transferred to the account address of the first object;
  • the target asset warrant is used to indicate that the first object has ownership of the virtual asset;
  • Generating module used to determine the warrant attributes corresponding to the target asset warrants, generate a lease contract regarding the virtual asset based on the warrant attributes and the resource transfer information, and upload the lease contract to the blockchain network In; the leasing contract is used to indicate that the second object has the use rights for the virtual asset and does not have the transfer rights for the virtual asset.
  • the generation module includes a query unit 91a and a determination unit 92a:
  • the query unit 91a is used to query the asset warrants of the virtual assets in the blockchain network, obtain a first asset warrant set, and count the total number of asset warrants in the first asset warrant set.
  • the target asset The warrant belongs to the first asset warrant set;
  • Determining unit 92a configured to determine that the warrant attribute of the target asset warrant is the first warrant attribute if the total number of asset warrants in the first asset warrant set is one; having the first warrant attribute The object of the asset warrant has the virtual asset All ownership of the asset; if the total number of asset warrants in the first asset warrant set is M, then it is determined that the warrant attribute of the target asset warrant is the second warrant attribute; having one copy of the second warrant The object of the property's asset warrant has partial ownership of the virtual asset, and M is a positive integer greater than or equal to 2.
  • the generation module also includes a prediction unit 93a and a generation unit 94a:
  • Determining unit 92a configured to determine the first asset amount of the virtual asset owned by the first object according to the warrant attribute
  • the estimating unit 93a is configured to estimate the asset value of the virtual asset owned by the first object based on the first asset amount;
  • Determining unit 92a configured to determine the rental period for the second object to lease the virtual asset based on the asset value and the resource transfer information
  • the generating unit 94a is configured to generate the first permission information of the first object for the virtual asset according to the rental period, and generate the second permission information of the second object for the virtual asset; the first The permission information is used to indicate that the first object does not have ownership of the virtual asset during the rental period, and the second permission information is used to indicate that the second object has ownership of the virtual asset during the rental period.
  • the determining unit 92a determines the first asset amount of the virtual asset owned by the first object according to the warrant attribute, including:
  • warrant attribute is the first warrant attribute, then determine the second asset amount as the first asset amount of the virtual asset owned by the first object;
  • the first object's share of the virtual asset is obtained from the blockchain network, and is determined based on the second asset amount and the share. A first asset amount of the virtual asset owned by the first object.
  • the upload module also includes an acquisition unit 95b, a verification unit 96b and an upload unit 97b:
  • Obtaining unit 95b configured to obtain a release request regarding the lease information of the virtual asset; the release request carries the lease information of the virtual asset and the object identifier of the first object that sent the release request;
  • the verification unit 96b is configured to determine the unit asset value corresponding to the virtual asset of each unit asset amount based on the release request, and verify the release request based on the object identifier of the first object and the unit asset value. legality;
  • the uploading unit 96b is used to upload the leasing information about the virtual asset to the blockchain network if the publishing request is legal.
  • the verification unit verifies the legality of the publishing request based on the object identifier of the first object and the unit asset value, including:
  • the asset warrant owned by the first object is queried in the blockchain network to obtain the first object's asset certificate.
  • the asset warrant obtained by the query is determined to be the target asset warrant of the virtual asset, and the issuance request is determined to be legal.
  • the rental contract is also used to instruct the second object to rent the virtual asset for a rental period; the acquisition module is also used to:
  • the failure indication information is sent to the first terminal corresponding to the first object and the second terminal corresponding to the second object respectively; the failure indication information is also used to instruct the first object to restore the virtual ownership of the asset, and the second object loses usage rights with respect to the virtual asset.
  • the transfer module is also used to:
  • Transaction data related to pseudo assets If the object identifier of the transferor is the same as the object identifier of the first object, query the virtual object in the blockchain network.
  • transaction data associated with the virtual asset includes the lease contract of the virtual asset and includes invalidation indication information of the lease contract of the virtual asset, execute the transfer request of the virtual asset;
  • the transaction data associated with the virtual asset includes the lease contract of the virtual asset and does not include the expiration indication information of the lease contract of the virtual asset, the execution of the transfer request of the virtual asset is suspended.
  • the transfer module is also used to:
  • the credit level of the second object is adjusted according to the transfer request to obtain an adjusted credit level. If the adjusted credit level is less than a level threshold, execution of the leasing request for the second object is suspended.
  • the generation module is also used to:
  • the joining request is used to indicate that the second The object is added to the target game scene;
  • the joining permission information is generated; the joining permission information is used to indicate that the second object has the joining permission regarding the target game scene;
  • the joining permission information is used to instruct the application server to transfer the second object to Join the target game scene.
  • the generation module verifies the legality of the joining request based on the game attribute information, the rental contract, and the joining conditions of the target scene, including:
  • the upload module is also used to:
  • the object registration request includes the object identifier of the third terminal corresponding to the third object and the account address of the third object;
  • the account address corresponding to the third terminal and the object identifier corresponding to the third terminal are associated and stored in the blockchain network.
  • step S101 shown in Figure 4 can be executed by the upload module 911 in Figure 9
  • step S102 shown in Figure 4 can be executed by the acquisition module 912 in Figure 9
  • step S103 in Figure 4 can be executed by the acquisition module 912 in Figure 9
  • the transfer module 913 is executed.
  • Step S104 shown in FIG. 4 may be executed by the generation module 914 in FIG. 9 .
  • each module in the blockchain-based data processing device shown in Figure 9 can be separately or entirely combined into one or several units to form, or some of the units (some) can also be By splitting it into at least two functionally smaller subunits, the same operation can be achieved without affecting the realization of the technical effects of the embodiments of the present application.
  • the above modules are divided based on logical functions. In practical applications, the function of one module can also be realized by at least two units, or the functions of at least two modules can be realized by one unit. In other embodiments of the present application, the blockchain-based data processing device may also include other unit, in actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by at least two units in cooperation.
  • the method can be run on a general computer device such as a computer including a central processing unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and other processing components and storage components.
  • Computer programs capable of executing the steps involved in the corresponding methods shown in Figures 4 and 6, to construct the blockchain-based data processing device shown in Figure 9, and to implement the present invention
  • the blockchain-based data processing method of the application embodiment can be recorded on, for example, a computer-readable recording medium, loaded into the above-mentioned computing device through the computer-readable recording medium, and run therein.
  • the computer device can upload leasing information about the virtual assets to the blockchain network.
  • the leasing information is used to indicate that the virtual assets of the first object are in a state of being leased.
  • any one in the blockchain network Registered users can view the leasing information and determine whether they need to rent the virtual asset based on their own needs.
  • the computer device may obtain a lease request generated based on the lease information, the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes the resource value of the electronic resource to be transferred when the second object leases the virtual asset.
  • the target asset warrant of the virtual asset is used to indicate that the first object has ownership of the virtual asset.
  • the blockchain network records the leasing information released by the first object during the virtual asset leasing process, the leasing request sent by the second object, and the leasing contract corresponding to the generated virtual asset, and can also generate and arrive at the leasing contract. After the period, the permissions of the virtual assets owned by the first object and the second object can be automatically updated.
  • this aspect takes advantage of the characteristics of the blockchain network that the data is difficult to tamper with and the recorded information is more authentic and reliable, achieving the safety, reliability, data transparency and high credibility of the data information in the virtual asset leasing process.
  • the first object if the first object has redundant virtual assets or the first object does not need to use the virtual assets owned by the first object, the first object can lease the virtual assets it owns to a second person who needs the virtual assets.
  • the second object can transfer a certain rental fee to the first object, improve the utilization rate of virtual assets and the equipment resource utilization and operating efficiency of the blockchain node equipment, and reduce the cost of the second object participating in the virtual asset ecology.
  • the computing device can determine the warrant attributes corresponding to the target asset warrant, generate a lease contract about the virtual asset based on the warrant attributes and the resource transfer information, and upload the lease contract to the blockchain network; the lease contract It is used to indicate that the second object has usage rights regarding the virtual asset and does not have transfer rights regarding the virtual asset. Moreover, after the second object obtains the target asset warrant of the virtual asset, the second object has the right to use the virtual asset and can use the virtual asset to parameterize certain online activities (such as activities in a certain game application), However, the second object does not have the right to transfer the virtual assets, that is, the second object cannot transfer the virtual assets to other people for use. This can avoid that the virtual assets cannot be returned to the first object after the lease contract expires. issues to ensure the security and fairness of virtual asset leasing.
  • the computer device 1000 may include a processor 1001 , a network interface 1004 and a memory 1005 .
  • the computer device 1000 may further include a user interface 1003 and at least one communication bus 1002 .
  • the communication bus 1002 is used to realize connection communication between these components.
  • the user interface 1003 may include a display screen (Display) and a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include standard wired interfaces and wireless interfaces (such as WI-FI interfaces).
  • the memory 1005 can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the memory 1005 may also be at least one storage device remote from the aforementioned processor 1001.
  • memory 1005, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.
  • the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an input interface; and the processor 1001 can be used to call the device control application stored in the memory 1005, To achieve:
  • the leasing information is used to indicate that the virtual asset of the first object is in a state of being leased;
  • the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes the resource value of the electronic resource to be transferred for the second object to lease the virtual asset;
  • the target asset warrant of the virtual asset transfers the target asset warrant of the virtual asset from the account address of the first object to the account address of the second object, and transfer the electronic resource of the resource value from the account address of the second object to the The account address of the first object;
  • the target asset warrant is used to indicate that the first object has ownership of the virtual asset;
  • the object has usage permissions on the virtual assets and does not have transfer permissions on the virtual assets.
  • the processor 1001 can be used to call a device control application stored in the memory 1005 to determine the warrant attributes corresponding to the target asset warrant, including:
  • the asset warrants of the virtual assets are queried to obtain the first asset warrant set.
  • the total number of asset warrants in the first asset warrant set is counted.
  • the target asset warrant belongs to the first asset warrant set. asset warrant set;
  • the unique warrant attribute is determined as the warrant attribute of the target asset warrant; the object of the asset warrant with the unique warrant attribute has all ownership rights to the virtual asset;
  • M is a positive integer greater than or equal to 2.
  • the processor 1001 can be used to call a device control application stored in the memory 1005 to generate a rental contract regarding the virtual asset based on the warrant attributes and the resource transfer information, including:
  • the first permission information of the first object for the virtual asset is generated according to the rental period, and the second permission information of the second object for the virtual asset is generated; the first permission information is used to indicate the The first object does not have ownership of the virtual asset during the rental period, and the second permission information is used to indicate that the second object has ownership of the first asset during the rental period.
  • the usage rights of the virtual assets and does not have the transfer rights of the virtual assets for the first amount of assets;
  • a rental contract regarding the virtual asset is generated.
  • the processor 1001 may be configured to call a device control application stored in the memory 1005 to determine the first asset amount of the virtual asset owned by the first object according to the warrant attribute, including:
  • the second asset amount is determined as the first asset amount of the virtual asset owned by the first object
  • the first object's share of the virtual asset is obtained from the blockchain network, and the third object is determined based on the second asset amount and the share.
  • the processor 1001 can be used to call a device control application stored in the memory 1005 to upload leasing information about virtual assets to the blockchain network, including:
  • the release request carries the lease information of the virtual asset and the object identifier of the first object that sent the release request;
  • the leasing information about the virtual asset will be uploaded to the blockchain network.
  • the processor 1001 can be used to call a device control application stored in the memory 1005 to verify the legality of the release request according to the object identification of the first object and the unit asset value, including :
  • the asset warrant obtained by the query is determined to be the target asset warrant of the virtual asset, and the issuance request is determined to be legal.
  • the rental contract is also used to instruct the second object to rent the virtual asset for a rental period;
  • the processor 1001 can be used to call a device control application stored in the memory 1005 to implement:
  • the failure indication information is sent to the first terminal corresponding to the first object and the second terminal corresponding to the second object respectively; the failure indication information is also used to instruct the first object to restore the virtual ownership of the asset, and the second object loses usage rights with respect to the virtual asset.
  • the processor 1001 may be used to call a device control application stored in the memory 1005 to implement:
  • transaction data associated with the virtual asset includes the lease contract of the virtual asset and includes invalidation indication information of the lease contract of the virtual asset, execute the transfer request of the virtual asset;
  • the transaction data associated with the virtual asset includes the lease contract of the virtual asset and does not include the expiration indication information of the lease contract of the virtual asset, the execution of the transfer request of the virtual asset is suspended.
  • the processor 1001 may be used to call a device control application stored in the memory 1005 to implement:
  • the credit level of the second object is adjusted according to the transfer request to obtain an adjusted credit level. If the adjusted credit level is less than a level threshold, execution of the leasing request for the second object is suspended.
  • the processor 1001 may be used to call a device control application stored in the memory 1005 to implement:
  • the joining request is used to indicate that the second The object is added to the target game scene;
  • the joining permission information is generated; the joining permission information is used to indicate that the second object has the joining permission regarding the target game scene;
  • the joining permission information is used to instruct the application server to transfer the second object to Join the target game scene.
  • the processor 1001 may be used to call a device control application stored in the memory 1005 to verify the joining request according to the game attribute information, the rental contract and the joining conditions of the target scene. legality, including:
  • the processor 1001 may be used to call a device control application stored in the memory 1005 to implement:
  • the object registration request includes the object identifier of the third terminal corresponding to the third object and the account address of the third object;
  • the account address corresponding to the third terminal and the object identifier corresponding to the third terminal are associated and stored in the blockchain network.
  • the computer device can upload leasing information about the virtual assets to the blockchain network.
  • the leasing information is used to indicate that the virtual assets of the first object are in a state of being leased.
  • any one in the blockchain network Registered users can view the leasing information and determine whether they need to rent the virtual asset based on their own needs.
  • the computer device can obtain a lease request generated based on the lease information, the lease request carries resource transfer information of the virtual asset, and the resource transfer information includes a second pair of The resource value of the electronic resource to be transferred is like leasing the virtual asset.
  • the target asset warrant of the virtual asset is used to indicate that the first object has ownership of the virtual asset.
  • the blockchain network records the leasing information released by the first object during the virtual asset leasing process, the leasing request sent by the second object, and the leasing contract corresponding to the generated virtual asset, and can also generate and arrive at the leasing contract. After the period, the permissions of the virtual assets owned by the first object and the second object can be automatically updated.
  • this aspect takes advantage of the characteristics of the blockchain network that the data is difficult to tamper with and the recorded information is more authentic and reliable, achieving the safety, reliability, data transparency and high credibility of the data information in the virtual asset leasing process.
  • the first object if the first object has redundant virtual assets or the first object does not need to use the virtual assets owned by the first object, the first object can lease the virtual assets it owns to a second person who needs the virtual assets.
  • the second object can transfer a certain rental fee to the first object, improve the utilization rate of virtual assets and the equipment resource utilization and operating efficiency of the blockchain node equipment, and reduce the cost of the second object participating in the virtual asset ecology.
  • the computing device can determine the warrant attributes corresponding to the target asset warrant, generate a lease contract about the virtual asset based on the warrant attributes and the resource transfer information, and upload the lease contract to the blockchain network; the lease contract It is used to indicate that the second object has usage rights regarding the virtual asset and does not have transfer rights regarding the virtual asset. Moreover, after the second object obtains the target asset warrant of the virtual asset, the second object has the right to use the virtual asset and can use the virtual asset to parameterize certain online activities (such as activities in a certain game application), However, the second object does not have the right to transfer the virtual assets, that is, the second object cannot transfer the virtual assets to other people for use. This can avoid that the virtual assets cannot be returned to the first object after the lease contract expires. issues to ensure the security and fairness of virtual asset leasing.
  • the computer device 1000 described in the embodiment of this application can execute the description of the blockchain-based data processing method in the embodiment corresponding to FIG. 4 or 6, and can also execute the data processing method based on the blockchain in the embodiment corresponding to FIG. 9.
  • the description of the blockchain-based data processing device will not be repeated here.
  • the description of the beneficial effects of using the same method will not be described again.
  • the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores the computer program executed by the aforementioned blockchain-based data processing device.
  • the above-mentioned computer program includes program instructions.
  • the above-mentioned processor executes the above-mentioned program instructions, it can execute the description of the above-mentioned blockchain-based data processing method in the corresponding embodiments of Figure 4 and Figure 6. Therefore, there will be no description here. Let’s go into details. In addition, the description of the beneficial effects of using the same method will not be described again.
  • the description of the method embodiments in this application please refer to the description of the method embodiments in this application.
  • the above program instructions may be deployed on one computer device for execution, or deployed on at least two computer devices at one location, or at least two computer devices distributed in at least two locations and interconnected through a communication network.
  • Executed on a computer device at least two computer devices distributed in at least two locations and interconnected through a communication network can form a blockchain network.
  • the above-mentioned computer-readable storage medium may be the blockchain-based data processing device provided in any of the foregoing embodiments or the intermediate storage unit of the above-mentioned computer equipment, such as the hard disk or intermediate memory of the computer equipment.
  • the computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card equipped on the computer device, Flash card, etc.
  • the computer-readable storage medium may also include both a central storage unit of the computer device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the computer device.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
  • the embodiment of the present application also provides a computer program product, including a computer program/instruction.
  • a computer program/instruction When the computer program/instruction is executed by a processor, the above-mentioned blockchain-based data processing in the corresponding embodiments of Figure 4 and Figure 2 is implemented. The description of the method will therefore not be repeated here. In addition, the description of the beneficial effects of using the same method will not be described again.
  • technical details not disclosed in the embodiments of the computer program product involved in this application please refer to the description of the method embodiments in this application.
  • each process and/or the method flowcharts and/or structural schematic diagrams can be implemented by computer program instructions. or blocks, and combinations of processes and/or blocks in flowcharts and/or block diagrams.
  • These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable network-connected device to produce a machine, such that the instructions executed by the processor of the computer or other programmable network-connected device produce a use A device for realizing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the structural diagram.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable network-connected device to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture that includes the instruction means, the instructions
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or in one block or multiple blocks in the structural diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable network connection device, causing a series of operating steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart and/or a block or blocks of a structural representation.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请实施例公开了一种基于区块链的数据处理方法、装置、设备及存储介质,应用于人工智能、区块链以及交通等领域,其中,该方法包括:将关于虚拟资产的租赁信息上传至区块链网络中;获取针对该租赁信息所生成的租赁请求;该租赁请求携带该虚拟资产的资源转移信息,从该第一对象的账户地址将该虚拟资产的目标资产权证转移至该第二对象的账户地址,从该第二对象的账户地址将该资源数值的电子资源转移至该第一对象的账户地址;确定该目标资产权证对应的权证属性,根据该权证属性和该资源转移信息生成关于该虚拟资产的租赁合约,将该租赁合约上传至该区块链网络中。

Description

基于区块链的数据处理方法、装置、设备及存储介质
本申请要求于2022年05月10日提交中国专利局、申请号为202210504083.2名称为“基于区块链的数据处理方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人工智能、区块链以及云技术等领域,尤其涉及一种基于区块链的数据处理方法、装置、设备及存储介质。
背景
区块链技术由于其去中心化、无法篡改的特性,能够为各种数字物品以及实体物品,提供以具有唯一特性的虚拟资产为权证类型的所有权证明,并以分布式等方式存储和分发。目前,资产发行方在区块链网络中发行虚拟资产后,在区块链网络中的注册用户可以通过一些活动或直接购买的方式获取发行的虚拟资产,通常虚拟资产的份数是限量的,导致单份虚拟资产的资产价值很高,进而,导致虚拟资产只能被少数注册用户使用,使虚拟资产的使用率比较低。
技术内容
本申请实施例提供一种基于区块链的数据处理方法,包括:
将关于虚拟资产的租赁信息上传至区块链网络中;所述租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态;
获取针对所述租赁信息所生成的租赁请求;所述租赁请求携带所述虚拟资产的资源转移信息,所述资源转移信息包括第二对象租赁所述虚拟资产所待转移的电子资源的资源数值;
从所述第一对象的账户地址将所述虚拟资产的目标资产权证转移至所述第二对象的账户地址,从所述第二对象的账户地址将所述资源数值的电子资源转移至所述第一对象的账户地址;所述目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权;
确定所述目标资产权证对应的权证属性,根据所述权证属性和所述资源转移信息生成关于所述虚拟资产的租赁合约,将所述租赁合约上传至所述区块链网络中;所述租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。
本申请实施例提供一种基于区块链的数据处理装置,包括:
上传模块,用于将关于虚拟资产的租赁信息上传至区块链网络中;所述租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态;
获取模块,用于获取针对所述租赁信息所生成的租赁请求;所述租赁请求携带所述虚拟资产的资源转移信息,所述资源转移信息包括第二对象租赁所述虚拟资产所待转移的电子资源的资源数值;
转移模块,用于从所述第一对象的账户地址将所述虚拟资产的目标资产权证转移至所述第二对象的账户地址,从所述第二对象的账户地址将所述资源数值的电子资源转移至所述第一对象的账户地址;所述目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权;
生成模块,用于确定所述目标资产权证对应的权证属性,根据所述权证属性和所述资源转移信息生成关于所述虚拟资产的租赁合约,将所述租赁合约上传至所述区块链网络中;所述租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。
本申请实施例提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现所述的方法的步骤。
本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现所述的方法的步骤。
本申请实施例提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实 现所述的方法的步骤。
附图说明
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请提供的一种基于区块链网络***的架构示意图;
图2是本申请提供的一种终端与区块链网络中的节点设备之间进行交互的场景示意图;
图3是本申请提供的一种终端与区块链网络中的节点设备之间进行交互的场景示意图;
图4是本申请提供的一种基于区块链的数据处理方法的流程示意图;
图5是本申请提供的一种确定目标资产权证的权证属性的场景示意图;
图6是本申请提供的一种基于区块链的数据处理方法的流程示意图;
图7是本申请提供的一种使用虚拟资产加入目标游戏场景的场景示意图;
图8是本申请提供的一种基于区块链的数据处理方法的流程示意图;
图9是本申请实施例提供的一种基于区块链的数据处理装置的结构示意图;
图10是本申请实施例提供的一种计算机设备的结构示意图
实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
请参见图1,图1是本申请实施例提供的一种网络架构示意图。区块链是一种分布式数据存储、点对点传输、共识机制以及加密算法等计算机技术的新型应用模式,主要用于对数据按时间顺序进行整理,并加密成账本,使其不可被篡改和伪造,同时可进行数据的验证、存储和更新。区块链本质上是一个去中心化的数据库,该数据库中的每个节点均存储一条相同的区块链,区块链网络可以将节点区分为共识节点和业务节点,其中共识节点负责区块链全网的共识。对于区块链网络中交易数据被写入账本的过程可以为:客户端发送交易数据至业务节点,随后该交易数据以接力棒的方式在区块链网络中的业务节点之间传递,直到共识节点收到该交易数据,共识节点再将该交易数据打包进区块,与其他共识节点之间进行共识,在共识通过后,将携带该交易数据的区块写入账本。
其中,可以理解的是,区块(Block)是在区块链网络上承载交易数据(即交易业务)的数据包,是一种被标记上时间戳和之前一个区块的哈希值的数据结构,区块经过网络的共识机制验证并确定区块中的交易。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
首先介绍本方案应用的区块链网络,请参见图1,图1为本发明实施例提供的一种区块链网络的结构示意图。区块链网络是由多个节点设备共同组成的一个端到端的去中心化网络,区块链网络中的节点设备的数量可以根据实际需求部署,本申请对节点设备的数量不做限定;如图1中以该区块链网络中包括4个节点设备为例进行说明,4个节点设备分别为节点设备101、节点设备102、节点设备103以及节点设备104。
可理解的是,每个节点设备在进行正常工作时可以接收到待记录的数据,并基于接收到的待记录的数据维护该区块链。为了保证区块链网络内的信息互通,区块链网络中的每个节点设备之间可以存在网络连接10,节点设备之间可以通过上述网络连接10进行数据传输。例如,当区块链网络中的任意节点设备接收到待记录的数据时,区块链网络中的其他节点设备便根据共识算法对该待记录的数据进行验证,并验证成功后(即达成共识后)将该待记录的数据作为区块链中的数据进行存储,使得区块链网络中全部节点设备上存储的数据均一致。
可以理解的是,节点设备之间可以通过上网络连接10进行数据或者区块传输。上述节点设备之间的网络连接可以基于节点标识,对于区块链网络中的每个节点设备,均具有与其对应的节点标识,而且上述每个节点设备均可以存储与自身有相连关系的其他节点设备的节点标识,以便后续根据其他节点设备的节点标识,将获取到的数据或生成的区块广播至其他节点设备,例如节点设备101可以维护一个节点标识列表,该节点标识列表保存着其他节点设备的节点名称和节点标识,如表1所示:
表1
其中,节点标识可为网络之间互联的协议(Internet Protocol,IP)地址以及其他任意一种能够用于标识区块链网络中节点设备的信息,表1中仅以IP地址为例进行说明。
假设节点设备101的节点标识为117.xxx.xxx.174,则节点设备101可以通过117.xxx.xxx.174,向节点设备102发送数据同步请求,且节点设备102通过节点标识117.xxx.xxx.174,可以知道该数据同步请求是节点设备101所发送的;同理,节点设备102可以通过节点标识117.xxx.xxx.145,向节点设备101发送交易数据A,且节点设备101通过节点标识117.xxx.xxx.145,可以知道该交易数据A是节点设备101所发送的,其他节点设备之间的数据传输亦如此,故不再一一进行赘述。
可以理解的是,上述的网络连接不限定连接方式,可以通过有线通信方式进行直接或间接地连接,也可以通过无线通信方式进行直接或间接地连接,还可以通过其他连接方式,本申请在此不做限制。
需要说明的是,本申请中的区块链网络,可以是基于联盟链的区块链网络(如基于Fabric的联盟链区块链网络),联盟链是由多个组织或机构参与的区块链网络。即联盟链是由多个私有链组成的集群,由多个机构共同参与管理的区块链网络,每个组织或机构管理一个或多个节点设备,其数据只允许***内不同的机构进行读写和发送。例如,本申请中的区块链网络可以是由一个或多个游戏应用的服务设备构成的联盟链,通过该联盟链能够确保某个游戏应用的虚拟资产能够在同一个游戏应用内流转,或者,能够确保某个游戏应用的虚拟资产的能够在不同游戏应用之间流转。另外,联盟链的各个节点设备通常有与之对应的实体机构组织,通过授权后才能加入或退出网络。各机构组织组成利益相关的联盟,共同维护区块链的健康运转。具体的,基于联盟链的区块链网络具有如下特征:
(1)在一个实施例中,基于联盟链的区块链网络中的共识算法,可以由基于联盟链的区块链网络中管理节点设备定制,管理节点设备可以由基于联盟链的区块链网络中节点设备根据各个机构(如游戏应用所属的机构)的机构属性选举得到的,机构属性包括机构信用等级、机构资产量、机构生成时间等等中的一项或多项。在另一个实施例中,基于联盟链的区块链网络中的共识算法,可以由基于联盟链的区块链网络中的各个节点设备共同定制的。
(2)本申请中的共识算法由基于联盟链的区块链网络中各个节点设备共同遵循,例如,该共识算法规定了关于租赁虚拟资产的租赁条件,基于联盟链的区块链网络中任一节点设备接收到关于虚拟资产的租赁请求,则基于联盟链的区块链网络中的共识节点设备需要根据共识算法对关于虚拟资产的租赁请求的合法性进行验证,如果租赁请求满足共识算法中的租赁条件时,确定该租赁请求具有合法性,可以执行该租赁请求。
(3)去中心化。与公有区块链网络不一样,基于联盟链的区块链网络在某种程度上只属于联盟内部的成员所有,且很容易达成共识,因为毕竟联盟链的节点设备数是非常有限的。
(4)可控性较强。公有区块链网络是一旦区块链形成,将不可篡改,这主要源于公有区块链网络的节点设备一般是海量的,想要篡改区块链上的数据,几乎不可能,而基于联盟链的区块链网络,只要所有机构中的大部分达成共识,即可将区块链上的交易进行更改。
(5)数据不会默认公开。不同于公有区块链网络,基于联盟链的区块链网络中的数据只限于 联盟里的机构及其用户才有权限进行访问。
其中,节点设备101、节点设备102、节点设备103以及节点设备104均可以是独立的一个物理服务器,也可以是至少两个物理服务器构成的服务器集群或者分布式***,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、中容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。
需要说明的是,本申请中的对象可以是指用户,当本申请的实施例运用到具体产品或技术中时,需要获得用户许可或者同意,且用户的对象属性信息(如对象标识、账户地址)等用户信息的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。也就是说,计算机设备可以在获取到用户针对上述信息的授权信息时,计算机设备才能获取用户的对象属性信息等用户信息。
例如,计算机设备可以在用户界面中显示权限提示界面,该权限提示界面用于提示用户当前正在搜集用户的对象属性信息,在获取到用户对该权限提示界面发出确认操作后,开始执行获取用户的对象属性信息步骤,否则结束。
可理解的是,本申请中的虚拟资产可以是指能够互联网上流转的资产,如该虚拟资产可以是指某个游戏应用所属的机构在互联网上发行的游戏道具、游戏装备、游戏皮肤、游戏宠物等等,这些虚拟资产能够在该游戏应用中流转,如不同游戏玩家之间可以交换游戏道具等等,虚拟资产还可以是指数字名画、影视作品等等。虚拟资产具有唯一性、不可分割、不可替代以及可证性,可证性可以是指可验证该虚拟资产的所有权的归属等。本实施例中的电子资源是指一定金额的电子凭证的封装。电子凭证可以是数字化的法定货币,或是由第三方发行的可用于兑换产品或服务的电子货币(如游戏币)。
如图1所示的区块链网络中节点设备能够与终端进行交互,以实现本申请的基于区块链的数据处理方法,区块链网络中的节点设备与区块链网络中的节点设备之间的交互过程,可以参见图2和图3所示,图2和图3中的节点设备10a可以是指图1中的区块链网络中的任一节点设备,图2和图3中的终端11a可以是指第一对象所对应的第一终端,终端12a可以是指第二对象对应的第二终端。图2所示,第一对象具有账户地址A(被标记为13b),在T时刻,第一对象的账户地址A中包括虚拟资产1的资产权证1和虚拟资产2的资产权证2,第一对象分别具有针对虚拟资产1、虚拟资产2的出租权限、转移权限、使用权限。当终端11a接收到针对虚拟资产1的资产权证1的出租指令时,终端11a可以获取虚拟资产1的租赁信息,作为租赁信息1,该租赁信息1包括虚拟资产1的名称、资产价值、用途等信息,将该租赁信息1发送至区块链网络中的各个节点设备。
各个节点设备接收到租赁信息1后,可以将对租赁信息的真实性等进行验证,若该租赁信息1验证通过,各个节点设备将租赁信息1写入至区块链网络中的区块链上。如图2。节点设备10a将该租赁信息1写入至区块14b中,该区块14b中还包括租赁信息2,还可以包括区块头等信息。进一步,节点设备10a还可以将该租赁信息发送至第二对象对应的终端12a,终端12a在租赁信息界面15b上展示租赁信息1、租赁信息2、……等等,若终端12a检测到针对租赁选项的触控操作,则确定第二对象需要租赁虚拟资产1。终端12a生成携带资源转移信息的租赁请求,该资源转移信息,也可以称为支付信息,包括第二对象的账户地址以及第二对象为租赁虚拟资产1待转移的电子资源的资源数值,如该资源数值可以为K个。如图2所示,在T时刻,第二对象的账户地址B中包括K个电子资源,如界面15b所示,第二对象具有针对K个电子资源的转移权。
如图3所示,节点设备10a在T+1时刻,接收到关于虚拟资产1的租赁请求,从第一对象的账户地址A中将虚拟资源1的资产权证1转移给第二终端的账户地址B,从第二对象的账户地址B中将K个电子资源转移至第一对象的账户地址A中。如图3所示,终端11a可以在账户界面13b中显示账户地址A中新增的K个电子资源,第一对象具有针对K个电子资源的转移权。相应地,终端12a可以在账户界面15b中显示账户地址B中新增的资产权证1。第一对象、第二对象通过查看各自的账户地址,能够获知本次租赁是否成功。进一步,节点设备10a可以获取资产权证1的权证属性,根据该权证属性和租赁请求中携带的资源转移信息生成租赁合约,该租赁合约用于指示第二对象在租赁时间段内,具有针对虚拟资产1的使用权,具有针对虚拟资产1的转移权限,第一对象在租赁时间段内不具有针对虚拟资产1的所有权(例如,可以包括出租权、转移权以及使用权)。特别地,该租赁合约可以用于指示第二对象正在租赁时间段内具有针对虚拟资产的出租权,或者,该租赁合约可以用于指示第二对象正在租赁时间段内不具有针对虚拟资产的出租权。当该租赁合约用于指示第二对象正在租赁时间段内具有针对虚拟资产的出租权时,表明第二对象可以将该虚拟资产1转租给其他用户,这时第二对象将虚拟资产1转租给其他用户的时间段不能超过第一对象将虚 拟资产1租赁给第一对象的租赁时间段。
可理解的是,本申请中的终端可以是指车载终端、智能手机、平板电脑、笔记本电脑、桌上型电脑、智能音箱、有屏音箱、智能手表等等,但并不局限于此。本申请中的使用权可以是指使用虚拟资产作为加入某种活动的条件,例如,加入目标游戏场景的加入条件为:用户至少需要具有3个虚拟资产,那么第二对象申请加入该目标游戏场景时,计算机设备可以验证第二对象是否具有3个虚拟资产,若具有,则将第二对象加入至目标游戏场景,这时可以称第二对象使用3个虚拟资产加入至目标游戏场景,这3个虚拟资产仍在第二对象的账户地址中,并未发生转移。转移权可以是指允许将虚拟资产的资产权证从账户地址A转移至账户地址B,资产权证转移后,资产权证的所有权归账户地址B对应对象所有。出租权可以是指允许将虚拟资产的资产权证从账户地址A转移至账户地址B,资产权证转移后,在租赁时间段内资产权证的使用权归账户地址B对应对象所有,***时间超过租赁时间段,该资产权证的所有权归账户地址A对应的对象所有。虚拟资产的所有权包括使用权、转移权、出租权。
综上,K个电子资源的价值远小于虚拟资产1的资产价值,也就是说,第二对象只需要花费少量的电子资源,就能够通过租赁的方式,获得虚拟资产的使用权,即只需要第二对象支付一定的租赁费用,不需要第二对象额外抵押物品或电子资源,可以降低第二对象参与虚拟资产生态的成本,提高虚拟资产的利用率,以及区块链的节点设备的设备资源利用率和运行效率。
进一步地,请参见图4,是本申请实施例提供的一种基于区块链的数据处理方法的流程示意图。如图4所示,该方法可由图1中的任一节点设备来执行,也可以由终端来执行,还可以由的终端和节点设备共同执行,本申请中用于执行该方法的设备可以统称为计算机设备。其中,该基于区块链的数据处理方法可以包括如下步骤S101~S104:
S101、计算机设备将关于虚拟资产的租赁信息上传至区块链网络中;该租赁信息用于指示第一对象的该虚拟资产处于待租赁状态。
本申请中,若第一对象具有多余的虚拟资产,或者,第一对象需要使用其具有的虚拟资产,第一对象对应的第一终端可以生成关于该虚拟资产的租赁请求,该租赁请求携带该虚拟资产的租赁信息以及发送所述发布请求的第一对象的对象标识,将该租赁请求发送至计算机设备,计算机设备可以验证该租赁请求的合法性。若该租赁请求具有合法性,则将该租赁信息上传至区块链网络中,这时区块链网络中的任一注册用户能够查看到该租赁信息,并根据自身需求确定是否租赁该虚拟资产;该租赁信息可以包括该虚拟资产的名称、虚拟资产的可租赁的时间段以及租赁费用等等。
可理解的是,上述步骤S101可以包括:计算机设备可以获取关于该虚拟资产的租赁信息的发布请求,该发布请求携带该虚拟资产的租赁信息以及发送该发布请求的第一对象的对象标识。然后,根据该发布请求确定每一个单位资产量的该虚拟资产的单位资产价值,根据该第一对象的对象标识以及该单位资产价值验证该发布请求的合法性,若该发布请求具有合法性,则将关于该虚拟资产的租赁信息上传至区块链网络中。
计算机设备可以从第一对象对应的第一终端中获取关于该虚拟资产的租赁信息的发布请求,该发布请求携带所述虚拟资产的租赁信息以及发送所述发布请求的第一对象的对象标识。区块链网络中的节点设备将租赁信息发布至区块链网络中时,各个节点设备需要消耗一定的存储空间来存储该租赁信息,同时第一对象对应的第一终端需要向各个节点设备转移关于发布租赁信息的费用。然而,通常若虚拟资产的单位资产价值比较低,则用户更愿意以购买的方式获取虚拟资产的使用权,这时如果将单位资产价值比较低的虚拟资产的租赁信息发布至区块链网络中,这种虚拟资产的租赁达成的成功率比较低,会导致浪费区块链网络中的各个节点设备的存储资源,并浪费第一对象发布租赁信息所转移的费用。若虚拟资产的单位资产价值比较高,则用户更愿意以租赁的方式获取虚拟资产的使用权,这时如果将单位资产价值比较高的虚拟资产的租赁信息发布至区块链网络中,这种虚拟资产的租赁达成的成功率比较高,会提高区块链网络中的各个节点设备的存储资源的利用率,并提高第一对象发布租赁信息所花费的成本的利用率。因此,为了提高虚拟资产的租赁达成的成功率,计算机设备可以根据该发布请求确定单位资产量的该虚拟资产的单位资产价值,即该单位资产价值可以是指一份虚拟资产的资产价值或一个虚拟资产的资产价值。然后,根据该第一对象的对象标识以及该单位资产价值验证该发布请求的合法性;若该发布请求具有合法性,则将关于该虚拟资产的租赁信息上传至区块链网络中。通过根据单位资产价值和第一对象的对象标识,验证发布请求的合法性,可有效避免将无效的发布请求所对应的租赁信息发布至区块链网络,提高区块链网络中的节点设备的存储资源的利用率,并提高虚拟资产的租赁达成的成功率。
可理解的是,计算机设备可以通过如下的两种方式中的任一种方式或者,两种方式组合,根据该第一对象的对象标识以及该单位资产价值验证该发布请求的合法性:
方式一:若该单位资产价值大于资产价值阈值,则根据该第一对象的对象标识,在该区块链网络中查询该第一对象所具有的资产权证,得到第二资产权证集;在该区块链网络中,查询该第二资产权证集中的资产权证的描述信息;根据该描述信息,在该第二资产权证集中查询该虚拟资产的资产权证。然后,若在该第二资产权证集中查询到该虚拟资产的资产权证,则将查询得到的资产权证确定为该虚拟资产的目标资产权证,确定该发布请求具有合法性。
在方式一中,若该单位资产价值小于或等于资产价值阈值,表明该虚拟资产的租赁达成的成功率比较低,则计算机设备可以拒绝将租赁信息发布至该区块链网络中。若该单位资产价值大于资产价值阈值,表明该虚拟资产的租赁达成的成功率比较高,则计算机设备可以根据该第一对象的对象标识,在该区块链网络中查询该第一对象所具有的资产权证,得到第二资产权证集,在该区块链网络中,查询该第二资产权证集中的资产权证的描述信息,此处资产权证的描述信息用于指示所述第二资产权证集中的各个资产权证分别所属于的虚拟资产,也即各个资产权证属于哪个虚拟资产。然后,可以根据该描述信息,在该第二资产权证集中查询该虚拟资产的资产权证,若在该第二资产权证集中查询到该虚拟资产的资产权证,则将查询得到的资产权证确定为该虚拟资产的目标资产权证,表明该第一对象具有该虚拟资产的所有权,即该虚拟资产属于该第一对象,此处的所有权包括转移权、使用权。因此,这时计算机设备可以确定该发布请求具有合法性。通过第一对象所拥有的资产权证,和虚拟资产的单位资产价值,验证发布请求的合法性,即在该虚拟资产的租赁达成的成功率比较高,才允许拥有该虚拟资产的用户,发布关于虚拟资产的租赁信息,避免非法用户发布关于虚拟资产的租赁信息,提高虚拟资产的租赁安全性。
方式二:若该单位资产价值大于资产价值阈值,则根据该第一对象的对象标识,在该区块链网络中查询该第一对象的信用等级,若该第一对象的信用等级大于等级阈值,则确定该发布请求具有合法性。
在方式二中,若该单位资产价值小于或等于资产价值阈值,表明该虚拟资产的租赁达成的成功率比较低,则计算机设备可以拒绝将租赁信息发布至该区块链网络中。若该单位资产价值大于资产价值阈值,表明该虚拟资产的租赁达成的成功率比较高,则计算机设备可以根据该第一对象的对象标识,在该区块链网络中查询该第一对象的信用等级,该信用等级可以是根据第一对象遵守租赁合约的次数、在区块链网络中的注册时长以及第一对象所拥有的虚拟资产的总资产量中的一项或多项确定的。若第一对象的信用等级小于或等于等级阈值,则表明第一对象遵守租赁合约的概率比较小,因此,可以确定该第一对象的发布请求不具有合法性,拒绝第一对象发布租赁信息。若第一对象的信用等级大于等级阈值,则表明第一对象遵守租赁合约的概率比较大,因此,可以确定该第一对象的发布请求具有合法性,即允许第一对象发布租赁信息。通过第一对象的信用等级,和虚拟资产的单位资产价值,验证发布请求的合法性,即在该虚拟资产的租赁达成的成功率比较高,且该虚拟资产对应的用户具有较高信用等级时,才允许该用户发布关于虚拟资产的租赁信息,避免信用等级低用户发布关于虚拟资产的租赁信息,提高虚拟资产的租赁安全性。
S102、计算机设备获取基于该租赁信息所生成的租赁请求;该租赁请求携带该虚拟资产的资源转移信息,该资源转移信息包括第二对象租赁该虚拟资产所待转移的电子资源的资源数值。
本申请中,若第二对象浏览到区块链网络中的租赁信息,且确定需要租赁该虚拟资产,则触发第二对象对应的第二终端基于该租赁信息生成租赁请求,将该租赁请求发送至计算机设备(如区块链网络中的节点设备)。计算机设备可以接收基于该租赁信息所生成的租赁请求,该租赁请求携带该虚拟资产的资源转移信息,该资源转移信息包括第二对象租赁该虚拟资产所需要支付的电子资源的资源数值,该资源转移信息还可以包括第二对象的账户地址等等。
S103、计算机设备将该虚拟资产的目标资产权证从该第一对象的账户地址转移至该第二对象的账户地址,将该资源数值的电子资源从该第二对象的账户地址转移至该第一对象的账户地址;该目标资产权证用于指示该第一对象具有针对该虚拟资产的所有权。
本申请中,计算机设备接收到租赁请求后,可以从该第一对象的账户地址将该虚拟资产的目标资产权证转移至该第二对象的账户地址,从该第二对象的账户地址将该资源数值的电子资源转移至该第一对象的账户地址;该目标资产权证用于指示该第一对象具有针对该虚拟资产的所有权。此处的电子资源可以是指在互联网上流通、合法的货币,该虚拟资产的资产价值远远高于该资源数值的电子资源的价值,换言之,第二对象采用较少的资产价值的电子资源获取高资产价值的虚拟资产的使用权,降低第二对象参与虚拟资产生态的成本,并提高虚拟资产的使用率。
S104、计算机设备确定该目标资产权证对应的权证属性,根据该权证属性和该资源转移信息生成关于该虚拟资产的租赁合约,将该租赁合约上传至该区块链网络中;该租赁合约用于指示该第二对象具有关于该虚拟资产的使用权限,且不具有关于该虚拟资产的转移权限。
本申请中,计算机设备可以确定该目标资产权证对应的权证属性,该权证属性包括唯一权证属性(也称为第一权证属性)和通用权证属性(也称为第二权证属性),唯一权证属性用于指示该虚拟资产仅具有一份资产权证,且该资产权证具有唯一性,即独一无二,没有其他虚拟资产的资产权证与该虚拟资产的权证相同。通用权证属性用于反映该虚拟资产具有M份相同的资产权证,这M份资产权证均相同,且该虚拟资产的M份资产权证与其他虚拟资产的资产权证不相同,这M份资产权证可以属于同一用户,也可以属于至少两个不同用户。具有上述M份资产权证中的一份资产权证的对象具有上述虚拟资产的部分所有权,如具有一份资产权证的对象具有一定份额的上述虚拟资产的所有权。进一步,根据该权证属性和资源转移信息生成该虚拟资产的租赁合约,将该租赁合约上传至区块链网络中。该租赁合约用于指示该第二对象在租赁时间段内具有关于该虚拟资产的使用权限,且不具有关于该虚拟资产的转移权限,第一对象在租赁时间段内不具有针对该虚拟资产的所有权。通过根据权证属性和资源转移信息生成租赁合约,有利于确保第一对象和第二对象的合法权益,提高虚拟资产的租赁公平性和安全性;通过将租赁合约上传至区块链网络,使虚拟资产的租赁过程具有可追溯性和透明性。
可理解的是,步骤S104中确定该目标资产权证对应的权证属性,包括:在该区块链网络中,查询该虚拟资产的资产权证,得到第一资产权证集,统计该第一资产权证集中的资产权证的总份数;该目标资产权证属于该第一资产权证集;若该第一资产权证集中的资产权证的总份数为一份,则将该第一资产权证集中的该资产权证,确定为该虚拟资产的目标资产权证,并将确定该目标资产权证的权证属性为唯一权证属性;具有该唯一权证属性的资产权证的对象具有该虚拟资产的全部所有权;若该第一资产权证集中的资产权证的总份数为M份,则将M份资产权证中属于该第一对象的资产权证,确定为该虚拟资产的目标资产权证,并确定该目标资产权证的权证属性为通用权证属性;具有一份通用权证属性的资产权证的对象具有针对该虚拟资产的部分所有权,M为大于或等于2的正整数。
如图5所示,图5中的节点设备10可以是指图1中的区块链网络中的任一节点设备,该虚拟资产可以是指100个游戏宠物。计算机设备(即节点设备10a)可以在该区块链网络中,查询该虚拟资产的资产权证,得到第一资产权证集,统计该第一资产权证集中的资产权证的总份数。若该第一资产权证集中的资产权证的总份数为一份,即表明该第一资产权证集中的这一份资产权证为目标资产权证,则确定该目标资产权证的权证属性为唯一权证属性;具有该唯一权证属性的资产权证的对象具有该虚拟资产的全部所有权,即第一对象具有该虚拟资产的所有权,该虚拟资产仅属于第一对象。若该第一资产权证集中的资产权证的总份数为M份,则确定该目标资产权证的权证属性为通用权证属性。具有一份该通用权证属性的资产权证的对象具有针对该虚拟资产的部分所有权,M为大于或等于2的正整数。
例如,M份资产权证与虚拟资产之间的对应关系,如下表2所示:
表2
如上述表2中以及图4所示,以虚拟资产为100个游戏宠物为例进行说明,该虚拟资产具有M份资产权证,可以称为资产权证1、资产权证2、……、资产权证M,不同资产权证对应该虚拟资产的不同份额,如资产权证1对应20%的虚拟资产,资产权证2对应5%的虚拟资产,……,资产权证M对应7%的虚拟资产。因此,具有资产权证1的用户1具有这100个游戏宠物中的20个游戏宠物的所有权,具有资产权证2的用户2具有这100个游戏宠物中的5个游戏宠物的所有权,……,具有资产权证M的用户M具有这100个游戏宠物中的7个游戏宠物的所有权。这时,可以称M个资产权证的属性具有通用性。特别的,当M份资产权证属于同一个用户时,该用户具有这100个游戏宠物的所有权。如图4中,假设这100个游戏宠物只有一份资产权证M+1,该资产权证M+1被用户M+1所拥有,则用户M+1具有这100个游戏宠物的所有权。可理解的是,当虚拟资产的资 产权证为多份时,这些资产权证发送给谁,以及每一份资产权证对应的虚拟资产的份额是由虚拟资产的发行方确定的。
可理解的是,上述根据该权证属性和该资源转移信息生成关于该虚拟资产的租赁合约,包括:根据该权证属性确定该第一对象具有的该虚拟资产的第一资产量;根据该第一资产量预估该第一对象具有的该虚拟资产的资产价值;根据该资产价值和该资源转移信息确定该第二对象租赁该虚拟资产的租赁时间段;根据该租赁时间段生成所述第一对象针对所述虚拟资产的第一权限信息,以及所述第二对象针对所述虚拟资产的第二权限信息;所述第一权限信息用于指示所述第一对象在所述租赁时间段内不具有针对所述虚拟资产的所有权,所述第二权限信息用于指示所述第二对象在所述租赁时间段内具有针对所述第一资产量的所述虚拟资产的使用权限,且不具有针对所述第一资产量的所述虚拟资产的转移权限。然后,根据所述第一权限信息和所述第二权限信息,生成关于所述虚拟资产的租赁合约。
由于目标资产权证的权证属性不同,第一对象对虚拟资产的占有份额不同,因此,计算机设备可以根据该权证属性确定该第一对象具有的该虚拟资产的第一资产量,然后,可以根据该第一资产量预估该第一对象具有的该虚拟资产的资产价值。根据该资产价值和该资源转移信息确定该第二对象租赁该虚拟资产的租赁时间段,租赁时间段是指用于限定第二对象对虚拟资产的使用时间。进一步,根据该租赁时间段,生成该第一对象针对该虚拟资产的第一权限信息,生成该第二对象针对该虚拟资产的第二权限信息;第一权限信息用于指示第一对象在租赁时间段内不具有针对虚拟资产的所有权,即在租赁时间段内不允许第一对象使用、出租、转移虚拟资产;第二权限信息用于指示该第二对象在租赁时间段内具有针对该第一资产量的该虚拟资产的使用权限,且不具有针对该第一资产量的该虚拟资产的转移权限,即在租赁时间段内,允许第二对象使用该虚拟资产,且不允许第二对象转移该虚拟资产。然后,根据该第一权限信息和第二权限信息,生成关于该虚拟资产的租赁合约,通过根据第一权限信息和第二权限信息生成租赁合约,有利于确保第一对象和第二对象的合法权益,提高虚拟资产租赁的公平性和安全性。
可理解的是,上述根据该权证属性确定该第一对象具有的该虚拟资产的第一资产量,包括:获取该虚拟资产的资产总量,作为第二资产量;若该权证属性为唯一权证属性,则将该第二资产量确定为该第一对象具有的该虚拟资产的第一资产量;若该权证属性为通用权证属性,则从该区块链网络中获取该第一对象关于该虚拟资产的占有份额,根据该第二资产量和该占有份额确定该第一对象具有的该虚拟资产的第一资产量。
计算机设备可以获取该虚拟资产的资产总量,作为第二资产量,若该权证属性为唯一权证属性,表明第一对象具有虚拟资产的全部所有权,因此,可以将该第二资产量确定为该第一对象具有的该虚拟资产的第一资产量。若该权证属性为通用权证属性,表明一份资产权证对应一定份额的虚拟资产,因此,计算机设备可以从该区块链网络中获取该第一对象关于该虚拟资产的占有份额,将该第二资产量和该占有份额之间的乘积,确定为该第一对象具有的该虚拟资产的第一资产量。通过权证属性确定第一对象具有的虚拟资产的第一资产量,即第一对象只能租赁属于第一对象的虚拟资产,提高虚拟资产租赁的安全性和公平性。
本申请中,计算机设备可以将关于虚拟资产的租赁信息上传至区块链网络中,该租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态,这时区块链网络中的任一注册用户可以查看到该租赁信息,并基于自身需求确定是否需要租赁该虚拟资产。进一步,计算机设备可以获取基于该租赁信息所生成的租赁请求,该租赁请求携带该虚拟资产的资源转移信息,该资源转移信息包括第二对象租赁该虚拟资产所待转移的电子资源的资源数值。从该第一对象的账户地址将该虚拟资产的目标资产权证转移至该第二对象的账户地址,从该第二对象的账户地址将该资源数值的电子资源转移至该第一对象的账户地址,该目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权。。然后,计算设备可以确定该目标资产权证对应的权证属性,根据该权证属性和该资源转移信息生成关于该虚拟资产的租赁合约,将该租赁合约上传至所述区块链网络中;该租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。可以看出,区块链网络记录了虚拟资产租赁过程中第一对象发布的租赁信息,第二对象发送的租赁请求,以及生成的虚拟资产对应的租赁合约,并还可以在租赁合约生成和到期后能够自动更新第一对象和第二对象拥有的虚拟资产的权限。这一方面利用了区块链网络的数据难以篡改、记录的信息更加真实可靠的特点,实现了虚拟资产租赁过程的数据信息的安全可靠、数据透明以及可信度高。另一方面,若第一对象具有多余的虚拟资产或第一对象不需要使用该第一对象具有的虚拟资产,则该第一对象可以将其具有的虚拟资产租赁给需要该虚拟资产的第二对象,第二对象可以向第一对象转移一定的租 赁费用,提高虚拟资产的使用率以及区块链的节点设备的设备资源利用率和运行效率,减低第二对象参与虚拟资产生态的成本。并且,第二对象获取到该虚拟资产的目标资产权证后,该第二对象拥有该虚拟资产的使用权,可以使用该虚拟资产参数某种线上活动(如某种游戏应用中的活动),但该第二对象不具有针对该虚拟资产的转移权,即该第二对象不能将该虚拟资产转移给其他人使用,这样可以避免在该租赁合约失效后,该虚拟资产不能退回至第一对象的问题,可确保虚拟资产的租赁的安全性和公平性。
进一步地,请参见图6,是本申请实施例提供的一种基于区块链的数据处理方法的流程示意图。如图6所示,该方法可由图1中的任一节点设备来执行,也可以由终端来执行,还可以由的终端和节点设备共同执行,本申请中用于执行该方法的设备可以统称为计算机设备。其中,该基于区块链的数据处理方法可以包括如下步骤S201~S207:
S201、计算机设备将关于虚拟资产的租赁信息上传至区块链网络中;该租赁信息用于指示第一对象的该虚拟资产处于待租赁状态。
可理解的是,第一对象和第二对象均是区块链网络中的注册用户,计算机设备可以通过如下方式完成对用户的注册:计算机设备可以获取第三终端发送的对象注册请求,该对象注册请求包括该第三终端对应的第三对象的对象标识、该第三对象的账户地址。进一步,根据该对象注册请求,调用该区块链网络中的智能合约中的注册函数,基于该注册函数获取该第三终端对应的第三对象的对象属性信息,该第三对象的对象属性信息可以包括姓名、年龄的用户信息,根据该第三对象的属性信息验证该第三对象的合法性,例如,验证第三对象的年龄是否满足预设年龄等等。若该第三对象不具有合法性,则拒绝第三对象的注册请求。若该第三对象具有合法性,则将该第三终端对应的账户地址和所述第三终端对应的对象标识进行关联存储至所述区块链网络中,完成第三对象在区块链网络中的注册。特别的,第一对象和第二对象在区块链网络中的注册过程,可以参考第三对象在区块链网络中的注册过程,重复之处,不再赘述。
可理解的是,该第三对象的账户地址可以是根据第三对象的私钥生成的,如该第三对象的账户地址可以是指第三对象的公钥。该私钥和公钥构成一个密钥对,公钥是密钥对中公开的部分,私钥则是非公开的部分。公钥除了可以用于第三对象的账户地址,还可以用于加密数据、验证数字签名等。通过这种算法能够确保得到的密钥对是唯一的,使用这种密钥对的时候,如果用其中一个密钥加密一段数据,需要用另一个密钥解密,例如,用公钥加密数据就需要用私钥解密,如果用私钥加密也需要用公钥解密,否则解密将不会成功。
S202、计算机设备获取基于该租赁信息所生成的租赁请求;该租赁请求携带该虚拟资产的资源转移信息,该资源转移信息包括第二对象租赁该虚拟资产所待转移的电子资源的资源数值。
S203、计算机设备将该虚拟资产的目标资产权证从该第一对象的账户地址转移至该第二对象的账户地址,将该资源数值的电子资源从该第二对象的账户地址转移至该第一对象的账户地址;该目标资产权证用于指示该第一对象具有针对该虚拟资产的所有权。
S204、计算机设备确定该目标资产权证对应的权证属性,根据该权证属性和该资源转移信息生成关于该虚拟资产的租赁合约,将该租赁合约上传至该区块链网络中;该租赁合约用于指示该第二对象具有关于该虚拟资产的使用权限,且不具有关于该虚拟资产的转移权限。
S205、计算机设备获取当前***时间;若当前***时间不属于所述租赁时间段,则将该虚拟资产的目标资产权证退回给该第一对象的账户地址。
S206、计算机设备生成用于指示所述租赁合约的状态处于失效状态的失效指示信息,将所述失效指示信息上传至所述区块链网络中。
S207、计算机设备将该失效指示信息分别发送至该第一对象对应的第一终端和所述第二对象对应的第二终端;该失效指示信息还用于指示该第一对象恢复关于该虚拟资产的所有权,以及该第二对象失去关于该虚拟资产的使用权。
在步骤S204~S207中,计算机设备可以获取当前***时间,若当前***时间不属于该租赁合约的租赁时间段,第二对象针对虚拟资产的租期已满,因此,将该虚拟资产的目标资产权证退回给第一对象的账户地址;计算机设备可以生成用于指示该租赁合约的状态处于失效状态的失效指示信息,将该失效指示信息上传至该区块链网络中。计算机设备可以将该失效指示信息分别发送至该第一对象对应的第一终端和所述第二对象对应的第二终端;该失效指示信息还用于指示该第一对象恢复关于该虚拟资产的所有权,以及该第二对象失去关于该虚拟资产的使用权;在该***时间之后,允许第一对象转移、使用该虚拟资产,不允许第二对象使用该虚拟资产。通过在租赁合约到期后, 更新第一对象以及第二对象对虚拟资产的权限,该更新后的权限记录在区块链网络中,实现了虚拟资产租赁过程的数据信息的安全可靠、数据透明以及可信度高,提高虚拟资产的租赁安全性和公平性。
在一些实施例中,若计算机设备收到关于虚拟资产的转移请求,则计算机设备可以通过如下方式处理该转移请求:获取关于所述虚拟资产的转移请求,所述转移请求携带转移者的对象标识;若所述转移者的对象标识与所述第一对象的对象标识相同,则在所述区块链网络中查询所述虚拟资产关联的交易数据;若所述虚拟资产关联的交易数据中包括所述虚拟资产的租赁合约,且包括所述虚拟资产的租赁合约的失效指示信息,则执行所述虚拟资产的转移请求;若所述虚拟资产关联的交易数据中包括所述虚拟资产的租赁合约,且不包括所述虚拟资产的租赁合约的失效指示信息,则暂停所述虚拟资产的转移请求。
计算机设备可以获取关于该虚拟资产的转移请求,该转移请求携带转移者的对象标识,该转移者的对象标识可以是指转移者在区块链网络中注册时所发送的账户地址,同理,第一对象的对象标识也可以是指对应第一对象在区块链网络中的账户地址,第二对象的对象标识可以是指第二对象在区块链网络中的账户地址。因此,若该转移者的对象标识与该第一对象的对象标识相同,表明该转移请求是由第一对象所发送的。这时,计算机设备可以在该区块链网络中查询该虚拟资产关联的交易数据。如果该虚拟资产关联的交易数据中包括该虚拟资产的租赁合约,且包括该虚拟资产的租赁合约的失效指示信息,表明租赁合约已经到期,即第一对象恢复具有该虚拟资产的所有权,因此,计算机设备可以执行该虚拟资产的转移请求。若该虚拟资产关联的交易数据中包括该虚拟资产的租赁合约,且不包括所述虚拟资产的租赁合约的失效指示信息,表明租赁合约还未到期,即第一对象不具有该虚拟资产的所有权(如使用权、转移权和出租权),因此,计算机设备可以暂停执行虚拟资产的转移请求。在第一对象需要对虚拟资产执行转移请求时,计算机设备通过检测该虚拟资产的租赁合约是否到期,在该虚拟资产的租赁合约过期时,才执行转移请求,避免第一对象将虚拟资产租赁给第二对象的同时,将虚拟资产转移给其他用户,导致第二对象在租赁时间段内不能使用虚拟资产,有利于确保第二对象的合法权益,提高虚拟资产的转移安全性和租赁安全性。
在一些实施例中,若所述转移者的对象标识与所述第二对象的对象标识相同,则计算机设备可以暂停执行所述转移请求,生成暂停转移指示信息,所述暂停转移指示信息用于指示所述第二对象不具有针对所述虚拟资产的转移权限;将所述暂停转移指示信息发送至所述第二对象对应的第二终端,将所述转移请求上传至所述区块链网络中;根据所述转移请求调整所述第二对象的信用等级,得到调整后的信用等级,若所述调整后的信用等级小于等级阈值,则暂停执行所述第二对象的租赁请求。
如果该转移者的对象标识与该第二对象的对象标识相同,表明该转移请求是由第二对象所发送的,由于第二对象不具有该虚拟资产的转移权,因此,计算机设备可以暂停执行该转移请求,生成暂停转移指示信息,该暂停转移指示信息用于指示所述第二对象不具有针对该虚拟资产的转移权限。然后,计算机设备可以将该暂停转移指示信息发送至该第二对象对应的第二终端,将该转移请求上传至所述区块链网络中。进一步,根据该转移请求调整所述第二对象的信用等级,得到调整后的信用等级,即根据该转移请求降低该第二对象的信用等级,得到调整后的信用等级,降低的幅度可以根据第二对象历史时间段内发送该转移请求的次数,以及虚拟资产的资产价值等中的至少一项确定的。若该调整后的信用等级小于等级阈值,表明第二对象的不遵守租赁合约的次数比较多,因此,在后续接收到第二对象的租赁请求时,暂停执行该第二对象的租赁请求。在不具有该虚拟资产的转移权限的用户,转移该虚拟资产时,暂停执行该虚拟资产的转移请求,有利于确保第一对象的合法权益,提高虚拟资产的转移安全性。
可理解的是,本申请可以应用于多媒体、游戏等领域,如下以游戏领域为例进行说,具体的,计算机设备可以获取关于游戏应用中的目标游戏场景的加入请求,根据该加入请求从该区块链网络中查询加入至所述目标游戏场景的加入条件;所述加入请求用于指示将所述第二对象加入至所述目标游戏场景中。然后,获取所述第二对象关于所述游戏应用的游戏属性信息,根据所述游戏属性信息、所述租赁合约以及所述目标场景的加入条件,验证所述加入请求的合法性;若所述加入请求具有合法性,则生成加入权限信息;所述加入权限信息用于指示所述第二对象具有关于所述目标游戏场景的加入权限;将所述加入权限信息上传至所述区块链网络中,将所述加入权限信息发送至所述游戏应用的应用服务器;所述加入权限信息用于指示所述应用服务器将所述第二对象加入至所述目标游戏场景中。
如图7所示,图7中的节点设备70a可以是指图1中的区块链网络中的任一节点设备,终端 71a可以是指第二对象对应的第二终端。终端71a可以在游戏界面72b上展示游戏应用的游戏场景1和游戏场景2,若接收到针对游戏场景1的触控操作,可以将游戏场景1作为游戏应用的目标游戏场景,向节点设备70a发送关于目标游戏场景的加入请求。计算机设备(即节点设备70a)可以获取关于游戏应用中的目标游戏场景的加入请求,根据该加入请求从该区块链网络中查询加入至该目标游戏场景的加入条件,该加入条件用于限定加入该目标游戏场景的条件,目标游戏场景可以是指登录至游戏应用的场景、或者,单人游戏场景、多人对战游戏场景、练习游戏场景、室内游戏场景、野外游戏场景中的一种或多种。然后,计算机设备可以获取该第二对象关于该游戏应用的游戏属性信息,该游戏属性信息包括第二对象加入该游戏应用的时间、在该游戏应用中的游戏等级、在游戏应用中的胜负局数等等,根据该游戏属性信息、该租赁合约以及该目标场景的加入条件,验证该加入请求的合法性,得到验证结果,该验证结果包括加入请求具有合法性或该加入请求不具有合法性。若该加入请求不具有合法性,表明第二对象不满足加入目标游戏场景的加入条件,则拒绝执行加入请求。若该加入请求具有合法性,表明第二对象满足加入目标游戏场景的加入条件,则生成加入权限信息;该加入权限信息用于指示该第二对象具有关于该目标游戏场景的加入权限。进一步,计算机设备可以将验证结果返回至终端71a,如果该验证结果指示加入请求具有合法性,终端71a可以在界面73b中展示加入成功的提示信息,如果该验证结果指示加入请求不具有合法性,终端71a可以在界面74b中展示加入失败的提示信息。然后,将该加入权限信息上传至该区块链网络中,将该加入权限信息发送至该游戏应用的应用服务器;该加入权限信息用于指示该应用服务器将该第二对象加入至该目标游戏场景中,可实现以租赁虚拟资产的方式加入至游戏应用,降低第二对象参与虚拟资产生态的成本,将降低第二对象加入游戏应用的门槛,提高游戏用户活跃度。
在一些实施例中,上述根据该游戏属性信息、该租赁合约以及该目标场景的加入条件,验证该加入请求的合法性,包括:根据该租赁合约确定该第二对象租赁该虚拟资产的租赁时间段,以及租赁给该第二对象的虚拟资产的第一资产量,根据该游戏属性信息确定该第二对象在该游戏应用中的游戏等级,根据该游戏等级,从该目标游戏场景的加入条件中,查询该第二对象加入该目标游戏场景的虚拟资产限制量;若该第一资产量大于该虚拟资产限制量,则获取该加入请求的生成时间;若该加入请求的生成时间属于该第二对象租赁该虚拟资产的租赁时间段内,则确定该加入请求具有合法性。
计算机设备可以根据该租赁合约确定该第二对象租赁该虚拟资产的租赁时间段,以及租赁给该第二对象的虚拟资产的第一资产量,根据该游戏属性信息确定该第二对象在该游戏应用中的游戏等级。进一步,通常不同游戏等级的用户加入目标游戏场景所需的资产量不同,因此,计算机设备可以根据该游戏等级,从该目标游戏场景的加入条件中查询该第二对象加入该目标游戏场景的虚拟资产限制量,该虚拟资产限制量可以是指具有该游戏等级的用户,加入该目标游戏场景需要具备的最少资产量。若该第一资产量大于该虚拟资产限制量,则获取该加入请求的生成时间,若该加入请求的生成时间属于该第二对象租赁该虚拟资产的租赁时间段内,表明这时第二对象具有针对虚拟资产的使用权,则确定该加入请求具有合法性,表明第二对象满足加入目标游戏场景的加入条件。通过租赁合约、该游戏属性信息以及加入目标游戏场景的加入条件,验证第二对象关于目标游戏场景的加入请求的合法性,即第二对象在租赁时间段内可以合理使用该虚拟资产,确保第二对象的合法权益,提高虚拟资产的使用率。
可理解的是,第一对象对应的第一终端和第二对象对应的第二终端中可以包括区块链客户端,该区块链客户端可以是指区块链小程序、区块链应用程序、区块链网页等等,下面以第一终端和第二终端具有区块链应用程序为例进行说明。同时,本申请中的计算机设备可以是一个独立的设备,或者是有多个设备所构成的集合。例如,如图8所示,该计算机设备可以包括认证服务器、资产服务器以及区块链节点设备,各个设备可以通过交互实现本申请中的基于区块链的数据处理方法,该方法的实现过程包括如下S1~S7:
S1、第一对象对应的第一终端可以通过区块链应用程序向认证服务器发送注册请求,该注册请求携带第一对象的用户实名信息,该用户实名信息为第一对象的对象属性信息。S2、认证服务器接收到第一对象的注册请求后,可以对第一对象的用户实名信息进行验证,得到验证结果,如果验证结果为验证通过,则执行步骤S3;如果验证结果为验证未通过,则结束本次流程。S3、认证服务器可以根据第一对象的用户实名信息返回第一对象的对象标识和账户地址至第一终端。S4、认证服务器可以将第一对象的对象标识和账户地址发送至区块链节点设备(即区块链网络中的节点设备),区块链节点设备将第一对象的对象标识和账户地址存储在区块链中。S5、第一终端可以将虚拟资产的租赁信息发送至区块链应用程序的应用服务器,应用服务器可以将租赁信息展示在区块 链应用程序上,在区块链应用程序上(即区块链网络)的注册用户均能够查看到该租赁信息。S6、第二对象对应的第二终端可以通过区块链应用程序向资产服务器发送租赁请求,资产服务器将该租赁请求转发至区块链节点设备,区块链节点设备将该租赁请求存储至区块链中。S7、区块链节点设备可以从第一对象的账户地址转移虚拟资产的目标资产权证至第二对象的账户地址,从第二对象的账户地址,将资源数值的电子资源转移至第一对象的账户地址中,并生成租赁合约,将该租赁合约存储至区块链中。然后,区块链节点设备向资产服务器返回租赁结果,资产服务器将该租赁结果返回至第一终端和第二终端。第一对象可以通过区块链应用程序查看收到的资源数值的电子资源,第二对象可以通过区块链应用程序查看虚拟资产的归属,开始倒计时虚拟资产的使用时间。
本申请中,计算机设备可以将关于虚拟资产的租赁信息上传至区块链网络中,该租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态,这时区块链网络中的任一注册用户可以查看到该租赁信息,并基于自身需求确定是否需要租赁该虚拟资产。进一步,计算机设备可以获取基于该租赁信息所生成的租赁请求,该租赁请求携带该虚拟资产的资源转移信息,该资源转移信息包括第二对象租赁该虚拟资产所待转移的电子资源的资源数值。从该第一对象的账户地址将该虚拟资产的目标资产权证转移至该第二对象的账户地址,从该第二对象的账户地址将该资源数值的电子资源转移至该第一对象的账户地址,该目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权。然后,计算设备可以确定该目标资产权证对应的权证属性,根据该权证属性和该资源转移信息生成关于该虚拟资产的租赁合约,将该租赁合约上传至所述区块链网络中;该租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。可以看出,区块链网络记录了虚拟资产租赁过程中第一对象发布的租赁信息,第二对象发送的租赁请求,以及生成的虚拟资产对应的租赁合约,并还可以在租赁合约生成和到期后能够自动更新第一对象和第二对象拥有的虚拟资产的权限。这一方面利用了区块链网络的数据难以篡改、记录的信息更加真实可靠的特点,实现了虚拟资产租赁过程的数据信息的安全可靠、数据透明以及可信度高。另一方面,若第一对象具有多余的虚拟资产或第一对象不需要使用该第一对象具有的虚拟资产,则该第一对象可以将其具有的虚拟资产租赁给需要该虚拟资产的第二对象,第二对象可以向第一对象转移一定的租赁费用,提高虚拟资产的使用率以及区块链的节点设备的设备资源利用率和运行效率,减低第二对象参与虚拟资产生态的成本。并且,第二对象获取到该虚拟资产的目标资产权证后,该第二对象拥有该虚拟资产的使用权,可以使用该虚拟资产参数某种线上活动(如某种游戏应用中的活动),但该第二对象不具有针对该虚拟资产的转移权,即该第二对象不能将该虚拟资产转移给其他人使用,这样可以避免在该租赁合约失效后,该虚拟资产不能退回至第一对象的问题,可确保虚拟资产的租赁的安全性和公平性。
请参见图9,是本申请实施例提供的一种基于区块链的数据处理装置的结构示意图。上述基于区块链的数据处理装置可以是运行于网络设备中的一个计算机程序(包括程序代码),例如该基于区块链的数据处理装置为一个应用软件;该装置可以用于执行本申请实施例提供的方法中的相应步骤。如图9所示,该基于区块链的数据处理装置可以包括:上传模块911、获取模块912、转移模块913、生成模块914。
上传模块,用于将关于虚拟资产的租赁信息上传至区块链网络中;所述租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态;
获取模块,用于获取针对所述租赁信息所生成的租赁请求;所述租赁请求携带所述虚拟资产的资源转移信息,所述资源转移信息包括第二对象租赁所述虚拟资产所待转移的电子资源的资源数值;
转移模块,用于将所述虚拟资产的目标资产权证从所述第一对象的账户地址转移至所述第二对象的账户地址,将所述资源数值的电子资源从所述第二对象的账户地址转移至所述第一对象的账户地址;所述目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权;
生成模块,用于确定所述目标资产权证对应的权证属性,根据所述权证属性和所述资源转移信息生成关于所述虚拟资产的租赁合约,将所述租赁合约上传至所述区块链网络中;所述租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。
在一些实施例中,生成模块包括查询单元91a和确定单元92a:
查询单元91a用于在所述区块链网络中,查询所述虚拟资产的资产权证,得到第一资产权证集,统计所述第一资产权证集中的资产权证的总份数,所述目标资产权证属于所述第一资产权证集;
确定单元92a,用于若所述第一资产权证集中的所述资产权证的总份数为一份,则确定所述目标资产权证的权证属性为第一权证属性;具有所述第一权证属性的资产权证的对象具有所述虚拟资 产的全部所有权;若所述第一资产权证集中的所述资产权证的总份数为M份,则确定所述目标资产权证的权证属性为第二权证属性;具有一份所述第二权证属性的资产权证的对象具有针对所述虚拟资产的部分所有权,M为大于或等于2的正整数。
在一些实施例中,生成模块还包括预估单元93a和生成单元94a:
确定单元92a,用于根据所述权证属性确定所述第一对象具有的所述虚拟资产的第一资产量;
预估单元93a,用于根据所述第一资产量预估所述第一对象具有的所述虚拟资产的资产价值;
确定单元92a,用于根据所述资产价值和所述资源转移信息确定所述第二对象租赁所述虚拟资产的租赁时间段;
生成单元94a,用于根据所述租赁时间段生成所述第一对象针对所述虚拟资产的第一权限信息,生成所述第二对象针对所述虚拟资产的第二权限信息;所述第一权限信息用于指示所述第一对象在所述租赁时间段内不具有针对所述虚拟资产的所有权,所述第二权限信息用于指示所述第二对象在所述租赁时间段内具有针对所述第一资产量的所述虚拟资产的使用权限,且不具有针对所述第一资产量的所述虚拟资产的转移权限;根据所述第一权限信息和所述第二权限信息,生成关于所述虚拟资产的租赁合约。
在一些实施例中,确定单元92a根据所述权证属性确定所述第一对象具有的所述虚拟资产的第一资产量,包括:
获取所述虚拟资产的资产总量,作为第二资产量;
若所述权证属性为所述第一权证属性,则将所述第二资产量确定为所述第一对象具有的所述虚拟资产的第一资产量;
若所述权证属性为所述第二权证属性,则从所述区块链网络中获取所述第一对象对所述虚拟资产的占有份额,根据所述第二资产量和所述占有份额确定所述第一对象具有的所述虚拟资产的第一资产量。
在一些实施例中,所述上传模块还包括获取单元95b、验证单元96b以及上传单元97b:
获取单元95b,用于获取关于所述虚拟资产的租赁信息的发布请求;所述发布请求携带所述虚拟资产的租赁信息以及发送所述发布请求的第一对象的对象标识;
验证单元96b,用于根据所述发布请求,确定每一单位资产量的所述虚拟资产对应的单位资产价值,根据所述第一对象的对象标识以及所述单位资产价值验证所述发布请求的合法性;
上传单元96b,用于若所述发布请求具有合法性,则将关于所述虚拟资产的租赁信息上传至区块链网络中。
在一些实施例中,所述验证单元根据所述第一对象的对象标识以及所述单位资产价值验证所述发布请求的合法性,包括:
若所述单位资产价值大于资产价值阈值,则根据所述第一对象的对象标识,在所述区块链网络中查询所述第一对象所具有的资产权证,得到所述第一对象的第二资产权证集;
在所述区块链网络中,查询所述第二资产权证集中的资产权证的描述信息,所述描述信息用于指示所述第二资产权证集中的各个资产权证分别所属于的虚拟资产;
根据所述描述信息,在所述第二资产权证集中查询所述虚拟资产的资产权证;
若在所述第二资产权证集中查询到所述虚拟资产的资产权证,则将查询得到的资产权证确定为所述虚拟资产的目标资产权证,确定所述发布请求具有合法性。
在一些实施例中,所述租赁合约还用于指示所述第二对象租赁所述虚拟资产的租赁时间段;所述获取模块还用于:
获取当前***时间;
若当前***时间不属于所述租赁时间段,则将所述虚拟资产的目标资产权证退回给所述第一对象的账户地址;
生成用于指示所述租赁合约的状态处于失效状态的失效指示信息,将所述失效指示信息上传至所述区块链网络中;
将所述失效指示信息分别发送至所述第一对象对应的第一终端和所述第二对象对应的第二终端;所述失效指示信息还用于指示所述第一对象恢复关于所述虚拟资产的所有权,以及所述第二对象失去关于所述虚拟资产的使用权。
在一些实施例中,转移模块,还用于:
获取关于所述虚拟资产的转移请求,所述转移请求携带转移者的对象标识;
若所述转移者的对象标识与所述第一对象的对象标识相同,则在所述区块链网络中查询所述虚 拟资产关联的交易数据;
若所述虚拟资产关联的交易数据中包括所述虚拟资产的租赁合约,且包括所述虚拟资产的租赁合约的失效指示信息,则执行所述虚拟资产的转移请求;
若所述虚拟资产关联的交易数据中包括所述虚拟资产的租赁合约,且不包括所述虚拟资产的租赁合约的失效指示信息,则暂停执行所述虚拟资产的转移请求。
在一些实施例中,转移模块,还用于:
若所述转移者的对象标识与所述第二对象的对象标识相同,则暂停执行所述转移请求,生成暂停转移指示信息,所述暂停转移指示信息用于指示所述第二对象不具有针对所述虚拟资产的转移权限;
将所述暂停转移指示信息发送至所述第二对象对应的第二终端,将所述转移请求上传至所述区块链网络中;
根据所述转移请求调整所述第二对象的信用等级,得到调整后的信用等级,若所述调整后的信用等级小于等级阈值,则暂停执行所述第二对象的租赁请求。
在一些实施例中,生成模块,还用于:
获取关于游戏应用中的目标游戏场景的加入请求,根据所述加入请求从所述区块链网络中查询加入至所述目标游戏场景的加入条件;所述加入请求用于指示将所述第二对象加入至所述目标游戏场景中;
获取所述第二对象关于所述游戏应用的游戏属性信息,根据所述游戏属性信息、所述租赁合约以及所述目标场景的加入条件,验证所述加入请求的合法性;
若所述加入请求具有合法性,则生成加入权限信息;所述加入权限信息用于指示所述第二对象具有关于所述目标游戏场景的加入权限;
将所述加入权限信息上传至所述区块链网络中,将所述加入权限信息发送至所述游戏应用的应用服务器;所述加入权限信息用于指示所述应用服务器将所述第二对象加入至所述目标游戏场景中。
在一些实施例中,所述生成模块根据所述游戏属性信息、所述租赁合约以及所述目标场景的加入条件,验证所述加入请求的合法性,包括:
根据所述租赁合约确定所述第二对象租赁所述虚拟资产的租赁时间段,以及租赁给所述第二对象的虚拟资产的第一资产量;
根据所述游戏属性信息确定所述第二对象在所述游戏应用中的游戏等级,根据所述游戏等级,从所述目标游戏场景的加入条件中查询所述第二对象加入所述目标游戏场景的虚拟资产限制量;
若所述第一资产量大于所述虚拟资产限制量,则获取所述加入请求的生成时间;
若所述加入请求的生成时间属于所述第二对象租赁所述虚拟资产的租赁时间段内,则确定所述加入请求具有合法性。
在一些实施例中,上传模块,还用于:
获取第三终端发送的对象注册请求;所述对象注册请求包括所述第三终端对应第三对象的对象标识、所述第三对象的账户地址;
根据所述对象注册请求,调用所述区块链网络中的智能合约中的注册函数;
基于所述注册函数获取所述第三对象的对象属性信息,根据所述第三对象的属性信息验证所述第三对象的合法性;
若所述第三对象具有合法性,则将所述第三终端对应的账户地址和所述第三终端对应的对象标识进行关联存储至所述区块链网络中。
根据本申请的一个实施例,图4和图6所示的基于区块链的数据处理方法所涉及的步骤可由图9所示的基于区块链的数据处理装置中的各个模块来执行。例如,图4中所示的步骤S101可由图9中的上传模块911来执行,图4中所示的步骤S102可由图9中的获取模块912来执行;图4中的步骤S103可由图9中的转移模块913来执行,图4中所示的步骤S104可由图9中的生成模块914来执行。
根据本申请的一个实施例,图9所示的基于区块链的数据处理装置中的各个模块可以分别或全部合并为一个或若干个单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的至少两个子单元,可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述模块是基于逻辑功能划分的,在实际应用中,一个模块的功能也可以由至少两个单元来实现,或者至少两个模块的功能由一个单元实现。在本申请的其它实施例中,基于区块链的数据处理装置也可以包括其它 单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由至少两个单元协作实现。
根据本申请的一个实施例,可以通过在包括中央处理单元(CPU)、随机存取存储介质(RAM)、只读存储介质(ROM)等处理组件和存储组件的例如计算机的通用计算机设备上运行能够执行如图4和图6中所示的相应方法所涉及的各步骤的计算机程序(包括程序代码),来构造如图9中所示的基于区块链的数据处理装置,以及来实现本申请实施例的基于区块链的数据处理方法。上述计算机程序可以记载于例如计算机可读记录介质上,并通过计算机可读记录介质装载于上述计算设备中,并在其中运行。
本申请中,计算机设备可以将关于虚拟资产的租赁信息上传至区块链网络中,该租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态,这时区块链网络中的任一注册用户可以查看到该租赁信息,并基于自身需求确定是否需要租赁该虚拟资产。进一步,计算机设备可以获取基于该租赁信息所生成的租赁请求,该租赁请求携带该虚拟资产的资源转移信息,该资源转移信息包括第二对象租赁该虚拟资产所待转移的电子资源的资源数值。从该第一对象的账户地址将该虚拟资产的目标资产权证转移至该第二对象的账户地址,从该第二对象的账户地址将该资源数值的电子资源转移至该第一对象的账户地址,该目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权。可以看出,区块链网络记录了虚拟资产租赁过程中第一对象发布的租赁信息,第二对象发送的租赁请求,以及生成的虚拟资产对应的租赁合约,并还可以在租赁合约生成和到期后能够自动更新第一对象和第二对象拥有的虚拟资产的权限。这一方面利用了区块链网络的数据难以篡改、记录的信息更加真实可靠的特点,实现了虚拟资产租赁过程的数据信息的安全可靠、数据透明以及可信度高。另一方面,若第一对象具有多余的虚拟资产或第一对象不需要使用该第一对象具有的虚拟资产,则该第一对象可以将其具有的虚拟资产租赁给需要该虚拟资产的第二对象,第二对象可以向第一对象转移一定的租赁费用,提高虚拟资产的使用率以及区块链的节点设备的设备资源利用率和运行效率,减低第二对象参与虚拟资产生态的成本。然后,计算设备可以确定该目标资产权证对应的权证属性,根据该权证属性和该资源转移信息生成关于该虚拟资产的租赁合约,将该租赁合约上传至所述区块链网络中;该租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。并且,第二对象获取到该虚拟资产的目标资产权证后,该第二对象拥有该虚拟资产的使用权,可以使用该虚拟资产参数某种线上活动(如某种游戏应用中的活动),但该第二对象不具有针对该虚拟资产的转移权,即该第二对象不能将该虚拟资产转移给其他人使用,这样可以避免在该租赁合约失效后,该虚拟资产不能退回至第一对象的问题,可确保虚拟资产的租赁的安全性和公平性。
请参见图10,是本申请实施例提供的一种计算机设备的结构示意图。如图10所示,上述计算机设备1000可以包括:处理器1001,网络接口1004和存储器1005,此外,上述计算机设备1000还可以包括:用户接口1003,和至少一个通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。其中,用户接口1003可以包括显示屏(Display)、键盘(Keyboard),用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是非易失性的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1005还可以是至少一个在远离前述处理器1001的存储装置。如图10所示,作为一种计算机可读存储介质的存储器1005中可以包括操作***、网络通信模块、用户接口模块以及设备控制应用程序。
在图10所示的计算机设备1000中,网络接口1004可提供网络通讯功能;而用户接口1003主要用于提供输入的接口;而处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现:
将关于虚拟资产的租赁信息上传至区块链网络中;所述租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态;
获取基于所述租赁信息所生成的租赁请求;所述租赁请求携带所述虚拟资产的资源转移信息,所述资源转移信息包括第二对象租赁所述虚拟资产所待转移的电子资源的资源数值;
从所述第一对象的账户地址将所述虚拟资产的目标资产权证转移至所述第二对象的账户地址,从所述第二对象的账户地址将所述资源数值的电子资源转移至所述第一对象的账户地址;所述目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权;
确定所述目标资产权证对应的权证属性,根据所述权证属性和所述资源转移信息生成关于所述虚拟资产的租赁合约,将所述租赁合约上传至所述区块链网络中;所述租赁合约用于指示所述第二 对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现确定所述目标资产权证对应的权证属性,包括:
在所述区块链网络中,查询所述虚拟资产的资产权证,得到第一资产权证集,统计所述第一资产权证集中的资产权证总份数,所述目标资产权证属于所述第一资产权证集;
若所述资产权证总份数为一份,则将唯一权证属性确定为所述目标资产权证的权证属性;具有所述唯一权证属性的资产权证的对象具有针对所述虚拟资产的全部所有权;
若所述资产权证总份数为M份,则将通用权证属性确定为所述目标资产权证的权证属性;具有一份所述通用权证属性的资产权证的对象具有针对所述虚拟资产的部分所有权,M为大于或等于2的正整数。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现根据所述权证属性和所述资源转移信息生成关于所述虚拟资产的租赁合约,包括:
根据所述权证属性确定所述第一对象具有的所述虚拟资产的第一资产量;
根据所述第一资产量预估所述第一对象具有的所述虚拟资产的资产价值;
根据所述资产价值和所述资源转移信息确定所述第二对象租赁所述虚拟资产的租赁时间段;
根据所述租赁时间段生成所述第一对象针对所述虚拟资产的第一权限信息,生成所述第二对象针对所述虚拟资产的第二权限信息;所述第一权限信息用于指示所述第一对象在所述租赁时间段内不具有针对所述虚拟资产的所有权,所述第二权限信息用于指示所述第二对象在所述租赁时间段内具有针对所述第一资产量的所述虚拟资产的使用权限,且不具有针对所述第一资产量的所述虚拟资产的转移权限;
根据所述第一权限信息和所述第二权限信息,生成关于所述虚拟资产的租赁合约。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现根据所述权证属性确定所述第一对象具有的所述虚拟资产的第一资产量,包括:
获取所述虚拟资产的资产总量,作为第二资产量;
若所述权证属性为唯一权证属性,则将所述第二资产量确定为所述第一对象具有的所述虚拟资产的第一资产量;
若所述权证属性为通用权证属性,则从所述区块链网络中获取所述第一对象关于所述虚拟资产的占有份额,根据所述第二资产量和所述占有份额确定所述第一对象具有的所述虚拟资产的第一资产量。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现将关于虚拟资产的租赁信息上传至区块链网络中,包括:
获取关于所述虚拟资产的租赁信息的发布请求;所述发布请求携带所述虚拟资产的租赁信息以及发送所述发布请求的第一对象的对象标识;
根据所述发布请求确定单位资产量的所述虚拟资产的单位资产价值,根据所述第一对象的对象标识以及所述单位资产价值验证所述发布请求的合法性;
若所述发布请求具有合法性,则将关于所述虚拟资产的租赁信息上传至区块链网络中。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现根据所述第一对象的对象标识以及所述单位资产价值验证所述发布请求的合法性,包括:
若所述单位资产价值大于资产价值阈值,则根据所述第一对象的对象标识,在所述区块链网络中查询所述第一对象所具有的资产权证,得到第二资产权证集;
在所述区块链网络中,查询所述第二资产权证集中的资产权证的描述信息;
根据所述描述信息,在所述第二资产权证集中查询所述虚拟资产的资产权证;
若在所述第二资产权证集中查询到所述虚拟资产的资产权证,则将查询得到的资产权证确定为所述虚拟资产的目标资产权证,确定所述发布请求具有合法性。
在一些实施例中,所述租赁合约还用于指示所述第二对象租赁所述虚拟资产的租赁时间段;处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现:
获取当前***时间;
若当前***时间不属于所述租赁时间段,则将所述虚拟资产的目标资产权证退回给所述第一对象的账户地址;
生成用于指示所述租赁合约的状态处于失效状态的失效指示信息,将所述失效指示信息上传至所述区块链网络中;
将所述失效指示信息分别发送至所述第一对象对应的第一终端和所述第二对象对应的第二终端;所述失效指示信息还用于指示所述第一对象恢复关于所述虚拟资产的所有权,以及所述第二对象失去关于所述虚拟资产的使用权。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现:
获取关于所述虚拟资产的转移请求,所述转移请求携带转移者的对象标识;
若所述转移者的对象标识与所述第一对象的对象标识相同,则在所述区块链网络中查询所述虚拟资产关联的交易数据;
若所述虚拟资产关联的交易数据中包括所述虚拟资产的租赁合约,且包括所述虚拟资产的租赁合约的失效指示信息,则执行所述虚拟资产的转移请求;
若所述虚拟资产关联的交易数据中包括所述虚拟资产的租赁合约,且不包括所述虚拟资产的租赁合约的失效指示信息,则暂停执行所述虚拟资产的转移请求。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现:
若所述转移者的对象标识与所述第二对象的对象标识相同,则暂停执行所述转移请求,生成暂停转移指示信息,所述暂停转移指示信息用于指示所述第二对象不具有针对所述虚拟资产的转移权限;
将所述暂停转移指示信息发送至所述第二对象对应的第二终端,将所述转移请求上传至所述区块链网络中;
根据所述转移请求调整所述第二对象的信用等级,得到调整后的信用等级,若所述调整后的信用等级小于等级阈值,则暂停执行所述第二对象的租赁请求。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现:
获取关于游戏应用中的目标游戏场景的加入请求,根据所述加入请求从所述区块链网络中查询加入至所述目标游戏场景的加入条件;所述加入请求用于指示将所述第二对象加入至所述目标游戏场景中;
获取所述第二对象关于所述游戏应用的游戏属性信息,根据所述游戏属性信息、所述租赁合约以及所述目标场景的加入条件,验证所述加入请求的合法性;
若所述加入请求具有合法性,则生成加入权限信息;所述加入权限信息用于指示所述第二对象具有关于所述目标游戏场景的加入权限;
将所述加入权限信息上传至所述区块链网络中,将所述加入权限信息发送至所述游戏应用的应用服务器;所述加入权限信息用于指示所述应用服务器将所述第二对象加入至所述目标游戏场景中。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现根据所述游戏属性信息、所述租赁合约以及所述目标场景的加入条件,验证所述加入请求的合法性,包括:
根据所述租赁合约确定所述第二对象租赁所述虚拟资产的租赁时间段,以及租赁给所述第二对象的虚拟资产的第一资产量;
根据所述游戏属性信息确定所述第二对象在所述游戏应用中的游戏等级,根据所述游戏等级,从所述目标游戏场景的加入条件中查询所述第二对象加入所述目标游戏场景的虚拟资产限制量;
若所述第一资产量大于所述虚拟资产限制量,则获取所述加入请求的生成时间;
若所述加入请求的生成时间属于所述第二对象租赁所述虚拟资产的租赁时间段内,则确定所述加入请求具有合法性。
在一些实施例中,处理器1001可以用于调用存储器1005中存储的设备控制应用程序,以实现:
获取第三终端发送的对象注册请求;所述对象注册请求包括所述第三终端对应第三对象的对象标识、所述第三对象的账户地址;
根据所述对象注册请求,调用所述区块链网络中的智能合约中的注册函数;
基于所述注册函数获取所述第三对象的对象属性信息,根据所述第三对象的属性信息验证所述第三对象的合法性;
若所述第三对象具有合法性,则将所述第三终端对应的账户地址和所述第三终端对应的对象标识进行关联存储至所述区块链网络中。
本申请中,计算机设备可以将关于虚拟资产的租赁信息上传至区块链网络中,该租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态,这时区块链网络中的任一注册用户可以查看到该租赁信息,并基于自身需求确定是否需要租赁该虚拟资产。进一步,计算机设备可以获取基于该租赁信息所生成的租赁请求,该租赁请求携带该虚拟资产的资源转移信息,该资源转移信息包括第二对 象租赁该虚拟资产所待转移的电子资源的资源数值。从该第一对象的账户地址将该虚拟资产的目标资产权证转移至该第二对象的账户地址,从该第二对象的账户地址将该资源数值的电子资源转移至该第一对象的账户地址,该目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权。可以看出,区块链网络记录了虚拟资产租赁过程中第一对象发布的租赁信息,第二对象发送的租赁请求,以及生成的虚拟资产对应的租赁合约,并还可以在租赁合约生成和到期后能够自动更新第一对象和第二对象拥有的虚拟资产的权限。这一方面利用了区块链网络的数据难以篡改、记录的信息更加真实可靠的特点,实现了虚拟资产租赁过程的数据信息的安全可靠、数据透明以及可信度高。另一方面,若第一对象具有多余的虚拟资产或第一对象不需要使用该第一对象具有的虚拟资产,则该第一对象可以将其具有的虚拟资产租赁给需要该虚拟资产的第二对象,第二对象可以向第一对象转移一定的租赁费用,提高虚拟资产的使用率以及区块链的节点设备的设备资源利用率和运行效率,减低第二对象参与虚拟资产生态的成本。然后,计算设备可以确定该目标资产权证对应的权证属性,根据该权证属性和该资源转移信息生成关于该虚拟资产的租赁合约,将该租赁合约上传至所述区块链网络中;该租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。并且,第二对象获取到该虚拟资产的目标资产权证后,该第二对象拥有该虚拟资产的使用权,可以使用该虚拟资产参数某种线上活动(如某种游戏应用中的活动),但该第二对象不具有针对该虚拟资产的转移权,即该第二对象不能将该虚拟资产转移给其他人使用,这样可以避免在该租赁合约失效后,该虚拟资产不能退回至第一对象的问题,可确保虚拟资产的租赁的安全性和公平性。
应当理解,本申请实施例中所描述的计算机设备1000可执行前文图4或者图6所对应实施例中对基于区块链的数据处理方法的描述,也可执行前文图9所对应实施例中对基于区块链的数据处理装置的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。
此外,这里需要指出的是:本申请实施例还提供了一种计算机可读存储介质,且上述计算机可读存储介质中存储有前文提及的基于区块链的数据处理装置所执行的计算机程序,且上述计算机程序包括程序指令,当上述处理器执行上述程序指令时,能够执行前文图4以及前文图6对应实施例中对上述基于区块链的数据处理方法的描述,因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本申请所涉及的计算机可读存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述。
作为示例,上述程序指令可被部署在一个计算机设备上执行,或者被部署在一个地点的至少两个计算机设备上执行,又或者,在分布在至少两个地点且通过通信网络互连的至少两个计算机设备上执行,分布在至少两个地点且通过通信网络互连的至少两个计算机设备可以组成区块链网络。
上述计算机可读存储介质可以是前述任一实施例提供的基于区块链的数据处理装置或者上述计算机设备的中部存储单元,例如计算机设备的硬盘或中存。该计算机可读存储介质也可以是该计算机设备的外部存储设备,例如该计算机设备上配备的插接式硬盘,智能存储卡(smart media card,SMC),安全数字(secure digital,SD)卡,闪存卡(flash card)等。进一步地,该计算机可读存储介质还可以既包括该计算机设备的中部存储单元也包括外部存储设备。该计算机可读存储介质用于存储该计算机程序以及该计算机设备所需的其他程序和数据。该计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
本申请实施例的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同媒体中容,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、装置、产品或设备没有限定于已列出的步骤或模块,而是还包括没有列出的步骤或模块,或还包括对于这些过程、方法、装置、产品或设备固有的其他步骤单元。
本申请实施例还提供了一种计算机程序产品,包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现前文图4和图2对应实施例中对上述基于区块链的数据处理方法的描述,因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本申请所涉及的计算机程序产品的实施例中未披露的技术细节,请参照本申请方法实施例的描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例提供的方法及相关装置是参照本申请实施例提供的方法流程图和/或结构示意图来描述的,具体可由计算机程序指令实现方法流程图和/或结构示意图的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。这些计算机程序指令可提供到通用计算机、专用计算机、嵌入式处理机或其他可编程网络连接设备的处理器以产生一个机器,使得通过计算机或其他可编程网络连接设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或结构示意图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程网络连接设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或结构示意图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程网络连接设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或结构示意一个方框或多个方框中指定的功能的步骤。
以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。

Claims (19)

  1. 一种基于区块链的数据处理方法,由计算机设备执行,包括:
    将关于虚拟资产的租赁信息上传至区块链网络中;所述租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态;
    获取针对所述租赁信息所生成的租赁请求;所述租赁请求携带所述虚拟资产的资源转移信息,所述资源转移信息包括第二对象租赁所述虚拟资产所待转移的电子资源的资源数值;
    将所述虚拟资产的目标资产权证从所述第一对象的账户地址转移至所述第二对象的账户地址,将所述资源数值的电子资源从所述第二对象的账户地址转移至所述第一对象的账户地址;所述目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权;
    确定所述目标资产权证对应的权证属性,根据所述权证属性和所述资源转移信息生成关于所述虚拟资产的租赁合约,将所述租赁合约上传至所述区块链网络中;所述租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。
  2. 如权利要求1所述的方法,其特征在于,所述确定所述目标资产权证对应的权证属性,包括:
    在所述区块链网络中,查询所述虚拟资产的资产权证,得到第一资产权证集,统计所述第一资产权证集中的资产权证的总份数,所述目标资产权证属于所述第一资产权证集;
    若所述第一资产权证集中的所述资产权证的总份数为一份,则确定所述目标资产权证的权证属性为第一权证属性;具有所述第一权证属性的资产权证的对象具有所述虚拟资产的全部所有权;
    若所述第一资产权证集中的所述资产权证的总份数为M份,则确定所述目标资产权证的权证属性为第二权证属性;具有一份所述第二权证属性的资产权证的对象具有针对所述虚拟资产的部分所有权,M为大于或等于2的正整数。
  3. 如权利要求2所述的方法,其特征在于,所述根据所述权证属性和所述资源转移信息生成关于所述虚拟资产的租赁合约,包括:
    根据所述权证属性确定所述第一对象具有的所述虚拟资产的第一资产量;
    根据所述第一资产量预估所述第一对象具有的所述虚拟资产的资产价值;
    根据所述资产价值和所述资源转移信息,确定所述第二对象租赁所述虚拟资产的租赁时间段;
    根据所述租赁时间段,生成所述第一对象针对所述虚拟资产的第一权限信息,以及所述第二对象针对所述虚拟资产的第二权限信息;所述第一权限信息用于指示所述第一对象在所述租赁时间段内不具有针对所述虚拟资产的所有权,所述第二权限信息用于指示所述第二对象在所述租赁时间段内具有针对所述第一资产量的所述虚拟资产的使用权限,且不具有针对所述第一资产量的所述虚拟资产的转移权限;
    根据所述第一权限信息和所述第二权限信息,生成关于所述虚拟资产的租赁合约。
  4. 如权利要求3所述的方法,其中,所述根据所述权证属性确定所述第一对象具有的所述虚拟资产的第一资产量,包括:
    获取所述虚拟资产的资产总量,作为第二资产量;
    若所述权证属性为所述第一权证属性,则将所述第二资产量确定为所述第一对象具有的所述虚拟资产的第一资产量;
    若所述权证属性为所述第二权证属性,则从所述区块链网络中获取所述第一对象对所述虚拟资产的占有份额,根据所述第二资产量和所述占有份额确定所述第一对象具有的所述虚拟资产的第一资产量。
  5. 如权利要求1所述的方法,其特征在于,所述将关于虚拟资产的租赁信息上传至区块链网络中,包括:
    获取关于所述虚拟资产的租赁信息的发布请求;所述发布请求携带所述虚拟资产的租赁信息以及发送所述发布请求的第一对象的对象标识;
    根据所述发布请求,确定每一单位资产量的所述虚拟资产对应的单位资产价值,根据所述第一对象的对象标识以及所述单位资产价值验证所述发布请求的合法性;
    若所述发布请求具有合法性,则将关于所述虚拟资产的租赁信息上传至区块链网络中。
  6. 如权利要求5所述的方法,其特征在于,所述根据所述第一对象的对象标识以及所述单位资产价值验证所述发布请求的合法性,包括:
    若所述单位资产价值大于资产价值阈值,则根据所述第一对象的对象标识,在所述区块链网络中查询所述第一对象所具有的资产权证,得到所述第一对象的第二资产权证集;
    在所述区块链网络中,查询所述第二资产权证集中的资产权证的描述信息,所述描述信息用于指示所述第二资产权证集中的各个资产权证分别所属于的虚拟资产;
    根据所述描述信息,在所述第二资产权证集中查询所述虚拟资产的资产权证;
    若在所述第二资产权证集中查询到所述虚拟资产的资产权证,则将查询得到的资产权证确定为所述虚拟资产的目标资产权证,确定所述发布请求具有合法性。
  7. 如权利要求1所述的方法,其特征在于,所述租赁合约还用于指示所述第二对象租赁所述虚拟资产的租赁时间段;所述方法还包括:
    获取当前***时间;
    若当前***时间不属于所述租赁时间段,则将所述虚拟资产的目标资产权证退回给所述第一对象的账户地址;
    生成用于指示所述租赁合约的状态处于失效状态的失效指示信息,将所述失效指示信息上传至所述区块链网络中;
    将所述失效指示信息分别发送至所述第一对象对应的第一终端和所述第二对象对应的第二终端;所述失效指示信息还用于指示所述第一对象恢复关于所述虚拟资产的所有权,以及所述第二对象失去关于所述虚拟资产的使用权。
  8. 如权利要求7所述的方法,其特征在于,所述方法还包括:
    获取关于所述虚拟资产的转移请求,所述转移请求携带转移者的对象标识;
    若所述转移者的对象标识与所述第一对象的对象标识相同,则在所述区块链网络中查询所述虚拟资产关联的交易数据;
    若所述虚拟资产关联的交易数据中包括所述虚拟资产的租赁合约,且包括所述虚拟资产的租赁合约的失效指示信息,则执行所述虚拟资产的转移请求;
    若所述虚拟资产关联的交易数据中包括所述虚拟资产的租赁合约,且不包括所述虚拟资产的租赁合约的失效指示信息,则暂停执行所述虚拟资产的转移请求。
  9. 如权利要求8所述的方法,其特征在于,所述方法还包括:
    若所述转移者的对象标识与所述第二对象的对象标识相同,则暂停执行所述转移请求,生成暂停转移指示信息,所述暂停转移指示信息用于指示所述第二对象不具有针对所述虚拟资产的转移权限;
    将所述暂停转移指示信息发送至所述第二对象对应的第二终端,将所述转移请求上传至所述区块链网络中;
    根据所述转移请求调整所述第二对象的信用等级,得到调整后的信用等级,若所述调整后的信用等级小于等级阈值,则暂停执行所述第二对象的租赁请求。
  10. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    获取关于游戏应用中的目标游戏场景的加入请求,根据所述加入请求从所述区块链网络中查询加入至所述目标游戏场景的加入条件;所述加入请求用于指示将所述第二对象加入至所述目标游戏场景中;
    获取所述第二对象关于所述游戏应用的游戏属性信息,根据所述游戏属性信息、所述租赁合约以及所述目标场景的加入条件,验证所述加入请求的合法性;
    若所述加入请求具有合法性,则生成加入权限信息;所述加入权限信息用于指示所述第二对象具有关于所述目标游戏场景的加入权限;
    将所述加入权限信息上传至所述区块链网络中,将所述加入权限信息发送至所述游戏应用的应用服务器;所述加入权限信息用于指示所述应用服务器将所述第二对象加入至所述目标游戏场景中。
  11. 如权利要求10所述的方法,其特征在于,所述根据所述游戏属性信息、所述租赁合约以及所述目标场景的加入条件,验证所述加入请求的合法性,包括:
    根据所述租赁合约确定所述第二对象租赁所述虚拟资产的租赁时间段,以及租赁给所述第二对象的虚拟资产的第一资产量;
    根据所述游戏属性信息确定所述第二对象在所述游戏应用中的游戏等级,根据所述游戏等级,从所述目标游戏场景的加入条件中查询所述第二对象加入所述目标游戏场景的虚拟资产限制量;
    若所述第一资产量大于所述虚拟资产限制量,则获取所述加入请求的生成时间;
    若所述加入请求的生成时间属于所述第二对象租赁所述虚拟资产的租赁时间段内,则确定所述加入请求具有合法性。
  12. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取第三终端发送的对象注册请求;所述对象注册请求包括所述第三终端对应第三对象的对象标识、所述第三对象的账户地址;
    根据所述对象注册请求,调用所述区块链网络中的智能合约中的注册函数;
    基于所述注册函数获取所述第三对象的对象属性信息,根据所述第三对象的属性信息验证所述第三对象的合法性;
    若所述第三对象具有合法性,则将所述第三终端对应的账户地址和所述第三终端对应的对象标识进行关联存储至所述区块链网络中。
  13. 一种基于区块链的数据处理装置,其特征在于,包括:
    上传模块,用于将关于虚拟资产的租赁信息上传至区块链网络中;所述租赁信息用于指示第一对象的所述虚拟资产处于待租赁状态;
    获取模块,用于获取针对所述租赁信息所生成的租赁请求;所述租赁请求携带所述虚拟资产的资源转移信息,所述资源转移信息包括第二对象租赁所述虚拟资产所待转移的电子资源的资源数值;
    转移模块,用于将所述虚拟资产的目标资产权证从所述第一对象的账户地址转移至所述第二对象的账户地址,将所述资源数值的电子资源从所述第二对象的账户地址转移至所述第一对象的账户地址;所述目标资产权证用于指示所述第一对象具有针对所述虚拟资产的所有权;
    生成模块,用于确定所述目标资产权证对应的权证属性,根据所述权证属性和所述资源转移信息生成关于所述虚拟资产的租赁合约,将所述租赁合约上传至所述区块链网络中;所述租赁合约用于指示所述第二对象具有关于所述虚拟资产的使用权限,且不具有关于所述虚拟资产的转移权限。
  14. 根据权利要求13所述的装置,其中,所述生成模块包括查询单元和确定单元;
    所述查询单元,用于在所述区块链网络中,查询所述虚拟资产的资产权证,得到第一资产权证集,统计所述第一资产权证集中的资产权证的总份数,所述目标资产权证属于所述第一资产权证集;
    所述确定单元,用于若所述第一资产权证集中的所述资产权证的总份数为一份,则确定所述目标资产权证的权证属性为第一权证属性;具有所述第一权证属性的资产权证的对象具有所述虚拟资产的全部所有权;若所述第一资产权证集中的所述资产权证的总份数为M份,则确定所述目标资产权证的权证属性为第二权证属性;具有一份所述第二权证属性的资产权证的对象具有针对所述虚拟资产的部分所有权,M为大于或等于2的正整数。
  15. 如权利要求14所述的装置,其中,所述生成模块还包括:预估单元和生成单元;
    所述确定单元,用于根据所述权证属性确定所述第一对象具有的所述虚拟资产的第一资产量;
    所述预估单元,用于根据所述第一资产量预估所述第一对象具有的所述虚拟资产的资产价值;
    所述确定单元,用于根据所述资产价值和所述资源转移信息,确定所述第二对象租赁所述虚拟资产的租赁时间段;
    所述生成单元,用于根据所述租赁时间段,生成所述第一对象针对所述虚拟资产的第一权限信息,以及所述第二对象针对所述虚拟资产的第二权限信息;所述第一权限信息用于指示所述第一对象在所述租赁时间段内不具有针对所述虚拟资产的所有权,所述第二权限信息用于指示所述第二对象在所述租赁时间段内具有针对所述第一资产量的所述虚拟资产的使用权限,且不具有针对所述第一资产量的所述虚拟资产的转移权限;根据所述第一权限信息和所述第二权限信息,生成关于所述虚拟资产的租赁合约。
  16. 如权利要求15所述的装置,其中,所述确定单元,用于获取所述虚拟资产的资产总量,作为第二资产量;若所述权证属性为所述第一权证属性,则将所述第二资产量确定为所述第一对象具有的所述虚拟资产的第一资产量;若所述权证属性为所述第二权证属性,则从所述区块链网络中获取所述第一对象对所述虚拟资产的占有份额,根据所述第二资产量和所述占有份额确定所述第一对象具有的所述虚拟资产的第一资产量。
  17. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至12中任一项所述的方法的步骤。
  18. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至12中任一项所述的方法的步骤。
  19. 一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现权利要求1至12中任一项所述的方法的步骤。
PCT/CN2023/087202 2022-05-10 2023-04-10 基于区块链的数据处理方法、装置、设备及存储介质 WO2023216786A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210504083.2A CN117094799A (zh) 2022-05-10 2022-05-10 基于区块链的数据处理方法、装置、设备及存储介质
CN202210504083.2 2022-05-10

Publications (1)

Publication Number Publication Date
WO2023216786A1 true WO2023216786A1 (zh) 2023-11-16

Family

ID=88729598

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/087202 WO2023216786A1 (zh) 2022-05-10 2023-04-10 基于区块链的数据处理方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN117094799A (zh)
WO (1) WO2023216786A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858794A (zh) * 2006-03-27 2006-11-08 华为技术有限公司 虚拟物品租赁处理***和方法
CN108694654A (zh) * 2018-07-02 2018-10-23 浙江大学 一种基于区块链的房屋租赁***及租赁方法
CN110246005A (zh) * 2019-05-23 2019-09-17 阿里巴巴集团控股有限公司 基于区块链的租赁方法和装置
US20200005388A1 (en) * 2018-06-28 2020-01-02 International Business Machines Corporation Rental asset processing for blockchain
CN111222841A (zh) * 2019-11-26 2020-06-02 腾讯科技(深圳)有限公司 一种基于区块链的数据分配方法及其设备、存储介质
US20200202668A1 (en) * 2018-12-20 2020-06-25 Sony Interactive Entertainment LLC Anti-fraud cloud gaming blockchain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858794A (zh) * 2006-03-27 2006-11-08 华为技术有限公司 虚拟物品租赁处理***和方法
US20200005388A1 (en) * 2018-06-28 2020-01-02 International Business Machines Corporation Rental asset processing for blockchain
CN108694654A (zh) * 2018-07-02 2018-10-23 浙江大学 一种基于区块链的房屋租赁***及租赁方法
US20200202668A1 (en) * 2018-12-20 2020-06-25 Sony Interactive Entertainment LLC Anti-fraud cloud gaming blockchain
CN110246005A (zh) * 2019-05-23 2019-09-17 阿里巴巴集团控股有限公司 基于区块链的租赁方法和装置
CN111222841A (zh) * 2019-11-26 2020-06-02 腾讯科技(深圳)有限公司 一种基于区块链的数据分配方法及其设备、存储介质

Also Published As

Publication number Publication date
CN117094799A (zh) 2023-11-21

Similar Documents

Publication Publication Date Title
JP7420890B2 (ja) ブロックチェーンで実施されるイベントロック暗号化の方法及びシステム
JP7281514B2 (ja) デジタルコンテンツの制御及び配信のためのブロックチェーンにより実施される方法
JP7436568B2 (ja) ブロックチェーンにより実現される方法及びシステム
US20210133359A1 (en) Permission management method, permission verification method, and related apparatus
JP7186178B2 (ja) 安全なブロックチェーンベースのコンセンサス
KR101920015B1 (ko) 이종 블록체인 기반의 토큰 관리 방법 및 이를 이용한 토큰 관리 서버
TWI716140B (zh) 基於區塊鏈的資料處理方法和裝置
WO2020080145A1 (ja) コンテンツ契約システム、コンテンツ契約方法、権利者端末、譲受人端末、制御端末、コンテンツ蓄積サーバ、権利者プログラム、譲受人プログラム、制御プログラムおよびコンテンツ蓄積プログラム
WO2021184826A1 (zh) 基于区块链的资源转移方法、装置、节点设备及存储介质
WO2020103566A1 (zh) 一种区块链存证方法、装置和计算机设备
JP2023051935A (ja) ブロックチェーン・ネットワークに関する方法
TW202016818A (zh) 區塊鏈的交易方法和裝置
Ferrer-Gomila et al. A fair contract signing protocol with blockchain support
CN110659906B (zh) 票据信息处理方法、相关设备及介质
JP7319961B2 (ja) 一対の結合ブロックチェーンを構成するバイナリブロックチェーンに関連するコンピュータ実装システム及び方法
TWI717927B (zh) 具有運算池之混合區塊鏈架構
WO2020125234A1 (zh) 一种基于区块链的数据处理方法和装置
CN108510315B (zh) 一种资源发布方法及相关设备
CN111476572A (zh) 基于区块链的数据处理方法、装置、存储介质及设备
US20180152429A1 (en) Systems and methods for publicly verifiable authorization
CN112101919A (zh) 一种数据处理方法、装置、电子设备及存储介质
WO2023134282A1 (zh) 基于区块链的数据处理方法、装置、设备、存储介质及程序产品
WO2023216786A1 (zh) 基于区块链的数据处理方法、装置、设备及存储介质
Hwang et al. Blockchain-based automatic indemnification mechanism based on proof of violation for cloud storage services
US20230289779A1 (en) System and method for automatically validating users to access blockchain based applications

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23802562

Country of ref document: EP

Kind code of ref document: A1