Requity cancel-after-verification method and device

By generating reusable NFT resources and combining user private key signing and blind watermarking algorithms, the high learning cost and high gas fee problems of staking in existing technologies are solved, and a convenient and secure staking staking process is realized.

CN121146829APending Publication Date: 2025-12-16CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411517255.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-12-16

Smart Images

  • Figure CN121146829A_ABST
    Figure CN121146829A_ABST
Patent Text Reader

Abstract

According to the right cancel-after-verification method and device provided by the invention, the NFT resource for right cancel-after-verification is automatically obtained based on the user subscription data stored in the block chain wallet, the user does not need to actively trigger cancel-after-verification, the interaction mode is completely consistent with the two-dimensional code of the current web2, the execution is convenient and rapid, and the method and device are safe and easy to accept by the user; the generation of the NFT resources and the right cancel-after-verification process do not need to be chained, safety can be guaranteed through cryptography and reading of data on the block chain, gas cost is not needed, and the cost is low; moreover, one NFT resource can represent the identity, is more beautiful and personalized than a two-dimensional code, can be used repeatedly, and saves network resources.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer science, and in particular to a rights redemption method and device. BACKGROUND

[0002] Rights redemption generally refers to the process of consumers using their owned coupons, points, vouchers, member rights and other benefits in commercial activities to exchange them for goods or services. With the development of Internet technology, rights redemption is usually related to e-commerce, online services, membership systems, point systems, etc. The rights obtained by users through purchase, point exchange, activity rewards, etc., such as coupons, vouchers, member rights, etc., need to be redeemed after the users use or exchange these rights, in order to ensure effective management of the rights and prevent abuse.

[0003] Digital economy refers to a series of economic activities that use data resources as key production factors, modern information networks as important carriers, and effective use of information communication technology as an important driving force for efficiency improvement and economic structure optimization. Digital economy (including blockchain, non-fungible tokens, etc.) serves the real economy, and rights are provided by a centralized rights provider. How to combine decentralized non-fungible tokens (NFT) with centralized rights providers is a pressing problem. SUMMARY

[0004] In view of the problems in the prior art, the present application provides a rights redemption method and device.

[0005] The present application provides a rights redemption method, which is applied to a user client, and the method comprises: Obtaining user subscription data and obtaining target data based on the user subscription data; Signing the target data based on a private key corresponding to the user client to obtain a first signature sigA; Based on the target data, the first signature sigA and the first NFT resource, a second NFT resource is obtained for rights redemption.

[0006] Optionally, the user subscription data includes a user address, an address url of a first NFT resource, a contract address, and a unique identifier TokenID; Correspondingly, obtaining target data based on the user subscription data comprises: Obtaining a string A based on the user subscription data and a first hash value corresponding to the string A; The signing of the target data based on the private key corresponding to the user client to obtain the first signature sigA comprises: sign the first hash value based on the private key corresponding to the user client, to obtain a first signature sigA; and obtain a second NFT resource based on the string A, the first hash value, the first signature sigA, and the first NFT resource, for interest cancellation.

[0007] Optionally, obtaining the second NFT resource based on the string A, the first hash value, the first signature sigA, and the first NFT resource includes: obtaining the second NFT resource through a blind watermark algorithm based on the string A, the first hash value, the first signature sigA, and the first NFT resource.

[0008] Optionally, the first NFT resource includes an NFT picture.

[0009] Optionally, the user contract data further includes an invalid time parameter, for controlling the valid duration of the second NFT resource.

[0010] The application further provides an interest cancellation method, applied to an interest cancellation end, and the method includes: obtain target data and a first signature sigA based on a user's second NFT resource; wherein the first signature sigA is obtained by signing the target data based on a private key corresponding to a user client, and the target data is obtained based on user contract data; and the second NFT resource is obtained through a blind watermark algorithm based on the target data, the first signature sigA, and the first NFT resource; determine whether the user has interest based on the target data and the first signature sigA; if the user has interest, execute an interest cancellation process.

[0011] Optionally, the user contract data includes a user address, an address url of the first NFT resource, a contract address, and a unique identifier TokenID. Correspondingly, obtain target data and a first signature sigA based on a user's second NFT resource; wherein the first signature sigA is obtained by signing the target data based on a private key corresponding to a user client, and the target data is obtained based on user contract data; and the second NFT resource is obtained through a blind watermark algorithm based on the target data, the first signature sigA, and the first NFT resource, including: based on the second NFT resource, obtaining a string A, a first hash value corresponding to the string A, and a first signature sigA; the first signature sigA is obtained by signing the first hash value based on a private key corresponding to the user client, and the string A is obtained based on user contract data; the second NFT resource is obtained by a blind watermark algorithm based on the string A, the first hash value, the first signature sigA, and the first NFT resource; The method further includes: based on the contract address and the TokenID, querying a corresponding holder address and an NFT resource address pic1 on a blockchain, and based on the first hash value and the first signature sigA, determining a public key and a signature address based on the public key when the holder address is the same as the user address and the address pic1 is the same as the address url. based on the public key, determining a corresponding second hash value by signing the first signature sigA, and determining that the user has rights when the second hash value is the same as the first hash value and the signature address is the same as the holder address.

[0012] Optionally, the method further includes: based on the first hash value and the first signature sigA, determining the public key according to an elliptic curve algorithm ECDSA.

[0013] Optionally, the method further includes: when the second hash value is not the same as the first hash value and / or the signature address is not the same as the holder address, returning an error and an error cause.

[0014] Optionally, the method further includes: based on the second NFT resource, obtaining a string A, a first hash value corresponding to the string A, and a first signature sigA; the first signature sigA is obtained by signing the first hash value based on a private key corresponding to the user client, and the string A is obtained based on user contract data; the second NFT resource is obtained by a blind watermark algorithm based on the string A, the first hash value, the first signature sigA, and the first NFT resource;

[0015] Optionally, the second NFT resource includes an NFT picture.

[0016] Optionally, the user contract data further includes an invalid time parameter; the method further includes: based on the invalid time parameter, determining an effective duration of the second NFT resource.

[0017] The application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for canceling the right of any one of the above interests when executing the computer program.

[0018] The application further provides a non-transitory computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the method for canceling the right of any one of the above interests.

[0019] The application further provides a computer program product, comprising a computer program, wherein the computer program is executed by a processor to implement the method for canceling the right of any one of the above interests.

[0020] The application provides the method and device for canceling the right, which automatically obtains the NFT resource for canceling the right based on the user signing data stored in the blockchain wallet, does not need to trigger the canceling right by the user, the interaction mode is completely consistent with the two-dimensional code of the current web2, and the execution is convenient, fast, safe and easy to be accepted by the user; the generation of the NFT resource and the right canceling process do not need to be chained, can be guaranteed by cryptography and reading data on the blockchain, do not need the gas fee, and are low in cost; and one NFT resource can represent the identity, is more beautiful than the two-dimensional code, is more personalized, can be repeatedly used, and saves the network resources. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.

[0022] Figure 1 The method flowchart for canceling the right provided by the embodiment of the present application is shown.

[0023] Figure 2 The method flowchart for canceling the right provided by the embodiment of the present application is shown.

[0024] Figure 3 The method flowchart for canceling the right provided by the embodiment of the present application is shown.

[0025] Figure 4 The method flowchart for canceling the right provided by the embodiment of the present application is shown.

[0026] Figure 5 The method flowchart for canceling the right provided by the embodiment of the present application is shown.

[0027] Figure 6A wallet side interaction flowchart provided by the embodiment of the present application.

[0028] Figure 7 A verification flowchart of the information of the present application.

[0029] Figure 8 A verification flowchart of the identity of the present application.

[0030] Figure 9 A physical structure diagram of the electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely below in conjunction with the drawings in the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0032] In order to better understand the embodiments of the present application, some related knowledge will be introduced first.

[0033] Blockchain: a new type of distributed system and operation mode. The data is generated and updated by the consensus algorithm of distributed nodes, and the security of the data is ensured by the method of cryptography. The data is processed and operated by the smart contract composed of automatic instruction code, and has the characteristics of non-tamperability, non-denial, open network maintenance and the like.

[0034] NFT: a unique data object stored on the blockchain that cannot be divided. Each NFT on the blockchain is unique. NFT can correspond to both physical and non-physical objects (such as electronic tickets, videos, pictures, and text).

[0035] Blind watermark (invisible watermark): blind watermark technology provides an effective solution that can embed key information into image, audio or video files without damaging the original media quality. Blind watermark technology usually includes two main steps: watermark embedding and extraction.

[0036] Elliptic curve algorithm ECDSA: how to get the transaction signer after signing the transaction? This is the reverse signature of the encryption algorithm, which uses the hash of the user's signature content and the signature information (R, S, V) to get the user's private key public key, and thus get the signer's account address. Compared with the transaction signature process, the signature is deduced in reverse. The public key information can be deduced from the original text hash and the signature sig, and the address information can be deduced from the public key.

[0037] gas fee: In Ethereum and other Ethereum Virtual Machine (EVM) based blockchain networks, "gas" (fuel) is an internal unit of measurement used to quantify the computational resources required to execute smart contract operations.

[0038] The existing technology for equity cancellation mainly includes the following two ways: First: the user initiates the on-chain cancellation.

[0039] Access the Dapp h5 webpage provided by the access equity merchant and connect the user's own blockchain wallet. Through the active triggering behavior of button clicking, the user interacts with the chain, and the merchant confirms the cancellation by querying the chain.

[0040] Disadvantages: Due to the gas fee policy of the blockchain, the user needs to actively trigger the cancellation operation. However, this method is quite different from the current mainstream two-dimensional code cancellation method, has a high learning cost, the gas fee is floating and the interaction is complicated. Equity itself is a centralized concept and needs to be implemented by specific merchants. For example, even if the blockchain records that the equity has not been cancelled, it is meaningless for the merchant to bear the implementation.

[0041] Second: two-dimensional code scanning cancellation.

[0042] This is the most mainstream Web2.0 equity cancellation method. After the user purchases an equity, they will receive a two-dimensional code for cancellation at the platform. Then the user can present it to the merchant on site, and the merchant uses the cancellation platform provided by the platform to scan the code and perform the equity cancellation, prepayment settlement and other transaction processes.

[0043] Disadvantages: One code for one equity, and the code is not destroyed after cancellation.

[0044] The embodiments of the present application aim to solve the above problems in the prior art and provide a solution for equity cancellation based on NFT, effectively combining decentralized NFT with centralized equity providers. The user does not need to actively trigger the cancellation, the interaction method is completely consistent with the current Web2 two-dimensional code, and it is easy to accept. Moreover, the entire cancellation process does not need to be on-chain, and the security is guaranteed through cryptography and reading on-chain data. No gas fee is required.

[0045] Figure 1 One of the equity cancellation method flowcharts provided by the embodiments of the present application is shown in Figure 1 The method comprises: Step 100, obtaining user subscription data and obtaining target data based on the user subscription data; Step 101, signing the target data based on the private key corresponding to the user client to obtain a first signature sigA; Step 102, obtaining a second NFT resource based on the target data, the first signature sigA and the first NFT resource, for interest cancellation.

[0046] The execution subject of the method embodiment can be a user client. The user client first obtains user contract data, and then obtains target data based on the obtained user contract data. Then the target data is signed based on the private key corresponding to the user client to obtain a first signature sigA. After obtaining the first signature sigA, a second NFT resource is obtained based on the target data, the first signature sigA and the first NFT resource, for interest cancellation.

[0047] Figure 2 A second interest cancellation method flowchart is provided for the embodiments of the present application, wherein the user contract data includes a user address, an address url of the first NFT resource, a contract address, and a unique identifier TokenID; as shown in the figure, the method comprises: Figure 2 Step 200, obtaining user contract data stored in a blockchain wallet in the user client, and obtaining a string A based on the user contract data and a first hash value corresponding to the string A; Step 201, signing the first hash value based on the private key corresponding to the user client to obtain a first signature sigA; Step 202, obtaining a second NFT resource based on the string A, the first hash value, the first signature sigA and the first NFT resource, for interest cancellation.

[0048] The execution subject of the method embodiment can be a user client. After the NFT resource issuing platform issues a plurality of valid NFT resources, the user can obtain the NFT resource through the signing manner, and the signing data is stored on the blockchain to ensure the legality and security of the data. The user contract data can be stored in the blockchain wallet in the user client.

[0049] Since the NFT has multiple forms of expression, in order to describe the solution of the present application in detail, the NFT resource in each embodiment of the present application can be a picture NFT. In this way, an NFT picture can represent an identity, which is more beautiful and more personalized than a two-dimensional code. Moreover, compared with the interest cancellation application scenario based on the two-dimensional code in the prior art, in the interest cancellation scenario based on the NFT resource, one NFT can cancel multiple interests, breaking through the one-code-one-cancellation of Web2.0, and the NFT resource can be used repeatedly.

[0050] ​When the user needs to perform the right verification based on the NFT, the user client can obtain the user signature data stored in the blockchain wallet, which can include the following information: user address, address url of the first NFT resource, contract address, and unique identifier TokenID. The above information included in the user signature data is spliced to obtain a string A. Further, a hash calculation can be performed on the string A to obtain a first hash value corresponding to the string A.

[0051] After obtaining the first hash value corresponding to the string A, the first hash value can be signed based on the private key corresponding to the user client to obtain the first signature sigA. In blockchain technology, the private key and the public key are a pair of keys for encryption and digital signature, which are based on asymmetric encryption algorithms such as RSA, DSA or ECDSA (for elliptic curve). The private key is a kind of data that must be kept secret and used for ownership proof and transaction signature. The private key is a core component in the public key encryption and digital signature algorithm. The private key and the public key are paired, the private key is used for encryption, and the public key is used for decryption; the private key is used for signature, and the public key is used for signature verification.

[0052] Further, the user client can continue to obtain the second NFT resource based on the string A, the first hash value, the first signature sigA and the first NFT resource, for right verification. For example, the first NFT resource is an NFT picture, and the user client can process the NFT picture to hide the string A, the first hash value and the first signature sigA in the NFT picture. The right verification end can obtain the string A, the first hash value and the first signature sigA hidden in the NFT picture based on the reverse processing mode, and perform user identity verification and right verification processing based on these information.

[0053] After the user client generates the second NFT resource, it can be stored locally. When the user performs right verification later, the second NFT resource data can be directly called for display, which is convenient and fast for right verification process.

[0054] To further ensure the security of the data, the present embodiment can also add an invalid time parameter in the plaintext information, i.e. the string A, which is used to control the effective duration of the second NFT resource, such as one year validity. The present embodiment adds the invalid time parameter in the signed plaintext information to let the wallet update regularly to prevent illegal theft and screenshot disclosure risk.

[0055] The equity cancellation method provided by the embodiment of the present application automatically obtains an NFT resource for equity cancellation based on user signing data stored in a blockchain wallet, without the user actively triggering cancellation. The interaction mode is completely consistent with the current web2 two-dimensional code, and the method is easy to execute, safe, and easy to be accepted by users. The generation of the NFT resource and the equity cancellation process do not need to be chained, and the security can be ensured through cryptography and reading data on the blockchain, without gas fees, and the cost is low. Moreover, one NFT resource can represent an identity, which is more beautiful and personalized than a two-dimensional code, and can be used repeatedly, saving network resources.

[0056] In the above method embodiment, the user client obtains the second NFT resource based on the string A, the first hash value, the first signature sigA, and the first NFT resource, which can include: obtaining the second NFT resource based on the string A, the first hash value, the first signature sigA, and the first NFT resource through a blind watermark algorithm. That is, the string A, the first hash value, and the first signature sigA can be hidden in the first NFT resource by using various algorithms, and the present embodiment uses a blind watermark algorithm to perform this operation. The blind watermark algorithm is a technology for embedding invisible watermarks in digital media (such as images, audio, and video), with the purpose of achieving copyright protection, content authentication, or tracing the source of illegal distribution without significantly changing the media content. The blind watermark algorithm has a significant effect on the processing of picture resources, so the first NFT resource in the present embodiment can be an NFT picture, and correspondingly, the second NFT resource is an NFT picture with watermark information.

[0057] Figure 3 As shown in Figure 3, the method provided by the present embodiment for the equity cancellation method process diagram three, applied to the equity cancellation end, the method comprises: Figure 3 Step 300, based on the second NFT resource of the user, obtaining target data and a first signature sigA; wherein the first signature sigA is obtained by signing the target data based on the private key corresponding to the user client, and the target data is obtained based on the user signing data; the second NFT resource is obtained based on the target data, the first signature sigA, and the first NFT resource through a blind watermark algorithm; Step 301, based on the target data and the first signature sigA, determining whether the user has equity; Step 302, in the case that the user has equity, executing an equity cancellation process.

[0058] ​The execution subject of the method embodiment can be the equity cancellation end. After the user client generates the NFT resource for equity cancellation based on the plaintext information in the blockchain wallet, the user client can present the second NFT resource to the merchant. The merchant processes the second NFT resource on the equity cancellation end accordingly. Specifically, the equity cancellation end obtains target data and a first signature sigA based on the second NFT resource of the user; the first signature sigA is obtained by signing the target data based on the private key corresponding to the user client, and the target data is obtained based on the user signing data; the second NFT resource is obtained based on the target data, the first signature sigA, and the first NFT resource through a blind watermark algorithm; then, the equity cancellation end determines whether the user has equity based on the target data and the first signature sigA. And in the case that the user has equity, the equity cancellation process is executed. Figure 4 For the fourth schematic diagram of the equity cancellation method provided by the embodiment of the present application, the user signing data includes a user address, an address url of a first NFT resource, a contract address, and a unique identifier TokenID, as shown in Figure 4 The method comprises the following steps: Step 400, based on the second NFT resource, obtain a string A, a first hash value corresponding to the string A, and a first signature sigA; the first signature sigA is obtained by signing the first hash value based on the private key corresponding to the user client, and the string A is obtained based on the user signing data; the second NFT resource is obtained based on the string A, the first hash value, the first signature sigA, and the first NFT resource through a blind watermark algorithm; Step 401, based on the contract address and the TokenID, query the corresponding holder address and NFT resource address pic1 on the blockchain; in the case that the holder address is the same as the user address, and the address pic1 is the same as the address url, determine a public key based on the first hash value and the first signature sigA, and determine a signature address based on the public key; Step 402, based on the public key, obtain a corresponding second hash value by signing the first signature sigA; in the case that the second hash value is the same as the first hash value, and the signature address is the same as the holder address, execute the equity cancellation process.

[0059] The execution subject of the method embodiment can be the equity cancellation end, based on the embodiment as shown in Figure 1 After the user client generates the NFT resource for equity cancellation based on the plaintext information in the blockchain wallet, the user client can present the second NFT resource to the merchant.

[0060] The merchant correspondingly processes the second NFT resource on the equity cancellation side, and can obtain the hidden string A, the first hash value corresponding to the string A, and the first signature sigA. From the above embodiment, it is known that the first signature sigA is obtained by signing the first hash value based on the private key corresponding to the user client, the string A is obtained based on the user signing data, the user signing data includes the user address, the address url of the first NFT resource, the contract address, and the unique identifier TokenID; the second NFT resource is obtained based on the string A, the first hash value, the first signature sigA and the first NFT resource through the blind watermark algorithm, and the above method embodiment will not be repeated here.

[0061] The equity cancellation side can further query the corresponding holder address and NFT resource address pic1 on the blockchain based on the contract address and TokenID. Then, it is compared whether the queried holder address is the same as the user address, and whether the queried NFT resource address pic1 is the same as the address url of the first NFT resource. In the case where the holder address is determined to be the same as the user address, and the address pic1 is determined to be the same as the address url, the public key is determined based on the first hash value and the first signature sigA, and the signature address is determined based on the public key.

[0062] Then, the equity cancellation side further determines the second hash value based on the public key and the first signature sigA. It is compared whether the second hash value is the same as the first hash value, and in the case where the second hash value is determined to be the same as the first hash value, it is indicated that the user identity is legal, and the equity cancellation process can be executed. And it also includes, in the case where the second hash value is not the same as the first hash value, and / or the signature address is not the same as the holder address, an error is returned and the error reason.

[0063] The equity cancellation method provided by the embodiment of the application automatically obtains the NFT resource used for equity cancellation based on the user signing data stored in the blockchain wallet, without the user actively triggering the cancellation. The interaction mode is completely consistent with the two-dimensional code of the current web2, and the execution is convenient, fast and safe, and is easy to be accepted by users. The generation of the NFT resource and the equity cancellation process do not need to be chained, and the security can be ensured through cryptography and reading data on the blockchain, without gas cost, low cost; and one NFT resource can represent an identity, which is more beautiful and personalized than a two-dimensional code, and can be used repeatedly, saving network resources.

[0064] In the method embodiment, determining the public key based on the first hash value and the first signature sigA can include: determining, by the benefit cancellation end, the public key based on the first hash value and the first signature sigA according to an elliptic curve algorithm ECDSA.

[0065] In the method embodiment, obtaining the string A, the first hash value corresponding to the string A, and the first signature sigA based on the second NFT resource can include: obtaining the string A, the first hash value corresponding to the string A, and the first signature sigA based on the second NFT resource by a blind watermark algorithm. Specifically, the benefit cancellation end can process the second NFT resource by the blind watermark algorithm to obtain the string A, the first hash value corresponding to the string A, and the first signature sigA. The blind watermark algorithm has a significant effect on processing a picture resource, so the first NFT resource in the embodiment of the application can be an NFT picture, and correspondingly, the second NFT resource is an NFT picture with watermark information. The benefit cancellation end can scan the NFT picture for processing.

[0066] To further ensure the security of the data, the embodiment of the application can also add an invalid time parameter in the plaintext information, that is, the string A, which is used to control the valid time length of the second NFT resource, for example, the valid time length is one year. After the benefit cancellation end obtains the invalid time parameter, it can verify whether the NFT resource is within the valid period. The embodiment of the application adds the invalid time parameter in the signed plaintext information, so that the wallet is updated regularly to prevent the risk of illegal theft and screenshot disclosure.

[0067] Figure 5 A fifth method flowchart of the benefit cancellation method provided by the embodiment of the application is shown in FIG. 5, which includes the following steps: Figure 5 1. The user opens the blockchain wallet (for the sake of simplicity and convenience, here refers to the EOA wallet such as metamask) and enters the NFT detail page. The wallet needs to prepare the following data: user address, NFT picture url, NFT contract address, TokenID and other fields. These public fields can be queried on the chain by the blockchain browser.

[0068] 2. The above fields are spliced into a string A through some special symbols, for example, string A=user address+NFT picture url+contract address+TokenID.

[0069] 3. The string A is processed by a hash function and then signed by the user private key (stored by the wallet) to obtain sigA, sigA=sign(hash(string A), private key). This hash processing reduces the size of the signature and saves gas fees. ​

[0070] 4. Merge the string A, sigA, hash(string A), NFT picture through the public blind watermark algorithm to obtain the pic picture.

[0071] Note 1: In order to support as many blockchain wallets as possible, the blind watermark algorithm here must ensure security, performance, and other factors, and preferably form a standard to promote wallet manufacturers to implement.

[0072] Note 2: The pic picture generated in real time when entering the wallet cancellation page does not require on-chain operation and does not require gas fees, but the user will be authorized (off-chain private key signature).

[0073] The above is the wallet side interaction process, which can be referred to in detail at Figure 6 .

[0074] 5. The merchant opens the cancellation system, scans the pic picture, and extracts the hidden information: string A, sigA, hash(string A) using the public blind watermark algorithm.

[0075] 6. Get the contract address and TokenID from the string A (these two pieces of information can uniquely determine an NFT). First, call the interface to query whether it meets the activity rules in the merchant's centralized storage of the eligible NFT list (check whether the NFT is on the activity list and whether the NFT has been cancelled). If so, query the current holder's address add1 and NFT picture address pic1 on the blockchain.

[0076] 7. Compare the user address in string A with add1, and compare the picture url in string A with pic1. If the information is inconsistent, return an error and the error reason. If all the information is consistent, proceed to the next step. The above interaction process only proves that the plaintext information meets the requirements of the merchant's activity, but since the information is all public information, it is still possible to be used as a fake. The following steps need to verify that the plaintext information is indeed the holder's own, not a fake of someone else's.

[0077] The above is the verification process of the cancellation information, which can be referred to in detail at Figure 7 .

[0078] According to the function of the elliptic curve algorithm ECDSA, based on the plaintext information hash and signature, the x-coordinate of the public key is derived through mathematical operation, and then the y-coordinate is determined by combining the elliptic curve equation, thereby deriving the public key puk of the signature. Then use the public key puk to derive the address add2 of the signature.

[0079] The signature sigA is used to unsign the public key puk to obtain the hash value hash1 of the plaintext information, and hash (string A) is taken as hash2, and whether hash1 is equal to hash2 is compared. It is worth noting that even if they are equal here, it can only prove that the plaintext information is correct and has not been tampered with, but it still cannot prove that it is the holder's signature, because it may also be the legal signature of others.

[0080] The signature address add2 is compared with the current holder address add1, and if they are equal, it can be proved that the current signer is the last holder of the NFT. In this way, the subsequent functions such as verification and identity display can be continued.

[0081] The NFT verification algorithm process is completed.

[0082] The above is the identity authentication process of the verifier, which can be specifically referred to Figure 8 .

[0083] NFT fusion rights are a widely used and high-demand scenario, and verification is a key closed loop. In the future, users can take their own exclusive NFTs to various concerts, bars, and parks, and the era of anonymous identity and rights will eventually arrive.

[0084] Figure 9 The physical structure of the electronic device provided by the embodiment of the application is shown in Figure 9 The electronic device can include a processor 910, a communications interface 920, a memory 930, and a communications bus 940, wherein the processor 910, the communications interface 920, and the memory 930 communicate with each other through the communications bus 940. The processor 910 can call the logical instructions in the memory 930 to execute the rights verification method provided by each embodiment described above.

[0085] In addition, the logic instructions in the memory 930 described above can be implemented in the form of software function units and sold or used as independent products, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0086] In another aspect, the present application also provides a computer program product, which comprises a computer program, the computer program can be stored on a non-transitory computer readable storage medium, and the computer program can be executed by a processor to enable a computer to execute the benefit redemption method provided by the above-mentioned embodiments.

[0087] In yet another aspect, the present application also provides a non-transitory computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to execute the benefit redemption method provided by the above-mentioned embodiments.

[0088] The device embodiments described above are only schematic, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0089] From the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by means of software plus necessary universal hardware platforms, and of course, can also be implemented by hardware. Based on such understanding, the above technical solutions essentially or the parts that contribute to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments.

[0090] It should be pointed out finally that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit the same; and although the present application has been described in detail with reference to the foregoing embodiments, it should be appreciated by those skilled in the art that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features thereof can be replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for rights write-off, characterized in that, Applied to a user client, the method includes: Obtain user contract data, and obtain target data based on the user contract data; The target data is signed based on the private key corresponding to the user client to obtain a first signature sigA; Based on the target data, the first signature sigA, and the first NFT resource, a second NFT resource is obtained for rights write-off.

2. The rights write-off method according to claim 1, characterized in that, The user contract data includes the user address, the URL of the first NFT resource, the contract address, and the unique identifier TokenID; The process of obtaining target data based on the user's subscription data includes: Based on the user's contract data, obtain string A and the first hash value corresponding to string A; The step of signing the target data based on the private key corresponding to the user client to obtain a first signature sigA includes: The first hash value is signed based on the private key corresponding to the user client to obtain the first signature sigA; The step of obtaining a second NFT resource based on the target data, the first signature sigA, and the first NFT resource for rights write-off includes: Based on the string A, the first hash value, the first signature sigA, and the first NFT resource, a second NFT resource is obtained for rights write-off.

3. The rights write-off method according to claim 2, characterized in that, The process of obtaining the second NFT resource based on the string A, the first hash value, the first signature sigA, and the first NFT resource includes: Based on the string A, the first hash value, the first signature sigA, and the first NFT resource, the second NFT resource is obtained through a blind watermarking algorithm.

4. The rights write-off method according to claim 2, characterized in that, The first NFT resource includes NFT images.

5. The rights write-off method according to claim 2, characterized in that, The user subscription data also includes an expiration time parameter, which is used to control the validity period of the second NFT resource.

6. A method for rights write-off, characterized in that, When applied to the rights and interests reimbursement process, the method includes: Based on the user's second NFT resource, target data and a first signature sigA are obtained; wherein, the first signature sigA is obtained by signing the target data based on the private key corresponding to the user's client, and the target data is obtained based on the user's contract data; the second NFT resource is obtained based on the target data, the first signature sigA, and the first NFT resource through a blind watermarking algorithm; Based on the target data and the first signature sigA, determine whether the user has rights; If the user has rights, execute the rights cancellation process.

7. The rights write-off method according to claim 6, characterized in that, The user contract data includes the user address, the URL of the first NFT resource, the contract address, and the unique identifier TokenID; The second NFT resource based on the user obtains target data and a first signature sigA; wherein, the first signature sigA is obtained by signing the target data based on the private key corresponding to the user's client, and the target data is obtained based on the user's contract data; the second NFT resource is obtained based on the target data, the first signature sigA, and the first NFT resource through a blind watermarking algorithm, including: Based on the second NFT resource, string A, the first hash value corresponding to string A, and the first signature sigA are obtained; wherein, the first signature sigA is obtained by signing the first hash value with the private key corresponding to the user client, and string A is obtained based on user contract data; the second NFT resource is obtained by using a blind watermarking algorithm based on string A, the first hash value, the first signature sigA, and the first NFT resource. The step of determining whether the user has rights based on the target data and the first signature sigA includes: Based on the contract address and the TokenID, query the corresponding holder address and NFT resource address pic1 on the blockchain. If the holder address is the same as the user address and the address pic1 is the same as the address url, determine the public key based on the first hash value and the first signature sigA, and determine the signature address based on the public key. Based on the public key, the first signature sigA is designed to obtain the corresponding second hash value. If the second hash value is the same as the first hash value and the signature address is the same as the holder address, it is determined that the user has the rights.

8. The rights write-off method according to claim 7, characterized in that, The step of determining the public key based on the first hash value and the first signature sigA includes: The public key is determined based on the first hash value and the first signature sigA according to the Elliptic Curve Algorithm ECDSA.

9. The rights write-off method according to claim 7 or 8, characterized in that, The method further includes: If the second hash value is different from the first hash value, and / or the signature address is different from the holder address, return an error and the reason for the error.

10. The rights write-off method according to claim 7 or 8, characterized in that, The step of obtaining string A, the first hash value corresponding to string A, and the first signature sigA based on the second NFT resource includes: Based on the second NFT resource, string A, the first hash value corresponding to string A, and the first signature sigA are obtained through a blind watermarking algorithm.

11. The method for writing off rights according to claim 10, characterized in that, The second NFT resource includes NFT images.

12. The method for rights write-off according to claim 7 or 8, characterized in that, The user subscription data also includes an expiration time parameter; the method further includes: Based on the expiration time parameter, the effective duration of the second NFT resource is determined.

13. An electronic 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 computer program, it implements the rights write-off method as described in any one of claims 1 to 5, or as described in any one of claims 6 to 12.

14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the rights write-off method as described in any one of claims 1 to 5, or as described in any one of claims 6 to 12.

15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the rights write-off method as described in any one of claims 1 to 5, or as described in any one of claims 6 to 12.