A virtual resource data processing method and device based on blockchain

By using smart contracts such as issuance contracts and circulation contracts on the virtual resource blockchain management platform, the redundant development cost, poor credibility and difficulty in reconciliation of centralized virtual resource systems are solved, and the accuracy and rationality of virtual resources are achieved. Distribution and use reduce maintenance costs and improve user experience.

CN113298652BActive Publication Date: 2025-01-14李政德
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110586865.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-27
Publication Date
2025-01-14
Estimated Expiration
2041-05-27

AI Technical Summary

Technical Problem

The existing centralized virtual resource system has problems such as redundant development costs, poor credibility, poor liquidity and difficulty in reconciliation, especially in virtual resource cooperation and financial data management among enterprises.

Method used

Adopt blockchain-based virtual resource data processing methods to receive and process virtual resource issuance, redemption, and transaction requests through the virtual resource blockchain management platform, and use issuance contracts, circulation contracts, quota management contracts and settlement contracts to ensure the accuracy of resources. , rationally distribute and use it, reduce the difficulty of manual reconciliation, and improve information consistency.

Benefits of technology

It realizes the accurate and reasonable distribution and use of virtual resources, avoids the occurrence of bad debts, reduces maintenance costs, improves data accuracy and visual presentation, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113298652B_ABST
    Figure CN113298652B_ABST
Patent Text Reader

Abstract

The present invention discloses a virtual resource data processing method based on blockchain, including: receiving a virtual resource issuance request submitted by a target virtual resource issuing enterprise, the virtual resource issuance request includes a target enterprise identifier corresponding to the target virtual resource issuing enterprise; receiving virtual resource issuance configuration information submitted by the target virtual resource issuing enterprise, the virtual resource issuance configuration information includes the current total amount of resource issuance; obtaining the remaining amount of virtual resources corresponding to the target virtual resource issuing enterprise according to the target enterprise identifier; calling the virtual resource issuance configuration information to issue the corresponding virtual resources, and users can use and transfer virtual resources for transactions after redemption, and can call virtual resource circulation contracts for fusion payment during transactions. The implementation of this application can ensure the accuracy and rationality of resource issuance by virtual resource issuing enterprises, avoid bad debts caused by users issuing a large number of virtual resources, and facilitate platform operation and maintenance personnel to count accounts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data asset security, and in particular to a method and device for processing virtual resource data based on blockchain. Background Art

[0002] As a new decentralized distributed ledger, blockchain technology has the advantages of securely storing transaction data and information that cannot be tampered with. It is very suitable for information sharing and business cooperation between enterprises.

[0003] At present, there are many centralized virtual resource systems. Most of the modules of different centralized virtual resource systems are repeated, such as: issuance module, exchange module, consumption module, settlement module, etc., which will inevitably cause redundancy in development costs. When facing user complaints about incorrect virtual resources, the centralized virtual resource system cannot provide credible proof, which increases the workload of manual customer service and causes poor credibility. Virtual resources issued by different centralized virtual resource systems can only be consumed by consumers of consumer merchants connected to the system. Different virtual resources have poor liquidity in different centralized virtual resource systems. At the same time, if users have virtual resources from different companies, they cannot consume them together. The most important thing for cooperation between enterprises is information consistency, and the virtual resource system involves financial data, which requires more consistent accounts. Since centralized virtual resources involve multiple parties, a large number of reconciliation operations are required, which makes reconciliation difficult.

[0004] Therefore, there is an urgent need to provide a platform that can integrate multiple virtual resource distribution companies into a blockchain-based platform. The use of decentralized blockchain technology can solve the above problems well, allowing virtual resources to circulate and make virtual resources more valuable. Summary of the invention

[0005] In view of the above-mentioned problems in the prior art, the present invention provides a method and device for processing virtual resource data based on blockchain, which can reduce the difficulty of manual reconciliation during resource verification, make risk assessments on system users, avoid bad debts, and ensure the reasonable use of resources issued by the platform.

[0006] In order to solve the above technical problems, the present invention provides a virtual resource data processing method based on blockchain, the method uses a virtual resource blockchain management platform, the virtual resource blockchain management platform can issue virtual resources corresponding to multiple enterprise identifiers, different enterprise identifiers represent different enterprises, the method includes:

[0007] Receiving a virtual resource distribution request submitted by a target virtual resource distribution enterprise, wherein the virtual resource distribution request includes a corresponding target enterprise identifier;

[0008] Receiving virtual resource distribution configuration information carrying the target enterprise identifier submitted by the target virtual resource distribution enterprise, wherein the virtual resource distribution configuration information includes a current total resource distribution amount;

[0009] Calling the quota management contract according to the target enterprise identifier to obtain the remaining quota of virtual resources corresponding to the target enterprise identifier in the target virtual resource issuing enterprise;

[0010] Determine whether the current total amount of resource issuance is less than the remaining amount of virtual resources. If so, call the virtual resource issuance contract to issue virtual resources corresponding to the current total amount of resource issuance, and call the quota management contract to adjust the remaining amount of virtual resources corresponding to the target enterprise identifier according to the current total amount of resource issuance. The virtual resource carries a resource value identifier and the target enterprise identifier.

[0011] Furthermore, the method further comprises:

[0012] receiving a virtual resource exchange request, the virtual resource exchange request including: a resource identifier and an exchange account identifier;

[0013] The virtual resource circulation contract is called according to the virtual resource exchange request, and the virtual resource corresponding to the resource identifier is added to the account corresponding to the exchange account identifier.

[0014] Furthermore, the method further comprises:

[0015] receiving a virtual resource transaction request, wherein the virtual resource transaction request includes: a transaction amount, resource identifiers of multiple virtual resources, consumption channel identifiers, and an enterprise identifier, wherein the enterprise identifiers of the multiple virtual resources are not completely the same;

[0016] The virtual resource circulation contract is called to send the multiple virtual resources to the consumption channels corresponding to the consumption channel identifiers according to the preset transaction rules based on the transaction amount and the resource quantities corresponding to the multiple virtual resources.

[0017] Furthermore, the sending of the plurality of virtual resources to consumption channels corresponding to consumption channel identifiers according to preset transaction rules includes:

[0018] Comparing the relationship between the sum of the resource amounts corresponding to the plurality of virtual resources and the transaction amount;

[0019] If the transaction amount is less than or equal to the sum of the resource amounts corresponding to the multiple virtual resources, the multiple virtual resources are sent to the consumption channel corresponding to the consumption channel identifier according to the transaction rules preset in the virtual resource circulation contract.

[0020] Further,

[0021] The method further comprises:

[0022] The target enterprise that issues virtual resources calls the virtual resource settlement contract at preset intervals to obtain the total amount of virtual resources corresponding to the target enterprise that have been consumed in all consumption channels;

[0023] Verify whether the total amount of virtual resources corresponding to the target enterprise meets the preset requirements;

[0024] Once the preset requirements are met, the total amount of virtual resources corresponding to the target enterprise will be settled.

[0025] Furthermore, the method further comprises:

[0026] If the virtual resource issuing enterprise completes the settlement of the virtual resources within the settlement time, the quota management contract is called to increase the total quota of virtual resource issuance of the corresponding virtual resource issuing enterprise and the virtual resource circulation contract is called to destroy the settled virtual resources.

[0027] Furthermore, the method further comprises:

[0028] The quota management contract is called to determine a new remaining quota of virtual resources according to the remaining quota of virtual resources corresponding to the target virtual resource issuing enterprise and the total quota of current resource issuance.

[0029] Furthermore, the receiving of the virtual resource transaction request may also include:

[0030] Receive a virtual resource transfer request, the virtual resource transfer request including: a transaction amount, a transfer-out account identifier, and a transfer-in account identifier, wherein the transaction amount carries at least one resource identifier and an enterprise identifier corresponding to the resource identifier;

[0031] The virtual resource circulation contract is called to transfer the transaction amount in the account corresponding to the transfer-out account identifier to the account corresponding to the transfer-in account identifier.

[0032] On the other hand, the present invention provides a virtual resource data processing device based on blockchain, the device uses a virtual resource blockchain management platform, the virtual resource blockchain management platform can issue virtual resources corresponding to multiple enterprise identifiers, different enterprise identifiers represent different enterprises, and the device includes:

[0033] A request receiving module is configured to receive a virtual resource issuing request submitted by a target virtual resource issuing enterprise, wherein the virtual resource issuing request includes a corresponding target enterprise identifier;

[0034] A configuration information receiving module is configured to receive virtual resource distribution configuration information carrying the target enterprise identifier submitted by the target virtual resource distribution enterprise, wherein the virtual resource distribution configuration information includes the current total amount of resource distribution;

[0035] A remaining quota acquisition module is configured to execute calling a quota management contract according to the target enterprise identifier to acquire a remaining quota of virtual resources corresponding to the target enterprise identifier in the target virtual resource issuing enterprise;

[0036] The issuance module is configured to determine whether the current total amount of resource issuance is less than the remaining amount of virtual resources. If so, the virtual resource issuance contract is called to issue a number of virtual resources corresponding to the current total amount of resource issuance, and the quota management contract is called to adjust the remaining amount of virtual resources corresponding to the target enterprise identifier according to the current total amount of resource issuance. The virtual resource carries a resource numerical identifier and the target enterprise identifier.

[0037] On the other hand, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the blockchain-based virtual resource data processing method as described above.

[0038] On the other hand, the present invention provides a computer-readable medium having computer-readable instructions stored thereon, and the computer-readable instructions can be executed by a processor to implement the blockchain-based virtual resource data processing method as described above.

[0039] The present invention provides a blockchain-based virtual resource data processing method and device, which has the following beneficial effects:

[0040] The present invention provides a blockchain-based virtual resource data processing method and device. By comparing the current total amount of resource issuance issued by the virtual resource issuing enterprise with the corresponding remaining amount of virtual resources, when the current total amount of resource issuance is less than the remaining amount of virtual resources, the virtual resource issuance contract is called to issue the corresponding virtual resources based on the virtual resource issuance configuration information. The virtual resources carry resource identifiers and target enterprise identifiers, which can ensure the accuracy and rationality of resource issuance by the virtual resource issuing enterprise, avoid bad debts caused by large-scale issuance of virtual resources by users, and facilitate the platform operation and maintenance personnel to count accounts. There is no need to manually review the information, reduce maintenance costs, and ensure the accuracy and timeliness of data. At the same time, the issuance, consumption and transfer of resources can be traced, ensuring that the issuance, use and transfer of resources are more detailed and visualized. In addition, when users use virtual resources for consumption, they can perform integrated consumption according to the transaction rules set in the virtual resource circulation contract, which can ensure a more optimized use of the user's virtual resources and improve user favorability. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 This is a system diagram of a method for processing virtual resource data based on blockchain in an embodiment of this specification;

[0043] Figure 2 A flowchart of a method for processing virtual resource data based on blockchain provided by an embodiment of the present invention;

[0044] Figure 3 A flowchart of another method for processing virtual resource data based on blockchain provided by an embodiment of the present invention;

[0045] Figure 4 A flowchart of another method for processing virtual resource data based on blockchain provided in an embodiment of the present invention;

[0046] Figure 5 A flowchart of another method for processing virtual resource data based on blockchain provided in an embodiment of the present invention;

[0047] Figure 6 A flowchart of yet another method for processing virtual resource data based on blockchain provided in an embodiment of the present invention;

[0048] Figure 7A flowchart of yet another method for processing virtual resource data based on blockchain is provided in an embodiment of the present invention.

[0049] Figure 8 A schematic diagram of the structure of a virtual resource data processing device based on blockchain provided in an embodiment of the present invention;

[0050] Fig. 9 A schematic diagram of the structure of a service server provided by an embodiment of the present invention.

[0051] Among them, 810-request receiving module, 820-configuration information receiving module, 830-remaining amount obtaining module, 840-issuing module. DETAILED DESCRIPTION

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

[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0054] In order to better explain this application, the following names are now explained: Traditional business system: refers to a system implemented using Internet technology, including but not limited to e-commerce, instant messaging, etc.

[0055] Blockchain: refers to non-coin-issuing blockchain technology, such as consortium chain, and representative products include Hyperledgerfabric and FISCO BCOS.

[0056] Based on the premise of information authority control display, this solution aims to improve the credibility of traditional business system information and creatively uses blockchain technology to realize virtual resource data processing of business systems.

[0057] Figure 1 Schematic diagram of a virtual resource data processing method based on blockchain in an embodiment of this specification. Figure 1 As shown, the system mainly includes virtual resource issuing enterprises, virtual resource blockchain management platforms, virtual resource consumption systems, users, virtual resource supervision fees and virtual resource blockchain management platform managers.

[0058] Among them, the bottom layer of blockchain can be composed of consensus mechanism, P2P network, cryptographic algorithm, database driver, etc., to build a high-performance blockchain suitable for business scenarios. Management layer such as node management, block information browsing, key and permission management, convenient for querying and managing blockchain platform. The smart contract part is the logic processing part of the entire virtual resource system, which is elaborated in detail below.

[0059] Smart contracts can include:

[0060] 1) Virtual resource issuance contract:

[0061] The virtual resource issuing company calls the issuance contract to issue its own virtual resources. The issuance method will first verify the identity of the issuer. After the verification, the virtual resource issuing company can set the information of the voucher to be issued, such as name, quantity, denomination, validity period and usage rules, etc. Next, it will verify whether the credit limit of the virtual resource issuing company is sufficient. After passing all the checks, the virtual resource will be created. The issuance contract also provides a query of the issued virtual resource record.

[0062] 2) Virtual resource circulation contract:

[0063] Virtual resource exchange: After consumers (users) obtain the redemption code of virtual resources offline, they need to exchange the virtual resource code to their own account. Consumers call this method to transfer virtual resources to their own names. In the case of an existing points system, the off-chain program first queries the points owned by the consumer in the points system. After deducting the points owned by the consumer, the corresponding ratio of virtual resources is added to the consumer on the chain.

[0064] Transfer of virtual resources: Consumers can transfer the virtual resources under their own name to others.

[0065] Virtual resource consumption: The virtual resources held by consumers can be consumed on all consumption channels connected to the system. In the same order, consumers can use different categories of virtual resources for consumption at the same time.

[0066] Destruction of virtual resources: This method can only be called by virtual resource issuing companies. Through this method, virtual resource issuing companies can destroy a batch of virtual resources under their name. During the destruction process, the corresponding quota of the virtual resource issuing company will be increased accordingly.

[0067] 3) Quota Management Contract:

[0068] The quota limits the total number of vouchers that can be issued by virtual resource issuing companies. The quota limit can be increased through mortgage, evaluation and cooperation time.

[0069] Modify the upper limit of the credit limit: increase or decrease the upper limit of the credit limit;

[0070] Modify available quota: increase or decrease the available quota;

[0071] Credit limit information query: query the enterprise's credit limit and available credit limit.

[0072] 4) Virtual resource settlement contract:

[0073] The virtual resource settlement contract will be called regularly by the settlement party to reconcile and calculate the virtual resource consumption records. According to the total amount of virtual resources in each category under the name of each consumption channel and platform, the virtual resource issuing company will transfer the corresponding funds to the consumption channel and platform. The settlement contract is generally called by the platform manager. All parties query the settlement results, and after checking that they are correct, the virtual resource issuing company transfers the funds to the consumption channel and platform. After the consumption channel and platform confirm that the correct funds have been received, they send a consent to the settlement and destroy the virtual resources under their name.

[0074] 5) Account and authority management contract:

[0075] The account and permission management contract can only be called by the blockchain platform administrator. Virtual resource distribution companies and downstream consumption channels submit application materials, which are verified by the blockchain platform administrator. After signing the contract, the platform administrator calls the identity and account management contract to create an account for the settled company. The account and permission management contract can create accounts, modify accounts, delete accounts, and modify account permissions.

[0076] The present invention will be specifically described below. Figure 2 , 6 , 7, Figure 2 A flowchart of a method for processing virtual resource data based on blockchain provided by an embodiment of the present invention is provided. Figure 6 A flowchart of yet another method for processing virtual resource data based on blockchain provided in an embodiment of the present invention is provided. Figure 7 A flowchart of another method for processing virtual resource data based on blockchain provided by an embodiment of the present invention is provided. The present invention provides a method for processing virtual resource data based on blockchain. The method applies a virtual resource blockchain management platform. The virtual resource blockchain management platform can issue virtual resources corresponding to multiple enterprise identifiers. Different enterprise identifiers represent different enterprises. The method includes:

[0077] S102, receiving a virtual resource distribution request submitted by a target virtual resource distribution enterprise, wherein the virtual resource distribution request includes a corresponding target enterprise identifier;

[0078] In the specific implementation process, the virtual resource blockchain management platform can receive virtual resource issuance requests sent by different enterprises. The virtual resource issuance request includes the target enterprise identifier corresponding to the enterprise. Different virtual resource issuance requests can correspond to different target enterprise identifiers, and different target enterprise identifiers represent different enterprises. It can be understood that the target enterprise identifier is a digital signature used to distinguish different virtual resource issuance enterprises. When an enterprise needs to issue virtual resources, the enterprise can send a virtual resource issuance request to the connected virtual resource blockchain management platform.

[0079] It should be noted that the target virtual resource issuing enterprise can be an enterprise that can be connected to the virtual resource blockchain management platform, and each enterprise can issue corresponding virtual resources through the virtual resource blockchain management platform. The quota of virtual resources issued by different enterprises can be managed through a pre-configured quota management contract.

[0080] S104: Receive virtual resource distribution configuration information carrying the target enterprise identifier submitted by the target virtual resource distribution enterprise, wherein the virtual resource distribution configuration information includes a current total resource distribution amount.

[0081] In the specific implementation process, before receiving the virtual resource issuance configuration information submitted by the target virtual resource issuance enterprise, the virtual resource issuance request submitted by the target virtual resource issuance enterprise can be verified. After the target enterprise identifier in the virtual resource issuance request submitted by the target virtual resource issuance enterprise is verified, a verification pass instruction can be returned to the virtual resource issuance enterprise, and then the virtual resource issuance enterprise sends the virtual resource issuance configuration information to the virtual resource blockchain management platform based on the verification pass instruction. The virtual resource issuance configuration information can represent the relevant information of the resource issuance of the virtual resource issuance enterprise, such as name, quantity, denomination, validity period and usage rules, etc.

[0082] Among them, the target enterprise identification includes at least one of the following: transaction account, system name, mailing address, contact information, enterprise number, terminal number, enterprise name and enterprise transaction account, etc. It is understandable that since the present invention needs to transfer the virtual resources of the corresponding enterprise issued by the platform to the user side for transfer or use, the enterprise identification may necessarily include the enterprise name and the user's transaction account. It is understandable that virtual resources can represent items or virtual products representing a certain value, such as: salary, consumption vouchers, etc. Virtual resources can be used to consume or replace items or virtual products of different values.

[0083] For example, Enterprise A wishes to issue virtual resources (electronic vouchers) with a value of 1,000 and a quantity of 20, and sends the virtual resource issuance configuration information related to the virtual resources with a value of 1,000 and a quantity of 20 to the virtual resource blockchain management platform.

[0084] When the target enterprise identity verification fails, the virtual resource blockchain management platform may establish a corresponding enterprise identity based on the target enterprise identity to associate the target enterprise identity with the virtual resource blockchain management platform.

[0085] The blockchain-based virtual resource data processing method provided in the embodiments of this specification can reduce the amount of resources issued by the virtual resource issuing enterprise within a preset time when unreasonable resource issuance occurs in the virtual resource issuing enterprise, thereby avoiding the occurrence of bad debts due to unreasonable resource issuance, and thus avoiding losses to servers and platforms.

[0086] S106: Calling a quota management contract according to the target enterprise identifier to obtain a remaining quota of virtual resources corresponding to the target enterprise identifier in the target virtual resource issuing enterprise.

[0087] In the specific implementation process, since the virtual resource quota corresponding to the enterprise ID is stored on the blockchain, the virtual resource quota can be used to judge the rationality of the virtual resource issuing enterprise's current resource issuance. That is, the server can judge whether the current resource issuance is reasonable by comparing the current total resource issuance quota with the remaining virtual resource quota.

[0088] Among them, the remaining amount of virtual resources represents the amount of resources that the corresponding enterprise can issue at the current time. The virtual resource amount can be determined based on mortgage, evaluation, cooperation time, etc. The remaining amount of virtual resources is the difference between the virtual resource amount and the amount of resources that have been issued. For example, when the virtual resource amount of virtual resource issuing enterprise a is 10,000, and virtual resource issuing enterprise a has previously issued 5,000 virtual resources, the remaining amount of virtual resources is 5,000.

[0089] S108. Determine whether the current total amount of resource issuance is less than the remaining amount of virtual resources. If so, call the virtual resource issuance contract to issue a number of virtual resources corresponding to the current total amount of resource issuance, and call the quota management contract to adjust the remaining amount of virtual resources corresponding to the target enterprise identifier according to the current total amount of resource issuance. The virtual resource carries a resource value identifier and the target enterprise identifier.

[0090] In the specific implementation process, when the total amount of current resource issuance is less than or equal to the remaining amount of virtual resources, the virtual resource blockchain management platform can call the virtual resource issuance contract to issue the corresponding virtual resource based on the virtual resource issuance configuration information, and the virtual resource carries the resource identifier and the target enterprise identifier. It is understandable that different virtual resources can be issued by different enterprises based on the virtual resource blockchain management platform, or they can be different virtual resources issued by the same enterprise based on the virtual resource blockchain management platform.

[0091] Based on the above embodiments, in one embodiment of this specification, Figure 3 A flowchart of another method for processing virtual resource data based on blockchain provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the method also includes:

[0092] S202, receiving a virtual resource exchange request, wherein the virtual resource exchange request includes: a resource identifier and an exchange account identifier;

[0093] S204: Call the virtual resource circulation contract according to the virtual resource exchange request, and add the virtual resource corresponding to the resource identifier to the account corresponding to the exchange account identifier.

[0094] In the specific implementation process, the resources issued by the virtual resource issuing enterprise can be exchanged by means of digital password verification. The above-mentioned digital password is stored in the platform. When the user provides the corresponding digital password, a virtual resource exchange request can be sent to the platform. If the platform verifies that the digital password is the same as the digital password stored internally, the virtual resource corresponding to the resource identifier can be added to the exchange account identifier, that is, the blockchain will divide or transfer the virtual resources that did not previously belong to any party to the exchange account identifier.

[0095] Based on the above embodiment, in one embodiment of this specification, the method further includes:

[0096] Receive a virtual resource transfer request, the virtual resource transfer request including: a transaction amount, a transfer-out account identifier, and a transfer-in account identifier, wherein the transaction amount carries at least one resource identifier and an enterprise identifier corresponding to the resource identifier;

[0097] The virtual resource circulation contract is called to transfer the transaction amount in the account corresponding to the transfer-out account identifier to the account corresponding to the transfer-in account identifier.

[0098] Based on the above embodiments, in one embodiment of this specification, Figure 4 A flowchart of another method for processing virtual resource data based on blockchain provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the method also includes:

[0099] S302, receiving a virtual resource transaction request, wherein the virtual resource transaction request includes: a transaction amount, resource identifiers of multiple virtual resources, consumption channel identifiers, and an enterprise identifier, wherein the enterprise identifiers of the multiple virtual resources are not completely the same;

[0100] S304, calling the virtual resource circulation contract according to the transaction amount and the resource quantities corresponding to the multiple virtual resources, and sending the multiple virtual resources to the consumption channel corresponding to the consumption channel identifier according to the preset transaction rules.

[0101] In the specific implementation process, when users (consumers) under the virtual resource blockchain management platform use virtual resources for consumption, they can send a virtual resource transaction request to the virtual resource blockchain management platform. When the virtual resource blockchain management platform receives the virtual resource transaction request, it can integrate the multiple virtual resources according to the corresponding transaction amount and the resource volume corresponding to the multiple virtual resources. It is understandable that the virtual resource blockchain management platform can settle multiple different virtual resources in a single transaction at the same time when settling accounts, such as user consumption 120, which uses virtual resource 60A issued by virtual resource issuing enterprise a and virtual resource 60B issued by virtual resource issuing enterprise b for settlement.

[0102] Based on the above embodiment, in one embodiment of the present specification, the sending of the plurality of virtual resources to the consumption channel corresponding to the consumption channel identifier according to the preset transaction rule includes:

[0103] Comparing the relationship between the sum of the resource amounts corresponding to the plurality of virtual resources and the transaction amount;

[0104] If the transaction amount is less than or equal to the sum of the resource amounts corresponding to the multiple virtual resources, the multiple virtual resources are sent to the consumption channel corresponding to the consumption channel identifier according to the transaction rules preset in the virtual resource circulation contract.

[0105] In the specific implementation process, when the transaction amount of a user is greater than the sum of the resource amounts corresponding to multiple virtual resources, the transaction will fail. When performing settlement, the virtual resource blockchain management platform can simultaneously settle multiple different virtual resources in a single transaction. For example, if a user consumes 100, he uses virtual resource 50A issued by virtual resource issuing enterprise a and virtual resource 50B issued by virtual resource issuing enterprise b for settlement, where the value of virtual resource A issued by virtual resource issuing enterprise a and virtual resource B issued by virtual resource issuing enterprise b are both 50.

[0106] That is, after the user uses the virtual resources to conduct transactions on the virtual resource blockchain management platform, the virtual resource blockchain management platform can settle with the virtual resource issuing enterprise corresponding to the virtual resources. The specific settlement method is not specifically limited in the embodiments of this specification and can be set according to actual needs.

[0107] Based on the above embodiments, in one embodiment of this specification, Figure 5 A flowchart of another method for processing virtual resource data based on blockchain provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the method also includes:

[0108] S502: The target enterprise that issues virtual resources calls the virtual resource settlement contract at a preset time to obtain the total amount of virtual resources corresponding to the target enterprise that have been consumed in all consumption channels;

[0109] S504: Verify whether the total amount of virtual resources corresponding to the target enterprise meets preset requirements.

[0110] S506. After meeting the preset requirements, the total amount of virtual resources corresponding to the target enterprise is settled.

[0111] During the specific implementation process, the virtual resource blockchain management platform can regularly obtain the consumption of virtual resources corresponding to the target enterprise identity, and call the virtual resource settlement contract to settle the consumption of resources for the corresponding target enterprise identity.

[0112] Based on the above embodiment, in one embodiment of this specification, the method further includes:

[0113] S508. If the virtual resource issuing enterprise completes the settlement of the virtual resources within the settlement time, the quota management contract is called to increase the total quota of virtual resource issuance of the corresponding virtual resource issuing enterprise and the virtual resource circulation contract is called to destroy the settled virtual resources.

[0114] In the specific implementation process, the total amount of virtual resource issuance can represent the number of resources that the corresponding virtual resource issuing enterprise can issue. In order to increase the adhesion between the enterprise and the virtual resource blockchain management platform, the total amount of virtual resource issuance by the virtual resource issuing enterprise can be appropriately increased when the virtual resource issuing enterprise completes the settlement of virtual resources within the settlement time.

[0115] It is understandable that the method may further include: if the virtual resource issuing enterprise completes the settlement of the virtual resources outside the settlement time, then reducing the total amount of virtual resource issuance of the corresponding virtual resource issuing enterprise.

[0116] If the time it takes for the virtual resource issuing enterprise to complete the settlement of the virtual resources is greater than the preset settlement time, the total amount of virtual resource issuance by the virtual resource issuing enterprise is adjusted to zero.

[0117] Based on the above embodiment, in one embodiment of the specification, after calling the virtual resource issuance contract to issue the corresponding virtual resource based on the virtual resource issuance configuration information, the method further includes:

[0118] The quota management contract is called to determine a new virtual resource remaining quota according to the virtual resource remaining quota corresponding to the target virtual resource issuing enterprise and the current total resource issuance quota.

[0119] The present invention provides a blockchain-based virtual resource data processing method. By comparing the current total amount of resource issuance issued by an enterprise based on a virtual resource blockchain management platform with the remaining amount of virtual resources corresponding to a user system, when the current total amount of resource issuance is less than the remaining amount of virtual resources, a virtual resource issuance contract is called to issue corresponding virtual resources based on the virtual resource issuance configuration information. The virtual resources carry a resource identifier and a target enterprise identifier, which can ensure the accuracy and rationality of resource issuance by the virtual resource issuing enterprise, avoid bad debts caused by a large amount of virtual resources issued by users, and facilitate the platform operation and maintenance personnel to count accounts. There is no need for manual review of information, which reduces maintenance costs and ensures the accuracy and timeliness of data. At the same time, the issuance, consumption and transfer of resources can be traced, ensuring that the issuance, use and transfer of resources are more detailed and visualized.

[0120] Furthermore, the blockchain-based virtual resource data processing method provided in the embodiments of this specification can increase or decrease the total amount of virtual resource issuance by the virtual resource issuing enterprise after the virtual resource issuing enterprise settles the issued virtual resources, so that resource issuance and resource settlement form a closed loop, which can promote the reasonable resource transfer of the system and platform, reduce the occurrence of bad debts, and ensure the security of virtual resource issuance.

[0121] on the other hand, Figure 8 A schematic diagram of a resource distribution device provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the present invention provides a virtual resource data processing device based on blockchain, the device applies a virtual resource blockchain management platform, the virtual resource blockchain management platform can issue virtual resources corresponding to multiple enterprise identifiers, different enterprise identifiers represent different enterprises, and the device includes:

[0122] The request receiving module 810 is configured to receive a virtual resource issuing request submitted by a target virtual resource issuing enterprise, wherein the virtual resource issuing request includes a corresponding target enterprise identifier;

[0123] The configuration information receiving module 820 is configured to receive virtual resource distribution configuration information carrying the target enterprise identifier submitted by the target virtual resource distribution enterprise, wherein the virtual resource distribution configuration information includes the current total resource distribution amount;

[0124] The remaining quota acquisition module 830 is configured to execute the calling of the quota management contract according to the target enterprise identifier to acquire the remaining quota of virtual resources corresponding to the target enterprise identifier in the target virtual resource issuing enterprise;

[0125] The issuance module 840 is configured to execute the judgment on whether the total amount of current resource issuance is less than the remaining amount of virtual resources. If so, the virtual resource issuance contract is called to issue the virtual resources corresponding to the total amount of current resource issuance, and the amount management contract is called to adjust the remaining amount of virtual resources corresponding to the target enterprise identifier according to the total amount of current resource issuance. The virtual resource carries the resource value identifier and the target enterprise identifier.

[0126] Since the technical effects of the blockchain-based virtual resource data processing device and the blockchain-based virtual resource data processing method are the same, they will not be repeated here.

[0127] on the other hand, Fig. 9 A schematic diagram of the structure of a service server provided by an embodiment of the present invention, such as Fig. 9 As shown, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the blockchain-based virtual resource data processing method as described above.

[0128] On the other hand, the present invention provides a computer-readable medium having computer-readable instructions stored thereon, and the computer-readable instructions can be executed by a processor to implement the blockchain-based virtual resource data processing method as described in any of the above items.

[0129] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. The test method provided in the embodiment of the present invention has the same implementation principle and technical effects as the aforementioned system embodiment. For the sake of brief description, for the parts not mentioned in the method embodiment, reference can be made to the corresponding contents in the aforementioned system embodiment.

[0130] In several embodiments provided in the present application, it should be understood that the disclosed system and method can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0131] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0132] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the above-mentioned claims.

Claims

1. A virtual resource data processing method based on blockchain, characterized in that: The method uses a virtual resource blockchain management platform, which can issue virtual resources corresponding to multiple enterprise identifiers, where different enterprise identifiers represent different enterprises. The method includes: Receiving a virtual resource distribution request submitted by a target virtual resource distribution enterprise, wherein the virtual resource distribution request includes a corresponding target enterprise identifier; Receiving virtual resource distribution configuration information carrying the target enterprise identifier submitted by the target virtual resource distribution enterprise, wherein the virtual resource distribution configuration information includes a current total resource distribution amount; Calling the quota management contract according to the target enterprise identifier to obtain the remaining quota of virtual resources corresponding to the target enterprise identifier in the target virtual resource issuing enterprise; Determine whether the current total amount of resource issuance is less than the remaining amount of virtual resources. If so, call the virtual resource issuance contract to issue a number of virtual resources corresponding to the current total amount of resource issuance, and call the quota management contract to adjust the remaining amount of virtual resources corresponding to the target enterprise ID according to the current total amount of resource issuance, wherein the virtual resource carries a resource value ID and the target enterprise ID; The method further comprises: receiving a virtual resource exchange request, the virtual resource exchange request including: a resource identifier and an exchange account identifier; Invoke the virtual resource circulation contract according to the virtual resource exchange request, and add the virtual resource corresponding to the resource identifier to the account corresponding to the exchange account identifier; receiving a virtual resource transaction request, wherein the virtual resource transaction request includes: a transaction amount, resource identifiers of multiple virtual resources, consumption channel identifiers, and an enterprise identifier, wherein the enterprise identifiers of the multiple virtual resources are not completely the same; The virtual resource circulation contract is called to send the multiple virtual resources to the consumption channels corresponding to the consumption channel identifiers according to the preset transaction rules based on the transaction amount and the resource quantities respectively corresponding to the multiple virtual resources; the multiple virtual resources are sent to the consumption channels corresponding to the consumption channel identifiers according to the preset transaction rules, including: Comparing the relationship between the sum of the resource amounts corresponding to the plurality of virtual resources and the transaction amount; If the transaction amount is less than or equal to the sum of the resource amounts corresponding to the multiple virtual resources, the multiple virtual resources are sent to the consumption channel corresponding to the consumption channel identifier according to the transaction rules preset in the virtual resource circulation contract; The target enterprise that issues virtual resources calls the virtual resource settlement contract at preset intervals to obtain the total amount of virtual resources corresponding to the target enterprise that have been consumed in all consumption channels; Verify whether the total amount of virtual resources corresponding to the target enterprise meets the preset requirements; After meeting the preset requirements, the total amount of virtual resources corresponding to the target enterprise will be settled; If the virtual resource issuing enterprise completes the settlement of the virtual resources within the settlement time, the quota management contract is called to increase the total quota of virtual resource issuance of the corresponding virtual resource issuing enterprise and the virtual resource circulation contract is called to destroy the settled virtual resources; Calling the quota management contract to determine a new remaining quota of virtual resources according to the remaining quota of virtual resources corresponding to the target virtual resource issuing enterprise and the total quota of current resource issuance; The receiving of the virtual resource transaction request also includes: Receive a virtual resource transfer request, the virtual resource transfer request including: a transaction amount, a transfer-out account identifier, and a transfer-in account identifier, wherein the transaction amount carries at least one resource identifier and an enterprise identifier corresponding to the resource identifier; The virtual resource circulation contract is called to transfer the transaction amount in the account corresponding to the transfer-out account identifier to the account corresponding to the transfer-in account identifier.

2. A virtual resource data processing device based on blockchain, characterized in that: The device uses a virtual resource blockchain management platform, which can issue virtual resources corresponding to multiple enterprise identifiers, where different enterprise identifiers represent different enterprises. The device includes: A request receiving module (810) is configured to receive a virtual resource issuing request submitted by a target virtual resource issuing enterprise, wherein the virtual resource issuing request includes a corresponding target enterprise identifier; A configuration information receiving module (820) is configured to receive virtual resource distribution configuration information submitted by a target virtual resource distribution enterprise and carrying the target enterprise identifier, wherein the virtual resource distribution configuration information includes a current total resource distribution amount; A remaining quota acquisition module (830) is configured to execute the calling of a quota management contract according to the target enterprise identifier to acquire the remaining quota of virtual resources corresponding to the target enterprise identifier in the target virtual resource issuing enterprise; The issuing module (840) is configured to execute the judgment whether the total amount of current resource issuance is less than the remaining amount of virtual resources, and if so, call the virtual resource issuance contract to issue the virtual resources corresponding to the total amount of current resource issuance, and call the quota management contract to adjust the remaining amount of virtual resources corresponding to the target enterprise identifier according to the total amount of current resource issuance, wherein the virtual resource carries the resource value identifier and the target enterprise identifier; The virtual resource data processing device further executes: receiving a virtual resource exchange request, the virtual resource exchange request including: a resource identifier and an exchange account identifier; Invoke the virtual resource circulation contract according to the virtual resource exchange request, and add the virtual resource corresponding to the resource identifier to the account corresponding to the exchange account identifier; receiving a virtual resource transaction request, wherein the virtual resource transaction request includes: a transaction amount, resource identifiers of multiple virtual resources, consumption channel identifiers, and an enterprise identifier, wherein the enterprise identifiers of the multiple virtual resources are not completely the same; The virtual resource circulation contract is called to send the multiple virtual resources to the consumption channels corresponding to the consumption channel identifiers according to the preset transaction rules based on the transaction amount and the resource quantities respectively corresponding to the multiple virtual resources; the multiple virtual resources are sent to the consumption channels corresponding to the consumption channel identifiers according to the preset transaction rules, including: Comparing the relationship between the sum of the resource amounts corresponding to the plurality of virtual resources and the transaction amount; If the transaction amount is less than or equal to the sum of the resource amounts corresponding to the multiple virtual resources, the multiple virtual resources are sent to the consumption channel corresponding to the consumption channel identifier according to the transaction rules preset in the virtual resource circulation contract; The target enterprise that issues virtual resources calls the virtual resource settlement contract at preset intervals to obtain the total amount of virtual resources corresponding to the target enterprise that have been consumed in all consumption channels; Verify whether the total amount of virtual resources corresponding to the target enterprise meets the preset requirements; After meeting the preset requirements, the total amount of virtual resources corresponding to the target enterprise will be settled; If the virtual resource issuing enterprise completes the settlement of the virtual resources within the settlement time, the quota management contract is called to increase the total quota of virtual resource issuance of the corresponding virtual resource issuing enterprise and the virtual resource circulation contract is called to destroy the settled virtual resources; Calling the quota management contract to determine a new remaining quota of virtual resources according to the remaining quota of virtual resources corresponding to the target virtual resource issuing enterprise and the total quota of current resource issuance; The receiving of the virtual resource transaction request also includes: Receive a virtual resource transfer request, the virtual resource transfer request including: a transaction amount, a transfer-out account identifier, and a transfer-in account identifier, wherein the transaction amount carries at least one resource identifier and an enterprise identifier corresponding to the resource identifier; The virtual resource circulation contract is called to transfer the transaction amount in the account corresponding to the transfer-out account identifier to the account corresponding to the transfer-in account identifier.

3. An electronic device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the blockchain-based virtual resource data processing method as described in claim 1.

Citation Information

Patent Citations

  • Resource processing method and processing equipment

    CN110599323A

  • Virtual resource transfer method and device, computer equipment and storage medium

    CN111144859A

  • Resource distribution method and device based on blockchain, and electronic device

    CN112200572A

  • Virtual resource control and distribution

    US20190138363A1