技术领域technical field
本发明涉及互联网技术领域,具体涉及一种资源处理方法及处理设备。The invention relates to the technical field of the Internet, in particular to a resource processing method and processing equipment.
背景技术Background technique
交税是指税务局根据各种税法的规定,将集体或个人的收入按照一定的比率上交至国家。目前,纳税人在每次交税时都需要通过第三方的支付应用进行支付操作,向税务局的银行账户转入税款。交税流程非常繁琐。如果纳税人存在大量交易需要交税,那么纳税人需要进行多次转款的操作,这对纳税人造成了很大的不便。因此,如何简化交税流程是目前亟待解决的问题。Tax payment means that the tax bureau submits collective or individual income to the state at a certain rate according to the provisions of various tax laws. At present, taxpayers need to perform payment operations through third-party payment applications every time they pay taxes, and transfer taxes to the tax bureau's bank account. The tax payment process is very cumbersome. If the taxpayer has a large number of transactions and needs to pay taxes, the taxpayer needs to perform multiple transfer operations, which causes great inconvenience to the taxpayer. Therefore, how to simplify the tax payment process is an urgent problem to be solved.
发明内容Contents of the invention
本发明实施例提供一种资源处理方法、相关设备及介质,有利于简化交税流程。Embodiments of the present invention provide a resource processing method, related equipment and media, which are conducive to simplifying the tax payment process.
第一方面,本发明实施例提供了一种资源处理方法,包括:In a first aspect, an embodiment of the present invention provides a resource processing method, including:
确定需为第一用户分配的虚拟资源的数量;determining the quantity of virtual resources to be allocated to the first user;
生成虚拟资源分配请求,所述虚拟资源分配请求包括所述第一用户的标识及所述虚拟资源的数量;generating a virtual resource allocation request, the virtual resource allocation request including the identifier of the first user and the quantity of the virtual resource;
发送所述虚拟资源分配请求至区块链网络,以使所述区块链网络根据所述虚拟资源分配请求为所述第一用户分配虚拟资源,并在接收到所述第一用户交易的数字资产量时,通过智能合约根据所述数字资产量确定虚拟资源扣除量,并从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量。Send the virtual resource allocation request to the block chain network, so that the block chain network allocates virtual resources for the first user according to the virtual resource allocation request, and after receiving the transaction number of the first user When determining the amount of assets, the amount of deduction of virtual resources is determined according to the amount of digital assets through a smart contract, and the amount of deduction of virtual resources is deducted from the virtual resources of the first user.
在该技术方案中,第一处理设备通过区块链网络向第一用户分配虚拟资源,并在接收到第一用户交易的数字资产量时,直接扣除相应数量的虚拟资源,从而实现了资源转移过程的简化。In this technical solution, the first processing device allocates virtual resources to the first user through the blockchain network, and directly deducts the corresponding amount of virtual resources when receiving the amount of digital assets traded by the first user, thereby realizing resource transfer Process simplification.
第二方面,本发明实施例提供一种资源处理方法,包括:In a second aspect, an embodiment of the present invention provides a resource processing method, including:
接收虚拟资源分配请求,所述虚拟资源分配请求包括所述第一用户的标识及所述虚拟资源的数量;receiving a virtual resource allocation request, the virtual resource allocation request including the identifier of the first user and the quantity of the virtual resource;
根据所述虚拟资源分配请求为所述第一用户分配虚拟资源;allocating virtual resources to the first user according to the virtual resource allocation request;
接收所述第一用户交易的数字资产量;Receive the amount of digital assets traded by the first user;
通过智能合约根据所述数字资产量确定虚拟资源扣除量,并从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量。The virtual resource deduction amount is determined according to the amount of digital assets through the smart contract, and the virtual resource deduction amount is deducted from the virtual resources of the first user.
在该技术方案中,区块链网络在接收到虚拟资源分配请求时,直接向第一用户分配虚拟资源,并在接收到第一用户交易的数字资产量时,扣除相应数量的虚拟资源,从而实现了资源转移过程的简化。In this technical solution, when the blockchain network receives a virtual resource allocation request, it directly allocates virtual resources to the first user, and when receiving the amount of digital assets traded by the first user, deducts the corresponding amount of virtual resources, thereby The simplification of the resource transfer process is realized.
第三方面,本发明实施例提供一种资源处理装置,包括:In a third aspect, an embodiment of the present invention provides a resource processing device, including:
处理单元,用于确定需为第一用户分配的虚拟资源的数量;a processing unit, configured to determine the quantity of virtual resources to be allocated to the first user;
生成单元,用于生成虚拟资源分配请求,所述虚拟资源分配请求包括所述第一用户的标识及所述虚拟资源的数量;A generating unit, configured to generate a virtual resource allocation request, where the virtual resource allocation request includes the first user's identifier and the number of virtual resources;
所述处理单元,用于发送所述虚拟资源分配请求至区块链网络,以使所述区块链网络根据所述虚拟资源分配请求为所述第一用户分配虚拟资源,The processing unit is configured to send the virtual resource allocation request to a blockchain network, so that the blockchain network allocates virtual resources to the first user according to the virtual resource allocation request,
并在接收到所述第一用户交易的数字资产量时,通过智能合约根据所述数字资产量确定虚拟资源扣除量,并从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量。And when receiving the amount of digital assets traded by the first user, determine the deduction amount of virtual resources according to the amount of digital assets through the smart contract, and deduct the deduction amount of virtual resources from the virtual resources of the first user.
第四方面,本发明实施例提供一种资源处理装置,包括:In a fourth aspect, an embodiment of the present invention provides a resource processing device, including:
接收单元,用于接收虚拟资源分配请求,所述虚拟资源分配请求包括所述第一用户的标识及所述虚拟资源的数量;A receiving unit, configured to receive a virtual resource allocation request, where the virtual resource allocation request includes the identifier of the first user and the quantity of the virtual resource;
处理单元,用于根据所述虚拟资源分配请求为所述第一用户分配虚拟资源;a processing unit, configured to allocate virtual resources to the first user according to the virtual resource allocation request;
所述接收单元,用于接收所述第一用户交易的数字资产量;The receiving unit is configured to receive the amount of digital assets traded by the first user;
所述处理单元,用于通过智能合约根据所述数字资产量确定虚拟资源扣除量,并从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量。The processing unit is configured to determine a deduction amount of virtual resources according to the amount of digital assets through a smart contract, and deduct the deduction amount of virtual resources from the virtual resources of the first user.
第五方面,本发明实施例提供了一种资源处理设备,包括处理器和存储器,处理器和存储器相互连接,其中,存储器用于存储计算机程序,计算机程序包括程序指令,处理器被配置用于调用程序指令,执行如第一方面或第二方面所描述的方法。该处理设备解决问题的实施方式以及有益效果可以参见上述第一方面或第二方面所描述的方法以及有益效果,重复之处不再赘述。In a fifth aspect, an embodiment of the present invention provides a resource processing device, including a processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to Invoke program instructions to execute the method described in the first aspect or the second aspect. For the implementation and beneficial effects of the processing device to solve the problem, refer to the method and beneficial effects described in the first aspect or the second aspect above, and the repetition will not be repeated.
第六方面,本发明实施例提供一种计算机存储介质,计算机存储介质存储有计算机程序,计算机程序包括程序指令,程序指令当被处理器执行时使处理器执行如第一方面或第二方面所描述的方法。In a sixth aspect, an embodiment of the present invention provides a computer storage medium. The computer storage medium stores a computer program, and the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform described method.
在本发明实施例中,第一处理设备在确定需为第一用户分配的虚拟资源的数量后,生成虚拟资源分配请求,该虚拟资源分配请求包含所述第一用户的标识及虚拟资源的数量,将所述虚拟资源分配请求发送至区块链网络,所述区块链网络在接收到第一处理设备发送的所述虚拟资源分配请求后,根据所述虚拟资源分配请求为所述第一用户分配虚拟资源。并且,当第一用户通过区块链网络发送交易的数字资产量至第一处理设备时,区块链网络通过智能合约根据所述数字资产量确定相应的虚拟资源扣除量,并从第一用户的虚拟资源中扣除所述虚拟资源的扣除量。可见,通过本实施方式,第一用户只需发送数字资产量至区块链网络,便可实现虚拟资源的扣除,而无须有其他繁琐的操作,实现了资源处理流程的简化。In the embodiment of the present invention, after determining the quantity of virtual resources to be allocated to the first user, the first processing device generates a virtual resource allocation request, and the virtual resource allocation request includes the identification of the first user and the quantity of virtual resources , sending the virtual resource allocation request to the block chain network, and the block chain network, after receiving the virtual resource allocation request sent by the first processing device, provides the first virtual resource allocation request according to the virtual resource allocation request Users allocate virtual resources. Moreover, when the first user sends the amount of digital assets traded to the first processing device through the blockchain network, the blockchain network determines the corresponding virtual resource deduction amount according to the amount of digital assets through the smart contract, and deducts the amount from the first user The deduction amount of the virtual resource is deducted from the virtual resource of . It can be seen that through this embodiment, the first user only needs to send the amount of digital assets to the blockchain network to realize the deduction of virtual resources without other cumbersome operations, which simplifies the resource processing process.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例提供的一种资源处理系统的架构图;FIG. 1 is an architecture diagram of a resource processing system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种资源处理方法的流程示意图;FIG. 2 is a schematic flowchart of a resource processing method provided by an embodiment of the present invention;
图3是本发明实施例提供的又一种资源处理方法的流程示意图;FIG. 3 is a schematic flowchart of another resource processing method provided by an embodiment of the present invention;
图4是本发明实施例提供的再一种资源处理方法的流程示意图;FIG. 4 is a schematic flowchart of another resource processing method provided by an embodiment of the present invention;
图5是本发明实施例提供的一种资源处理装置的结构示意图;Fig. 5 is a schematic structural diagram of a resource processing device provided by an embodiment of the present invention;
图6是本发明实施例提供的又一种资源处理装置的结构示意图;FIG. 6 is a schematic structural diagram of another resource processing device provided by an embodiment of the present invention;
图7是本发明实施例提供的一种资源处理设备的结构示意图。Fig. 7 is a schematic structural diagram of a resource processing device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.
为了更好的理解本发明实施例公开的一种资源处理方法,下面首先对本发明实施例适用的系统架构进行描述。In order to better understand a resource processing method disclosed in the embodiment of the present invention, the system architecture applicable to the embodiment of the present invention is firstly described below.
请参见图1,如图1所示,该系统架构中包括第一处理设备、第二处理设备和区块链网络。其中,第一处理设备可以为税务局对应的设备。第二处理设备可以为第一用户对应的设备。第一用户可以为卖方用户,卖方用户可以是个人或企业。第一处理设备和第二处理设备可以是客户端或者服务器,本申请实施例不做限定。其中,客户端可以为以下任一种:终端、独立的应用程序、API(Application Programming Interface,应用程序编程接口)或者SDK(Software Development Kit,软件开发工具包)。其中,终端可以包括但不限于:智能手机(如Android手机、iOS手机等)、平板电脑、便携式个人计算机、移动互联网设备(MobileInternetDevices,简称MID)等设备,本发明实施例不做限定。Please refer to FIG. 1 , as shown in FIG. 1 , the system architecture includes a first processing device, a second processing device and a blockchain network. Wherein, the first processing device may be a device corresponding to a tax bureau. The second processing device may be a device corresponding to the first user. The first user may be a seller user, and the seller user may be an individual or an enterprise. The first processing device and the second processing device may be clients or servers, which are not limited in this embodiment of the present application. Wherein, the client may be any of the following: a terminal, an independent application program, an API (Application Programming Interface, application programming interface) or an SDK (Software Development Kit, software development kit). Wherein, the terminal may include but not limited to: smart phones (such as Android phones, iOS phones, etc.), tablet computers, portable personal computers, mobile Internet devices (Mobile Internet Devices, MID for short), etc., which are not limited in the embodiment of the present invention.
区块链(Block Chain)是一种按照时间顺序将数据区块以顺序相连的方式组合成的一种链式数据结构,并以密码学方式保证数据不可篡改和不可伪造的分布式账本。多个独立的分布式节点(即区块链节点)保存相同的记录。区块链技术实现了去中心化,成为了可信的资源存储、转移和交易的基石。区块链网络包括多个区块链节点。该区块链节点可以为全节点或其他类型的节点。全节点是指存储完整区块链的节点。全节点通常是高性能的计算设备。图1以区块链网络包括3个区块链节点为例。当然,区块链网络还可包括3个以上节点。Blockchain (Block Chain) is a chained data structure that combines data blocks in a sequential manner in chronological order, and cryptographically ensures that data cannot be tampered with and cannot be forged. Distributed ledgers. Multiple independent distributed nodes (i.e. blockchain nodes) keep the same records. Blockchain technology realizes decentralization and becomes the cornerstone of credible resource storage, transfer and transaction. A blockchain network includes multiple blockchain nodes. The blockchain node can be a full node or other types of nodes. A full node refers to a node that stores the complete blockchain. Full nodes are usually high-performance computing devices. Figure 1 takes the blockchain network including 3 blockchain nodes as an example. Of course, the blockchain network may also include more than 3 nodes.
请参见图2,图2为本发明实施例提供的一种资源处理方法的流程示意图。如图2所示,该资源处理方法可以包括201~207步骤。其中:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a resource processing method provided by an embodiment of the present invention. As shown in FIG. 2, the resource processing method may include steps 201-207. in:
201、第一处理设备确定需为第一用户分配的虚拟资源的数量。201. The first processing device determines the quantity of virtual resources that need to be allocated to the first user.
具体的,第一处理设备可以以一个月或一个季度等为周期,确定需为第一用户分配虚拟资源的数量。可选的,也可在每月的固定日期,确定需为第一用户分配虚拟资源的数量,例如:每月的1日。虚拟资源可以为虚拟币,虚拟币可以与实际货币进行兑换,例如:1元人民币可以兑换为1个虚拟币,也可以为1元人民币兑换为10个虚拟币。Specifically, the first processing device may determine the amount of virtual resources to be allocated to the first user on a monthly or quarterly basis. Optionally, the amount of virtual resources to be allocated to the first user may also be determined on a fixed date of each month, for example, the first day of each month. The virtual resource can be a virtual currency, and the virtual currency can be exchanged with real currency. For example, 1 RMB can be exchanged for 1 virtual currency, or 1 RMB can be exchanged for 10 virtual currencies.
202、第一处理设备生成虚拟资源分配请求,该虚拟资源分配请求包括第一用户的标识及虚拟资源的数量。202. The first processing device generates a virtual resource allocation request, where the virtual resource allocation request includes the identifier of the first user and the quantity of virtual resources.
第一处理设备生成的虚拟资源分配请求携带有第一用户的标识及虚拟资源的数量,此处的第一用户的标识可以为第一用户的账号等能够唯一识别第一用户信息的标识。The virtual resource allocation request generated by the first processing device carries the identifier of the first user and the quantity of virtual resources, where the identifier of the first user may be an identifier that can uniquely identify the information of the first user, such as an account number of the first user.
203、第一处理设备发送虚拟资源分配请求至区块链网络。203. The first processing device sends a virtual resource allocation request to the blockchain network.
204、区块链网络根据虚拟资源分配请求为第一用户分配虚拟资源。204. The blockchain network allocates virtual resources to the first user according to the virtual resource allocation request.
具体的,区块链网络接收虚拟资源分配请求之后,根据虚拟资源分配请求为第一用户分配虚拟资源。不同用户在区块链网络中具有不同的账户。区块链网络根据虚拟资源分配请求中携带的第一用户标识分配相应数量的虚拟资源之后,将该虚拟资源存储至第一用户的账户中。可选的,区块链网络为第一用户分配虚拟资源之后,可发送第一提示信息至第二处理设备,该第一提示信息用于提示第一用户已为其分配虚拟资源。该第一提示信息中还可包括分配的虚拟资源的数量。可选的,还可包括第一用户当前具有的虚拟资源的数量。第二处理设备接收该第一提示信息之后,可输出该第一提示信息给第一用户查看。Specifically, after receiving the virtual resource allocation request, the blockchain network allocates virtual resources to the first user according to the virtual resource allocation request. Different users have different accounts in the blockchain network. After the blockchain network allocates a corresponding amount of virtual resources according to the first user identifier carried in the virtual resource allocation request, the virtual resources are stored in the account of the first user. Optionally, after the blockchain network allocates virtual resources to the first user, it may send a first prompt message to the second processing device, where the first prompt message is used to prompt the first user that the virtual resource has been allocated to the first user. The first prompt information may also include the number of allocated virtual resources. Optionally, the number of virtual resources currently owned by the first user may also be included. After receiving the first prompt information, the second processing device may output the first prompt information for the first user to view.
作为一种可选的实施方式,第一处理设备在执行步骤202之后,还可对虚拟资源分配请求进行签名,得到第一签名。具体的,第一处理设备可发送虚拟资源分配请求和第一签名至区块链网络。相应地,区块链网络可接收该虚拟资源分配请求和第一签名。区块链网络在接收虚拟资源分配请求和第一签名之后,根据虚拟资源分配请求对第一签名进行验证。若验证通过,则根据虚拟资源分配请求为第一用户分配虚拟资源。若验证失败则结束流程。通过执行本实施方式,可以提高资源分配过程的安全性。As an optional implementation manner, after performing step 202, the first processing device may also sign the virtual resource allocation request to obtain the first signature. Specifically, the first processing device may send the virtual resource allocation request and the first signature to the blockchain network. Correspondingly, the blockchain network can receive the virtual resource allocation request and the first signature. After receiving the virtual resource allocation request and the first signature, the blockchain network verifies the first signature according to the virtual resource allocation request. If the verification is passed, the virtual resource is allocated to the first user according to the virtual resource allocation request. If the verification fails, the process ends. By executing this embodiment, the security of the resource allocation process can be improved.
可选的,第一处理设备可通过第一处理设备的私钥对虚拟资源分配请求进行加密,在将虚拟资源分配请求和第一签名发送至区块链网络之后,区块链网络可以用公钥进行解密。第一处理设备的私钥和公钥也可以理解为税务局的私钥和公钥。Optionally, the first processing device can encrypt the virtual resource allocation request with the private key of the first processing device, and after sending the virtual resource allocation request and the first signature to the blockchain network, the blockchain network can use the public key to decrypt. The private key and public key of the first processing device can also be understood as the private key and public key of the tax office.
例如,以哈希算法为例,第一处理设备对虚拟资源分配请求进行哈希运算,得到哈希值1。第一处理设备再采用第一处理设备的私钥对哈希值1进行签名,得到第一签名,第一处理设备将该虚拟资源分配请求和第一签名发送至区块链网络。相应地,区块链网络可通过第一处理设备的公钥对第一签名进行解密,得到哈希值2,再将虚拟资源分配请求进行哈希运算,得到哈希值1。如果哈希值2与哈希值1相同,则区块链网络确定对第一签名验证成功。For example, taking a hash algorithm as an example, the first processing device performs a hash operation on the virtual resource allocation request to obtain a hash value of 1. The first processing device then uses the private key of the first processing device to sign the hash value 1 to obtain the first signature, and the first processing device sends the virtual resource allocation request and the first signature to the blockchain network. Correspondingly, the blockchain network can decrypt the first signature with the public key of the first processing device to obtain a hash value of 2, and then perform a hash operation on the virtual resource allocation request to obtain a hash value of 1. If the hash value 2 is the same as the hash value 1, the blockchain network determines that the verification of the first signature is successful.
在另一种实施方式中,区块链网络还可在推送并验证成功后,对第一处理设备进行反馈,具体的,可发送第二提示信息至第一处理设备,该第二提示信息用于提示虚拟资源分配请求已发送成功。该提示信息中还可包括分配的虚拟资源的数量,第一处理设备在接收到该第二提示信息之后,可输出该提示信息给税务局用户查看。可选的,第一处理设备还可以在本机设备建立虚拟资源分配数据库,此处虚拟资源分配数据库用于记录已经分配虚拟资源的用户信息、分配的虚拟资源数量及是否接收到该用户已转移的数字资产,其中,该数字资产为分配的虚拟资源对应的实际货币。In another embodiment, the blockchain network can also give feedback to the first processing device after the push and verification is successful. Specifically, the second prompt information can be sent to the first processing device. The second prompt information uses Indicates that the virtual resource allocation request has been sent successfully. The prompt information may also include the number of allocated virtual resources, and after receiving the second prompt information, the first processing device may output the prompt information to the tax bureau user for viewing. Optionally, the first processing device can also establish a virtual resource allocation database on the local device, where the virtual resource allocation database is used to record user information that has allocated virtual resources, the number of allocated virtual resources, and whether the user has transferred digital assets, where the digital assets are the actual currency corresponding to the allocated virtual resources.
205、第二处理设备发送第一用户交易的数字资产量。205. The second processing device sends the amount of digital assets traded by the first user.
具体的,第二处理设备可以发送第一用户交易的数字资产量至区块链网络,可选的,区块链网络也可以从第一处理设备接收第一用户交易的数字资产量。其中,该数字资产量可以携带在开票请求或其他可以显示交易情况的信息中。此处的数字资产可以为交易的金额。Specifically, the second processing device may send the amount of digital assets traded by the first user to the blockchain network, and optionally, the blockchain network may also receive the amount of digital assets traded by the first user from the first processing device. Wherein, the amount of digital assets can be carried in the billing request or other information that can display the transaction status. The digital asset here can be the amount of the transaction.
以携带在开票请求为例,若是携带在开票请求中,第一用户发送开票请求至区块链网络,区块链网络可以在接收到第一用户的开票请求后,获取第一用户交易的数字资产量,基于智能合约根据数字资产量确定虚拟资源扣除量,即执行步骤206,在对第一用户完成虚拟资源扣除后,开本次交易的发票给第一用户。Take it carried in the billing request as an example, if it is carried in the billing request, the first user sends the billing request to the blockchain network, and the blockchain network can obtain the transaction number of the first user after receiving the billing request from the first user The amount of assets, based on the smart contract, determines the deduction amount of virtual resources according to the amount of digital assets, that is, executes step 206, after completing the deduction of virtual resources for the first user, issue an invoice for this transaction to the first user.
作为一种可选的实施方式,区块链网络在接收第一用户交易的数字资产量时,还可以接收第一用户的虚拟资源扣除范围,此处的虚拟资源扣除分为可以为第一用户主观设置的虚拟资源的数量范围,例如:可以设置每次区块链网络自动扣除的虚拟资源数量不得超过500个虚拟资源。具体的,区块链网络在接收第一用户交易的数字资产量和虚拟资源扣除范围后,可以先确定本次虚拟资源扣除量是否处于虚拟资源扣除范围。若判断结果为是,则执行步骤206。若判断结果为否,则可发送第三提示信息至第二处理设备,该第三提示信息用于提示第一用户已超过预设的虚拟资源扣除范围。该第三提示信息中还可包括本次的虚拟资源扣除量,第二处理设备接收该第三提示信息之后,可输出该第三提示信息给第一用户查看。通过执行本实施方式,可以使第一用户及时知悉大额的虚拟资源扣除事件,详细掌握账户中的虚拟资源流通情况。As an optional implementation, when the blockchain network receives the amount of digital assets traded by the first user, it can also receive the deduction range of the first user's virtual resources, where the deduction of virtual resources can be divided into The range of the number of virtual resources that is subjectively set, for example: the number of virtual resources automatically deducted by the blockchain network each time can be set to no more than 500 virtual resources. Specifically, after the blockchain network receives the amount of digital assets traded by the first user and the deduction range of virtual resources, it can first determine whether the deduction amount of virtual resources is within the deduction range of virtual resources. If the judgment result is yes, execute step 206 . If the judging result is no, third prompt information may be sent to the second processing device, where the third prompt information is used to remind the first user that the preset virtual resource deduction range has been exceeded. The third prompt information may also include the deduction amount of virtual resources this time, and after receiving the third prompt information, the second processing device may output the third prompt information for the first user to view. By executing this embodiment, the first user can be informed of the large-amount virtual resource deduction event in a timely manner, and have a detailed grasp of the virtual resource circulation in the account.
206、区块链网络通过智能合约根据数字资产量确定虚拟资源扣除量。206. The blockchain network determines the deduction amount of virtual resources according to the amount of digital assets through smart contracts.
具体地,区块链网络接收第一用户交易的数字资产量之后,通过智能合约根据数字资产量确定虚拟资源扣除量。Specifically, after the blockchain network receives the amount of digital assets traded by the first user, the virtual resource deduction amount is determined according to the amount of digital assets through the smart contract.
具体的,在执行步骤206之前,区块链网络还可以根据交易的数字资产量及税率确定需扣除的数字资产量,并将需扣除的数字资产量换算成相应的虚拟资源扣除量。此处的数字资产量可以为实际的实际货币金额,虚拟资源可以为虚拟币。以商户a贩卖商品场景为例,例如:商户a此次贩卖商品的交易金额为2000元人民币的数字资产,税率为20%,则需要交的税款为400元,数字资产与虚拟资源的兑换比例为1:1,即1元人民币可以兑换1个虚拟币的虚拟资源,则400元人民币即为400个虚拟币,由此可以确定,本次交易需要对商户a扣除的虚拟资源的数量为400个虚拟币。其中,数字资产与虚拟资源的兑换方法可以为1元人民币兑换为1个虚拟币或1元人民币兑换为10个虚拟币。Specifically, before step 206 is executed, the blockchain network can also determine the amount of digital assets to be deducted according to the amount of digital assets traded and the tax rate, and convert the amount of digital assets to be deducted into the corresponding deductible amount of virtual resources. The amount of digital assets here can be the actual actual currency amount, and the virtual resources can be virtual currency. Take the scenario of merchant a selling goods as an example, for example: the transaction amount of merchant a selling goods this time is digital assets of 2,000 yuan, and the tax rate is 20%, so the tax to be paid is 400 yuan. The exchange of digital assets and virtual resources The ratio is 1:1, that is, 1 RMB can be exchanged for the virtual resources of 1 virtual currency, then 400 RMB is 400 virtual coins, so it can be determined that the amount of virtual resources that need to be deducted from merchant a in this transaction is 400 virtual coins. Among them, the exchange method of digital assets and virtual resources can be 1 yuan of RMB for 1 virtual currency or 1 yuan of RMB for 10 virtual currencies.
207、区块链网络从第一用户的虚拟资源中扣除虚拟资源扣除量。207. The blockchain network deducts the virtual resource deduction amount from the virtual resource of the first user.
具体的,基于步骤206中确定的虚拟资源扣除量,从第一用户的虚拟资源账户中扣除相应数量的虚拟资源。Specifically, based on the deduction amount of virtual resources determined in step 206, a corresponding amount of virtual resources is deducted from the virtual resource account of the first user.
在本发明的实施例中,通过执行步骤201~207,第一处理设备先通过区块链网络分配虚拟资源给第二处理设备,区块链网络在接收到第一用户交易的数字资产量时,通过虚拟资源对第一用户进行虚拟资源扣除,该方法可以应用到交税的场景中。基于该方案能够实现每次扣税时只需要从虚拟资源中进行扣税,不需要用户每次交税时都进行转账,从而有利于交税过程的简化。In the embodiment of the present invention, by executing steps 201-207, the first processing device first allocates virtual resources to the second processing device through the blockchain network, and when the blockchain network receives the amount of digital assets traded by the first user , the virtual resource deduction is performed on the first user through the virtual resource, and this method can be applied to the scene of tax payment. Based on this scheme, only the virtual resources need to be deducted each time the tax is deducted, and the user does not need to transfer money every time the tax is paid, which is beneficial to the simplification of the tax payment process.
请参见图3,是本发明另一种实施例提供的资源处理方法的流程示意图如图3所示,该资源处理方法可包括以下步骤301~314。其中:Please refer to FIG. 3 , which is a schematic flowchart of a resource processing method provided by another embodiment of the present invention. As shown in FIG. 3 , the resource processing method may include the following steps 301 - 314 . in:
301、第一处理设备判断是否获取到第二数字资产,所述第二数字资产为所述第一用户需为上一次分配的虚拟资源转移的数字资产。301. The first processing device judges whether a second digital asset is obtained, and the second digital asset is a digital asset that the first user needs to transfer for the last allocated virtual resource.
具体的,第一处理设备可以以一个月或一个季度等为周期,判断是否获取到第二数字资产。可选的,也可在每月的固定日期,判断是否获取到第二数字资产。例如:每月的1日。具体的,此处的数字资产为第一用户已使用虚拟资源但尚未支付的实际货币资产,如:已使用了10个虚拟资源,则应支付10元人民币。若判断结果为否,则生成提示信息,该提示信息用于提示第一用户转移第二数字资产,此处的第二数字资产为为第一用户已使用虚拟资源但尚未支付的实际货币资产。若判断结果为是则执行步骤302。Specifically, the first processing device may determine whether the second digital asset has been acquired in a period of one month or one quarter. Optionally, it is also possible to determine whether the second digital asset has been obtained on a fixed date every month. For example: the 1st of every month. Specifically, the digital asset here is the actual monetary asset that the first user has used virtual resources but has not yet paid for. For example, if 10 virtual resources have been used, RMB 10 should be paid. If the judgment result is no, a prompt message is generated, and the prompt message is used to prompt the first user to transfer the second digital asset, where the second digital asset is the actual monetary asset that the first user has used virtual resources but has not yet paid for. If the judgment result is yes, step 302 is executed.
302、第一处理设备确定需为第一用户分配的虚拟资源的数量。302. The first processing device determines the amount of virtual resources that need to be allocated to the first user.
作为一种可选的实施方式,第一处理设备确定需为第一用户分配的虚拟资源的数量的具体实施方式为:第一处理设备向区块链网络发送参数获取请求,该参数获取请求用于获取第一用户的目标参数,此处的目标参数包括第一用户在预设时间段内消耗虚拟资源的数量、第一用户未按时转移数字资产的次数及第一用户持有的剩余虚拟资源数量中的至少一种。区块链网络发送第一用户的目标参数至第一处理设备,以使第一处理设备根据第一用户的目标参数确定本次需为第一用户分配的虚拟资源的数量。As an optional implementation manner, the specific implementation manner in which the first processing device determines the number of virtual resources that need to be allocated to the first user is: the first processing device sends a parameter acquisition request to the blockchain network, and the parameter acquisition request uses To obtain the target parameters of the first user, the target parameters here include the number of virtual resources consumed by the first user within the preset time period, the number of times the first user failed to transfer digital assets on time, and the remaining virtual resources held by the first user at least one of the quantities. The blockchain network sends the target parameter of the first user to the first processing device, so that the first processing device determines the amount of virtual resources to be allocated to the first user this time according to the target parameter of the first user.
例如,当目标参数为在预设时间段内消耗虚拟资源的数量时,在预设时间段内消耗虚拟资源的数量越多,则本次给第一用户分配虚拟资源的数量越多,此处所述的在预设时间段内消耗虚拟资源的数量,可以将第一用户在两个月、一个季度或一年的虚拟资源平均消耗数量作为本次分配虚拟资源的数量。可选的,也可根据上述月平均值的百分比,还可以为上一个月虚拟资源的使用量。如:可以在一年的虚拟资源消耗量的月平均值的基础上增加20%,作为本次分配虚拟资源的数量。当目标参数为第一用户未按时转移数字资产的次数时,则在预设时间段内第一用户未按时转移数字资产的次数越多,则本次给第一用户分配虚拟资源的数量越少,衡量标准可以为一年内为按时转移数字资产的次数为5次(含5次)以内减少分配100个虚拟资源、10次以内(含10次)减少分配200个虚拟资源。当目标参数为第一用户持有的剩余虚拟资源数量时,则第一用户持有的剩余虚拟资源数量越多,则本次给第一用户分配虚拟资源的数量越少,可以将一年消耗量的月平均值与第一用户持有的剩余虚拟资源数量的差值,作为本此需要为第一用户分配虚拟资源的数量。For example, when the target parameter is the amount of virtual resources consumed within a preset time period, the more virtual resources are consumed within the preset time period, the more virtual resources are allocated to the first user this time, where The amount of virtual resources consumed within the preset time period may be the average amount of virtual resources consumed by the first user in two months, a quarter or a year as the amount of virtual resources allocated this time. Optionally, according to the above-mentioned percentage of the monthly average value, it may also be the usage of virtual resources in the previous month. For example, 20% may be added on the basis of the monthly average of virtual resource consumption in one year as the amount of virtual resources allocated this time. When the target parameter is the number of times the first user fails to transfer digital assets on time, the more times the first user fails to transfer digital assets on time within the preset time period, the less the number of virtual resources allocated to the first user this time , the measurement standard can be to reduce the allocation of 100 virtual resources within 5 times (including 5 times) and reduce the allocation of 200 virtual resources within 10 times (including 10 times) within a year. When the target parameter is the number of remaining virtual resources held by the first user, the more the number of remaining virtual resources held by the first user, the less the number of virtual resources allocated to the first user this time, which can consume one year The difference between the monthly average value of the amount and the remaining amount of virtual resources held by the first user is used as the amount of virtual resources that needs to be allocated to the first user.
通过执行本实施方式中的步骤301及302,可以先判断是否获取到第一用户应该为上一次分配的虚拟资源转移的数字资产,若是,才分配此处的虚拟资产,若否,则对第一用户进行提示,该步骤可以应用到交税场景中,基于该方案可以有效避免第一用户可能存在的偷税、漏税的行为。By executing steps 301 and 302 in this embodiment, it can be judged first whether the digital assets that should be transferred by the first user for the virtual resources allocated last time are obtained, and if so, the virtual assets here are allocated; A user prompts, and this step can be applied to the tax payment scenario. Based on this solution, the possible tax evasion and tax evasion behavior of the first user can be effectively avoided.
303、第一处理设备生成虚拟资源分配请求,虚拟资源分配请求包括第一用户的标识及虚拟资源的数量。此处生成虚拟资源分配请求,其具体的实现方式可参考前文步骤202,此处不再赘述。303. The first processing device generates a virtual resource allocation request, where the virtual resource allocation request includes the identifier of the first user and the quantity of virtual resources. A virtual resource allocation request is generated here, and its specific implementation may refer to step 202 above, which will not be repeated here.
304、第一处理设备发送虚拟资源分配请求至区块链网络。304. The first processing device sends a virtual resource allocation request to the blockchain network.
此处发送虚拟资源分配请求至区块链网络,其具体的实现方式可参考前文步骤203,此处不再赘述。Here, the virtual resource allocation request is sent to the blockchain network. For the specific implementation method, please refer to step 203 above, which will not be repeated here.
305、区块链网络根据虚拟资源分配请求为第一用户分配虚拟资源。305. The blockchain network allocates virtual resources to the first user according to the virtual resource allocation request.
此处根据虚拟资源分配请求为第一用户分配虚拟资源,其具体的实现方式可参考前文步骤204,此处不再赘述。Here, the virtual resource is allocated to the first user according to the virtual resource allocation request. For the specific implementation, please refer to step 204 above, which will not be repeated here.
306、第二处理设备发送第一用户交易的数字资产量。306. The second processing device sends the digital asset amount traded by the first user.
此处发送第一用户交易的数字资产量,其具体的实现方式可参考前文步骤205,此处不再赘述。The amount of digital assets traded by the first user is sent here. For the specific implementation method, please refer to step 205 above, which will not be repeated here.
307、区块链网络通过智能合约根据数字资产量确定虚拟资源扣除量。307. The blockchain network determines the deduction amount of virtual resources according to the amount of digital assets through smart contracts.
此处通过智能合约根据数字资产量确定虚拟资源扣除量,其具体的实现方式可参考前文步骤206,此处不再赘述。Here, the deduction amount of virtual resources is determined according to the amount of digital assets through smart contracts. For the specific implementation method, please refer to step 206 above, which will not be repeated here.
308、区块链网络从第一用户的虚拟资源中扣除虚拟资源扣除量。308. The blockchain network deducts the virtual resource deduction amount from the virtual resource of the first user.
此处从第一用户的虚拟资源中扣除虚拟资源扣除量,其具体的实现方式可参考前文步骤207,此处不再赘述。Here, the deduction amount of the virtual resource is deducted from the virtual resource of the first user. For the specific implementation method, please refer to step 207 above, which will not be repeated here.
本实施方式中的步骤302~308的有益效果可以参见上述201~206的有益效果部分,重复之处不再赘述。For the beneficial effects of steps 302 to 308 in this implementation manner, refer to the beneficial effects of steps 201 to 206 above, and repeated descriptions will not be repeated.
309、第一处理设备确定上一次为第一用户分配虚拟资源的时间至当前时间的时间间隔。309. The first processing device determines a time interval from the last time when virtual resources are allocated to the first user to the current time.
310、第一处理设备判断时间间隔是否达到预设时间间隔;310. The first processing device determines whether the time interval reaches a preset time interval;
具体的,此处的预设时间间隔为上一次为第一用户分配虚拟资源的时间至当前时间的间隔的预设值(如一个月、一个季度等)。若确定上一次为第一用户分配虚拟资源的时间至当前时间的时间间隔达到预设的时间间隔,则执行步骤311。Specifically, the preset time interval here is a preset value (such as one month, one quarter, etc.) If it is determined that the time interval from the last time the virtual resource is allocated to the first user to the current time reaches the preset time interval, step 311 is executed.
311、第一处理设备向所述区块链网络发送虚拟资源查询请求。311. The first processing device sends a virtual resource query request to the blockchain network.
作为一种可选的实施方式,第一处理设备在执行步骤311之后,还可对虚拟资源查询请求进行签名,得到第二签名。具体的,第一处理设备可发送虚拟资源查询请求和第二签名至区块链网络。相应地,区块链网络可接收该虚拟资源查询请求和第二签名。区块链网络在接收虚拟资源查询请求和第二签名之后,根据虚拟资源查询请求对第二签名进行验证。若验证通过,则根据虚拟资源查询请求查询第一用户已使用虚拟资源的数量。若验证失败则结束流程。As an optional implementation manner, after performing step 311, the first processing device may also sign the virtual resource query request to obtain the second signature. Specifically, the first processing device may send the virtual resource query request and the second signature to the blockchain network. Correspondingly, the blockchain network can receive the virtual resource query request and the second signature. After receiving the virtual resource query request and the second signature, the blockchain network verifies the second signature according to the virtual resource query request. If the verification is passed, query the number of virtual resources used by the first user according to the virtual resource query request. If the verification fails, the process ends.
可选的,第一处理设备可通过第一处理设备的私钥对虚拟资源查询请求进行加密,在将虚拟资源查询请求和第二签名发送至区块链网络之后,区块链网络可以用公钥进行解密。其详细的验证过程可参见步骤204中第一签名的验证方法。Optionally, the first processing device can encrypt the virtual resource query request with the private key of the first processing device, and after sending the virtual resource query request and the second signature to the block chain network, the block chain network can use the public key to decrypt. For the detailed verification process, please refer to the verification method of the first signature in step 204 .
312、区块链网络发送第一用户已使用的虚拟资源的数量。312. The blockchain network sends the number of virtual resources used by the first user.
具体的,此处的已使用的虚拟资源的数量为已使用但未转移数字资产的虚拟资源的数量。Specifically, the number of used virtual resources here refers to the number of virtual resources that have been used but have not transferred digital assets.
313、第一处理设备根据已使用的虚拟资源的数量确定第一用户需要转移的第一数字资产的数量。313. The first processing device determines the quantity of the first digital asset that the first user needs to transfer according to the quantity of used virtual resources.
具体的,第一处理设备在接收区块链网络发送的第一用户已使用的虚拟资源的数量之后,根据已使用的虚拟资源的数量确定第一用户需要转移的第一数字资产的数量。Specifically, after receiving the number of virtual resources used by the first user sent by the blockchain network, the first processing device determines the number of first digital assets that the first user needs to transfer according to the number of used virtual resources.
例如:区块链网络查询到第一用户已使用但未转移数字资产的虚拟资源的数量为2000,如果兑换算法1个虚拟资源对应1元人民币的数字资产,则2000个虚拟资源为2000元人民币,则确定第一用户需要转移的第一数字资产的数量为2000元人民币。For example: the number of virtual resources that have been used by the first user but have not transferred digital assets is 2000 in the blockchain network query, if the exchange algorithm 1 virtual resource corresponds to 1 yuan of digital assets, then 2000 virtual resources are 2000 yuan , it is determined that the amount of the first digital asset that the first user needs to transfer is RMB 2,000.
314、第一处理设备向所述第一用户获取第一数字资产。314. The first processing device acquires the first digital asset from the first user.
具体的,可以获取第一用户向税务局支付平台转移的第一数字资产。可选的,可以获取第一用户向第三方支付平台、银行平台、APP等支付平台转移第一数字资产时,获得的转移凭证。第一处理设备基于该转移凭证可以确定第一用户已为已使用的虚拟资源转移相应的数字资产。Specifically, the first digital asset transferred by the first user to the tax bureau payment platform can be obtained. Optionally, the transfer certificate obtained when the first user transfers the first digital asset to a third-party payment platform, bank platform, APP and other payment platforms can be obtained. Based on the transfer credential, the first processing device may determine that the first user has transferred corresponding digital assets for the used virtual resources.
通过执行本实施方式中的步骤309~314,第一处理设备可以在预设时间点先查询第一用户已使用的虚拟资源的数量,根据第一用户已使用的虚拟资源的数量确定第一用户需要转移的第一数字资产的数量,从而督促第一用户按时为已使用的虚拟资源的数量转移相应的数字资产。By executing steps 309 to 314 in this embodiment, the first processing device can first query the number of virtual resources used by the first user at a preset time point, and determine the number of virtual resources used by the first user according to the number of virtual resources used by the first user. The amount of the first digital asset that needs to be transferred, so as to urge the first user to transfer the corresponding digital asset for the amount of used virtual resources on time.
为了更好地理解本发明实施例,下面以企业交税场景为例,详细说明交税时的资源转移过程。In order to better understand the embodiments of the present invention, the resource transfer process during tax payment will be described in detail below by taking the tax payment scenario of an enterprise as an example.
税务局A在9月1日查询企业a是否为8月份分配并使用的2000个虚拟币支付了2000元人民币,当查询到企业a没有支付2000元时,则通过区块链网络发送提示信息给企业a,提示企业a为8月份分配的虚拟币支付人民币2000元。当查询到企业a已经为8月份使用的虚拟币支付人民币2000元,则继续查询7月、8月为企业a分配的虚拟资源的月平均值,查询得到月平均值为2500个虚拟币,则本月为企业a分配的虚拟币的基本数量为2500个,但税务局A在查询企业a一年内为按时转移数字资产的次数4次,则减少分配100个虚拟币,本次需要分配的虚拟币即为2400个,同时,还查询到企业a持有的剩余虚拟资源数量为400个,与2400个虚拟币差2000个,则最终确定税务局A本月需要为企业a分配的虚拟币的数量为2000个,通过区块链网络向企业a分配2000个虚拟币。企业a在贩卖商品时,区块链网络接收到企业a此次贩卖商品交易的金额为300元,按20%的税率征收,则企业a本次交易需要缴纳60元税款,换算成虚拟币为60个,则需要从企业a的虚拟币账户中扣除60个虚拟币,企业a预设的自动扣除虚拟币的额度为500个,所以本次可以从企业a的虚拟币账户中自动扣除60个虚拟币。税务局A在9月30日向区块链网络发送虚拟资源查询请求,用于查询企业a在9月已使用的虚拟币的数量为1900,则确定企业a在9月需要支付的人民币的金额为1900,向企业a索取1900元人民币,即企业a在9月30日需要向税务局A支付1900元人民币。On September 1, the tax bureau A inquired whether enterprise a had paid 2,000 yuan for the 2,000 virtual coins allocated and used in August. When it was found that enterprise a had not paid 2,000 yuan, it would send a reminder message to Enterprise a reminds enterprise a to pay RMB 2,000 for the virtual currency allocated in August. When it is found that enterprise a has paid RMB 2,000 for the virtual currency used in August, continue to query the monthly average value of virtual resources allocated to enterprise a in July and August, and the monthly average value of the query is 2,500 virtual currency, then The basic amount of virtual currency allocated to enterprise a this month is 2,500, but tax bureau A will reduce the allocation of 100 virtual currency after inquiring about the number of times that enterprise a has transferred digital assets on time within one year, and the virtual currency that needs to be allocated this time At the same time, it is also found that the remaining virtual resources held by enterprise a are 400, which is 2000 different from the 2400 virtual currency, and finally determine the amount of virtual currency that tax bureau A needs to allocate to enterprise a this month. The quantity is 2000, and 2000 virtual coins are distributed to enterprise a through the blockchain network. When enterprise a sells goods, the blockchain network receives the transaction amount of enterprise a’s commodity sales of 300 yuan, which is levied at a tax rate of 20%. Then enterprise a needs to pay 60 yuan tax for this transaction, which is converted into virtual currency If it is 60, it needs to deduct 60 virtual currency from the virtual currency account of enterprise a. The preset automatic deduction amount of virtual currency of enterprise a is 500, so this time, 60 virtual currency can be automatically deducted from the virtual currency account of enterprise a. virtual currency. The tax bureau A sends a virtual resource query request to the blockchain network on September 30 to check that the amount of virtual currency that enterprise a has used in September is 1900, so it is determined that the amount of RMB that enterprise a needs to pay in September is In 1900, ask enterprise a for 1900 yuan, that is, enterprise a needs to pay tax bureau A 1900 yuan on September 30.
请参见图4,是本发明另一种实施例提供的资源处理方法的流程示意图,如图4所述,该资源处理方法可包括以下步骤401~405。其中:Please refer to FIG. 4 , which is a schematic flowchart of a resource processing method provided by another embodiment of the present invention. As shown in FIG. 4 , the resource processing method may include the following steps 401-405. in:
401、第一处理设备确定第一用户已转移的第三数字资产的数量。401. The first processing device determines the quantity of the third digital asset that has been transferred by the first user.
具体的,第一用户可以在有需要的时候,如:本地账户已经没有虚拟资源,或本地的虚拟资源较少时,向第一处理设备转移第三数字资产,此处的第三数字资产为实际货币资产,该数字资产与虚拟资源的兑换方式,可参见步骤301中兑换方式,此处不再赘述。可选的,第一用户还可以发送请求信息,该请求信息可携带有第一用户转移的的第三数字资产量,此处的请求信息用于请求第一处理设备根据已转移的数字资产分配相应数量的虚拟资源,第一处理设备确定第一用户的请求信息,并根据第三数字资产量,基于虚拟资源与数字资产的换算关系,确定需要为第一用户分配的虚拟资源的数量,即执行步骤402。Specifically, the first user can transfer the third digital asset to the first processing device when necessary, such as when the local account has no virtual resources, or the local virtual resources are less, where the third digital asset is For the exchange method of actual currency assets, digital assets and virtual resources, please refer to the exchange method in step 301, and will not be repeated here. Optionally, the first user may also send request information, which may carry the amount of the third digital asset transferred by the first user, where the request information is used to request the first processing device to allocate For the corresponding number of virtual resources, the first processing device determines the request information of the first user, and according to the amount of the third digital asset, based on the conversion relationship between virtual resources and digital assets, determines the amount of virtual resources that need to be allocated to the first user, namely Execute step 402.
402、第一处理设备确定需为第一用户分配的虚拟资源的数量。402. The first processing device determines the amount of virtual resources that need to be allocated to the first user.
具体的,第一处理设备基于第一用户已转移的第三数字资产的数量,根据虚拟资源与数字资产的兑换比例,该数字资产与虚拟资源的兑换比例,可参见步骤301中兑换方式,此处不再赘述。确定需要为第一用户分配的虚拟资源的数量。Specifically, the first processing device is based on the quantity of the third digital asset that the first user has transferred, and according to the exchange ratio between virtual resources and digital assets, the exchange ratio between the digital assets and virtual resources can be referred to the exchange method in step 301, here I won't repeat them here. Determine the amount of virtual resources that need to be allocated to the first user.
403、第一处理设备生成虚拟资源分配请求。403. The first processing device generates a virtual resource allocation request.
此处生成虚拟资源分配请求,其具体的实现方式可参考前文步骤202,此处不再赘述。A virtual resource allocation request is generated here, and its specific implementation may refer to step 202 above, which will not be repeated here.
404、第一处理设备发送虚拟资源分配请求至区块链网络。404. The first processing device sends a virtual resource allocation request to the blockchain network.
此处发送虚拟资源分配请求至区块链网络,其具体的实现方式可参考前文步骤203,此处不再赘述。Here, the virtual resource allocation request is sent to the blockchain network. For the specific implementation method, please refer to step 203 above, which will not be repeated here.
405、区块链网络根据虚拟资源分配请求为第一用户分配虚拟资源。405. The blockchain network allocates virtual resources to the first user according to the virtual resource allocation request.
此处根据虚拟资源分配请求为第一用户分配虚拟资源,其具体的实现方式可参考前文步骤204,此处不再赘述。Here, the virtual resource is allocated to the first user according to the virtual resource allocation request. For the specific implementation, please refer to step 204 above, which will not be repeated here.
为了更好地理解本发明实施例,下面以企业交税场景为例,详细说明交税时的资源转移过程。In order to better understand the embodiments of the present invention, the resource transfer process during tax payment will be described in detail below by taking the tax payment scenario of an enterprise as an example.
税务局A接收到企业b通过区块链网络转移的2000元人民币的数字资产,根据人民币与虚拟币1:1的兑换比例,2000元人民币可以兑换为2000个虚拟币,因此,税务局A确定企业b需要的虚拟币的数量为2000个,税务局A通过区块链网络向企业b的账户分配2000个虚拟币。Tax Bureau A receives digital assets of RMB 2,000 transferred by Enterprise B through the blockchain network. According to the 1:1 exchange ratio between RMB and virtual currency, RMB 2,000 can be converted into 2,000 virtual currencies. Therefore, Tax Bureau A determines The number of virtual currency required by enterprise b is 2000, and tax bureau A allocates 2000 virtual currency to the account of enterprise b through the blockchain network.
在本发明的实施例中,第一用户可以先转移数字资产至第一处理设备,第一处理设备根据第一用户已转移的数字资产量确定需要为第一用户分配的虚拟资源的数量,通过执行本发明实施例的步骤401~405,可以使得第一用户自主选择为个人账户补充虚拟资源的时间,有效避免了因个人账户虚拟资源亏空而影响智能合约执行的情况。In the embodiment of the present invention, the first user may first transfer digital assets to the first processing device, and the first processing device determines the amount of virtual resources that need to be allocated to the first user according to the amount of digital assets transferred by the first user, through Executing steps 401 to 405 of the embodiment of the present invention can enable the first user to independently choose the time to replenish virtual resources for the personal account, effectively avoiding the situation that the execution of the smart contract is affected by the shortage of virtual resources in the personal account.
基于上述方法实施例的描述,本发明实施例还提出了一种资源处理装置。该资源处理装置可运行于区块链中,该资源处理装置可以是运行于第一处理设备中的计算机程序(包括程序代码);请参见图5所示,该资源处理装置可以运行如下单元:Based on the description of the foregoing method embodiments, the embodiments of the present invention further propose a resource processing device. The resource processing device can run in the block chain, and the resource processing device can be a computer program (including program code) running in the first processing device; please refer to Figure 5, the resource processing device can run the following units:
处理单元501,用于确定需为第一用户分配的虚拟资源的数量;a processing unit 501, configured to determine the amount of virtual resources to be allocated to the first user;
生成单元502,用于生成虚拟资源分配请求,所述虚拟资源分配请求包括所述第一用户的标识及所述虚拟资源的数量;A generating unit 502, configured to generate a virtual resource allocation request, where the virtual resource allocation request includes the identifier of the first user and the quantity of the virtual resource;
所述处理单元501,用于发送所述虚拟资源分配请求至区块链网络,以使所述区块链网络根据所述虚拟资源分配请求为所述第一用户分配虚拟资源,并在接收到所述第一用户交易的数字资产量时,通过智能合约根据所述数字资产量确定虚拟资源扣除量,并从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量。The processing unit 501 is configured to send the virtual resource allocation request to the block chain network, so that the block chain network allocates virtual resources for the first user according to the virtual resource allocation request, and upon receiving When the amount of digital assets traded by the first user, the virtual resource deduction amount is determined according to the digital asset amount through the smart contract, and the virtual resource deduction amount is deducted from the first user's virtual resources.
在一种实施方式中,在生成虚拟资源分配请求之后,处理单元501,可用于对所述虚拟资源分配请求进行签名,得到第一签名;In one embodiment, after the virtual resource allocation request is generated, the processing unit 501 may be configured to sign the virtual resource allocation request to obtain a first signature;
所述发送所述虚拟资源分配请求至区块链网络,包括:The sending the virtual resource allocation request to the block chain network includes:
将所述第一签名和所述虚拟资源分配请求发送至区块链网络,以使所述区块链网络根据所述虚拟资源分配请求对所述第一签名进行验证,并在验证通过之后,根据所述虚拟资源分配请求为所述第一用户分配虚拟资源。Sending the first signature and the virtual resource allocation request to a block chain network, so that the block chain network verifies the first signature according to the virtual resource allocation request, and after the verification is passed, Allocating virtual resources to the first user according to the virtual resource allocation request.
再一种实施方式中,在发送所述虚拟资源分配请求至区块链网络之后,处理单元501,还可用于接收所述区块链网络发送的所述第一用户已使用的虚拟资源的数量;根据所述已使用的虚拟资源的数量确定所述第一用户需要转移的第一数字资产的数量;In yet another implementation, after sending the virtual resource allocation request to the blockchain network, the processing unit 501 may also be configured to receive the number of virtual resources used by the first user sent by the blockchain network ; Determine the quantity of the first digital asset that the first user needs to transfer according to the quantity of the used virtual resources;
向所述第一用户获取所述第一数字资产。The first digital asset is acquired from the first user.
再一种实施方式中,在接收所述区块链网络发送的所述第一用户已使用的虚拟资源的数量之前,处理单元501,还可用于确定上一次为所述第一用户分配虚拟资源的时间至当前时间的时间间隔;In yet another implementation, before receiving the number of virtual resources used by the first user sent by the blockchain network, the processing unit 501 may also be configured to determine the last allocation of virtual resources to the first user The time interval from the time to the current time;
判断所述时间间隔是否达到预设时间间隔;judging whether the time interval reaches a preset time interval;
若是,则向所述区块链网络发送虚拟资源查询请求,所述虚拟资源查询请求用于所述区块链网络查询并反馈所述第一用户已使用的虚拟资源的数量。再一种实施方式中,处理单元501,还可用于向所述区块链网络发送参数获取请求,所述参数获取请求用于获取所述第一用户的目标参数,所述目标参数包括所述第一用户在预设时间段内消耗虚拟资源的数量、所述第一用户未按时转移数字资产的次数及所述第一用户持有的剩余虚拟资源数量中的至少一种;If yes, send a virtual resource query request to the blockchain network, where the virtual resource query request is used to query the blockchain network and feed back the number of virtual resources used by the first user. In yet another implementation, the processing unit 501 may also be configured to send a parameter acquisition request to the blockchain network, where the parameter acquisition request is used to acquire the target parameter of the first user, and the target parameter includes the At least one of the number of virtual resources consumed by the first user within a preset time period, the number of times the first user fails to transfer digital assets on time, and the remaining number of virtual resources held by the first user;
接收所述区块链网络发送的所述第一用户的目标参数;receiving the target parameter of the first user sent by the blockchain network;
根据所述第一用户的目标参数确定本次需为所述第一用户分配的虚拟资源的数量。The quantity of virtual resources to be allocated to the first user this time is determined according to the target parameter of the first user.
再一种实施方式中,处理单元501。还可用于判断是否获取到第二数字资产,所述第二数字资产为所述第一用户需为上一次分配的虚拟资源转移的数字资产;In yet another implementation manner, the processing unit 501. It can also be used to judge whether the second digital asset is obtained, and the second digital asset is the digital asset that the first user needs to transfer for the last allocated virtual resource;
若是,则执行所述确定需为第一用户分配的虚拟资源的数量的步骤。If yes, execute the step of determining the quantity of virtual resources to be allocated to the first user.
再一种实施方式中,处理单元501,还可用于若判断结果为否,则生成提示信息,所述提示信息用于提示所述第一用户为上一次分配的虚拟资源转移数字资产;In yet another embodiment, the processing unit 501 may also be configured to generate prompt information if the judgment result is no, and the prompt information is used to prompt the first user to transfer digital assets for the last allocated virtual resources;
向所述第一用户对应的设备发送所述提示信息。Sending the prompt information to the device corresponding to the first user.
再一种实施方式中,在确定需为第一用户分配的虚拟资源的数量之前,处理单元501,还可用于确定所述第一用户已转移的第三数字资产的数量;In yet another implementation, before determining the amount of virtual resources to be allocated to the first user, the processing unit 501 may also be configured to determine the amount of the third digital asset that the first user has transferred;
确定需为所述第一用户分配的虚拟资源的数量,包括:Determining the quantity of virtual resources to be allocated to the first user, including:
根据所述已转移的第三数字资产的数量,确定第一用户需要的虚拟资源的数量。According to the quantity of the transferred third digital assets, the quantity of virtual resources required by the first user is determined.
根据本发明的一个实施例,图2、图3及图4所示的资源处理方法所涉及的部分步骤可由资源处理装置中的处理单元来执行。例如,图2中所示的步骤201和203可由处理单元501执行;又如,图2所示的步骤202可由第一生成单元502执行。据本发明的另一个实施例,资源处理装置中的各个单元可以分别或全部合并为一个或若干个另外的单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本发明的实施例的技术效果的实现。According to an embodiment of the present invention, some steps involved in the resource processing methods shown in FIG. 2 , FIG. 3 and FIG. 4 may be executed by a processing unit in a resource processing device. For example, steps 201 and 203 shown in FIG. 2 may be executed by the processing unit 501 ; as another example, step 202 shown in FIG. 2 may be executed by the first generating unit 502 . According to another embodiment of the present invention, each unit in the resource processing device can be separately or all combined into one or several other units to form, or one (some) units can be further divided into functionally more It is composed of multiple small units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention.
基于上述方法实施例的描述,本发明实施例还提出了一种资源处理装置。该资源处理装置可运行于区块链中,该资源处理装置可以是运行于第一处理设备中的计算机程序(包括程序代码);请参见图6所示,该资源处理装置可以运行如下单元:Based on the description of the foregoing method embodiments, the embodiments of the present invention further propose a resource processing device. The resource processing device can run in the block chain, and the resource processing device can be a computer program (including program code) running in the first processing device; please refer to Figure 6, the resource processing device can run the following units:
接收单元601,用于接收虚拟资源分配请求,所述虚拟资源分配请求包括所述第一用户的标识及所述虚拟资源的数量;A receiving unit 601, configured to receive a virtual resource allocation request, where the virtual resource allocation request includes the identifier of the first user and the quantity of the virtual resource;
处理单元602,用于根据所述虚拟资源分配请求为所述第一用户分配虚拟资源;a processing unit 602, configured to allocate virtual resources to the first user according to the virtual resource allocation request;
所述接收单元601,用于接收所述第一用户交易的数字资产量;The receiving unit 601 is configured to receive the amount of digital assets traded by the first user;
所述处理单元602,用于通过智能合约根据所述数字资产量确定虚拟资源扣除量,并从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量。The processing unit 602 is configured to determine a deduction amount of virtual resources according to the amount of digital assets through a smart contract, and deduct the deduction amount of virtual resources from the virtual resources of the first user.
在一种实施方式中,接收单元601,还可用于接收所述第一用户交易的数字资产量和虚拟资源扣除范围;In one embodiment, the receiving unit 601 is further configured to receive the amount of digital assets traded by the first user and the deduction range of virtual resources;
所述处理单元602,还可用于确定所述虚拟资源扣除量是否处于所述虚拟资源扣除范围;The processing unit 602 is further configured to determine whether the virtual resource deduction is within the virtual resource deduction range;
若是,则执行所述从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量的步骤。If yes, execute the step of deducting the virtual resource deduction amount from the virtual resource of the first user.
需要说明的是,图6对应的实施例中未提及的内容以及各个单元执行步骤的具体实现方式可参见图2、图3及图4中所示实施例以及前述内容,这里不再赘述。It should be noted that for the content not mentioned in the embodiment corresponding to FIG. 6 and the specific implementation manner of the execution steps of each unit, refer to the embodiment shown in FIG. 2 , FIG. 3 and FIG. 4 and the foregoing content, and details are not repeated here.
请参见图7,是本发明实施例提供的一种资源处理设备的结构示意图,该资源处理设备包括处理器701、存储器702以及通信接口703,处理器701、存储器702以及通信接口703通过至少一条通信总线连接,处理器701被配置为支持资源处理设备执行图2、图3和图4方法中第一处理设备相应的功能。Please refer to FIG. 7, which is a schematic structural diagram of a resource processing device provided by an embodiment of the present invention. The resource processing device includes a processor 701, a memory 702, and a communication interface 703. The processor 701, the memory 702, and the communication interface 703 pass at least one The communication bus is connected, and the processor 701 is configured to support the resource processing device to execute the corresponding functions of the first processing device in the methods in FIG. 2 , FIG. 3 and FIG. 4 .
存储器702用于存放有适于被处理器加载并执行的至少一条指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。The memory 702 is used to store at least one instruction suitable for being loaded and executed by the processor, and these instructions may be one or more computer programs (including program codes).
通信接口703用于接收数据和用于发送数据。例如,通信接口703用于发送虚拟资源分配请求等。The communication interface 703 is used for receiving data and for sending data. For example, the communication interface 703 is used to send virtual resource allocation requests and the like.
在本发明实施例中,该处理器701可以调用存储器702中存储的程序代码以执行以下操作:In the embodiment of the present invention, the processor 701 can call the program code stored in the memory 702 to perform the following operations:
确定需为第一用户分配的虚拟资源的数量;determining the quantity of virtual resources to be allocated to the first user;
生成虚拟资源分配请求,所述虚拟资源分配请求包括所述第一用户的标识及所述虚拟资源的数量;generating a virtual resource allocation request, the virtual resource allocation request including the identifier of the first user and the quantity of the virtual resource;
通过通信接口703发送所述虚拟资源分配请求至区块链网络。Send the virtual resource allocation request to the block chain network through the communication interface 703.
作为一种可选的实施方式,所述生成虚拟资源分配请求之后,该处理器701还可以调用存储器702中存储的程序代码以执行以下操作:As an optional implementation manner, after the virtual resource allocation request is generated, the processor 701 may also call the program code stored in the memory 702 to perform the following operations:
对所述虚拟资源分配请求进行签名,得到第一签名;Signing the virtual resource allocation request to obtain a first signature;
通过通信接口703将所述第一签名和所述虚拟资源分配请求发送至区块链网络。Send the first signature and the virtual resource allocation request to a block chain network through the communication interface 703 .
作为一种可选的实施方式,该处理器701通过通信接口703发送所述虚拟资源分配请求至区块链网络之后,该处理器701还可以调用存储器702中存储的程序代码以执行以下操作:As an optional implementation, after the processor 701 sends the virtual resource allocation request to the blockchain network through the communication interface 703, the processor 701 can also call the program code stored in the memory 702 to perform the following operations:
通过通信接口703接收所述区块链网络发送的所述第一用户已使用的虚拟资源的数量;receiving the number of virtual resources used by the first user sent by the blockchain network through the communication interface 703;
根据所述已使用的虚拟资源的数量确定所述第一用户需要转移的第一数字资产的数量;determining the quantity of the first digital asset that the first user needs to transfer according to the quantity of the used virtual resources;
通过通信接口703向所述第一用户获取所述第一数字资产。The first digital asset is acquired from the first user through the communication interface 703 .
作为一种可选的实施方式,所述接收所述区块链网络发送的所述第一用户已使用的虚拟资源的数量之前,该处理器701还可以调用存储器702中存储的程序代码以执行以下操作:As an optional implementation, before receiving the number of virtual resources used by the first user sent by the blockchain network, the processor 701 may also call the program code stored in the memory 702 to execute Do the following:
确定上一次为所述第一用户分配虚拟资源的时间至当前时间的时间间隔;determining the time interval from the last time the virtual resources were allocated to the first user to the current time;
判断所述时间间隔是否达到预设时间间隔;judging whether the time interval reaches a preset time interval;
若是,则通过通信接口703向所述区块链网络发送虚拟资源查询请求,所述虚拟资源查询请求用于所述区块链网络查询并反馈所述第一用户已使用的虚拟资源的数量。If so, send a virtual resource query request to the block chain network through the communication interface 703, the virtual resource query request is used for the block chain network query and feedback the number of virtual resources used by the first user.
作为一种可选的实施方式,该处理器701确定需为第一用户分配的虚拟资源的数量的具体实施方式为:As an optional implementation manner, the specific implementation manner for the processor 701 to determine the quantity of virtual resources to be allocated to the first user is as follows:
通过通信接口703向所述区块链网络发送参数获取请求;Send a parameter acquisition request to the block chain network through the communication interface 703;
通过通信接口703接收所述区块链网络发送的所述第一用户的目标参数;receiving the target parameter of the first user sent by the block chain network through the communication interface 703;
根据所述第一用户的目标参数确定本次需为所述第一用户分配的虚拟资源的数量。The quantity of virtual resources to be allocated to the first user this time is determined according to the target parameter of the first user.
作为一种可选的实施方式,该处理器701还可以调用存储器702中存储的程序代码以执行以下操作:As an optional implementation manner, the processor 701 may also call the program code stored in the memory 702 to perform the following operations:
判断是否获取到第二数字资产,所述第二数字资产为所述第一用户需为上一次分配的虚拟资源转移的数字资产;Judging whether the second digital asset has been obtained, the second digital asset is the digital asset that the first user needs to transfer for the last allocated virtual resource;
若是,则执行所述确定需为第一用户分配的虚拟资源的数量的步骤。If yes, execute the step of determining the quantity of virtual resources to be allocated to the first user.
作为一种可选的实施方式,该处理器701还可以调用存储器702中存储的程序代码以执行以下操作:As an optional implementation manner, the processor 701 may also call the program code stored in the memory 702 to perform the following operations:
若未获取到第二数字资产,则生成提示信息,所述提示信息用于提示所述第一用户转移所述第二数字资产;If the second digital asset is not obtained, generating prompt information, the prompt information is used to prompt the first user to transfer the second digital asset;
通过通信接口703向所述第一用户对应的设备发送所述提示信息。Send the prompt information to the device corresponding to the first user through the communication interface 703 .
作为一种可选的实施方式,该处理器701还可以调用存储器702中存储的程序代码以执行以下操作:As an optional implementation manner, the processor 701 may also call the program code stored in the memory 702 to perform the following operations:
确定所述第一用户已转移的第三数字资产的数量;determining the amount of the third digital asset that the first user has transferred;
处理器701确定需为所述第一用户分配的虚拟资源的数量,包括:The processor 701 determines the quantity of virtual resources to be allocated to the first user, including:
根据所述已转移的第三数字资产的数量,确定第一用户需要的虚拟资源的数量。According to the quantity of the transferred third digital assets, the quantity of virtual resources required by the first user is determined.
进一步地,处理器701还可以与通信接口703相配合,执行图2、图3及图4中所示实施例中对应的操作,具体可参见方法实施例中的描述,在此不再赘述。Further, the processor 701 can also cooperate with the communication interface 703 to execute the corresponding operations in the embodiments shown in FIG. 2 , FIG. 3 and FIG. 4 . For details, refer to the description in the method embodiments, which will not be repeated here.
请参见图7,是本发明实施例提供的一种资源处理设备的结构示意图,该资源处理设备包括处理器701、存储器702以及通信接口703,处理器701、存储器702以及通信接口703通过至少一条通信总线连接,处理器701被配置为支持资源处理设备执行图2、图3和图4方法中区块链网络中的区块链节点相应的功能。Please refer to FIG. 7, which is a schematic structural diagram of a resource processing device provided by an embodiment of the present invention. The resource processing device includes a processor 701, a memory 702, and a communication interface 703. The processor 701, the memory 702, and the communication interface 703 pass at least one The communication bus is connected, and the processor 701 is configured to support the resource processing device to execute the corresponding functions of the blockchain nodes in the blockchain network in the methods shown in FIG. 2 , FIG. 3 and FIG. 4 .
存储器702用于存放有适于被处理器加载并执行的至少一条指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。The memory 702 is used to store at least one instruction suitable for being loaded and executed by the processor, and these instructions may be one or more computer programs (including program codes).
通信接口703用于接收数据和用于发送数据。The communication interface 703 is used for receiving data and for sending data.
在本发明实施例中,该处理器701可以调用存储器702中存储的程序代码以执行以下操作:In the embodiment of the present invention, the processor 701 can call the program code stored in the memory 702 to perform the following operations:
通过通信接口703接收虚拟资源分配请求,所述虚拟资源分配请求包括所述第一用户的标识及所述虚拟资源的数量;receiving a virtual resource allocation request through the communication interface 703, where the virtual resource allocation request includes the identifier of the first user and the quantity of the virtual resource;
根据所述虚拟资源分配请求为所述第一用户分配虚拟资源;allocating virtual resources to the first user according to the virtual resource allocation request;
通过通信接口703接收所述第一用户交易的数字资产量;receiving the amount of digital assets traded by the first user through the communication interface 703;
通过智能合约根据所述数字资产量确定虚拟资源扣除量,并从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量。The virtual resource deduction amount is determined according to the amount of digital assets through the smart contract, and the virtual resource deduction amount is deducted from the virtual resources of the first user.
作为一种可选的实施方式,所述接收所述第一用户交易的数字资产量,包括:通过通信接口703接收所述第一用户交易的数字资产量和虚拟资源扣除范围;As an optional implementation manner, the receiving the amount of digital assets traded by the first user includes: receiving the amount of digital assets traded by the first user and the virtual resource deduction range through the communication interface 703;
该处理器701可以调用存储器702中存储的程序代码以执行以下操作:The processor 701 can call the program code stored in the memory 702 to perform the following operations:
确定所述虚拟资源扣除量是否处于所述虚拟资源扣除范围;determining whether the deduction amount of the virtual resource is within the deduction range of the virtual resource;
若是,则执行所述从所述第一用户的虚拟资源中扣除所述虚拟资源扣除量的步骤。If yes, execute the step of deducting the virtual resource deduction amount from the virtual resource of the first user.
本发明实施例还提供了一种计算机存储介质(Memory),可以用于存储图2、图3及图4中所示实施例中第一处理设备或第二处理设备或区块链节点所用的计算机软件指令,在该存储空间中还存放了适于被处理器加载并执行的至少一条指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。The embodiment of the present invention also provides a computer storage medium (Memory), which can be used to store the data used by the first processing device or the second processing device or the block chain node in the embodiments shown in Fig. 2, Fig. 3 and Fig. 4 Computer software instructions, at least one instruction suitable for being loaded and executed by a processor is also stored in the storage space, and these instructions may be one or more computer programs (including program codes).
上述计算机可读存储介质包括但不限于快闪存储器、硬盘、固态硬盘。The above-mentioned computer-readable storage medium includes, but is not limited to, flash memory, hard disk, and solid-state hard disk.
本领域普通技术人员可以意识到,结合本申请中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本发明实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者通过计算机可读存储介质进行传输。计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention are produced in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted over computer-readable storage media. Computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer , server or data center for transmission. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (Solid State Disk, SSD)) and the like.
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present invention, and should cover all Within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910910260.5ACN110599323B (en) | 2019-09-24 | 2019-09-24 | Resource processing method and processing equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910910260.5ACN110599323B (en) | 2019-09-24 | 2019-09-24 | Resource processing method and processing equipment |
| Publication Number | Publication Date |
|---|---|
| CN110599323Atrue CN110599323A (en) | 2019-12-20 |
| CN110599323B CN110599323B (en) | 2024-02-20 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910910260.5AActiveCN110599323B (en) | 2019-09-24 | 2019-09-24 | Resource processing method and processing equipment |
| Country | Link |
|---|---|
| CN (1) | CN110599323B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111553672A (en)* | 2020-04-29 | 2020-08-18 | 腾讯科技(深圳)有限公司 | A data processing method, device, electronic device and storage medium |
| CN111553671A (en)* | 2020-04-29 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Transaction method, electronic device and storage medium |
| CN111612520A (en)* | 2020-04-17 | 2020-09-01 | 五八有限公司 | Resource processing method, device, server and storage medium |
| CN111934927A (en)* | 2020-08-03 | 2020-11-13 | 南通大学 | Local area network gateway bandwidth resource allocation management method based on virtual currency |
| CN112214312A (en)* | 2020-09-17 | 2021-01-12 | 深圳大学 | Resource allocation system, method, terminal and storage medium |
| CN112598382A (en)* | 2020-12-23 | 2021-04-02 | 深圳市富途网络科技有限公司 | Business resource allocation method, device, electronic equipment and storage medium |
| CN112686556A (en)* | 2021-01-04 | 2021-04-20 | 阳光电源股份有限公司 | Green virtual resource management method and related device |
| CN112836971A (en)* | 2021-02-04 | 2021-05-25 | 北京明略昭辉科技有限公司 | Method and device for determining quota resource, electronic device and storage medium |
| CN112015823B (en)* | 2020-10-20 | 2021-05-28 | 支付宝(杭州)信息技术有限公司 | Method and device for deleting blockchain data |
| CN113298652A (en)* | 2021-05-27 | 2021-08-24 | 李政德 | Virtual resource data processing method and device based on block chain |
| CN113344610A (en)* | 2021-05-18 | 2021-09-03 | 网易(杭州)网络有限公司 | Block chain-based virtual object allocation method, device and readable storage medium |
| CN113708945A (en)* | 2020-05-20 | 2021-11-26 | 中国移动通信集团浙江有限公司 | Resource allocation method and device based on slice packet network and computing equipment |
| CN119515459A (en)* | 2024-10-24 | 2025-02-25 | 中国建设银行股份有限公司 | Virtual resource management method, device, equipment, medium and program product |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106682884A (en)* | 2017-01-05 | 2017-05-17 | 天津米游科技有限公司 | Computing power transaction system and method based on blockchain |
| CN108053198A (en)* | 2017-12-28 | 2018-05-18 | 广东蜂助手网络技术股份有限公司 | A kind of Digital Media transaction system based on block chain technology |
| CN108074081A (en)* | 2017-12-08 | 2018-05-25 | 上海策赢网络科技有限公司 | The transfer method and device of a kind of virtual resource |
| CN108960822A (en)* | 2018-06-13 | 2018-12-07 | 阿里巴巴集团控股有限公司 | A blockchain-based exchange method and device for available resource quotas |
| CN109345259A (en)* | 2018-09-29 | 2019-02-15 | 腾讯科技(深圳)有限公司 | Virtual resource transfer method, device, medium and electronic equipment based on block chain |
| CN109559228A (en)* | 2018-11-29 | 2019-04-02 | 腾讯科技(深圳)有限公司 | Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing |
| CN110163483A (en)* | 2019-04-22 | 2019-08-23 | 阿里巴巴集团控股有限公司 | Virtual resource allocation method and apparatus based on block chain |
| CN110175903A (en)* | 2019-04-12 | 2019-08-27 | 湖南大学 | A kind of quotient's ticket financing method and device |
| CN110221919A (en)* | 2019-05-31 | 2019-09-10 | 阿里巴巴集团控股有限公司 | Virtual resource allocation method and apparatus based on block chain |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106682884A (en)* | 2017-01-05 | 2017-05-17 | 天津米游科技有限公司 | Computing power transaction system and method based on blockchain |
| CN108074081A (en)* | 2017-12-08 | 2018-05-25 | 上海策赢网络科技有限公司 | The transfer method and device of a kind of virtual resource |
| CN108053198A (en)* | 2017-12-28 | 2018-05-18 | 广东蜂助手网络技术股份有限公司 | A kind of Digital Media transaction system based on block chain technology |
| CN108960822A (en)* | 2018-06-13 | 2018-12-07 | 阿里巴巴集团控股有限公司 | A blockchain-based exchange method and device for available resource quotas |
| CN109345259A (en)* | 2018-09-29 | 2019-02-15 | 腾讯科技(深圳)有限公司 | Virtual resource transfer method, device, medium and electronic equipment based on block chain |
| CN109559228A (en)* | 2018-11-29 | 2019-04-02 | 腾讯科技(深圳)有限公司 | Resource transfers method, apparatus, computer equipment and readable storage medium storing program for executing |
| CN110175903A (en)* | 2019-04-12 | 2019-08-27 | 湖南大学 | A kind of quotient's ticket financing method and device |
| CN110163483A (en)* | 2019-04-22 | 2019-08-23 | 阿里巴巴集团控股有限公司 | Virtual resource allocation method and apparatus based on block chain |
| CN110221919A (en)* | 2019-05-31 | 2019-09-10 | 阿里巴巴集团控股有限公司 | Virtual resource allocation method and apparatus based on block chain |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111612520A (en)* | 2020-04-17 | 2020-09-01 | 五八有限公司 | Resource processing method, device, server and storage medium |
| CN111553671A (en)* | 2020-04-29 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Transaction method, electronic device and storage medium |
| CN111553672A (en)* | 2020-04-29 | 2020-08-18 | 腾讯科技(深圳)有限公司 | A data processing method, device, electronic device and storage medium |
| CN113708945B (en)* | 2020-05-20 | 2023-04-28 | 中国移动通信集团浙江有限公司 | Resource allocation method and device based on slice packet network and computing equipment |
| CN113708945A (en)* | 2020-05-20 | 2021-11-26 | 中国移动通信集团浙江有限公司 | Resource allocation method and device based on slice packet network and computing equipment |
| CN111934927A (en)* | 2020-08-03 | 2020-11-13 | 南通大学 | Local area network gateway bandwidth resource allocation management method based on virtual currency |
| CN112214312A (en)* | 2020-09-17 | 2021-01-12 | 深圳大学 | Resource allocation system, method, terminal and storage medium |
| CN112214312B (en)* | 2020-09-17 | 2024-03-26 | 深圳大学 | Resource allocation system, method, terminal and storage medium |
| CN113570459A (en)* | 2020-10-20 | 2021-10-29 | 支付宝(杭州)信息技术有限公司 | Block chain data deleting method and device |
| CN112015823B (en)* | 2020-10-20 | 2021-05-28 | 支付宝(杭州)信息技术有限公司 | Method and device for deleting blockchain data |
| CN112598382B (en)* | 2020-12-23 | 2024-01-23 | 深圳市富途网络科技有限公司 | Service resource allocation method, device, electronic equipment and storage medium |
| CN112598382A (en)* | 2020-12-23 | 2021-04-02 | 深圳市富途网络科技有限公司 | Business resource allocation method, device, electronic equipment and storage medium |
| CN112686556A (en)* | 2021-01-04 | 2021-04-20 | 阳光电源股份有限公司 | Green virtual resource management method and related device |
| CN112686556B (en)* | 2021-01-04 | 2025-03-28 | 合肥零碳技术有限公司 | Green virtual resource management method and related device |
| CN112836971A (en)* | 2021-02-04 | 2021-05-25 | 北京明略昭辉科技有限公司 | Method and device for determining quota resource, electronic device and storage medium |
| CN113344610A (en)* | 2021-05-18 | 2021-09-03 | 网易(杭州)网络有限公司 | Block chain-based virtual object allocation method, device and readable storage medium |
| CN113344610B (en)* | 2021-05-18 | 2023-08-08 | 网易(杭州)网络有限公司 | Block chain-based virtual object allocation method, device and readable storage medium |
| CN113298652A (en)* | 2021-05-27 | 2021-08-24 | 李政德 | Virtual resource data processing method and device based on block chain |
| CN113298652B (en)* | 2021-05-27 | 2025-01-14 | 李政德 | A virtual resource data processing method and device based on blockchain |
| CN119515459A (en)* | 2024-10-24 | 2025-02-25 | 中国建设银行股份有限公司 | Virtual resource management method, device, equipment, medium and program product |
| Publication number | Publication date |
|---|---|
| CN110599323B (en) | 2024-02-20 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110599323A (en) | Resource processing method and processing equipment | |
| US11150271B2 (en) | Method or system for management of a device for energy consumption by applying blockchain protocol | |
| TWI640937B (en) | Online payment method and equipment | |
| CN109961365B (en) | Account receiving record processing method and system based on block chain intelligent contract | |
| TW202036434A (en) | Blockchain-based transfer method and system, computing device and storage medium | |
| CN110706110A (en) | Data processing method, device, device and storage medium based on exchange platform | |
| CN106886847A (en) | A kind of method for processing resource and device | |
| CN110597919B (en) | Block chain-based data management method, device, equipment and storage medium | |
| CN111738725A (en) | Method, device and electronic equipment for verification of authenticity of cross-border resource transfer | |
| CN111967994B (en) | A method and device for creating a smart contract | |
| US20180152429A1 (en) | Systems and methods for publicly verifiable authorization | |
| CN110659993A (en) | Resource management method and device based on block chain network | |
| CN111681092B (en) | Resource scheduling method, server, electronic equipment and storage medium | |
| CN116228381A (en) | Payment payment method, device, computer equipment and readable storage medium | |
| JPWO2020162515A1 (en) | Control methods, servers, and programs | |
| WO2025162159A1 (en) | Reconciliation method and system, and related device | |
| CN111401873B (en) | Task creation method and device, storage medium and electronic equipment | |
| CN116911845A (en) | Method, device, equipment and readable storage medium for computing power network transaction | |
| CN103914512A (en) | Method and system for managing data services | |
| TWM617012U (en) | Card prompting system | |
| US20190213574A1 (en) | Prepaid multinational program | |
| JP5403664B2 (en) | Virtual money management apparatus, virtual money management method, and management program | |
| CN118536993A (en) | Asset transaction method, device, medium and electronic equipment | |
| CN114638489A (en) | Resource management method and device | |
| CA2993254C (en) | Money management server, and data processing method and system for organising issuing of certificate |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TG01 | Patent term adjustment | ||
| TG01 | Patent term adjustment |