Method and device for processing digital resources in blockchain

By binding digital resources and circulation resources in the blockchain and deducting circulation resources during transfer, the problem of malicious hype of digital resources is solved and transaction efficiency is improved.

CN114581232BActive Publication Date: 2025-08-12ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210189135.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2025-08-12
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In the prior art, the uniqueness and limiting nature of digital resources lead to their prices being easily maliciously hyped, lacking effective means of suppression, and affecting transaction efficiency.

Method used

Bind digital resources and circulation resources in the blockchain. By deducting a certain amount of circulation resources during transfer, the bound amount of circulation resources will no longer be increased, reducing the possibility of malicious speculation.

Benefits of technology

It effectively reduces the possibility that digital resources are maliciously hyped and improves transaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114581232B_ABST
    Figure CN114581232B_ABST
Patent Text Reader

Abstract

This specification provides a method and apparatus for processing digital resources in a blockchain, wherein the blockchain stores circulating resources corresponding to the digital resources; the method is executed by a node of the blockchain, and includes: in response to receiving a first transaction for transferring the digital resource, determining the remaining amount of circulating resources corresponding to the current digital resource; if the remaining amount meets a preset condition, changing the owner of the digital resource; and deducting a first amount of circulating resources from the remaining amount of circulating resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of this specification relate to the field of blockchain technology, and more particularly, to a method and apparatus for processing digital resources in a blockchain. Background Art

[0002] Blockchain is a novel application model for computer technologies, including distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. In a blockchain, data blocks are linked sequentially in chronological order to form a chain-like data structure, and cryptography is used to ensure that these blocks cannot be tampered with or forged. Due to its decentralized, tamper-proof, and autonomous nature, blockchain is gaining increasing attention and application.

[0003] In blockchains, digital resources can be generated based on non-fungible tokens (NFT) technology. These digital resources typically have characteristics such as non-fungibility, limited availability, and indivisibility. Different blockchains can use different NFT protocol standards to generate digital resources. For example, current mainstream protocol standards include ERC721 and ERC1155. Among them, ERC721 is the most commonly used NFT protocol standard. Under the ERC721 standard, each generated digital resource has a unique identifier, and different digital resources are not interchangeable with each other. Under the ERC1155 standard, resource identifiers do not correspond to a single resource, but to a category of resources. Resources of different categories are not interchangeable, while different resources within a category are the same and interchangeable, and the number of resource categories is limited.

[0004] At present, due to the uniqueness and limited nature of digital resources, their prices are prone to malicious speculation. A technical solution is needed to curb the malicious speculation of digital resources. Summary of the Invention

[0005] One or more embodiments of this specification provide a method and apparatus for processing digital resources in a blockchain.

[0006] According to a first aspect, a method for processing digital resources in a blockchain is provided, wherein the blockchain stores circulating resources corresponding to the digital resources; the method is executed by a node of the blockchain, and the method includes:

[0007] In response to receiving a first transaction for transferring the digital resource, determining a remaining amount of circulating resources corresponding to the digital resource;

[0008] If the remaining amount meets a preset condition, the owner of the digital resource is changed;

[0009] The first amount of circulating resources is deducted from the remaining amount of circulating resources.

[0010] Optionally, the remaining amount meeting a preset condition includes: the remaining amount being greater than or equal to the first amount.

[0011] Optionally, the circulation resource is created when the digital resource is issued; the initial amount of the circulation resource is positively correlated with the issuance volume corresponding to the digital resource.

[0012] Optionally, after receiving the first transaction, the method further includes: determining the first amount; wherein the first amount is negatively correlated with the issuance volume corresponding to the digital resource.

[0013] Optionally, determining the first amount includes:

[0014] Determine a base amount to be deducted; the base amount to be deducted is negatively correlated with the issuance volume corresponding to the digital resource;

[0015] Determine the transaction popularity value corresponding to the current digital resource;

[0016] The first amount is determined according to the basic amount to be deducted and the transaction heat value; the transaction heat value represents the heat of the digital resource in circulation.

[0017] Optionally, the transaction popularity value is positively correlated with at least one of the following:

[0018] The number of times the digital resource is transferred within a preset time period;

[0019] The resource amount corresponding to the digital resource;

[0020] The increase in the resource amount corresponding to the digital resource;

[0021] The number of times the same account has been involved in transferring the digital resource in history.

[0022] Optionally, the transaction popularity value is negatively correlated with at least one of the following:

[0023] the time interval between the last transfer of the digital resource and the current one;

[0024] The decrease in the resource amount corresponding to the digital resource.

[0025] Optionally, determining the first amount according to the base amount to be deducted and the transaction popularity value includes:

[0026] Determine an offset based on the transaction heat value;

[0027] The sum of the base amount to be deducted and the offset is determined as the first amount.

[0028] Optionally, determining the offset according to the transaction heat value includes:

[0029] Searching for the offset corresponding to the transaction heat value from a preset correspondence table; or

[0030] The product of the transaction heat value and the preset weight is determined as the offset.

[0031] Optionally, the digital resource is a non-homogeneous token, and the circulating resource is a homogeneous token.

[0032] Optionally, the digital resource is created in the following manner:

[0033] In response to receiving a second transaction for creating the digital resource, creating the digital resource; the second transaction includes information on the issuance quantity corresponding to the digital resource;

[0034] Determining an initial amount of circulating resources corresponding to the digital resource based on the information about the circulation amount;

[0035] The circulation resource is created according to the initial amount, and the digital resource is stored in the blockchain in association with the circulation resource.

[0036] According to a second aspect, there is provided an apparatus for processing digital resources in a blockchain, wherein the blockchain stores circulating resources corresponding to the digital resources; the apparatus is deployed on a node of the blockchain, and comprises:

[0037] a determination module, configured to determine a remaining amount of circulating resources corresponding to the current digital resource in response to receiving a first transaction for transferring the digital resource;

[0038] a change module, configured to change the owner of the digital resource if the remaining amount meets a preset condition;

[0039] The deduction module is configured to deduct a first amount of circulating resources from the remaining amount of circulating resources.

[0040] Optionally, the remaining amount meeting a preset condition includes: the remaining amount being greater than or equal to the first amount.

[0041] Optionally, the circulation resource is created when the digital resource is issued; the initial amount of the circulation resource is positively correlated with the issuance volume corresponding to the digital resource.

[0042] Optionally, the device further includes: an acquisition module, configured to determine the first amount; wherein the first amount is negatively correlated with the issuance volume corresponding to the digital resource.

[0043] Optionally, the acquisition module includes:

[0044] The first determination submodule is configured to determine a base amount to be deducted; the base amount to be deducted is negatively correlated with the issuance volume corresponding to the digital resource;

[0045] The second determining submodule is used to determine the transaction popularity value corresponding to the current digital resource;

[0046] The calculation submodule is used to determine the first amount according to the basic amount to be deducted and the transaction heat value; the transaction heat value represents the heat of the digital resource in circulation.

[0047] Optionally, the transaction popularity value is positively correlated with at least one of the following:

[0048] The number of times the digital resource is transferred within a preset time period;

[0049] The resource amount corresponding to the digital resource;

[0050] The increase in the resource amount corresponding to the digital resource;

[0051] The number of times the same account has been involved in transferring the digital resource in history.

[0052] Optionally, the transaction popularity value is negatively correlated with at least one of the following:

[0053] the time interval between the last transfer of the digital resource and the current one;

[0054] The decrease in the resource amount corresponding to the digital resource.

[0055] Optionally, the calculation submodule is configured to:

[0056] Determine an offset based on the transaction heat value;

[0057] The sum of the base amount to be deducted and the offset is determined as the first amount.

[0058] Optionally, the calculation submodule determines the offset according to the transaction popularity value in the following manner:

[0059] Searching for the offset corresponding to the transaction heat value from a preset correspondence table; or

[0060] The product of the transaction heat value and the preset weight is determined as the offset.

[0061] Optionally, the digital resource is a non-homogeneous token, and the circulating resource is a homogeneous token.

[0062] Optionally, the apparatus further comprises a creation module, configured to create the digital resource; the creation module is configured to:

[0063] In response to receiving a second transaction for creating the digital resource, creating the digital resource; the second transaction includes information on the issuance quantity corresponding to the digital resource;

[0064] Determining an initial amount of circulating resources corresponding to the digital resource based on the information about the circulation amount;

[0065] The circulation resource is created according to the initial amount, and the digital resource is stored in the blockchain in association with the circulation resource.

[0066] According to a third aspect, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of the above-mentioned first aspects is implemented.

[0067] According to a fourth aspect, a computing device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of the above-mentioned first aspects is implemented.

[0068] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0069] The embodiments of this specification provide a method and apparatus for processing digital resources in a blockchain. By binding a preset amount of circulating resources to digital resources, a certain amount of circulating resources is deducted when the digital resources are transferred. Since the amount of bound circulating resources no longer increases, this method can effectively reduce the possibility of malicious speculation on digital resources to a certain extent, thereby improving the transaction efficiency of digital resources.

[0070] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0072] Figure 1 This is a blockchain architecture diagram shown in this specification according to an exemplary embodiment;

[0073] Figure 2AThis is a flow chart of a method for processing digital resources in a blockchain according to an exemplary embodiment of this specification;

[0074] Figure 2B is a schematic diagram of a data structure of a digital resource provided by this specification according to an exemplary embodiment;

[0075] Figure 3 This is an interactive flow chart of a method for processing digital resources in a blockchain according to an exemplary embodiment of this specification;

[0076] Figure 4 This is a block diagram of an apparatus for processing digital resources in a blockchain according to an exemplary embodiment of the present specification. DETAILED DESCRIPTION

[0077] To help those skilled in the art better understand the technical solutions in this specification, the following will provide a clear and complete description of the technical solutions in the embodiments of this specification, in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. All other embodiments derived by those skilled in the art based on the embodiments in this specification without creative effort shall fall within the scope of protection of this specification.

[0078] like Figure 1 , which is a diagram of the blockchain architecture used in the embodiments of this specification.

[0079] Figure 1 In the example, the blockchain contains 8 nodes, namely nodes 1 to 8. Each node can be implemented as any device, server or device cluster with computing and processing capabilities. Figure 1 Although the blockchain is shown as including eight nodes, the embodiments of this specification are not limited thereto and may include other numbers of nodes. Specifically, the nodes included in the blockchain can meet Byzantine Fault Tolerance (BFT) requirements. This Byzantine Fault Tolerance requirement can be understood as allowing Byzantine nodes to exist within the blockchain without externally displaying Byzantine behavior. Generally, some Byzantine Fault Tolerance algorithms require the number of nodes to be greater than 3f+1, where f is the number of Byzantine nodes. For example, the Practical Byzantine Fault Tolerance (PBFT) algorithm requires that the number of nodes be greater than 3f+1, where f is the number of Byzantine nodes.

[0080] Figure 1In the diagram, the lines connecting the nodes schematically represent P2P (Peer to Peer) connections. These nodes store the full ledger, that is, the status of all blocks and all accounts. Each node in the blockchain generates the same state by executing the same transactions, and each node in the blockchain stores the same state database. Furthermore, each node is responsible for receiving transactions from clients and initiating a consensus proposal to other nodes. This consensus proposal includes, for example, multiple transactions in the block to be formed (e.g., block B1) and the order in which each transaction should be submitted. After the nodes in the blockchain successfully reach consensus on the consensus proposal, each node executes the multiple transactions according to the submission order specified in the consensus proposal, thereby generating block B1.

[0081] I understand. Figure 1 The blockchain shown is only exemplary and the embodiments of this specification are not limited to application in Figure 1 The blockchain shown can also be applied to a blockchain system including sharding, for example.

[0082] In blockchains, non-fungible tokens (NFTs) can be used to generate digital assets (e.g., game props, digital artwork, and digital memorabilia). These assets are typically non-fungible, limited in quantity, and indivisible. In related technologies, digital assets are typically issued independently. Due to their uniqueness and limited availability, their prices are susceptible to malicious speculation. Currently, the only solution to this problem is enhanced manual oversight, which is complex, ineffective, and reduces the efficiency of digital asset transactions.

[0083] The embodiment of this specification provides a Figure 1 The solution for processing digital resources in the blockchain shown here is to bind a preset amount of circulating resources to digital resources. When the digital resources are transferred, a certain amount of circulating resources is deducted. Since the amount of bound circulating resources no longer increases, it can effectively reduce the possibility of digital resources being maliciously speculated to a certain extent, thereby improving the transaction efficiency of digital resources.

[0084] The solution provided in this specification will be described in detail below with reference to specific embodiments.

[0085] like Figure 2A As shown, Figure 2A This is a flowchart illustrating a method for processing digital resources in a blockchain, according to an exemplary embodiment. This method can be applied to a blockchain node. The blockchain node can be implemented as any device, platform, server, or device cluster with computing and processing capabilities. The method includes the following steps:

[0086] First, in step 201, in response to receiving a transaction for transferring a digital resource, the remaining amount of circulating resources corresponding to the current digital resource is determined. Then, in step 202, if the remaining amount meets a preset condition, the owner of the digital resource is changed. Finally, in step 203, the first amount of circulating resources is deducted from the remaining amount of circulating resources.

[0087] Specifically, the digital resources involved in this embodiment may be non-replaceable, limited, and indivisible digital resources. For example, the digital resources may be NFT digital resources generated based on non-fungible token technology. It is understood that any other non-replaceable, limited, and indivisible digital resources known in the art or that may appear in the future may be applied to the digital resources of this embodiment. This embodiment does not limit the specific form and type of the above-mentioned digital resources.

[0088] In this embodiment, when creating the digital resource, a corresponding circulation resource of the digital resource can be created at the same time, and the digital resource and the corresponding circulation resource of the digital resource can be bound and stored in the blockchain in an associated manner. The circulation resource can be a digital resource with characteristics such as fungibility and unlimited quantity, and can be split. For example, the circulation resource can be a (Fungible Tokens, homogenized token) FT digital resource. It can be understood that any other digital resources with characteristics such as fungibility, unlimited quantity, and can be split that are known in the art or may appear in the future can be applied to the circulation resources of this embodiment. This embodiment does not limit the specific form and type of the above-mentioned circulation resources.

[0089] Specifically, the data structure of the digital resource can be stored in the blockchain. Figure 2B This is a schematic diagram of a data structure of a digital resource provided in an embodiment of this specification, such as Figure 2B As shown, the data structure may include, for example, but not limited to, identification information of the digital resource, circulation resource information corresponding to the digital resource, circulation information of the digital resource, metadata corresponding to the digital resource, and the like.

[0090] The metadata corresponding to the digital resource may include, but is not limited to, a content introduction (e.g., information about the author, a brief introduction to the creation process, and a brief introduction to the content), image information (e.g., images of the digital resource), 3D information, video information, and audio information. The circulation resource information corresponding to the digital resource may include, but is not limited to, an identifier of the circulation resource and a circulating balance.

[0091] In this embodiment, the initial amount of the circulating resources corresponding to the digital resource can be a fixed value. For example, regardless of whether the digital resource is a rare digital artwork with a circulation volume of 1 or a payment code skin with a circulation volume of 1,000, the initial amount of the corresponding circulating resources can be a fixed value of 10,000.

[0092] Optionally, the initial amount of the circulating resource can also be determined based on the circulation volume of the digital resource, specifically, it can be positively correlated with the circulation volume of the digital resource. For example, if the digital resource is a rare digital artwork with a circulation volume of 1, the initial amount of its circulating resource can be 10. If the digital resource is a payment code skin with a circulation volume of 1000, the initial amount of its circulating resource (i.e., the initial amount of the circulating resource of each of the 1000 payment code skins) can be 10,000.

[0093] After the digital resource is created, users can buy, sell, and transfer it through a client connected to the blockchain node. Specifically, during the digital resource transfer process, the remaining amount of the circulating resource corresponding to the digital resource can be determined. Then, the owner of the digital resource can be changed, and a first amount of circulating resources can be deducted from the remaining amount of circulating resources. If the remaining amount is greater than or equal to the first amount, the transaction is successful; if the remaining amount is less than the first amount, the transaction fails. It should be noted that the deduction of circulating resources is generally achieved by pre-creating an account on the blockchain that can only transfer in, not out. The deduction is then achieved by transferring the circulating resources to this account.

[0094] Among them, the first amount to be deducted can be a fixed value. For example, no matter the digital resource is a rare digital artwork with a circulation of 1, or a payment code skin with a circulation of 1,000, the corresponding first amount to be deducted can be a fixed value of 1.

[0095] Alternatively, the first amount to be deducted may be inversely correlated with the circulation of the digital resource. For example, if the digital resource is a rare digital artwork with a circulation of 1, the corresponding first amount to be deducted may be 2. If the digital resource is a payment code skin with a circulation of 1,000, the corresponding first amount to be deducted (i.e., the first amount to be deducted for each of the 1,000 payment code skins) may be 1.

[0096] Since rare resources are more likely to be maliciously speculated, this embodiment further considers the relationship between the initial amount of circulating resources and the issuance volume of digital resources, as well as the relationship between the amount deducted during transfer and the issuance volume of digital resources, thereby more effectively avoiding the malicious speculation of rare resources.

[0097] In summary, in one implementation, regardless of whether the digital resource is a rare digital artwork with a circulation of 1 or a payment code skin with a circulation of 1,000, the initial amount of the corresponding circulating resource can be a fixed value of 10,000. However, the amount to be deducted is inversely correlated with the circulation of the corresponding digital resource. For example, for a rare digital artwork with a circulation of 1, the amount to be deducted can be 1,000, while for a payment code skin with a circulation of 1,000, the amount to be deducted can be 1.

[0098] In another implementation, if the digital resource is a rare digital artwork with a circulation quantity of 1, the initial amount of the corresponding circulating resource may be 10. If the digital resource is a payment code skin with a circulation quantity of 1,000, the initial amount of the corresponding circulating resource may be 10,000. However, the amount to be deducted can be a fixed value of 1.

[0099] In another implementation, if the digital resource is a rare digital artwork with a circulation quantity of 1, the initial amount of the corresponding circulating resource may be 100, and the amount to be deducted may be 10. If the digital resource is a payment code skin with a circulation quantity of 1,000, the initial amount of the corresponding circulating resource may be 10,000, and the amount to be deducted may be 1.

[0100] It can be seen that the above-mentioned implementation methods can all avoid the malicious speculation of scarce resources to varying degrees.

[0101] Alternatively, the first amount can be determined as follows: First, a base amount to be deducted can be determined, where the base amount to be deducted is negatively correlated with the issuance volume of the digital resource. Next, a current transaction popularity value for the digital resource is determined, and the first amount is determined based on the base amount to be deducted and the transaction popularity value. The transaction popularity value represents the popularity of the digital resource in circulation, and the popularity of the digital resource in circulation can be quantified as the transaction popularity value.

[0102] In this embodiment, the transaction heat value can be positively correlated with at least one of the following: the number of times the digital resource is transferred within a preset time period (for example, the number of times the digital resource is bought and sold within a preset time period before the current time); the resource amount corresponding to the digital resource (for example, the current price of the digital resource, etc.); the increase in the resource amount corresponding to the digital resource (for example, the increase in the current price of the digital resource compared to the previous price, etc.); the number of times the same account is involved in the transfer of the digital resource in history (for example, the number of times the same account is involved in the purchase and sale of the digital resource). The transaction heat value can be negatively correlated with at least one of the following: the time interval between the last transfer of the digital resource and the current time; the decrease in the resource amount corresponding to the digital resource (for example, the decrease in the current price of the digital resource compared to the previous price, etc.). It can be understood that the transaction heat value can also be determined by other quantitative values that can represent the heat of the digital resource in circulation. This embodiment does not limit the specific value of the transaction heat value.

[0103] Specifically, the offset can be determined based on the transaction heat value. For example, the offset corresponding to the transaction heat value can be found from a preset correspondence table (the correspondence table records the correspondence between the preset transaction heat value range and the preset offset), or the product of the transaction heat value and a preset weight is determined as the offset. Then, the sum of the base amount to be deducted and the offset is determined as the first amount. It is understood that the first amount can also be determined based on the base amount to be deducted and the offset in other ways, and this embodiment is not limited to this aspect.

[0104] Since this embodiment takes into account that the popularity of digital resources in circulation can reflect malicious speculation to a certain extent, the transaction heat value reflecting the heat is used to adjust the amount to be deducted from the circulating resources, thereby further avoiding the situation where digital resources are maliciously speculated.

[0105] The following combination Figure 3Taking digital resource A as an example, the process of creating and transferring digital resource A is described below: First, in step 301, user A can initiate a transaction Tx1 on the blockchain using user device a to create digital resource A with a circulation quantity of m. Transaction Tx1 carries information about the circulation quantity m. In step 302, after receiving transaction Tx1, the blockchain node can obtain the circulation quantity m from transaction Tx1 and determine the initial amount n of the circulating resource B corresponding to digital resource A based on the circulation quantity m, such that the initial amount n is positively correlated with the circulation quantity m. Then, each digital resource A is created according to the circulation quantity m (e.g., including digital resource A1, digital resource A2, ..., digital resource Am). For each digital resource A, a corresponding circulating resource B with an initial amount n is created (e.g., circulating resource B1 corresponding to digital resource A1 has an initial amount n, circulating resource B2 corresponding to digital resource A2 has an initial amount n, ..., circulating resource Bm corresponding to digital resource Am has an initial amount n). Each digital resource A is associated with its corresponding circulating resource B with an initial amount n and stored in the blockchain. Furthermore, the initial owner of each digital resource A and its corresponding circulating resource B is User A. Finally, in step 303, the blockchain node sends a message to User Device A confirming the creation of digital resource A. User A can view the message on User Device A. Furthermore, any user with viewing permission can view the amount of digital resource A and its corresponding circulating resource B through the blockchain node.

[0106] Next, in step 304, user B can initiate a transaction Tx2 on the blockchain using user device b to transfer digital resource A1. In step 305, after receiving transaction Tx2, the blockchain node can first determine the remaining amount of circulating resource B corresponding to the current digital resource A1, for example, the remaining amount is n. It then determines the amount a to be deducted, which can be negatively correlated with the circulation volume m of digital resource A. In step 306, after the transfer amount is paid, the blockchain node changes the owner of digital resource A1 from user A to user B and deducts the amount a of circulating resource B from the amount n of circulating resource B. At this point, the remaining amount of circulating resource B is na. Digital resource A1 is associated with the circulating resource B with the remaining amount na and stored in the blockchain. It should be noted that if the remaining amount n is less than the amount a to be deducted, transaction Tx2 fails, and user A remains the owner of digital resource A1.

[0107] The above-mentioned embodiments of this specification provide a method for processing digital resources in a blockchain. By binding a preset amount of circulating resources to digital resources, a certain amount of circulating resources is deducted when the digital resources are transferred. Since the amount of bound circulating resources no longer increases, this method can effectively reduce the possibility of malicious speculation of digital resources to a certain extent, thereby improving the transaction efficiency of digital resources.

[0108] It should be noted that although the operations of the methods of the embodiments of this specification are described in a specific order in the above embodiments, this does not require or imply that the operations must be performed in this specific order, or that all of the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flowcharts can be performed in a different order. Additionally or alternatively, certain steps can be omitted, multiple steps can be combined into one step, and / or a step can be broken down into multiple steps.

[0109] Corresponding to the aforementioned method embodiment for processing digital resources in a blockchain, this specification also provides an embodiment of an apparatus for processing digital resources in a blockchain.

[0110] like Figure 4 As shown, Figure 4 This is a block diagram of an apparatus for processing digital resources in a blockchain, according to an exemplary embodiment of this specification. The blockchain stores circulating resources corresponding to the digital resources. The apparatus is deployed on a blockchain node and may include: a determination module 401, a change module 402, and a deduction module 403.

[0111] The determination module 401 is configured to determine the remaining amount of circulating resources corresponding to the current digital resource in response to receiving a first transaction for transferring the digital resource.

[0112] The changing module 402 is configured to change the owner of the digital resource if the remaining amount meets a preset condition.

[0113] The deduction module 403 is configured to deduct a first amount of circulating resources from the remaining amount of circulating resources.

[0114] In some embodiments, the remaining amount meeting a preset condition includes: the remaining amount being greater than or equal to a first amount.

[0115] In other embodiments, the circulation resource is created when the digital resource is issued. The initial amount of the circulation resource is positively correlated with the issuance volume of the digital resource.

[0116] In other embodiments, the device may further include: an acquisition module (not shown in the figure).

[0117] The acquisition module is configured to determine the first amount, which is negatively correlated with the issuance volume of the digital resource.

[0118] In other embodiments, the acquisition module may include: a first determination submodule, a second determination submodule, and a calculation submodule (not shown in the figure).

[0119] Among them, the first determination submodule is used to determine the basic amount to be deducted, and the basic amount to be deducted is negatively correlated with the issuance volume corresponding to the digital resource.

[0120] The second determination submodule is used to determine the transaction popularity value corresponding to the current digital resource.

[0121] The calculation submodule is configured to determine the first amount based on the base amount to be deducted and the transaction popularity value, which indicates the popularity of the digital resource in circulation.

[0122] In other embodiments, the transaction heat value is positively correlated with at least one of the following: the number of times the digital resource is transferred within a preset period; the resource amount corresponding to the digital resource; the increase in the resource amount corresponding to the digital resource; and the number of times the same account involved in the transfer of the digital resource in history.

[0123] In other embodiments, the transaction heat value is negatively correlated with at least one of the following: the time interval between the last transfer of the digital resource and the current time; and the decrease in the resource amount corresponding to the digital resource.

[0124] In other embodiments, the calculation submodule is configured to: determine an offset according to the transaction heat value, and determine the sum of the basic amount to be deducted and the offset as the first amount.

[0125] In other embodiments, the calculation submodule may determine the offset based on the transaction heat value by searching for the offset corresponding to the transaction heat value from a preset correspondence table; or determining the offset as the product of the transaction heat value and a preset weight.

[0126] In other embodiments, the digital resource is a non-fungible token, and the circulating resource is a homogeneous token.

[0127] In some other embodiments, the apparatus may further include: a creation module (not shown in the figure).

[0128] The creation module is configured to: create the digital resource in response to receiving a second transaction for creating the digital resource. The second transaction includes information about the circulation quantity corresponding to the digital resource. Based on the circulation quantity information, the creation module determines an initial amount of circulating resources corresponding to the digital resource, creates the circulating resource according to the initial amount, and stores the digital resource in association with the circulating resource in the blockchain.

[0129] It should be understood that the above-mentioned device can be pre-installed in the node of the blockchain, or loaded into the node of the blockchain by downloading or other means. The corresponding modules in the above-mentioned device can cooperate with the modules in the node of the blockchain to implement the solution for processing digital resources in the blockchain.

[0130] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of one or more embodiments of this specification. A person of ordinary skill in the art can understand and implement them without paying any creative work.

[0131] One or more embodiments of this specification also provide a computer-readable storage medium, which stores a computer program that can be used to execute the above Figure 2A-Figure 3 The embodiment provides a method for processing digital resources in a blockchain.

[0132] One or more embodiments of this specification further provide a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the above-mentioned Figure 2A-Figure 3 The embodiment provides a method for processing digital resources in a blockchain.

[0133] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.

[0134] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.

[0135] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a server system. Of course, this application does not exclude that with the future development of computer technology, the computer that implements the functions of the above embodiments may be, for example, a personal computer, a laptop computer, an in-vehicle human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0136] Although one or more embodiments of this specification provide method operation steps as described in the embodiments or flow charts, more or fewer operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "comprise", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements includes not only those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements. For example, if the words first, second, etc. are used to represent the name, they do not represent any particular order.

[0137] For the convenience of description, the above devices are described in terms of functions divided into various modules. Of course, when implementing one or more of the present specifications, the functions of each module can be implemented in the same or multiple software and / or hardware, or the module that implements the same function can be implemented by a combination of multiple sub-modules or sub-units, etc. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0141] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0142] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0143] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage, graphene storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0144] Those skilled in the art will appreciate that one or more embodiments of this specification may be provided as a method, system, or computer program product. Thus, one or more embodiments of this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0145] One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In distributed computing environments, program modules may be located in local and remote computer storage media, including storage devices.

[0146] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between the various embodiments can be referenced across them. Each embodiment focuses on the differences from the other embodiments. In particular, since the system embodiments are generally similar to the method embodiments, their description is relatively simple. For relevant parts, reference can be made to the description of the method embodiments. Throughout this specification, reference to the terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with that embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of these terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and integrate the different embodiments or examples, and features of different embodiments or examples, described in this specification, without conflict.

[0147] The foregoing is merely an example of one or more embodiments of this specification and is not intended to limit the one or more embodiments of this specification. It will be apparent to those skilled in the art that various modifications and variations may be made to one or more embodiments of this specification. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this specification shall be included within the scope of the claims.

Claims

1. A method for processing digital resources in a blockchain, wherein the blockchain stores circulating resources corresponding to the digital resources; The method is executed by a node of the blockchain, and the method includes: In response to receiving a first transaction for transferring the digital resource, determining a remaining amount of circulating resources corresponding to the digital resource; If the remaining amount meets a preset condition, the owner of the digital resource is changed; deducting the first amount of circulating resources from the remaining amount of circulating resources; The remaining amount meeting a preset condition includes: the remaining amount being greater than or equal to the first amount.

2. The method according to claim 1, wherein The circulation resource is created when the digital resource is issued; the initial amount of the circulation resource is positively correlated with the issuance volume corresponding to the digital resource.

3. The method according to claim 1, wherein After receiving the first transaction, the method further includes: determining the first amount; wherein the first amount is negatively correlated with the issuance volume corresponding to the digital resource.

4. The method according to claim 3, wherein: The determining of the first amount includes: Determine a base amount to be deducted; the base amount to be deducted is negatively correlated with the issuance volume corresponding to the digital resource; Determine the transaction popularity value corresponding to the current digital resource; The first amount is determined according to the basic amount to be deducted and the transaction heat value; the transaction heat value represents the heat of the digital resource in circulation.

5. The method according to claim 4, wherein The transaction heat value is positively correlated with at least one of the following: The number of times the digital resource is transferred within a preset time period; The resource amount corresponding to the digital resource; The increase in the resource amount corresponding to the digital resource; The number of times the same account has been involved in transferring the digital resource in history.

6. The method according to claim 4, wherein: The transaction heat value is negatively correlated with at least one of the following: the time interval between the last transfer of the digital resource and the current one; The decrease in the resource amount corresponding to the digital resource.

7. The method according to claim 4, wherein: The determining the first amount according to the base amount to be deducted and the transaction popularity value includes: Determine an offset based on the transaction heat value; The sum of the base amount to be deducted and the offset is determined as the first amount.

8. The method according to claim 7, wherein: Determining the offset according to the transaction heat value includes: Searching for the offset corresponding to the transaction heat value from a preset correspondence table; or The product of the transaction heat value and the preset weight is determined as the offset.

9. The method according to claim 1, wherein The digital resources are non-homogeneous tokens, and the circulating resources are homogeneous tokens.

10. The method according to claim 2, wherein: The digital resource is created in the following way: In response to receiving a second transaction for creating the digital resource, creating the digital resource; the second transaction includes information on the issuance quantity corresponding to the digital resource; Determining an initial amount of circulating resources corresponding to the digital resource based on the information about the circulation amount; The circulation resource is created according to the initial amount, and the digital resource is stored in the blockchain in association with the circulation resource.

11. A device for processing digital resources in a blockchain, wherein the blockchain stores circulating resources corresponding to the digital resources; The device is deployed on a node of the blockchain, and includes: a determination module, configured to determine a remaining amount of circulating resources corresponding to the current digital resource in response to receiving a first transaction for transferring the digital resource; a change module, configured to change the owner of the digital resource if the remaining amount meets a preset condition; a deduction module, configured to deduct a first amount of circulating resources from the remaining amount of circulating resources; The remaining amount meeting a preset condition includes: the remaining amount being greater than or equal to the first amount.

12. The device according to claim 11, wherein The circulation resource is created when the digital resource is issued; the initial amount of the circulation resource is positively correlated with the issuance volume corresponding to the digital resource.

13. The device according to claim 11, wherein The device further includes: an acquisition module, configured to determine the first amount; wherein the first amount is negatively correlated with the issuance volume corresponding to the digital resource.

14. The device according to claim 13, wherein The acquisition module includes: The first determination submodule is configured to determine a base amount to be deducted; the base amount to be deducted is negatively correlated with the issuance volume corresponding to the digital resource; The second determining submodule is used to determine the transaction popularity value corresponding to the current digital resource; The calculation submodule is used to determine the first amount according to the basic amount to be deducted and the transaction heat value; the transaction heat value represents the heat of the digital resource in circulation.

15. The device according to claim 14, wherein The transaction heat value is positively correlated with at least one of the following: The number of times the digital resource is transferred within a preset time period; The resource amount corresponding to the digital resource; The increase in the resource amount corresponding to the digital resource; The number of times the same account has been involved in transferring the digital resource in history.

16. The device according to claim 14, wherein The transaction heat value is negatively correlated with at least one of the following: the time interval between the last transfer of the digital resource and the current one; The decrease in the resource amount corresponding to the digital resource.

17. The device according to claim 14, wherein The calculation submodule is configured to: Determine an offset based on the transaction heat value; The sum of the base amount to be deducted and the offset is determined as the first amount.

18. The device according to claim 17, wherein The calculation submodule determines the offset according to the transaction heat value in the following manner: Searching for the offset corresponding to the transaction heat value from a preset correspondence table; or The product of the transaction heat value and the preset weight is determined as the offset.

19. The device according to claim 11, wherein The digital resources are non-homogeneous tokens, and the circulating resources are homogeneous tokens.

20. The device according to claim 12, wherein The apparatus further includes: a creation module for creating the digital resource; the creation module is configured to: In response to receiving a second transaction for creating the digital resource, creating the digital resource; the second transaction includes information on the issuance quantity corresponding to the digital resource; Determining an initial amount of circulating resources corresponding to the digital resource based on the information about the circulation amount; The circulation resource is created according to the initial amount, and the digital resource is stored in the blockchain in association with the circulation resource.

21. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 10.

22. A computing device comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Digital asset processing method and device based on block chain

    CN113221192A

  • Non-homogeneous digital currency generation and circulation method and system

    CN113327168A