Digital resource processing methods, blockchain nodes and processing systems
By using random numbers to set resource scores in the blockchain system, the problem of difficulty in fairly measuring the value of NFT digital resources in existing technologies is solved, value measurement under fairness is realized, and the accuracy of resource evaluation is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WHALE EXPLORER TECHNOLOGY (SHANGHAI) CO LTD
- Filing Date
- 2022-07-29
- Publication Date
- 2026-07-17
AI Technical Summary
Existing technologies struggle to measure the importance or value of non-fungible token (NFT) digital resources in specific application scenarios within a blockchain system while ensuring fairness.
By receiving transaction requests in the blockchain system and setting resource scores for digital resources using several random numbers, blockchain nodes determine resource scores based on these random numbers, thus achieving value measurement under fairness.
While ensuring fairness, the importance or value of digital resources in specific application scenarios is measured by resource scores, thereby improving the accuracy of digital resource value assessment.
Smart Images

Figure CN115269729B_ABST
Abstract
Description
Technical Field
[0001] The embodiments in this specification belong to the field of blockchain technology, and in particular relate to a method for processing digital resources in a blockchain system, a blockchain node, and a processing system. Background Technology
[0002] Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. In blockchain, data blocks are sequentially linked together in a chain-like data structure, and a distributed ledger is cryptographically guaranteed to be immutable and unforgeable. Due to its decentralized, immutable, and autonomous characteristics, blockchain is receiving increasing attention and application. Summary of the Invention
[0003] The purpose of this invention is to provide a method for processing digital resources in a blockchain system, a blockchain node, and a processing system.
[0004] In a first aspect, a method for processing digital resources in a blockchain system is provided, the method being executed by blockchain nodes in the blockchain system. The method includes: receiving a first transaction, the first transaction being used to request setting a first digital resource in the blockchain system, the first transaction including a plurality of random numbers; and setting a resource score of the first digital resource in the blockchain system according to the first transaction, the resource score of the first digital resource being determined based on the plurality of random numbers.
[0005] Secondly, a blockchain node in a blockchain system is provided. The blockchain node includes: a transaction receiving unit configured to receive a first transaction, the first transaction being used to request the setting of a first digital resource in the blockchain system, the first transaction including a plurality of random numbers; and a transaction processing unit configured to set a resource score of the first digital resource in the blockchain system according to the first transaction, the resource score of the first digital resource being determined based on the plurality of random numbers.
[0006] Thirdly, a processing system for digital resources in a blockchain system is provided. The processing system includes a trusted device and a blockchain system; wherein the trusted device is used to acquire a plurality of random numbers and send a first transaction containing the plurality of random numbers to the blockchain system, causing blockchain nodes in the blockchain system to set a resource score for the first digital resource in the blockchain system according to the first transaction, the resource score of the first digital resource being determined based on the plurality of random numbers.
[0007] In the above embodiments, after receiving a transaction requesting the setting of digital resources in the blockchain system, the blockchain node sets the resource score of the digital resource based on several random numbers contained in the transaction. This can achieve the goal of measuring the importance or value of different digital resources in specific application scenarios through the resource score of digital resources while ensuring fairness. Attached Figure Description
[0008] To more clearly illustrate the technical solutions of the embodiments in this specification, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0009] Figure 1 This is a schematic diagram of a digital resource processing system in a blockchain system provided in the embodiments of this specification;
[0010] Figure 2 This is one of the flowcharts for a method of processing digital resources in a blockchain system provided in the embodiments of this specification;
[0011] Figure 3 This is a schematic diagram of resource data for digital resources provided as an example in the embodiments of this specification;
[0012] Figure 4 This is a schematic diagram illustrating the mapping relationship between resource scores and resource levels, provided as an example in the embodiments of this specification.
[0013] Figure 5 This is the second flowchart of the method for processing digital resources in a blockchain system provided in the embodiments of this specification;
[0014] Figure 6 This is the third flowchart of the method for processing digital resources in a blockchain system provided in the embodiments of this specification;
[0015] Figure 7 This is the fourth flowchart of the method for processing digital resources in a blockchain system provided in the embodiments of this specification;
[0016] Figure 8 This is the fifth flowchart of the method for processing digital resources in a blockchain system provided in the embodiments of this specification;
[0017] Figure 9 This is the sixth flowchart of the method for processing digital resources in a blockchain system provided in the embodiments of this specification;
[0018] Figure 10 This is a schematic diagram of a blockchain node provided in the embodiments of this specification. Detailed Implementation
[0019] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification and not all embodiments. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.
[0020] A blockchain system is a distributed network built from multiple nodes (blockchain nodes). Any two nodes within it communicate at the application layer via a peer-to-peer (P2P) network. See also... Figure 1 As shown, a blockchain system can, for example, contain nodes 1 to 5. Any two nodes from 1 to 5 can communicate at the application layer via a P2P network. The blockchain system utilizes a decentralized (or multi-centralized) distributed ledger constructed using a chain-like block structure, stored on each (or most) node in the distributed blockchain network. Therefore, the blockchain system needs to address the consistency and correctness of the ledger data across multiple decentralized (or multi-centralized) nodes. Accordingly, each node in the blockchain system runs a blockchain program. Under certain fault-tolerance requirements, a consensus mechanism ensures that all loyal nodes have the same transactions, thereby guaranteeing consistent execution results for the same transactions. Multiple transactions arranged in sequence are packaged into a block, and the world state is updated based on the execution results of these transactions. The current mainstream consensus mechanisms include, but are not limited to: Proof of Work (POW), Proof of Stake (POS), Practical Byzantine Fault Tolerance (PBFT) algorithm, Honey Badger Byzantine Fault Tolerance (HoneyBadgerBFT) algorithm, etc.
[0021] In blockchain systems, digital resources can be generated based on non-fungible tokens (NFTs). These digital resources typically possess characteristics such as non-fungibility, limited availability, and indivisibility. Different blockchains can use different NFT protocol standards to generate digital resources. Currently, mainstream protocol standards include ERC721, ERC1155, and ERC998. 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. It is difficult to measure the importance or value of different digital resources of the same category generated based on NFT protocol standards in specific application scenarios while ensuring fairness. For example, it is difficult to measure the importance or value of digital resources of the same category within the metaverse platform while ensuring public accessibility.
[0022] This specification provides a method for processing digital resources in a blockchain system, a blockchain node, and a processing system. After receiving a transaction requesting the setting of a digital resource in the blockchain system, the blockchain node sets a resource score for the digital resource based on several random numbers contained in the transaction. This allows for the measurement of the importance or value of different digital resources in specific application scenarios through their resource scores, while ensuring fairness.
[0023] Please continue reading Figure 1 As shown, the aforementioned processing system may include, for example, a blockchain system, device 1 held by the producer of the digital resources, and a trusted device. The trusted device may be a device provided by a trusted third party; or the trusted device may be implemented as a Trusted Execution Environment (TEE) of device 1. Furthermore, the producer can initiate transactions with the blockchain system through device 1 and / or request the trusted device to initiate transactions with the blockchain system through device 1 to issue digital resources in the blockchain system, the digital resources having a resource score determined based on several random numbers.
[0024] The processing system may also include, for example, device 2 held by the brand owner of the digital resources. The brand owner can initiate a transaction with the blockchain system through device 2 to authorize the publisher of their brand's copyright within the blockchain system. Furthermore, the publisher can initiate a transaction with the blockchain system through device 1 and / or request a trusted device through device 1 to initiate a transaction with the blockchain system to issue the authorized brand's digital resources within the blockchain system. These digital resources have a resource score determined based on several random numbers.
[0025] The processing system may also include, for example, a user-owned device 3 and a server of a target service platform (e.g., a metaverse platform), both of which can connect to the blockchain system. Furthermore, the user can initiate transactions with the blockchain system through device 3 to purchase / receive digital resources issued by the producer. Additionally, the user can utilize the purchased / received digital resources on the target service platform or other relevant platforms, for example, by using the purchased / received digital resources as their identifier on the target service platform and performing specific interactive operations with those digital resources on device 3.
[0026] The following will further combine the aforementioned points. Figure 1 The processing system shown in this specification provides a detailed description of the technical solutions provided in the embodiments.
[0027] Figure 2 This is one of the flowcharts for a method of processing digital resources in a blockchain system provided in the embodiments of this specification. The method describes the process by which producer a issues digital resource P in the blockchain system, such as... Figure 2 As shown, the method may include, but is not limited to, some or all of the following steps 200 to 206.
[0028] Step 200: Device 1 provides a resource setting request to the trusted device.
[0029] The resource setting request includes instruction information, and may also include the owner account, graphic data, and other information for issuing digital resource P that producer A wishes to issue. Digital resource P may correspond to brand B, which may be authorized to producer A by brand owner B in advance through a blockchain system. The relevant authorization information can be recorded on the blockchain system. Producer A can then issue digital resource P corresponding to brand B on the blockchain system. Digital resource P may be a digital resource belonging to brand B that producer A wishes to issue directly and is not attached to other products, or it may be a digital resource attached to a product of brand B that producer A wishes to issue. If digital resource P is a digital resource belonging to brand B that producer A wishes to issue directly and is not attached to other products, then the aforementioned other information for issuing digital resource P may include brand information of brand B, which may include, but is not limited to, brand name and brand logo. If digital resource P is a digital resource attached to a product X of brand B that producer A issues, then the aforementioned other information for issuing digital resource P may also include product information of product X, which may include, but is not limited to, product name and product code.
[0030] Digital resource P can be a digital resource in the form of non-fungible tokens, and the account to which digital resource P belongs can be, for example, an external account registered by producer a in the blockchain system. More specifically, digital resource P can be, for example, an image of a human figure or other shapes, such as a human figure image (hereinafter referred to as a virtual human), animal image, or jewelry image belonging to brand B, etc. The embodiments in this specification do not limit the form of digital resource P.
[0031] Step 202: The trusted device obtains several random numbers based on the indication information in the resource setting request.
[0032] The instruction information may include, for example, the number of random numbers the manufacturer expects the trusted device to acquire, and may also include the interval to which the random numbers acquired by the trusted device belong. Each random number acquired by the trusted device can satisfy a normal distribution within a specified interval, which may be an interval defined by the instruction information or an interval pre-set in the trusted device.
[0033] Step 204: The trusted device sends a transaction Tx1 containing several random numbers to the blockchain node in the blockchain system.
[0034] Transaction Tx1 is used to request the setting of digital resource P, that is, transaction Tx1 is used to request the generation of digital resource P in the blockchain system. In addition to the aforementioned random numbers, transaction Tx1 may also include other information located in the resource setting request, such as the owner account of digital resource P, the graphic data of digital resource P, and other information used to issue digital resource P.
[0035] Step 206: The blockchain node generates digital resource P based on transaction Tx1.
[0036] For example, transaction Tx1 can request to call smart contract C1. Blockchain nodes can execute transaction Tx1 to add resource data corresponding to digital resource P to the contract state of smart contract C1, thereby generating digital resource P in the blockchain system. In this process, the resource score of digital resource P is determined and set according to several random numbers in transaction Tx1.
[0037] The resource data corresponding to digital resource P may include at least one of the following: resource identifier, first resource score corresponding to each of several random numbers, resource score, resource level, owner account, brand information, product information, and graphic data; in addition, several target fields corresponding to several active attributes may be reserved. For the resource data corresponding to digital resource P, the first resource score corresponding to each of the several random numbers is prohibited from modification. The field values of the aforementioned target fields can be set to NULL or 0 when generating digital resource P; however, the field values of the target fields, resource score, and resource level are allowed to be changed based on certain specific rules after digital resource P is purchased / claimed by a user.
[0038] For example, a blockchain node can execute code segment 1 in smart contract C1 based on transaction Tx1 to generate a resource identifier for digital resource P based on brand information and / or product information in transaction Tx1. For example, a preset algorithm can be used to pre-process the brand information and / or product information to obtain the resource identifier for digital resource P.
[0039] For example, a blockchain node can execute code segment 2 in smart contract C1 based on transaction Tx1 to determine the first resource score corresponding to each of several random numbers. Code segment 2 can convert the random numbers located within a specified interval into first resource scores located within a certain preset interval. The larger the random number and the closer it is to the upper bound of the specified interval, the larger its corresponding first resource score; the smaller the random number and the closer it is to the lower bound of the specified interval, the larger its corresponding first resource score.
[0040] Taking the virtual human of digital resource P as an example, please refer to... Figure 3 In the resource setting request and transaction Tx1, for example, it may include multiple random attributes corresponding to the virtual human, specifically including six random attributes such as the virtual human's energy value, brain size, eye color, eye shape, aggressiveness, and resilience. The aforementioned instruction information can instruct the trusted device to obtain six random numbers corresponding to the aforementioned six random attributes. Furthermore, in the resource data corresponding to the digital resource P, the first resource score corresponding to each of the aforementioned six random numbers will be recorded under the six random attribute fields corresponding to the aforementioned six random attributes.
[0041] For example, a blockchain node can execute code segment 3 in smart contract C1 based on transaction Tx1 to determine the resource score of digital resource P based on the first resource score corresponding to each of several random numbers. For example, the sum of the first resource scores corresponding to each of several random numbers can be used to determine the resource score. In addition, it may also be possible to determine the resource level of digital resource P based on the resource score.
[0042] Continuing with the example of digital resource P being the aforementioned virtual human, assuming that the preset interval for the first resource score corresponding to each of the aforementioned 6 random numbers is the interval [1, 100], and the resource score is the sum of the first resource scores corresponding to each of the aforementioned 6 random numbers; furthermore, assuming that the resource data also includes two reserved target fields corresponding to the active attributes "active score" and "kind ship," the values of these two target fields may change in the subsequent process based on certain rules, but they are still within the interval [0, 200]. Therefore, the resource score that may be re-determined in the subsequent process may be within the interval [6, 1000]. Please refer to... Figure 4 Blockchain nodes, for example, can be configured according to... Figure 4 The exemplary mapping relationship between resource scores and resource levels determines the resource level of digital resource P.
[0043] Figure 5 This is the second flowchart of a method for processing digital resources in a blockchain system provided in the embodiments of this specification. The method describes the process by which producer a issues digital resource P in the blockchain system, such as... Figure 5 As shown, the method may include, but is not limited to, some or all of the steps 500 to 510 below.
[0044] Step 500: Device 1 sends a transaction Tx2 to a blockchain node in the blockchain system to generate digital resource P.
[0045] Step 502: The blockchain node generates digital resource P based on transaction Tx2.
[0046] Transaction Tx2 can, for example, request the invocation of smart contract C1. Blockchain nodes can execute transaction Tx2 to add resource data corresponding to digital resource P to the contract state of smart contract C1, thereby generating digital resource P in the blockchain system. Both transaction Tx2 and the resource data of digital resource P can include one or more of the following information: the account to which digital resource P belongs, the brand information corresponding to digital resource P, and the product information. In addition, the resource data can also include a resource identifier determined based on the brand information and / or product information. For example, a blockchain node can execute code segment 1 in smart contract C1 based on transaction Tx2 to generate the resource identifier of digital resource P based on the brand information and / or product information in transaction Tx1. Specifically, this can be achieved by using a preset algorithm to process the brand information and / or product information to obtain the resource identifier of digital resource P. It should be noted that multiple fields can be reserved in the resource data of digital resource P. For example, several random attribute fields can be reserved to correspond to several random attributes, several active attribute fields can be reserved to correspond to several active attributes, and fields can be reserved to record information such as resource score and resource level. The field values of the aforementioned reserved fields can be 0 or empty (NULL). The field value of the random attribute field will be prohibited from being modified after being modified once, while the field values of the other reserved fields can be changed multiple times based on certain specific rules.
[0047] Digital resource P can be a digital resource in the form of non-fungible tokens, and the account to which digital resource P belongs can be, for example, an external account registered by producer a in the blockchain system. More specifically, digital resource P can be, for example, an image of a human figure or other shapes, such as a human figure image (hereinafter referred to as a virtual human), animal image, or jewelry image belonging to brand B, etc. The embodiments in this specification do not limit the form of digital resource P.
[0048] Step 504: Device 1 provides a resource setting request containing instruction information to the trusted device.
[0049] The instruction information may include, for example, the number of random numbers the manufacturer expects the trusted device to acquire, and may also include the interval to which the random numbers expected to be acquired by the trusted device belong. Each random number acquired by the trusted device can satisfy a normal distribution within the specified interval, which may be an interval defined by the instruction information or an interval pre-set in the trusted device. Furthermore, the instruction information may also include, for example, the resource identifier of the digital resource P and / or the ownership account of the digital resource P.
[0050] Step 506: The trusted device obtains several random numbers based on the instruction information in the resource setting request.
[0051] Step 508: The trusted device sends a transaction Tx1 containing several random numbers to the blockchain node.
[0052] Transaction Tx1 is used to request the setting of digital resource P, more specifically, transaction Tx1 is used to request the setting of resource fraction of digital resource P in the blockchain system. In addition to the aforementioned random numbers, transaction Tx1 may also include other information in the resource setting request, such as the resource identifier of digital resource P and / or the account to which digital resource P belongs.
[0053] Step 510: The blockchain node sets the resource score of digital resource P according to transaction Tx1.
[0054] For example, transaction Tx1 can request to invoke smart contract C1. Blockchain nodes can set the resource score of digital resource P in the contract state of smart contract C1 by executing transaction Tx1. More specifically, they can set the resource score of digital resource P in the resource data of digital resource P contained in the contract state of smart contract C1.
[0055] For example, a blockchain node can execute code segment 4 in smart contract C1 based on transaction Tx1 to query the resource data of digital resource P based on the resource identifier or owner account of digital resource P in transaction Tx1.
[0056] For example, a blockchain node can execute code segment 2 in smart contract C1 based on transaction Tx1 to determine the first resource score corresponding to each of several random numbers. Code segment 2 can convert the random numbers located within a specified interval into first resource scores located within a certain preset interval. The larger the random number and the closer it is to the upper bound of the specified interval, the larger its corresponding first resource score; the smaller the random number and the closer it is to the lower bound of the specified interval, the larger its corresponding first resource score.
[0057] For example, a blockchain node can execute code segment 2 in smart contract C1 based on transaction Tx1 to determine the first resource score corresponding to each of several random numbers, and execute code segment 3 in smart contract C1 based on transaction Tx1 to determine the resource score of digital resource P based on the first resource scores corresponding to each of the several random numbers. For example, the sum of the first resource scores corresponding to the several random numbers can be used to determine the resource score. In addition, it may be possible to determine the resource level of digital resource P based on the resource score. Then, the blockchain node submits the execution result of transaction Tx1, setting the first resource scores corresponding to each of the several random numbers under several reserved random attribute fields in the resource data of digital resource P, recording the resource score under the corresponding reserved fields in the resource data of digital resource P, and recording the resource level under the corresponding reserved fields in the resource data of digital resource P.
[0058] Figure 6 This is the third flowchart of a method for processing digital resources in a blockchain system provided in the embodiments of this specification. The method describes the process described above. Figure 2 or Figure 5 The various embodiments shown illustrate the process of a target user purchasing / receiving digital resource P through their device 3 after the issuance of digital resource P in the blockchain system. Figure 6 As shown, the method may include, but is not limited to, the following steps 600 and 602.
[0059] Step 600: Device 3 sends transaction Tx3 to the blockchain node in the blockchain system.
[0060] Transaction Tx3 may include a first account and a resource identifier for digital resource P. The first account may be an external account registered in the blockchain system by the target user holding device 3. Transaction Tx3 may request to call the aforementioned smart contract C1.
[0061] Step 602: The blockchain node sets the first account as the owner account of digital resource P according to transaction Tx3.
[0062] For example, a blockchain node can execute a smart contract C1 based on transaction Tx3 to update the ownership account of the digital resource recorded in the resource data of digital resource P to the first account included in transaction Tx3.
[0063] Target users through Figure 6 After purchasing / receiving digital resource P using the method shown, you can also increase the resource score of the digital resource based on your online interaction with the digital resource and your participation in offline activities of the brand B to which digital resource P belongs.
[0064] Figure 7 This is the fourth flowchart of a method for processing digital resources in a blockchain system provided in the embodiments of this specification. This method describes the process by which blockchain nodes increase the resource score of digital resource P based on the online interaction between the target user and the digital resource P. Figure 7 As shown, the method may include, but is not limited to, the following steps 700 and 702.
[0065] Step 700: Device 3 sends a transaction Tx4 to the blockchain node in the blockchain system to query digital resource P.
[0066] When a target user downloads relevant data of digital resources from the blockchain system through device 3 to apply digital resource P to other service platforms, such as downloading data such as the resource identifier, graphic data, resource score and resource level of a virtual person to use the virtual person as an avatar in other social platforms, the target user may need to send a request to the blockchain platform through their device 3 to query the transaction Tx4 of digital resource P. Transaction Tx4 is used, for example, to call the aforementioned smart contract C1.
[0067] Step 702: Update the second resource score of digital resource P according to transaction Tx4, and determine the resource score of digital resource P at least according to the second resource score and the first resource score corresponding to each of several random numbers.
[0068] A blockchain node can increase the second resource score of digital resource P based on the execution of transaction Tx4. The resource score of digital resource P is determined at least based on the updated second resource score and the first resource scores corresponding to the aforementioned random numbers. Furthermore, it can update the resource score and resource level of digital resource P, etc. For example, please refer to the preceding text. Figure 3 The field value under the target field corresponding to the active attribute kindship is the second resource score of digital resource P, and the field value under the target field corresponding to the active attribute active score is the third resource score of digital resource P. In essence, the blockchain node needs to redetermine and update the resource score of digital resource P based on the first resource score corresponding to each of the aforementioned random numbers, the updated second resource score corresponding to the active attribute kindship, and the third resource score corresponding to the active attribute active score. It can also determine whether to continue updating the resource level of digital resource P based on the updated resource score.
[0069] Figure 8 This is the fifth flowchart of a method for processing digital resources in a blockchain system provided in the embodiments of this specification. This method describes the process by which blockchain nodes increase the resource score of digital resource P based on the online interaction between a target user and digital resource P. Figure 8 As shown, the method may include, but is not limited to, the following steps 800 and 802.
[0070] Step 800: The server of the target service platform sends transaction Tx5 to the blockchain node in the blockchain system.
[0071] The graphical data in digital resource P may be used to support digital resource P as the identity identifier of the target user in the target service platform, and to display digital resource P on device 3. This graphical data may be determined, for example, based on the aforementioned random numbers, or based on the first resource score corresponding to each of the random numbers. The target user can perform corresponding interactive operations with digital resource P displayed on device 3, thereby enabling the server of the target server platform connected to device 3 to collect the behavioral data corresponding to the interactive operations between the target user and digital resource P. Then, the server of the target service platform sends a transaction Tx5 containing this behavioral data to the blockchain system. Transaction Tx5 is used, for example, to call the aforementioned smart contract C1.
[0072] Step 802: Update the second resource score of digital resource P according to transaction Tx5, and determine the resource score of digital resource P at least according to the second resource score and the first resource score corresponding to each of several random numbers.
[0073] A blockchain node can increase the second resource score of digital resource P based on the execution of transaction Tx5. The resource score of digital resource P is determined at least based on the updated second resource score and the first resource scores corresponding to the aforementioned random numbers. Furthermore, it can update the resource score and resource level of digital resource P, etc. For example, please refer to the preceding text. Figure 3 The field value under the target field corresponding to the active attribute kindship is the second resource score of digital resource P, and the field value under the target field corresponding to the active attribute active score is the third resource score of digital resource P. In essence, the blockchain node can redetermine and update the resource score of digital resource P based on the first resource score corresponding to each of the aforementioned random numbers, the updated second resource score corresponding to the active attribute kindship, and the third resource score corresponding to the active attribute active score. Furthermore, it can determine whether to continue updating the resource level of digital resource P based on the updated resource score.
[0074] Figure 9 This is the sixth flowchart of a method for processing digital resources in a blockchain system provided in the embodiments of this specification. This method describes the process of increasing the resource score of digital resource P based on user participation in offline activities of brand B, to which digital resource P belongs. Figure 9 As shown, the method may include, but is not limited to, the following steps 900 and 902.
[0075] Step 900: Device 3 sends transaction Tx6 to the blockchain node in the blockchain system.
[0076] Target users can participate in offline events hosted by brand B, the parent company of digital resource P. For example, they can use their device 3 to scan a QR code at the event venue or use other possible methods to obtain an event token and brand information for brand B. Then, device 3 sends a transaction Tx6 containing the event token and brand information for digital resource P to the blockchain system. Transaction Tx6, for example, is used to invoke the aforementioned smart contract C1.
[0077] Step 902: Update the third resource score of digital resource P according to transaction Tx6, and determine the resource score of digital resource P at least according to the third resource score and the first resource score corresponding to each of the several random numbers.
[0078] A blockchain node can increase the third resource score of digital resource P based on the execution of transaction Tx6. The resource score of digital resource P is determined at least based on the updated third resource score and the first resource scores corresponding to the aforementioned random numbers. Furthermore, it can update the resource score and resource level of digital resource P, etc. For example, please refer to the preceding text. Figure 3 The field value under the target field corresponding to the active attribute kindship is the second resource score of digital resource P, and the field value under the target field corresponding to the active attribute active score is the third resource score of digital resource P. In essence, the blockchain node can redetermine and update the resource score of digital resource P based on the first resource score corresponding to each of the aforementioned random numbers, the updated second resource score corresponding to the active attribute kindship, and the third resource score corresponding to the active attribute active score. Furthermore, it can determine whether to continue updating the resource level of digital resource P based on the updated resource score.
[0079] Through the technical solutions provided in the foregoing method embodiments of this specification, after a blockchain node receives a transaction requesting the setting of digital resources in the blockchain system, it sets the resource score of the digital resource in the blockchain system based on several random numbers contained in the transaction. This allows for the measurement of the importance or value of different digital resources in specific application scenarios through the resource score, while ensuring fairness. Furthermore, after a target user purchases / receives a digital resource, the resource score of the digital resource can be increased based on the target user's online interaction with the digital resource and the target user's participation in offline activities of the brand to which the digital resource belongs, thereby enhancing the importance or value of the digital resource.
[0080] Based on the same concept as the aforementioned method embodiments, this specification also provides a blockchain node in a blockchain system. For example... Figure 10As shown, the blockchain node includes: a transaction receiving unit 1000, configured to receive a first transaction, the first transaction being used to request the setting of a first digital resource in the blockchain system, the first transaction including a plurality of random numbers; and a transaction processing unit 1002, configured to set the resource score of the first digital resource in the blockchain system according to the first transaction, the resource score of the first digital resource being determined based on the plurality of random numbers.
[0081] Based on the same concept as the foregoing method embodiments, this specification also provides a digital resource processing system in a blockchain system. The processing system includes: a trusted device and a blockchain system; wherein the trusted device is used to obtain a plurality of random numbers and send a first transaction containing the plurality of random numbers to the blockchain system, causing blockchain nodes in the blockchain system to set a resource score for the first digital resource in the blockchain system according to the first transaction, the resource score of the first digital resource being determined based on the plurality of random numbers.
[0082] In one possible implementation, the processing system further includes a first device for providing a resource setting request to the trusted device, the resource setting request including indication information; wherein the trusted device is configured to obtain the plurality of random numbers according to the indication information.
[0083] In one possible implementation, the random number follows a normal distribution within a specified interval.
[0084] In one possible implementation, the first transaction is used to invoke a smart contract, instructing the blockchain system to add resource data corresponding to the first digital resource to the contract state of the smart contract, wherein the resource data includes a resource score determined based on the plurality of random numbers.
[0085] In one possible implementation, the resource data further includes at least one of the following: the account to which the first digital resource belongs, the brand information corresponding to the first digital resource, and the first resource score corresponding to each of the plurality of random numbers; wherein the resource score of the first digital resource is determined based on the first resource score corresponding to each of the plurality of random numbers.
[0086] In one possible implementation, the processing system further includes a first device for providing a resource setting request to the trusted device; the resource setting request and the first transaction both include at least one of the following: the owner account of the first digital resource and the brand information corresponding to the first digital resource.
[0087] In one possible implementation, the resource data further includes graphic data to support the first digital resource as an identity identifier for a target user on a target service platform, wherein the target user holds an account to which the first digital resource belongs, and the graphic data is determined based on the plurality of random numbers.
[0088] In one possible implementation, the processing system further includes a second device for sending a second transaction to the blockchain system, which includes a first account and a resource identifier of the first digital resource.
[0089] In one possible implementation, the second device is further configured to send a third transaction and / or a fifth transaction to the blockchain system, wherein the third transaction is used to request a query for resource data corresponding to the first digital resource, and the fifth transaction includes brand information corresponding to the first digital resource and an activity token obtained by the second device.
[0090] In one possible implementation, the processing system further includes: a server of the target service platform, configured to acquire behavioral data of the target user based on the interaction between the target user and the first digital resource displayed on the second device, and send a fourth transaction containing the behavioral data to the blockchain system, wherein the target user holds the first account.
[0091] While one or more embodiments of this specification provide the operational steps of the methods described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive means. The order of steps listed in the embodiments is merely one possible order of execution among many steps and does not represent the only possible order. In actual device or end product execution, the methods shown in the embodiments or drawings may be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment, or even a distributed data processing environment). The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, product, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, product, or apparatus. Without further limitations, the presence of other identical or equivalent elements in the process, method, product, or apparatus that includes the elements is not excluded. For example, the use of terms such as "first," "second," etc., is to denote names and does not indicate any particular order.
[0092] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations 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, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0093] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0094] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0095] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0096] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0097] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0098] Those skilled in the art will understand that one or more embodiments of this specification can be provided as a method, system, or computer program product. Therefore, one or more embodiments of this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. 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, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0099] One or more embodiments of this specification can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a particular task or implement a particular abstract data type. One or more embodiments of this specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0100] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, system embodiments are basically similar to method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments. In the description of this specification, the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this specification. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described can be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0101] The above description is merely an embodiment of one or more embodiments of this specification and is not intended to limit the scope of these embodiments. Various modifications and variations can be made to these embodiments by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims.
Claims
1. A method for processing digital resources in a blockchain system, the method being executed by blockchain nodes, the method comprising: Receive a first transaction, which is used to request the setting of a first digital resource in the blockchain system, and the first transaction includes several random numbers; According to the first transaction, a resource score of the first digital resource is set in the blockchain system. The resource score of the first digital resource is determined based on the first resource score corresponding to each of the plurality of random numbers. The first resource score corresponding to each of the plurality of random numbers is also used to redetermine the resource score of the first digital resource with the field value of the activity attribute after the field value of the activity attribute of the first digital resource changes. The field value of the activity attribute changes based on at least one of the following: the target user interacts with the first digital resource online and the target user participates in offline activities of the brand to which the first digital resource belongs.
2. The method according to claim 1, wherein the first transaction originates from a trusted device, and the plurality of random numbers are obtained by the trusted device.
3. The method according to claim 2, wherein the first transaction is generated by the trusted device based on a resource setting request from the first device, the resource setting request including indication information instructing the trusted device to obtain the plurality of random numbers.
4. The method according to claim 1, wherein the random number follows a normal distribution within a specified interval.
5. The method according to claim 1, wherein the first transaction is used to invoke a smart contract; wherein, The step of setting the resource score of the first digital resource in the blockchain system according to the first transaction includes: adding resource data corresponding to the first digital resource to the contract state of the smart contract according to the first transaction, wherein the resource data includes a resource score determined based on the plurality of random numbers.
6. The method according to claim 5, wherein the resource data further includes at least one of the following: the owner account of the first digital resource, the resource identifier of the first digital resource, the brand information corresponding to the first digital resource, and the first resource score corresponding to each of the plurality of random numbers; wherein the resource score of the first digital resource is determined based on the first resource score corresponding to each of the plurality of random numbers.
7. The method according to claim 6, wherein the first transaction is generated by a trusted device based on a resource setting request from a first device; both the resource setting request and the first transaction include at least one of the following: the owner account of the first digital resource and the brand information corresponding to the first digital resource.
8. The method according to claim 5, wherein the resource data further includes graphic data, the graphic data being used to support the first digital resource as an identity identifier for a target user in a target service platform, the target user holding an account to which the first digital resource belongs, and the graphic data being determined based on the plurality of random numbers.
9. The method according to any one of claims 1-8, further comprising: Receive a second transaction, the second transaction including the first account and the resource identifier of the first digital resource; The first account is set as the owner account for the first digital resource according to the second transaction.
10. The method according to claim 9, further comprising: Receive a third transaction, the third transaction being used to request a query for resource data corresponding to the first digital resource; The second resource score of the first digital resource is updated according to the third transaction, and the resource score of the first digital resource is determined at least according to the second resource score and the first resource score corresponding to each of the plurality of random numbers.
11. The method according to claim 9, further comprising: Receive a fourth transaction, the fourth transaction including behavioral data of a target user, the behavioral data being obtained based on the interaction between the target user and the first digital resource displayed on the second device, the target user holding the first account; The second resource score of the first digital resource is updated according to the fourth transaction, and the resource score of the first digital resource is determined at least according to the second resource score and the first resource score corresponding to each of the plurality of random numbers.
12. The method according to claim 9, further comprising: Receive a fifth transaction from the second device, the fifth transaction including brand information of the first digital resource and an activity token obtained by the second device; The third resource score of the first digital resource is updated according to the fifth transaction, and the resource score of the first digital resource is determined at least according to the third resource score and the first resource score corresponding to each of the plurality of random numbers.
13. A blockchain node device in a blockchain system, the blockchain node device comprising: A transaction receiving unit is configured to receive a first transaction, which is used to request the setting of a first digital resource in the blockchain system. The first transaction includes several random numbers. The transaction processing unit is configured to set the resource score of the first digital resource in the blockchain system according to the first transaction. The resource score of the first digital resource is determined based on the first resource score corresponding to each of the plurality of random numbers. The first resource score corresponding to each of the plurality of random numbers is further used to redetermine the resource score of the first digital resource with the field value of the activity attribute after the field value of the activity attribute of the first digital resource changes. The field value of the activity attribute changes based on at least one of the following: the target user interacts with the first digital resource online and the target user participates in offline activities of the brand to which the first digital resource belongs.
14. A digital resource processing system within a blockchain system, comprising: A trusted device and a blockchain system; wherein the trusted device is used to acquire a plurality of random numbers and send a first transaction containing the plurality of random numbers to the blockchain system, so that a blockchain node in the blockchain system sets a resource score of a first digital resource in the blockchain system according to the first transaction, and the resource score of the first digital resource is determined based on the first resource score corresponding to each of the plurality of random numbers; wherein the first resource score corresponding to each of the plurality of random numbers is also used to redetermine the resource score of the first digital resource with the field value of the activity attribute after the field value of the activity attribute of the first digital resource changes; the field value of the activity attribute changes based on at least one of the following: the target user interacts with the first digital resource online and the target user participates in offline activities of the brand to which the first digital resource belongs.
15. The processing system of claim 14, further comprising a first device for providing a resource setting request to the trusted device, the resource setting request including indication information; wherein, The trusted device is used to obtain the plurality of random numbers according to the instruction information.
16. The processing system according to claim 14, wherein the random number follows a normal distribution within a specified interval.
17. The processing system according to claim 14, wherein the first transaction is used to invoke a smart contract, instructing the blockchain system to add resource data corresponding to the first digital resource to the contract state of the smart contract, wherein the resource data includes a resource score determined based on the plurality of random numbers.
18. The processing system according to claim 17, wherein the resource data further includes at least one of the following: the owner account of the first digital resource, the resource identifier of the first digital resource, the brand information corresponding to the first digital resource, and the first resource score corresponding to each of the plurality of random numbers; wherein the resource score of the first digital resource is determined based on the first resource score corresponding to each of the plurality of random numbers.
19. The processing system according to claim 18, further comprising a first device for providing a resource setting request to the trusted device; wherein the resource setting request and the first transaction each include at least one of the following: the owner account of the first digital resource and the brand information corresponding to the first digital resource.
20. The processing system according to claim 17, wherein the resource data further includes graphic data for supporting the first digital resource as an identity identifier of the target user in the target service platform, the target user holding a first account, and the graphic data being determined based on the plurality of random numbers.
21. The processing system according to any one of claims 14-20, further comprising: The second device is used to send a second transaction to the blockchain system, which includes the first account and the resource identifier of the first digital resource.
22. The processing system according to claim 21, wherein the second device is further configured to send a third transaction and / or a fifth transaction to the blockchain system, the third transaction being used to request a query for resource data corresponding to the first digital resource, and the fifth transaction including brand information corresponding to the first digital resource and an activity token obtained by the second device.
23. The processing system according to claim 21, further comprising: The server of the target service platform is used to obtain the target user's behavioral data based on the interaction between the target user and the first digital resource displayed on the second device, and send a fourth transaction containing the behavioral data to the blockchain system, wherein the target user holds the first account.
24. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed in a computing device, the computing device performs the method of any one of claims 1-12.