On-chain redemption method, device, equipment and medium for NFT digital assets
By building a redemption priority model and storing priority information using NFT metadata on the blockchain, combining smart contract detection and redemption contracts, the problem that NFT protocol cannot associate redemption priority is solved, and efficient and secure on-chain redemption is achieved.
Patent Information
- Application Number
- CN202510715161.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2045-05-30
AI Technical Summary
The existing NFT protocol cannot associate the priority of redemption on the blockchain, resulting in the inability to efficiently perform on-chain redemption, and users cannot accurately know the actual value of the assets and the redemption order.
Build a redemption priority model, use NFT metadata on the blockchain to store redemption priority information, and use smart contracts to detect redemption funds arrival events according to preset cycles, and use redemption contracts to perform on-chain redemption according to priority information.
It realizes efficient and secure redemption on the blockchain, ensures consistency and verifiability of the redemption order, and clearly expresses redemption priority and proportion.
Smart Images

Figure CN120235712B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to an on-chain redemption method, device, equipment and medium for NFT digital assets. Background Art
[0002] In the multi-level circulation scenario of divisible assets, if the corresponding original assets such as accounts receivable are partially redeemed, the divided asset shares will be redeemed in a certain order or proportion according to the split structure, the creditor's agreement and the provisions of the financing contract, which results in the divided assets having different redemption orders or risk levels.
[0003] In the above-mentioned traditional redemption method, users cannot know the actual redemption priority, and cannot perform related operations on the chain (such as on-chain settlement) based on the redemption priority information, resulting in the actual value of the assets not being reflected on the chain.
[0004] For example, NFTs (Non-Fungible Tokens) representing digital assets like accounts receivable can only reflect the splitting relationship and circulation process. Due to the redemption priority in actual business, the risk level of NFTs after splitting varies. However, because existing NFT protocols cannot associate redemption priorities on the blockchain, these NFTs do not accurately reflect the actual value of the assets. Summary of the Invention
[0005] In view of the above, it is necessary to provide an on-chain redemption method, device, equipment and medium for NFT digital assets, aiming to solve the problem of being unable to perform efficient on-chain redemption due to the inability of the NFT protocol to associate redemption priority on the blockchain.
[0006] An on-chain redemption method for NFT digital assets, the on-chain redemption method for NFT digital assets comprising:
[0007] Construct a payment priority model based on the bucket model structure;
[0008] Utilize the NFT metadata on the blockchain to store the priority information of the redemption priority model;
[0009] Using smart contracts to detect redemption fund arrival events on the blockchain according to a preset period;
[0010] When the redemption funds arrival event is detected on the blockchain, the redemption contract in the smart contract is used to perform on-chain redemption of the received redemption funds according to the priority information.
[0011] According to a preferred embodiment of the present invention, constructing a redemption priority model based on the bucket model structure includes:
[0012] Obtaining the initial NFT and the redemption strategy for the initial NFT;
[0013] Generate a redemption bucket corresponding to the initial NFT according to the redemption strategy; wherein the wall of the redemption bucket includes horizontal and vertical lines;
[0014] Splitting the initial NFT into at least one sub-NFT according to the horizontal line and the vertical line;
[0015] Configure the redemption priority of each sub-NFT according to the height of the horizontal line corresponding to each sub-NFT;
[0016] Construct the structure of each sub-NFT based on its redemption priority;
[0017] Integrate the structures of all sub-NFTs to obtain the redemption priority model;
[0018] Among them, for each sub-NFT, the lower the height of the corresponding horizontal line, the higher the corresponding redemption priority.
[0019] According to a preferred embodiment of the present invention, the structure of each sub-NFT is constructed according to the redemption priority of each sub-NFT, including:
[0020] For each sub-NFT, construct a first field corresponding to the horizontal line, and construct a second field corresponding to the vertical line;
[0021] configuring a field value of the first field according to the redemption priority; wherein the smaller the field value of the first field, the higher the corresponding redemption priority;
[0022] Configure the field value of the second field according to the redemption policy; wherein the field value of the second field is used to represent the redemption weight of the corresponding sub-NFT;
[0023] Generate the structure of the sub-NFT according to the field value of the first field and the field value of the second field;
[0024] Among them, the sum of the field values of the second field corresponding to each sub-NFT with the same field value of the first field is 1.
[0025] According to a preferred embodiment of the present invention, the use of NFT metadata on the blockchain to store the priority information of the redemption priority model includes:
[0026] Performing field expansion on the NFT metadata to obtain an extended field;
[0027] Calculating a hash value of the priority information using a hash algorithm;
[0028] A hash value of the priority information is added to the extension field.
[0029] According to a preferred embodiment of the present invention, after storing the priority information of the redemption priority model using the NFT metadata on the blockchain, the method further includes:
[0030] Splitting the NFT metadata according to the configured splitting strategy to obtain multiple data blocks; wherein the extension field is one of the multiple data blocks;
[0031] Calculate the hash value of each data block as each leaf node;
[0032] Recursively process each leaf node to obtain a Merkle tree and its root hash value;
[0033] The Merkle tree and the root hash value are stored in an off-chain database.
[0034] According to a preferred embodiment of the present invention, after storing the Merkle tree and the root hash value in the off-chain database, the method further includes:
[0035] When the smart contract on the blockchain receives a verification instruction for any leaf node in the Merkle tree, the Merkle tree and the root hash value are transmitted to the blockchain;
[0036] Obtaining, according to the verification instruction, a hash value of the arbitrary leaf node stored on the blockchain as a reference hash value;
[0037] Recalculate the hash value of any leaf node as the hash value to be verified;
[0038] Compare the hash value to be verified with the reference hash value to perform on-chain verification on the hash value of the arbitrary leaf node.
[0039] According to a preferred embodiment of the present invention, using the redemption contract in the smart contract to perform on-chain redemption of the received redemption funds according to the priority information includes:
[0040] Record the arrival time and amount of the redemption funds;
[0041] Obtain each unredeemed sub-NFT in the redemption priority model;
[0042] Traverse each unredeemed sub-NFT in descending order of priority according to the priority information;
[0043] Inject the received amount into the unredeemed sub-NFTs layer by layer, and redeem them according to the redemption weight of each unredeemed sub-NFT;
[0044] Update the redemption status of the traversed unredeemed sub-NFT and generate an event based on the redemption status; wherein the event is used to represent the feedback information of the redemption success or failure for query.
[0045] A computer device, comprising:
[0046] a memory storing at least one instruction; and
[0047] A processor executes instructions stored in the memory to implement the on-chain redemption method of the NFT digital asset.
[0048] A computer-readable storage medium storing at least one instruction, wherein the at least one instruction is executed by a processor in a computer device to implement an on-chain redemption method for the NFT digital asset.
[0049] It can be seen from the above technical solutions that the present invention can construct a redemption priority model based on the bucket model structure to clearly express the redemption priority and redemption ratio through the model; use the NFT metadata on the blockchain to store the priority information of the redemption priority model to ensure that the redemption order remains consistent and verifiable throughout the entire life cycle; use the smart contract to detect the redemption funds arrival event on the blockchain according to the preset period, and when the redemption funds arrival event is detected on the blockchain, use the redemption contract in the smart contract to perform on-chain redemption of the received redemption funds according to the priority information, thereby enabling efficient and secure on-chain redemption through the on-chain priority model. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is a flowchart of a preferred embodiment of the on-chain redemption method for NFT digital assets of the present invention;
[0051] Figure 2 This is a schematic diagram of the on-chain redemption of the present invention;
[0052] Figure 3 This is a functional module diagram of a preferred embodiment of the on-chain redemption device for NFT digital assets of the present invention;
[0053] Figure 4 It is a structural diagram of a computer device of a preferred embodiment of the present invention for implementing the on-chain redemption method of NFT digital assets. DETAILED DESCRIPTION
[0054] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0055] like Figure 1 The figure is a flowchart of a preferred embodiment of the on-chain redemption method of NFT digital assets of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0056] The on-chain redemption method of the NFT digital asset is applied to one or more computer devices. The computer device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0057] The computer device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.
[0058] The computer device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.
[0059] The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0060] Among them, Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0061] Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0062] The network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.
[0063] S10: Build a redemption priority model based on the bucket model structure.
[0064] In this embodiment, constructing a redemption priority model based on the bucket model structure includes:
[0065] Obtaining the initial NFT (Non-Fungible Token) and the redemption strategy for the initial NFT;
[0066] Generate a redemption bucket corresponding to the initial NFT according to the redemption strategy; wherein the wall of the redemption bucket includes horizontal and vertical lines;
[0067] Splitting the initial NFT into at least one sub-NFT according to the horizontal line and the vertical line;
[0068] Configure the redemption priority of each sub-NFT according to the height of the horizontal line corresponding to each sub-NFT;
[0069] Construct the structure of each sub-NFT based on its redemption priority;
[0070] Integrate the structures of all sub-NFTs to obtain the redemption priority model;
[0071] Among them, for each sub-NFT, the lower the height of the corresponding horizontal line, the higher the corresponding redemption priority.
[0072] Herein, the initial NFT refers to the initial digital asset value to be processed, such as original accounts receivable.
[0073] The payment strategy refers to the payment method, payment priority and other related payment information configured in accordance with the agreement.
[0074] Among them, the horizontal line is equivalent to the redemption water level line, and the vertical line is equivalent to the redemption share.
[0075] The vertical lines can represent the shares of different sub-NFTs under the same waterline.
[0076] Among them, when the redemption payment "fills water" into the bucket, the water flows to the lower layer first, that is, the NFT with lower redemption height is given priority.
[0077] Among them, if the water level does not reach a certain level, the NFT of that layer and the layer above it will not be redeemed.
[0078] The above-mentioned bucket-structured repayment priority model can clearly express the order and proportion of repayment and adapt to the risk structure modeling of financial assets.
[0079] In this embodiment, the structure of each sub-NFT is constructed according to the redemption priority of each sub-NFT, including:
[0080] For each sub-NFT, construct a first field corresponding to the horizontal line, and construct a second field corresponding to the vertical line;
[0081] configuring a field value of the first field according to the redemption priority; wherein the smaller the field value of the first field, the higher the corresponding redemption priority;
[0082] Configure the field value of the second field according to the redemption policy; wherein the field value of the second field is used to represent the redemption weight of the corresponding sub-NFT;
[0083] Generate the structure of the sub-NFT according to the field value of the first field and the field value of the second field;
[0084] Among them, the sum of the field values of the second field corresponding to each sub-NFT with the same field value of the first field is 1.
[0085] For example, the first field can be configured as height, and the second field can be configured as weight. The first field and the second field are core fields of the structure, and the configured structure can be:
[0086] {
[0087] "name": "AR-NFT-001",
[0088] "type": "ReceivableShare",
[0089] "repayment_priority": {
[0090] "height": 10000,
[0091] "weight": 0.5,
[0092] "dynamicRules": null
[0093] }
[0094] }.
[0095] In the above structure, a new repayment_priority tag is added, where "height" represents the starting amount of the sub-NFT's redemption, that is, the position of the redemption waterline. The smaller the value, the higher the priority of redemption.
[0096] "weight" represents the redemption weight of the current sub-NFT at the "height" water level. At each height level, the sum of the weights of all NFTs is 1, and the redemption amount of the current water level is allocated according to the weight ratio.
[0097] S11, using the NFT metadata on the blockchain to store the priority information of the redemption priority model.
[0098] In this embodiment, the priority information of the redemption priority model stored using NFT metadata on the blockchain includes:
[0099] Performing field expansion on the NFT metadata to obtain an extended field;
[0100] Calculating a hash value of the priority information using a hash algorithm;
[0101] A hash value of the priority information is added to the extension field.
[0102] Through the above embodiments, it is possible to prevent the priority information from being tampered with through encryption hash verification.
[0103] In this embodiment, after using the NFT metadata on the blockchain to store the priority information of the redemption priority model, the method further includes:
[0104] Splitting the NFT metadata according to the configured splitting strategy to obtain multiple data blocks; wherein the extension field is one of the multiple data blocks;
[0105] Calculate the hash value of each data block as each leaf node;
[0106] Recursively process each leaf node to obtain a Merkle tree and its root hash value;
[0107] The Merkle tree and the root hash value are stored in an off-chain database.
[0108] The configuration splitting strategy may be configured according to the agreement or contract provisions.
[0109] For example, N transactions can be grouped in the order of transaction numbers, where N is a positive integer.
[0110] The recursive processing performed on each leaf node to obtain a Merkle tree and a root hash value of the Merkle tree includes:
[0111] Combine the hash values of adjacent leaf nodes (or existing intermediate nodes) and calculate the hash value again. For example, if there are two adjacent leaf nodes with hash values hash_1 and hash_2, concatenate them into a new string combined_data = hash_1 + hash_2, and then calculate the hash value of this string to obtain the new hash value parent_hash = hash_function(combined_data). This value is the hash value of the parent node of the two adjacent leaf nodes.
[0112] If the number of nodes in a layer is odd, for the last remaining single node, one way to process it is to directly perform a hash operation on it to obtain the hash of the parent node; the other way is to copy the node to make an even number of nodes and then process it.
[0113] The above process is repeated, and the newly obtained intermediate node hash values are further combined and hashed, building higher-level nodes upward until a unique root hash value is finally obtained. At this point, the root hash value of the resulting Merkle tree represents the characteristics of all metadata.
[0114] Furthermore, the constructed Merkle tree and the corresponding root hash value can be stored in an off-chain database, such as a local database.
[0115] When verification of the on-chain contract is required, the root hash value and related necessary information (such as the Merkle tree structure description) can be transmitted to the blockchain.
[0116] In this embodiment, after storing the Merkle tree and the root hash value in the off-chain database, the method further includes:
[0117] When the smart contract on the blockchain receives a verification instruction for any leaf node in the Merkle tree, the Merkle tree and the root hash value are transmitted to the blockchain;
[0118] Obtaining, according to the verification instruction, a hash value of the arbitrary leaf node stored on the blockchain as a reference hash value;
[0119] Recalculate the hash value of any leaf node as the hash value to be verified;
[0120] Compare the hash value to be verified with the reference hash value to perform on-chain verification on the hash value of the arbitrary leaf node.
[0121] Through the above embodiment, the branches and leaf nodes of the Merkle tree can be verified separately without the need to verify the entire tree, thereby improving the on-chain verification efficiency.
[0122] Of course, after receiving the root hash and related information, the on-chain contract can verify whether a certain part of the metadata has been tampered with by recalculating the root hash using the provided Merkle tree structure and the hash value on the corresponding path, and then comparing it with the received root hash. If the two are consistent, it means that the metadata is intact and has not been tampered with; if they are inconsistent, it indicates that the metadata may have been tampered with.
[0123] Through the above embodiments, the overall verification of the Merkle tree structure can be achieved according to the root hash value to verify whether the metadata has been tampered with.
[0124] S12, using a smart contract to detect the arrival of redemption funds on the blockchain according to a preset period.
[0125] In this embodiment, the preset period can be customized.
[0126] S13, when it is detected that the redemption funds have arrived on the blockchain, the redemption contract in the smart contract is used to perform on-chain redemption of the received redemption funds according to the priority information.
[0127] In this embodiment, using the redemption contract in the smart contract to perform on-chain redemption of the received redemption funds according to the priority information includes:
[0128] Record the arrival time and amount of the redemption funds;
[0129] Obtain each unredeemed sub-NFT in the redemption priority model;
[0130] Traverse each unredeemed sub-NFT in descending order of priority according to the priority information;
[0131] Inject the received amount into the unredeemed sub-NFTs layer by layer, and redeem them according to the redemption weight of each unredeemed sub-NFT;
[0132] Update the redemption status of the traversed unredeemed sub-NFT and generate an event based on the redemption status; wherein the event is used to represent the feedback information of the redemption success or failure for query.
[0133] For example: See Figure 2 , is a schematic diagram of the on-chain redemption of the present invention. Figure 2 There are 4 sub-NFTs in it. When the initial NFT is 100, Figure 2If the watermark reaches the height of sub-NFT1, sub-NFT2, and sub-NFT3, sub-NFT1, sub-NFT2, and sub-NFT3 will be redeemed first, with a redemption ratio of 3:5:2, that is, the weights are 0.3, 0.5, and 0.2 respectively. If the current redemption amount is 10, sub-NFT1, sub-NFT2, and sub-NFT3 will be redeemed for 3 (i.e., 10*0.3), 5 (i.e., 10*0.5), and 2 (i.e., 10*0.2), respectively.
[0134] It should be noted that sub-NFT1, sub-NFT2 and sub-NFT3 are not completely redeemed, so they will be automatically split after redemption, and eventually become 7 sub-NFTs, 3 of which are in the redeemed status.
[0135] In the above embodiment, when each NFT is split, the smart contract will strictly generate NFT metadata that matches it according to the rules to ensure that the redemption order remains consistent and verifiable throughout the entire life cycle.
[0136] Moreover, the redemption priority model enables on-chain redemption without the assistance of other off-chain systems, making it more efficient and secure.
[0137] This embodiment is applicable to, but not limited to, the following scenarios:
[0138] Supply chain finance: Upstream companies conduct risk stratification and splitting of accounts receivable from multiple suppliers;
[0139] Asset-backed Securities (ABS): The original assets are split into Senior / Sub-tranches, with automated redemption.
[0140] Web3 crowdfunding platform: early investors have lower height (priority returns);
[0141] Insurance and compensation mechanism: multiple compensation responsibilities are executed in sequence and proportion;
[0142] Revenue tiered DAO (Decentralized Autonomous Organization) governance mechanism: different levels of revenue are enjoyed according to participating roles or time weights.
[0143] It can be seen from the above technical solutions that the present invention can construct a redemption priority model based on the bucket model structure to clearly express the redemption priority and redemption ratio through the model; use the NFT metadata on the blockchain to store the priority information of the redemption priority model to ensure that the redemption order remains consistent and verifiable throughout the entire life cycle; use the smart contract to detect the redemption funds arrival event on the blockchain according to the preset period, and when the redemption funds arrival event is detected on the blockchain, use the redemption contract in the smart contract to perform on-chain redemption of the received redemption funds according to the priority information, thereby enabling efficient and secure on-chain redemption through the on-chain priority model.
[0144] like Figure 3 , which is a functional module diagram of a preferred embodiment of the on-chain redemption device for NFT digital assets of the present invention. The on-chain redemption device 11 for NFT digital assets includes a construction unit 110, a storage unit 111, a detection unit 112, and a redemption unit 113. The module / unit referred to in the present invention refers to a series of computer program segments that can be executed by a processor and can perform fixed functions, which are stored in a memory. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0145] The construction unit 110 is used to construct a redemption priority model according to the bucket model structure;
[0146] The storage unit 111 is used to store the priority information of the redemption priority model using the NFT metadata on the blockchain;
[0147] The detection unit 112 is configured to detect the redemption fund arrival event on the blockchain according to a preset period using a smart contract;
[0148] The redemption unit 113 is configured to, when detecting that the redemption funds arrival event occurs on the blockchain, use the redemption contract in the smart contract to perform on-chain redemption of the received redemption funds according to the priority information.
[0149] It can be seen from the above technical solutions that the present invention can construct a redemption priority model based on the bucket model structure to clearly express the redemption priority and redemption ratio through the model; use the NFT metadata on the blockchain to store the priority information of the redemption priority model to ensure that the redemption order remains consistent and verifiable throughout the entire life cycle; use the smart contract to detect the redemption funds arrival event on the blockchain according to the preset period, and when the redemption funds arrival event is detected on the blockchain, use the redemption contract in the smart contract to perform on-chain redemption of the received redemption funds according to the priority information, thereby enabling efficient and secure on-chain redemption through the on-chain priority model.
[0150] like Figure 4 The figure shows a schematic diagram of the structure of a computer device of a preferred embodiment of the present invention for implementing the on-chain redemption method of NFT digital assets.
[0151] The computer device 1 may include a memory 12, a processor 13 and a bus (the arrow in the figure represents the bus), and may also include a computer program stored in the memory 12 and executable on the processor 13, such as an on-chain redemption program for NFT digital assets.
[0152] Those skilled in the art will understand that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation on the computer device 1. The computer device 1 may have either a bus structure or a star structure. The computer device 1 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components. For example, the computer device 1 may also include input and output devices, network access devices, etc.
[0153] It should be noted that the computer device 1 is only an example. Other existing or future electronic products that are suitable for the present invention should also be included in the scope of protection of the present invention and included here by reference.
[0154] Memory 12 includes at least one type of readable storage medium, including flash memory, a removable hard drive, a multimedia card, a card-type memory (e.g., SD or DX memory), a magnetic storage device, a magnetic disk, an optical disk, and the like. In some embodiments, memory 12 may be an internal storage unit of computer device 1, such as a removable hard drive of computer device 1. In other embodiments, memory 12 may also be an external storage device of computer device 1, such as a plug-in removable hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, and the like. Furthermore, memory 12 may include both an internal storage unit and an external storage device of computer device 1. Memory 12 can be used not only to store application software installed on computer device 1 and various types of data, such as the code for the on-chain redemption process for NFT digital assets, but also to temporarily store data that has been output or is about to be output.
[0155] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 13 is the control core (Control Unit) of the computer device 1, connecting the various components of the entire computer device 1 using various interfaces and lines. It executes the various functions of the computer device 1 and processes data by running or executing programs or modules stored in the memory 12 (for example, executing the on-chain redemption program for NFT digital assets, etc.), and calling data stored in the memory 12.
[0156] The processor 13 executes the operating system of the computer device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned on-chain redemption method embodiments of each NFT digital asset, such as Figure 1 Steps shown.
[0157] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into a construction unit 110, a storage unit 111, a detection unit 112, and a redemption unit 113.
[0158] The above-mentioned integrated unit implemented in the form of a software functional module can be stored in a computer-readable storage medium. The above-mentioned software functional module is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, computer equipment, or network equipment, etc.) or a processor to execute the portion of the on-chain redemption method for NFT digital assets described in various embodiments of the present invention.
[0159] If the modules / units integrated in the computer device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can also implement all or part of the processes in the above-mentioned method embodiments by instructing relevant hardware devices through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments.
[0160] The computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.
[0161] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0162] Blockchain, as used in this article, refers to a novel application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks linked together using cryptographic methods. Each block contains information about a batch of online transactions, used to verify the validity of this information (to prevent counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product and service layer, and the application service layer.
[0163] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The figure shows that only one straight line is used, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13.
[0164] Although not shown, the computer device 1 may also include a power supply (such as a battery) to power various components. Preferably, the power supply can be logically connected to the at least one processor 13 via a power management device, thereby enabling functions such as charge management, discharge management, and power consumption management through the power management device. The power supply may also include one or more DC or AC power supplies, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components. The computer device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be further described here.
[0165] Furthermore, the computer device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the computer device 1 and other computer devices.
[0166] Optionally, the computer device 1 may further include a user interface, which may be a display or an input unit (such as a keyboard). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display may also be appropriately referred to as a display screen or display unit, and is used to display information processed by the computer device 1 and to display a visual user interface.
[0167] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0168] It will be understood by those skilled in the art that Figure 4 The structure shown does not constitute a limitation on the computer device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0169] Combine Figure 1 , the memory 12 in the computer device 1 stores multiple instructions to implement an on-chain redemption method for NFT digital assets, and the processor 13 can execute the multiple instructions to achieve:
[0170] Construct a payment priority model based on the bucket model structure;
[0171] Utilize the NFT metadata on the blockchain to store the priority information of the redemption priority model;
[0172] Using smart contracts to detect redemption fund arrival events on the blockchain according to a preset period;
[0173] When the redemption funds arrival event is detected on the blockchain, the redemption contract in the smart contract is used to perform on-chain redemption of the received redemption funds according to the priority information.
[0174] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0175] It should be noted that the data involved in this case were all obtained legally. The software tools or components not produced by our company that appear in the embodiments of this application are merely examples and do not represent actual use.
[0176] In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical functional division, and actual implementation may employ other division methods.
[0177] The present invention can be used in a wide variety of general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present invention can 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, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0178] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0179] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.
[0180] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0181] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.
[0182] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices described in the present invention may also be implemented by a single unit or device through software or hardware. Terms such as first and second are used to indicate names and do not imply any particular order.
[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A method for redeeming NFT digital assets on the chain, characterized in that: The on-chain redemption methods for the NFT digital assets include: Constructing a redemption priority model according to the bucket model structure includes: obtaining an initial NFT and a redemption strategy for the initial NFT; generating a redemption bucket corresponding to the initial NFT according to the redemption strategy; wherein the wall of the redemption bucket includes horizontal and vertical lines; splitting the initial NFT into at least one sub-NFT according to the horizontal and vertical lines; configuring the redemption priority of each sub-NFT according to the height of the horizontal line corresponding to each sub-NFT; constructing a structure of each sub-NFT according to the redemption priority of each sub-NFT; integrating the structures of all sub-NFTs to obtain the redemption priority model; wherein, for each sub-NFT, the lower the height of the corresponding horizontal line, the higher the corresponding redemption priority; Utilize the NFT metadata on the blockchain to store the priority information of the redemption priority model; Using smart contracts to detect redemption fund arrival events on the blockchain according to a preset period; When the redemption funds arrival event is detected on the blockchain, the redemption contract in the smart contract is used to perform on-chain redemption of the received redemption funds according to the priority information.
2. The on-chain redemption method for NFT digital assets according to claim 1, characterized in that: The structure of each sub-NFT constructed according to the redemption priority of each sub-NFT includes: For each sub-NFT, construct a first field corresponding to the horizontal line, and construct a second field corresponding to the vertical line; configuring a field value of the first field according to the redemption priority; wherein the smaller the field value of the first field, the higher the corresponding redemption priority; Configure the field value of the second field according to the redemption policy; wherein the field value of the second field is used to represent the redemption weight of the corresponding sub-NFT; Generate the structure of the sub-NFT according to the field value of the first field and the field value of the second field; Among them, the sum of the field values of the second field corresponding to each sub-NFT with the same field value of the first field is 1.
3. The on-chain redemption method for NFT digital assets according to claim 1, characterized in that: The priority information of the redemption priority model stored using NFT metadata on the blockchain includes: Performing field expansion on the NFT metadata to obtain an extended field; Calculating a hash value of the priority information using a hash algorithm; A hash value of the priority information is added to the extension field.
4. The on-chain redemption method for NFT digital assets according to claim 3, characterized in that: After storing the priority information of the redemption priority model using the NFT metadata on the blockchain, the method further includes: Splitting the NFT metadata according to the configured splitting strategy to obtain multiple data blocks; wherein the extension field is one of the multiple data blocks; Calculate the hash value of each data block as each leaf node; Recursively process each leaf node to obtain a Merkle tree and its root hash value; The Merkle tree and the root hash value are stored in an off-chain database.
5. The on-chain redemption method for NFT digital assets according to claim 4, characterized in that: After storing the Merkle tree and the root hash value in the off-chain database, the method further includes: When the smart contract on the blockchain receives a verification instruction for any leaf node in the Merkle tree, the Merkle tree and the root hash value are transmitted to the blockchain; Obtaining, according to the verification instruction, a hash value of the arbitrary leaf node stored on the blockchain as a reference hash value; Recalculate the hash value of any leaf node as the hash value to be verified; Compare the hash value to be verified with the reference hash value to perform on-chain verification on the hash value of the arbitrary leaf node.
6. The on-chain redemption method for NFT digital assets according to claim 2, characterized in that: The utilizing of the redemption contract in the smart contract to perform on-chain redemption of the received redemption funds according to the priority information includes: Record the arrival time and amount of the redemption funds; Obtain each unredeemed sub-NFT in the redemption priority model; Traverse each unredeemed sub-NFT in descending order of priority according to the priority information; Inject the received amount into the unredeemed sub-NFTs layer by layer, and redeem them according to the redemption weight of each unredeemed sub-NFT; Update the redemption status of the traversed unredeemed sub-NFT and generate an event based on the redemption status; wherein the event is used to represent the feedback information of the redemption success or failure for query.
7. An on-chain redemption device for NFT digital assets, characterized in that: The on-chain redemption device of the NFT digital asset includes: A construction unit is used to construct a redemption priority model according to a bucket model structure, including: obtaining an initial NFT and a redemption strategy of the initial NFT; generating a redemption bucket corresponding to the initial NFT according to the redemption strategy; wherein the bucket wall of the redemption bucket includes horizontal lines and vertical lines; splitting the initial NFT into at least one sub-NFT according to the horizontal lines and the vertical lines; configuring the redemption priority of each sub-NFT according to the height of the horizontal line corresponding to each sub-NFT; constructing a structure of each sub-NFT according to the redemption priority of each sub-NFT; integrating the structures of all sub-NFTs to obtain the redemption priority model; wherein, for each sub-NFT, the lower the height of the corresponding horizontal line, the higher the corresponding redemption priority; A storage unit, configured to store priority information of the redemption priority model using NFT metadata on a blockchain; A detection unit, configured to detect redemption fund arrival events on the blockchain according to a preset period using a smart contract; The redemption unit is configured to, upon detecting that the redemption funds have arrived on the blockchain, utilize the redemption contract in the smart contract to perform on-chain redemption of the received redemption funds according to the priority information.
8. A computer device, characterized in that: The computer device comprises: a memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the on-chain redemption method of the NFT digital asset as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the on-chain redemption method of the NFT digital asset as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Commercial acceptance bill cashing record sharing method and system
CN114297293A
Block chain-based cross-border payment method, system and device, equipment and medium
CN117151703A