A method and device for processing non-homogeneous tokens based on blockchain

By using the dual transaction lock of blockchain technology and smart contract modules in virtual commodity transactions, the security risks and wool-picking problems in virtual commodity transactions are solved, ensuring the security and uniqueness of virtual assets.

CN114418570BActive Publication Date: 2024-09-06CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111625128.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-09-06
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

There are security risks in existing virtual commodity transactions. The issuer may tamper with the serial number of the virtual commodity, causing damage to the interests of users, and there is an act of profiteering.

Method used

Adopting a non-fungible token processing method based on the blockchain, a double transaction lock is established between the user and the issuer through the smart contract module, including the issuer transaction lock and the user transaction lock, and hash calculation is used to determine the locked block height. and keys to ensure that the data cannot be tampered with and is unique, preventing one party from doing evil.

Benefits of technology

It effectively prevents issuers from tampering with virtual goods, protects users' virtual assets, ensures uniqueness and non-tamperability, puts an end to plundering behavior, and achieves distributed and decentralized storage of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114418570B
    Figure CN114418570B
Patent Text Reader

Abstract

The present invention discloses a method and device for processing non-homogeneous tokens based on blockchain. The blockchain technology can effectively realize distribution and decentralization, so that the data has the advantages of being tamper-proof, leaving traces throughout the process, being traceable, collectively maintained, and open and transparent. The use of double transaction locks, which are controlled by the user and the issuer respectively, ensures that the two are mutually restricted and avoids the situation where one party does evil; that is, it ensures that the issuer cannot tamper with the virtual goods and protects the user's virtual assets. At the same time, it ensures the uniqueness and tamper-proofness of the user, effectively preventing the behavior of wool-pulling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a method and device for processing non-homogeneous tokens based on blockchain. Background Art

[0002] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain was born in the 2008 subprime mortgage crisis and was first used in the risk control of Bitcoin. It is essentially a decentralized database. At the same time, as the underlying technology of Bitcoin, it is a string of data blocks generated by cryptographic methods. Each data block contains a batch of Bitcoin network transaction information, which is used to verify the validity of its information (i.e. anti-counterfeiting) and generate the next block. Blockchain aims to maintain data integrity. It is a distributed shared ledger and database shared by all participants, which permanently records and stores transaction data in chronological order. It has the characteristics of decentralization, non-tamperability, full traceability, traceability, collective maintenance, and openness and transparency.

[0003] Compared with homogeneous tokens, non-fungible tokens (NFT) have excellent properties such as uniqueness, indivisibility, and non-tamperability. Therefore, they are usually used to be linked to specific assets to prove the ownership of digital assets. They are mainly used in games, artworks, collectibles, domain names, virtual assets, identity characteristics, digital music, and digital certificates.

[0004] In essence, the blockchain token is a smart contract (a piece of software code), which includes both data and operations on data. This type of smart contract is not only software code, but also follows industry standards, such as unified data structure, data operation methods, etc. Therefore, it can be recognized by the industry and can be used for different tools and software to operate, browse, and reference, thus having the characteristics of transparency, supervision, and collaboration. For example, the data and operations of the non-homogeneous token standard ERC721 can be browsed through a general blockchain browser (third-party browser), and its open data structure and programming interface can be programmed by others to form a connection. For example, a non-homogeneous token issued on a software can be circulated to another software system for browsing and processing.

[0005] Most NFT smart contracts have a function that returns metadata corresponding to the serial number of its token. The returned value is usually a URI on a cloud server run by the developer (such as example.com / nft / 2). If the content and media of an NFT are controlled by such a server, then the NFT is centralized and has problems with impermanence and volatility.

[0006] The non-fungible token standard ERC721 defines an interface specification for the interaction and circulation of indivisible and unique tokens in the Ethereum ecosystem. This specification is essentially a smart contract on Ethereum, which runs on the EVM (Ethereum Virtual Machine) and has the functions of uniqueness and ownership transfer.

[0007] There may be security risks in the existing virtual commodity transactions. The issuers of virtual commodities face the possibility that the compilation program of the serial number of the virtual commodity (also known as the token) may be cracked; at the same time, there are also cases where individual issuers run away, damaging the interests of users. Summary of the invention

[0008] The embodiments of the present invention provide a method and device for processing non-fungible tokens based on blockchain, which are used to ensure that the issuer cannot tamper with virtual goods and protect the user's virtual assets, while ensuring the uniqueness and non-tamperability of the user, effectively eliminating the behavior of wool-pulling.

[0009] In a first aspect, an embodiment of the present invention provides a method for processing non-homogeneous tokens based on blockchain, which is applied to a server side and includes:

[0010] Upon receiving a request from a user to obtain the non-fungible token issued by the issuer, and the request carries the identification information of the user, sending a first call message carrying the acquisition request to the smart contract module; upon receiving a first key assigned by the smart contract module to the issuer of the non-fungible token, determining the issuer transaction lock controlled by the issuer based on the first key, the identification information of the user, and the serial number of the non-fungible token; and depositing the non-fungible token into the digital wallet of the user;

[0011] Upon receiving an activation request for activating the non-fungible token sent by the user, a second call message carrying the activation request is sent to the smart contract module; upon receiving a second key assigned to the user by the smart contract module, a user transaction lock controlled by the user is determined based on the second key, the corresponding issuer transaction lock, and the expired block height; wherein the expired block height is determined according to the validity period of the non-fungible token;

[0012] When receiving a use request for the non-fungible token sent by the user, a third call message carrying the use request is sent to the smart contract module, so that the smart contract module controls the user to use the non-fungible token based on the user transaction lock.

[0013] In this way, the use of blockchain technology can effectively achieve distribution and decentralization, making the data tamper-proof, traceable, traceable, collectively maintained, and open and transparent. The use of dual transaction locks (including the issuer's transaction lock and the user's transaction lock, in which the block height and the user's identification information cannot be modified) is controlled by the user and the issuer respectively, ensuring that the two are mutually restricted and avoiding the situation where one party does evil; that is, it ensures that the issuer cannot tamper with the virtual goods and protects the user's virtual assets. At the same time, it ensures the uniqueness and immutability of the user, effectively eliminating the behavior of wool-pulling.

[0014] Specifically, in the embodiment of the present invention, the smart contract module can be understood as: a module on the blockchain used to implement the smart contract function.

[0015] Optionally, in the embodiment of the present invention, determining the issuer transaction lock controlled by the issuer based on the first key, the identification information of the user, and the serial number of the non-fungible token specifically includes:

[0016] Performing a hash calculation on the first key, the identification information of the user, and the serial number of the non-fungible token to obtain a first calculation result, and determining the first calculation result as the issuer transaction lock;

[0017] Determining a user transaction lock controlled by the user based on the second key, the corresponding issuer transaction lock, and the expired block height, specifically includes:

[0018] A hash calculation is performed on the second key, the corresponding issuer transaction lock, and the expired block height to obtain a second calculation result, and the second calculation result is determined as the user transaction lock.

[0019] The specific hash calculation process can be found in the prior art and will not be described in detail here.

[0020] It should be noted that the user's identification information, the issuer's transaction lock and the user's transaction lock are in one-to-one correspondence. At the same time, the user and the second key are also in one-to-one correspondence. The second keys of different users may be different.

[0021] Optionally, in the embodiment of the present invention, optionally, in the embodiment of the present invention, determining the expired block height according to the validity period of the non-fungible token specifically includes:

[0022] Determine the validity period of the non-fungible token and the generation time of a block;

[0023] Determine the number of blocks corresponding to the validity period according to the validity period and the generation time;

[0024] The determined number of blocks is used as the expired block height.

[0025] Among them, the generation time mentioned in the above content can be understood as: the generation time of any block on the basis that the generation time of each block is the same.

[0026] Optionally, in the embodiment of the present invention, the method further includes:

[0027] Before depositing the non-fungible token into the digital wallet of the user, and when it is determined that the user does not have the digital wallet, create the digital wallet for the user and obtain the Ethereum wallet address of the created digital wallet;

[0028] Establishing a mapping relationship between the obtained Ethereum wallet address and the identification information of the user;

[0029] The mapping relationship is stored.

[0030] In this way, it can be ensured that the user has a digital wallet, making it easier for the server to send non-fungible tokens to the user's digital wallet for easy management and use by the user.

[0031] In a second aspect, an embodiment of the present invention provides a method for processing non-homogeneous tokens based on blockchain, which is applied to a smart contract module, including:

[0032] Upon receiving a first call message carrying an acquisition request sent by the server, assigning a first key to the issuer of the non-fungible token, so that the server determines the issuer transaction lock controlled by the issuer based on the first key, the user's identification information, and the serial number of the non-fungible token, and deposits the non-fungible token into the user's digital wallet;

[0033] Upon receiving a second call message carrying an activation request sent by the server, a second key is allocated to the user, so that the server determines the user transaction lock controlled by the user based on the second key, the corresponding issuer transaction lock, and the expired block height; wherein the expired block height is determined according to the validity period of the non-fungible token;

[0034] Upon receiving a third call message carrying a use request sent by the server, controlling the user to use the non-fungible token based on the user transaction lock;

[0035] Among them, the acquisition request is: a request sent by the user to obtain the non-fungible token issued by the issuer, the activation request is: a request sent by the user to activate the non-fungible token, and the use request is: a request sent by the user to use the non-fungible token.

[0036] Optionally, in the embodiment of the present invention, based on the user transaction lock, controlling the user to use the non-fungible token specifically includes:

[0037] When it is determined that the non-fungible token is valid, respectively determining the second key, the issuer transaction lock, and the user transaction lock corresponding to the user who sent the use request;

[0038] Determine a reference transaction lock according to the determined second key, the issuer transaction lock, and the expired block height;

[0039] Determining whether the reference transaction lock matches the determined user transaction lock;

[0040] If so, the determined user transaction lock is opened to determine that the user can use the non-fungible token;

[0041] If not, the determined user transaction lock is kept in a locked state, and it is determined that the user cannot use the non-fungible token.

[0042] In this way, when the non-fungible token is valid, the smart contract module can be used to determine whether to open the user transaction lock, thereby determining whether the user who sends the use request can use the relevant rights.

[0043] Optionally, in the embodiment of the present invention, the reference transaction lock matches the determined user transaction lock, specifically including:

[0044] The reference transaction lock is the same as the determined user transaction lock.

[0045] In this way, the smart contract module can determine whether to open the user transaction lock, thereby determining whether the user who sends the use request can use the relevant rights and reduce operational errors.

[0046] Optionally, in the embodiment of the present invention, determining that the non-fungible token is valid specifically includes:

[0047] Determine whether the current block height is less than or equal to the expired block height.

[0048] In this way, it is possible to determine whether a non-fungible token is valid, which helps the smart contract module determine whether to open the user transaction lock and thus determine whether the user who sends the use request can use the relevant rights.

[0049] Optionally, in the embodiment of the present invention, the method further includes:

[0050] When it is determined that the non-fungible token is invalid, the issuer transaction lock and the user transaction lock are opened.

[0051] In this way, when the non-fungible token is invalid, the smart contract module does not need to make any further judgment and can directly open the issuer's transaction lock and the user's transaction lock.

[0052] Optionally, in the embodiment of the present invention, the method further includes:

[0053] Before the server deposits the non-fungible token into the digital wallet of the user, staking the token of the user on the blockchain;

[0054] When the issuer transaction lock and the user transaction lock are opened, the pledged tokens of the user are released.

[0055] In this way, situations such as users running away can be avoided, and the rights and interests of the issuer can be protected.

[0056] In a third aspect, an embodiment of the present invention provides a processing device for a non-fungible token based on a blockchain, the processing device being applicable to a server, comprising:

[0057] A memory for storing program instructions;

[0058] The processor is used to call the program instructions stored in the memory and execute the above processing method provided by the embodiment of the present invention according to the obtained program.

[0059] In a fourth aspect, an embodiment of the present invention provides a processing device for a non-fungible token based on a blockchain, the processing device being applicable to a smart contract module, comprising:

[0060] A memory for storing program instructions;

[0061] The processor is used to call the program instructions stored in the memory and execute the above processing method provided by the embodiment of the present invention according to the obtained program.

[0062] In a fifth aspect, an embodiment of the present invention provides a readable storage medium, which stores executable instructions for a processing device for a non-fungible token based on blockchain, and the executable instructions for the processing device for a non-fungible token based on blockchain are used to enable the processing device for a non-fungible token based on blockchain to execute the above-mentioned processing method provided in an embodiment of the present invention.

[0063] In a sixth aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the above-mentioned processing method provided in the embodiment of the present invention are implemented.

[0064] The beneficial effects of the present invention are as follows:

[0065] The method and device for processing non-homogeneous tokens based on blockchain provided by the embodiments of the present invention have the following advantages:

[0066] 1. The use of blockchain technology can effectively achieve distribution and decentralization, making data tamper-proof, traceable, traceable, collectively maintained, and open and transparent.

[0067] 2. Use dual transaction locks (including issuer transaction lock and user transaction lock, in which the block height and user identification information cannot be modified), which are controlled by the user and the issuer respectively, ensuring mutual restraint between the two and avoiding the situation where one party does evil; that is: ensuring that the issuer cannot tamper with virtual goods and protect the user's virtual assets, while ensuring the user's uniqueness and non-tamperability, effectively putting an end to the behavior of wool-pulling. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A flowchart of a method for issuing non-fungible tokens provided in an embodiment of the present invention;

[0069] Figure 2 A flowchart of a method for processing a non-fungible token based on blockchain provided in an embodiment of the present invention;

[0070] Figure 3 A flowchart of another method for processing non-fungible tokens based on blockchain provided in an embodiment of the present invention;

[0071] Figure 4 A flowchart of another method for processing non-fungible tokens based on blockchain provided in an embodiment of the present invention;

[0072] Figure 5 A schematic diagram of the structure of a non-fungible token processing device based on blockchain provided in an embodiment of the present invention;

[0073] Figure 6 A schematic diagram of the structure of another blockchain-based non-fungible token processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0074] The following will be combined with the accompanying drawings to describe in detail the specific implementation of a method and device for processing non-homogeneous tokens based on blockchain provided by an embodiment of the present invention. It should be noted that the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0075] (I) Before introducing the processing method of non-fungible tokens based on blockchain, the issuance process of non-fungible tokens is first explained.

[0076] ERC-721 is a standard for non-fungible tokens, which manages non-interchangeable assets and maps physical assets to the blockchain. ERC-721 defines the minimum interface that smart contract modules must implement and provides protocols that must be followed when implementing them.

[0077] The specific process of issuing non-fungible tokens, such as Figure 1 As shown, this may include:

[0078] S101. Create a digital wallet of the issuer.

[0079] Specific processes may include:

[0080] Step 1.1: Create the issuer's digital wallet to obtain the private key.

[0081] Step 1.2: Use ECDSA (Elliptic Curve Digital Algorithm) to process the private key to obtain the public key; Ethereum uses the secp256k1 curve.

[0082] For example, Public key = ECDSA (Private key);

[0083] Among them, Public key represents the public key and Private key represents the private key.

[0084] Step 1.3: Use the Keccak-256 algorithm to perform hash calculation on the obtained public key to obtain a hash result.

[0085] For example, A = Keccak-256 (Public key);

[0086] Among them, A represents the hash result.

[0087] Step 1.4: Use the last 20 bytes of the hash result as the address of the issuer’s digital wallet (this address can also be called the Ethereum wallet address).

[0088] For example, Address = '0x' + last 20 bytes of A;

[0089] Among them, Address represents the address of the issuer's digital wallet, 0x represents hexadecimal, and last 20 bytes of A represents the last 20 bytes of the hash result.

[0090] S102: Establish a mapping relationship between the issuer's digital identity and entity information.

[0091] Specific processes may include:

[0092] Step 2.1: Map the digital wallet address of the issuer obtained in step 1 above with the entity information of the issuer to generate the digital identity of the issuer; wherein the entity information of the issuer may include but is not limited to: the company name of the issuer, unified social credit code and other information;

[0093] Step 2.2: Perform a hash calculation on the obtained digital identity of the issuer to obtain a first hash result.

[0094] S103: Establish a mapping relationship between the company name of the issuer and the serial number of the virtual commodity.

[0095] Among them, the non-fungible tokens to be issued at this time can be regarded as virtual commodities.

[0096] Specific processes may include:

[0097] Step 3.1, establish a mapping relationship between the company name of the issuer and the serial number of the virtual product;

[0098] Step 3.2: Perform a hash calculation on the mapping relationship established in step 3.1 to obtain a second hash result.

[0099] S104: Create a local mapping relationship.

[0100] Step 4.1: Establish a mapping relationship between the digital identity of the issuer (i.e., the address of the issuer's digital wallet) and the identification information of the issuer's company name on the local server that manages the issuer and virtual goods;

[0101] Step 4.2: Perform a hash calculation on the mapping relationship established in step 4.1 to obtain a third hash result.

[0102] Thus, through the above steps, a local mapping relationship can be created, thereby facilitating the server to manage and distinguish the serial numbers of multiple issuers and their virtual goods.

[0103] S105, hash evidence.

[0104] The first hash result obtained in the above step 2.2, the second hash result obtained in step 3.2, and the third hash result obtained in step 4.2 are written into the public chain of the blockchain through the smart contract module and stored.

[0105] In this way, the decentralized and distributed storage characteristics of blockchain can be fully utilized to ensure that the issuance information of virtual goods cannot be tampered with and provide a trusted service for the mapping relationship between the serial number of the virtual goods and the issuer.

[0106] S106. Generate non-fungible tokens.

[0107] According to the Ethereum non-fungible token ERC-721 protocol, a non-fungible token is generated and the attribute information is configured into the metadata of the non-fungible token (i.e. Metadata);

[0108] Among them, the attribute information of the non-fungible token may include: the serial number of the non-fungible token, the user's identification information, the block height, the issuer's transaction lock, and the user's transaction lock.

[0109] Specifically, during initialization, all the attribute information listed above may be initialized to empty; or, all the information in the attribute information listed above except the serial number of the virtual commodity may be initialized to empty.

[0110] S107. Deploy smart contract module.

[0111] Deploy smart contract modules on the chain, issue non-fungible tokens, and determine the total issuance amount of non-fungible tokens and whether additional issuance is possible.

[0112] In addition, the initial holders of all non-fungible tokens can be designated as the issuers of non-fungible tokens, and the redeemable non-fungible tokens can be deposited into the address of the issuer's digital wallet.

[0113] (II) The following is an explanation of the processing method of non-fungible tokens based on blockchain.

[0114] Specifically, an embodiment of the present invention provides a method for processing non-fungible tokens based on blockchain, which may include:

[0115] For the process of users wanting to obtain non-fungible tokens, such as Figure 2 As shown:

[0116] S201. When the server receives a request from a user to obtain the non-fungible token issued by the issuer, and the request carries the identification information of the user, the server sends a first call message carrying the request to the smart contract module;

[0117] S202, the smart contract module allocates a first key to the issuer of the non-fungible token;

[0118] S203. The server determines the issuer transaction lock controlled by the issuer based on the first key, the identification information of the user, and the serial number of the non-fungible token;

[0119] S204. The server deposits the non-fungible token into the user's digital wallet.

[0120] For the process of users wanting to activate non-fungible tokens, such as Figure 3 As shown:

[0121] S301. When receiving an activation request from the user to activate the non-fungible token, the server sends a second call message carrying the activation request to the smart contract module;

[0122] S302, the smart contract module allocates a second key to the user;

[0123] S303. The server determines the user transaction lock controlled by the user based on the second key, the corresponding issuer transaction lock, and the expired block height; wherein the expired block height is determined according to the validity period of the non-fungible token.

[0124] Specifically, in an embodiment of the present invention, when an activation request is received, in addition to executing the above process, other steps required to complete the activation process may also be executed. For details, please refer to the prior art and will not be described in detail here.

[0125] For the process of users wanting to use non-fungible tokens, such as Figure 4 As shown:

[0126] S401. When receiving a use request from the user to use the non-fungible token, the server sends a third call message carrying the use request to the smart contract module;

[0127] S402. The smart contract module controls the user to use the non-fungible token based on the user transaction lock.

[0128] Let me explain. Figure 4 In the figure, the process in the dotted box represents the specific implementation method of the above S402.

[0129] The third call message may carry relevant information of the user who sends the use request (including the second key corresponding to the user, the corresponding issuer transaction lock and the corresponding user transaction lock);

[0130] Alternatively, the user's relevant information can be sent to the smart contract module through other messages and signaling;

[0131] The specific method for sending the user's relevant information can be set according to actual needs and is not limited here.

[0132] In this way, the use of blockchain technology can effectively achieve distribution and decentralization, making the data tamper-proof, traceable, traceable, collectively maintained, and open and transparent. The use of dual transaction locks (including the issuer's transaction lock and the user's transaction lock, in which the block height and the user's identification information cannot be modified) is controlled by the user and the issuer respectively, ensuring that the two are mutually restricted and avoiding the situation where one party does evil; that is, it ensures that the issuer cannot tamper with the virtual goods and protects the user's virtual assets. At the same time, it ensures the uniqueness and immutability of the user, effectively eliminating the behavior of wool-pulling.

[0133] The specific instructions are given below.

[0134] 2.1. Users redeem (or obtain) non-fungible tokens.

[0135] For users, if they want to redeem or obtain, they can send a request to the corresponding interface of the server.

[0136] For the server, perform the following procedure:

[0137] Determine whether the user has a digital wallet;

[0138] If not, a digital wallet is created for the user, and the Ethereum wallet address of the digital wallet is obtained, and a mapping relationship between the Ethereum wallet address and the user's identification information is established (recorded as relationship 1), and the relationship 1 is stored in the local storage space to distinguish the digital wallets of different users; then, the issuance process of non-homogeneous tokens is executed during initialization;

[0139] If so, the issuance process of non-fungible tokens is executed during initialization.

[0140] Specifically, when executing the issuance process of non-fungible tokens, the following processes may be included:

[0141] When the smart contract module allocates a first key to the issuer of the non-fungible token, a hash calculation is performed on the first key, the identification information of the user, and the serial number of the non-fungible token to obtain an issuer transaction lock controlled by the issuer;

[0142] Staking the user's tokens on the blockchain;

[0143] Deposit the non-fungible token into the user's digital wallet.

[0144] Among them, since the issuer transaction lock is determined based on the user's identification information, the issuer transaction locks of different users are different, that is, the issuer transaction lock and the user's identification information are set one by one (recorded as relationship 2), and this relationship 2 can be stored in the local storage space of the server.

[0145] In addition, the tokens of the pledged users can be pledged into the smart contract module.

[0146] To clarify, the issuer transaction lock can only be controlled and unlocked by the issuer.

[0147] In this way, the uniqueness and non-tamperability of users are guaranteed, effectively preventing the practice of taking advantage of others, avoiding secondary sales and serial number cracking, and thus avoiding huge losses to the issuer.

[0148] 2.2. Users activate non-fungible tokens.

[0149] After obtaining a non-fungible token, the user can, but is not limited to, select a date to activate it. Of course, other activation methods can also be used. The specific settings can be made according to actual needs and are not limited here.

[0150] Specifically, when the user determines that a non-fungible token needs to be activated, the server may receive an activation request sent by the user to activate the non-fungible token, and the server may perform the following process:

[0151] When the smart contract module allocates a second key to the user, a hash calculation is performed on the second key, the issuer transaction lock corresponding to the user, and the expired block height to obtain a user transaction lock controlled by the user.

[0152] Specifically, the expired block height can be determined according to a preset expiration time.

[0153] Among them, the second key and the user are in a one-to-one correspondence relationship (recorded as relationship 3), and the user transaction lock and the user are also in a one-to-one correspondence relationship (recorded as relationship 4); at the same time, relationships 3 and 4 can be stored in the local storage space of the server.

[0154] In addition, the expiration time can be understood as: the validity period of the non-fungible token; since the generation time of each block is fixed, the number of blocks corresponding to the expiration time can be calculated, and the calculated number can be determined as the expired block height.

[0155] To clarify, user transaction locks can only be controlled and unlocked by users.

[0156] Furthermore, during activation, in addition to executing the above-mentioned process, other processes for activating non-fungible tokens may also be included, which are not limited here.

[0157] In this way, it is ensured that the issuer cannot tamper with the block height or modify the time arbitrarily, and the user's virtual assets are protected. In other words, it is ensured that the issuer cannot tamper with the virtual goods (the virtual goods here are non-fungible tokens) information and block height, avoiding the shrinkage of virtual assets or running away with the money caused by the issuer.

[0158] 2.3. Users use non-fungible tokens.

[0159] When a user needs to use relevant rights, the server can receive a request from the user to use the non-fungible token. At this time, the server can call the smart contract module, and the smart contract module performs the following process:

[0160] When it is determined that the current block height does not exceed the expired block height (which indicates that the non-fungible token is within the validity period), a hash calculation is performed on the second key of the user who sent the use request, the corresponding transaction lock of the issuer, and the expired block height to obtain a reference transaction lock;

[0161] Determining whether the reference transaction lock is consistent with the user transaction lock of the user who sent the use request;

[0162] If yes, then open the user transaction lock to confirm that the user can use the non-fungible token;

[0163] If not, the user transaction lock will not be opened, and it is determined that the user cannot use the non-fungible token.

[0164] These may also include:

[0165] When it is determined that the current block height exceeds the expired block height (which indicates that the non-fungible token has expired), the issuer is controlled to open the issuer transaction lock and the user transaction lock;

[0166] Release the staked tokens of said user.

[0167] The following is an example.

[0168] Take a certain equity server as an example.

[0169] The gray industry can use a large number of mobile phone numbers to redeem keys (i.e. CDKEY) and then resell them, resulting in a large amount of asset loss.

[0170] Through blockchain technology, CDKEY is mapped into NFT (non-fungible token) on the public chain. Each non-fungible token has its own indivisibility and uniqueness, making it impossible for gray industries to sell CDKEY.

[0171] At the same time, through the smart contract module and double transaction locks, mutual constraints between the two parties can be achieved. After the entire process is completed, the fees will be released, which effectively avoids the issuer's failure to perform its obligations, absconding with the funds, and other behaviors.

[0172] In summary, the above technical solution provided by the embodiment of the present invention has the following advantages over the prior art:

[0173] 1. The use of blockchain technology can effectively achieve distribution and decentralization, making data tamper-proof, traceable, traceable, collectively maintained, and open and transparent.

[0174] 2. Use dual transaction locks (including issuer transaction lock and user transaction lock, in which the block height and user identification information cannot be modified) and store them on the public chain. They are controlled by the user and the issuer respectively, ensuring that the two are mutually restricted and avoiding the situation where one party does evil.

[0175] 3. Using double transaction locks to control metadata solves the long-criticized problems of metadata centralization and unverifiability.

[0176] 4. Through dual transaction locks and block heights, the two parties to the transaction can finalize the block height and key, and realize fast transactions and activation of non-fungible tokens on a single chain (a blockchain); at the same time, the metadata of non-fungible tokens cannot be tampered with arbitrarily, realizing mutual constraints between issuers and users, and realizing metadata on-chain and decentralization.

[0177] Based on the same inventive concept, an embodiment of the present invention provides a processing device for non-fungible tokens based on blockchain. The implementation principle of the device is similar to that of the aforementioned method. The specific implementation method of the device can refer to the specific embodiment of the aforementioned method, and the repeated parts will not be repeated.

[0178] Specifically, an embodiment of the present invention provides a processing device for a non-homogeneous token based on a blockchain, and the processing device is applicable to a server, such as Figure 5 As shown, this may include:

[0179] Memory 501, used for storing program instructions;

[0180] The processor 502 is used to call the program instructions stored in the memory 501, and execute the processing method on the server side provided in the embodiment of the present invention according to the obtained program.

[0181] Specifically, an embodiment of the present invention provides a processing device for non-homogeneous tokens based on blockchain, which is applicable to a smart contract module, such as Figure 6 As shown, this may include:

[0182] Memory 601, used for storing program instructions;

[0183] The processor 602 is used to call the program instructions stored in the memory 601, and execute the processing method on the smart contract module side as provided in the embodiment of the present invention according to the obtained program.

[0184] Based on the same inventive concept, an embodiment of the present invention provides a readable storage medium, which stores executable instructions for a processing device of a non-fungible token based on blockchain, and the executable instructions for the processing device of a non-fungible token based on blockchain are used to enable the processing device of a non-fungible token based on blockchain to execute the above-mentioned processing method provided in an embodiment of the present invention.

[0185] Based on the same inventive concept, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the above-mentioned processing method provided in the embodiment of the present invention are implemented.

[0186] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for processing non-homogeneous tokens based on blockchain, characterized in that: Applied to the server side, including: Upon receiving a request from a user to obtain the non-fungible token issued by the issuer, and the request carries the identification information of the user, sending a first call message carrying the acquisition request to the smart contract module; upon receiving a first key assigned by the smart contract module to the issuer of the non-fungible token, determining the issuer transaction lock controlled by the issuer based on the first key, the identification information of the user, and the serial number of the non-fungible token; and depositing the non-fungible token into the digital wallet of the user; Upon receiving an activation request for activating the non-fungible token sent by the user, a second call message carrying the activation request is sent to the smart contract module; upon receiving a second key assigned to the user by the smart contract module, a user transaction lock controlled by the user is determined based on the second key, the corresponding issuer transaction lock, and the expired block height; wherein the expired block height is determined according to the validity period of the non-fungible token; When receiving a use request for the non-fungible token sent by the user, a third call message carrying the use request is sent to the smart contract module, so that the smart contract module controls the user to use the non-fungible token based on the user transaction lock.

2. The processing method according to claim 1, characterized in that Determining an issuer transaction lock controlled by the issuer based on the first key, the identification information of the user, and the serial number of the non-fungible token, specifically includes: Performing a hash calculation on the first key, the identification information of the user, and the serial number of the non-fungible token to obtain a first calculation result, and determining the first calculation result as the issuer transaction lock; Determining a user transaction lock controlled by the user based on the second key, the corresponding issuer transaction lock, and the expired block height, specifically includes: A hash calculation is performed on the second key, the corresponding issuer transaction lock, and the expired block height to obtain a second calculation result, and the second calculation result is determined as the user transaction lock.

3. The processing method according to claim 1, characterized in that: The expired block height is determined according to the validity period of the non-fungible token, specifically including: Determine the validity period of the non-fungible token and the generation time of a block; Determine the number of blocks corresponding to the validity period according to the validity period and the generation time; The determined number of blocks is used as the expired block height.

4. The processing method according to claim 1, characterized in that: Also includes: Before depositing the non-fungible token into the digital wallet of the user, and when it is determined that the user does not have the digital wallet, create the digital wallet for the user and obtain the Ethereum wallet address of the created digital wallet; Establishing a mapping relationship between the obtained Ethereum wallet address and the identification information of the user; The mapping relationship is stored.

5. A method for processing non-homogeneous tokens based on blockchain, characterized in that: Applied to the smart contract module side, including: Upon receiving a first call message carrying an acquisition request sent by the server, allocating a first key to the issuer of the non-fungible token, so that the server determines the issuer transaction lock controlled by the issuer based on the first key, the user's identification information, and the serial number of the non-fungible token, and deposits the non-fungible token into the user's digital wallet; Upon receiving a second call message carrying an activation request sent by the server, a second key is allocated to the user, so that the server determines the user transaction lock controlled by the user based on the second key, the corresponding issuer transaction lock, and the expired block height; wherein the expired block height is determined according to the validity period of the non-fungible token; Upon receiving a third call message carrying a use request sent by the server, controlling the user to use the non-fungible token based on the user transaction lock; Among them, the acquisition request is: a request sent by the user to obtain the non-fungible token issued by the issuer, the activation request is: a request sent by the user to activate the non-fungible token, and the use request is: a request sent by the user to use the non-fungible token.

6. The processing method according to claim 5, characterized in that: Based on the user transaction lock, controlling the user to use the non-fungible token specifically includes: When it is determined that the non-fungible token is valid, respectively determining the second key, the issuer transaction lock, and the user transaction lock corresponding to the user who sent the use request; Determine a reference transaction lock according to the determined second key, the issuer transaction lock, and the expired block height; Determining whether the reference transaction lock matches the determined user transaction lock; If so, the determined user transaction lock is opened to determine that the user can use the non-fungible token; If not, the determined user transaction lock is kept in a locked state, and it is determined that the user cannot use the non-fungible token.

7. The processing method according to claim 6, characterized in that: The reference transaction lock matches the determined user transaction lock, specifically including: The reference transaction lock is the same as the determined user transaction lock.

8. The processing method according to claim 6, characterized in that: Determine that the non-fungible token is valid, specifically including: Determine whether the current block height is less than or equal to the expired block height.

9. The processing method according to claim 6, characterized in that: Also includes: When it is determined that the non-fungible token is invalid, the issuer transaction lock and the user transaction lock are opened.

10. The processing method according to claim 9, characterized in that: Also includes: Before the server deposits the non-fungible token into the digital wallet of the user, staking the token of the user on the blockchain; When the issuer transaction lock and the user transaction lock are opened, the pledged tokens of the user are released.

11. A processing device for non-homogeneous tokens based on blockchain, characterized in that: The processing device is suitable for a server, comprising: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory and execute the processing method according to any one of claims 1 to 4 according to the obtained program.

12. A processing device for non-homogeneous tokens based on blockchain, characterized in that: The processing device is suitable for a smart contract module, including: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory and execute the processing method according to any one of claims 5 to 10 according to the obtained program.

13. A readable storage medium, characterized in that: The readable storage medium stores executable instructions for a processing device of a non-fungible token based on blockchain, and the executable instructions for a processing device of a non-fungible token based on blockchain are used to enable the processing device of a non-fungible token based on blockchain to execute the processing method as described in any one of claims 1-10.

14. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the processing method according to any one of claims 1 to 10 are implemented.