NFT-based computing power resource transaction method and system
By using an NFT-based computing power resource trading method, time-limited rental access certificates and mining computing power rental NFTs are generated, solving the problem of low computing power resource utilization in existing technologies, realizing the rational allocation of computing power resources and the security of transactions, and avoiding resource waste.
Patent Information
- Application Number
- CN202411838874.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2044-12-13
AI Technical Summary
Existing technologies, when using blockchain to trade computing resources, suffer from low utilization and waste of computing resources, making it difficult to achieve reasonable allocation.
By using an NFT-based computing power resource trading method, key attribute information and encrypted data of computing power providers are obtained, rental time periods are divided, rental access certificates with time limits are generated, and computing power rental NFTs are minted on the NFT computing power public chain to achieve transactions strictly in accordance with the rental time period and generate original computing power NFTs to prove ownership.
It achieves the rational allocation of computing resources, avoids idleness and waste, ensures the security and transparency of transactions, and protects the interests of computing power providers.
Smart Images

Figure CN119809635B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to a computing power resource transaction method field, in particular to a computing power resource transaction method and system based on NFT. BACKGROUND
[0002] With the development of digital economy, computing power has gradually become a new productivity, and the demand for computing power has also experienced explosive growth. Due to uneven distribution of computing power resources, some regions have excess computing power, while other regions may face a shortage of computing power, so computing power resource transactions have emerged as the times require.
[0003] Computing power resource transaction refers to the behavior of buying and selling or sharing computing power. The existing computing power resource transaction methods include direct transaction, transaction through a computing power transaction platform, and transaction through a blockchain. Among them, the transaction through the blockchain has a high degree of transparency and security due to its decentralized nature, and therefore has developed rapidly in the computing power resource transaction.
[0004] However, although the existing technology has realized the transaction of computing power resources through the blockchain, it still has the problems of low utilization rate of computing power resources and waste, and it is difficult to realize the reasonable allocation of computing power resources. SUMMARY
[0005] The application provides a computing power resource transaction method and system based on NFT to solve the problem of unreasonable allocation of resources in the existing technology of realizing computing power resource transaction through blockchain technology.
[0006] In order to achieve the above purpose, the technical scheme adopted by the application is as follows:
[0007] The computing power resource transaction method based on NFT has the following process:
[0008] Obtain the key attribute information of the computing power resource provided by the computing power provider, and the encrypted data A and the symmetric key A, wherein the key attribute information includes the provider ID and the resource available time range, and the encrypted data A is obtained by encrypting the computing power access credential of the computing power provider through the symmetric key A;
[0009] Divide the resource available time range in the key attribute information into a plurality of lease time periods, decrypt the encrypted data A through the symmetric key A to obtain the computing power access credential, and encrypt each lease time period using the computing power access credential, then splice the encrypted data with the corresponding lease time period to obtain the lease access credential with a time limit corresponding to each lease time period, and then encrypt the lease access credential using the symmetric key A to obtain the encrypted data C;
[0010] Constructing a computing power leasing NFT metadata for each leasing time period, the computing power leasing NFT metadata including each leasing time period and its corresponding encrypted data C, and generating a unique identifier for the computing power leasing NFT metadata, and then storing the computing power leasing NFT metadata on the NFT computing power public chain and obtaining a storage path of the computing power leasing NFT metadata, and then using the unique identifier, the storage path and the provider ID of the computing power leasing NFT metadata to cast a computing power leasing NFT on the NFT computing power public chain;
[0011] Finally, trading the computing power leasing NFT with the buyer on the NFT computing power public chain, and judging whether the required leasing time of the buyer is within the leasing time period corresponding to the purchased computing power leasing NFT according to the purchased computing power leasing NFT of the buyer, if not within the leasing time period, the transaction is invalid, if within the leasing time period, the transaction is valid; when the transaction is valid, obtaining the wallet public key of the buyer, encrypting the symmetric key A by the wallet public key of the buyer to obtain encrypted data D, and sending the encrypted data D and the encrypted data C in the computing power leasing NFT purchased by the buyer to the buyer.
[0012] Further, after obtaining the symmetric key A, the symmetric key B is also used to encrypt the symmetric key A to form encrypted data B; the computing power metadata is constructed by using the key attribute information, the encrypted data A and the encrypted data B, a unique identifier is generated for the computing power metadata, and then the computing power metadata is stored on the NFT computing power public chain and the storage path of the computing power metadata is obtained, and then the unique identifier, the storage path and the provider ID of the computing power metadata are used to cast a computing power original NFT on the NFT computing power public chain to prove the ownership of the computing power provider to the computing power resource;
[0013] When the transaction is valid, the symmetric key A is obtained by decrypting the encrypted data B in the computing power original NFT by the symmetric key B, and then the symmetric key A is encrypted by the wallet public key of the buyer to obtain encrypted data D.
[0014] Further, the computing power leasing NFT metadata further includes a unique identifier of the computing power metadata.
[0015] Further, the key attribute information further includes a time granularity of leasing, and the resource available time range is divided into a plurality of leasing time periods according to the time granularity.
[0016] Further, the key attribute information further includes a baseline price of each time granularity, and the computing power leasing NFT metadata further includes a baseline price of each time granularity.
[0017] The NFT-based computing power resource transaction system includes a computing power public chain module, a smart contract module and an NFT management module, which are used to realize the NFT-based computing power resource transaction method described above, wherein:
[0018] The computing power public chain module generates an NFT computing power public chain;
[0019] The smart contract module generates a computing power resource management contract on the NFT computing power public chain. The computing power resource management contract obtains the key attribute information of the computing power resources, the symmetric key A, and the encrypted data A from the computing power provider and sends them to the NFT management module.
[0020] The NFT management module divides the available time range of resources in the key attribute information into multiple rental time periods, generates the rental access certificate corresponding to each rental time period, and obtains encrypted data C based on the rental access certificate;
[0021] The NFT management module also constructs the metadata of the computing power rental NFT and mints the computing power rental NFT on the NFT computing power public chain;
[0022] The computing power resource management contract trades computing power rental NFTs with buyers on the NFT computing power public chain. During the transaction, the computing power resource management contract determines whether the buyer's requested rental time is within the rental period corresponding to the purchased computing power rental NFT. When the transaction is established, the computing power resource management contract obtains encrypted data D and sends encrypted data D and encrypted data C from the purchased computing power rental NFT to the buyer.
[0023] Furthermore, after the computing power resource management contract obtains the symmetric key A, it uses the symmetric key B to encrypt the symmetric key A to form encrypted data B; when the transaction is established, the computing power resource management contract decrypts the encrypted data B in the original computing power NFT to obtain the symmetric key A.
[0024] Furthermore, the NFT management module also constructs computing power metadata using the key attribute information, encrypted data A, and encrypted data B, and casts the original computing power NFT on the NFT computing power public chain.
[0025] Furthermore, when the NFT management module divides the rental period into multiple rental periods, it divides the available time range of the resource into multiple rental periods based on the time granularity in the key attribute information.
[0026] Furthermore, the NFT management module's metadata for computing power leasing NFTs also includes the baseline price for each time granularity.
[0027] In this invention, based on the available time range of resources in the key attribute information provided by the computing power provider, the available time range of computing power resources is divided into multiple rental time periods. A corresponding computing power rental NFT is generated for each time period, and the transaction of computing power resources is realized between the computing power rental NFT and the buyer. Therefore, the allocation of computing power resources can be strictly based on the rental time period during the transaction, thereby avoiding the idleness of computing power resources and the waste caused by buyers purchasing computing power resources but not using them for a long time.
[0028] Furthermore, in this invention, original NFTs of computing power are generated for computing power providers, and NFT blockchain technology is used to prove the computing power provider's ownership of computing power resources, thereby effectively protecting the interests of computing power providers.
[0029] Compared with existing technologies, this invention combines NFT blockchain and smart contract technologies to construct an efficient and transparent computing power trading method. Users can conveniently and flexibly lease computing power resources, which not only ensures the security and transparency of computing power resource transactions, but also enables the rational allocation of computing power resources, avoiding idleness and waste. Attached Figure Description
[0030] Figure 1 This is a flowchart of the method according to an embodiment of the present invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the embodiments will be described in detail below with reference to the accompanying drawings and examples. This will allow for a full understanding of how the present invention uses technical means to solve technical problems and achieve corresponding technical effects, and to facilitate its implementation. The embodiments of the present invention and the various features within them can be combined with each other without conflict, and all resulting technical solutions are within the protection scope of the present invention.
[0032] Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "comprising" and "having" and any variations thereof in the specification, claims, and accompanying drawings of this invention are intended to cover non-exclusive inclusion.
[0034] like Figure 1 As shown in the figure, this embodiment discloses a method for trading computing power resources based on NFTs, and the process is as follows:
[0035] First, the key attribute information of the computing resources, encrypted data A, and symmetric key A are obtained from the computing power provider. The key attribute information includes the provider ID, computing resource information, resource availability time range, rental time granularity, and baseline price for each time granularity. The computing resource information includes resource ID, CPU model, GPU model, computing power, memory size, storage size, and geographical location. Furthermore, the computing power provider uses symmetric key A to encrypt the computing power access credentials for accessing the computing resources, resulting in encrypted data A.
[0036] After obtaining key attribute information, encrypted data A, and symmetric key A, use symmetric key B to encrypt symmetric key A to obtain encrypted data B.
[0037] Furthermore, based on the resource availability time range and rental time granularity in the key attribute information, the resource availability time range is segmented according to time granularity, thus dividing the resource availability time range into multiple rental time periods. Encrypted data A is decrypted using symmetric key A to obtain a computing power access credential. This credential is then used to encrypt each rental time period and concatenated with the corresponding rental time period to obtain a rental access credential with a time limit for each rental time period. This rental access credential is then encrypted again using symmetric key A to obtain encrypted data C. Therefore, a corresponding rental access credential and encrypted data C are generated for each rental time period.
[0038] Then, the casting of the original computing power NFTs and the casting of the computing power leased NFTs corresponding to each rental period are carried out. The casting process for the original computing power NFTs is as follows:
[0039] Key attribute information, encrypted data A, and encrypted data B are constructed into JSON-formatted computing power metadata. A unique identifier, tokenid1, is generated for this metadata. The metadata is then stored on the NFT computing power public blockchain to obtain its storage path. Finally, using the unique identifier tokenid1, the storage path, and the provider ID, the metadata is minted on the NFT computing power public blockchain to form the original computing power NFT. This original computing power NFT is not traded; it only serves to prove the computing power provider's ownership of the computing power resources on the NFT computing power public blockchain.
[0040] The NFT casting process for computing power leasing is as follows:
[0041] The computing power rental NFT metadata is constructed in JSON format using the unique identifier tokenid1, the rental period, the baseline price for each time granularity, and the encrypted data C. After generating a unique identifier tokenid2 for the computing power rental NFT metadata, the computing power rental NFT metadata is stored on the NFT computing power public chain, and the storage path of the computing power rental NFT metadata is obtained. Then, the unique identifier tokenid2, the storage path, and the provider ID of the computing power rental NFT metadata are used to mint on the NFT computing power public chain to form the computing power rental NFT.
[0042] Finally, NFT rental NFTs are listed for sale on the NFT computing power public blockchain. When a buyer purchases a computing power rental NFT through the NFT computing power public blockchain, the system obtains the buyer's requested rental period and the corresponding rental time period based on the purchased computing power rental NFT. Then, it determines whether the buyer's requested rental period is within the rental time period corresponding to the purchased computing power rental NFT. If the determination result is that it is not within the rental time period, the transaction is invalid; if the determination result is that it is within the rental time period, the transaction is successful.
[0043] When a transaction is completed, the buyer's wallet public key is obtained. The encrypted data B in the original NFT of computing power is decrypted using symmetric key B to obtain symmetric key A. Then, symmetric key A is encrypted using the buyer's wallet public key to obtain encrypted data D. Finally, encrypted data D and encrypted data C from the purchased computing power rental NFT are sent to the buyer.
[0044] After obtaining encrypted data C and encrypted data D, the buyer decrypts encrypted data D using their wallet's private key to obtain a symmetric public key A. They then use public key A to decrypt encrypted data C, obtaining a time-limited lease access credential. This credential is then used to access and utilize computing resources within the corresponding lease period. This completes the entire computing resource transaction process.
[0045] When a buyer accesses the service, the computing power provider uses its computing power access credentials to decrypt the rental access credentials provided by the buyer to obtain the rental period. The provider then checks whether the rental period is within the available time range of the resources provided by the provider. If it is within the available time range, the computing power provider allows the buyer to access and utilize the computing power resources.
[0046] This embodiment also discloses an NFT-based computing power resource trading system for implementing the above-mentioned computing power resource trading method, including a computing power public chain module, a smart contract module, and an NFT management module, wherein:
[0047] The computing power public chain module generates an NFT computing power public chain, selecting an appropriate consensus mechanism (such as proof-of-stake or proof-of-work) to ensure the security and efficiency of the public chain. Nodes on the NFT computing power public chain allow multiple participants (such as computing power providers) to access the network, ensuring the system's decentralization. The NFT computing power public chain also defines the trading rules for computing power resources, the NFT generation mechanism, and the revenue distribution logic.
[0048] The smart contract module generates computing power resource management contracts on the NFT computing power public chain. Computing power providers and buyers conduct computing power resource transactions through the computing power resource management contracts on the NFT computing power public chain.
[0049] Specifically, the computing resource management contract obtains key attribute information of computing resources, symmetric key A, and encrypted data A from the computing resource provider. The computing resource management contract then uses symmetric key B to encrypt symmetric key A, forming encrypted data B. Both encrypted data A and encrypted data B are stored within the computing resource management contract. The private key of the computing resource management contract's symmetric key B is not exposed externally; only this contract can read and use it. Finally, the computing resource management contract sends the obtained key attribute information, symmetric key A, encrypted data A, and encrypted data B to the NFT management module.
[0050] The NFT management module divides the available time range of resources into multiple rental time periods based on the resource availability time range and rental time granularity in the key attribute information. The module then decrypts encrypted data A using symmetric key A to obtain a computing power access certificate. This certificate is then used to encrypt each rental time period and concatenated with the corresponding rental time period to obtain a rental access certificate with a time limit for each rental time period. Finally, the NFT management module uses symmetric key A to encrypt each rental access certificate, resulting in encrypted data C.
[0051] The NFT management module also constructs key attribute information, encrypted data A, and encrypted data B into JSON-formatted computing power metadata. After generating a unique identifier tokenid1 for the computing power metadata, it stores the computing power metadata on the NFT computing power public chain, forming a distributed storage that only the NFT management module has access to operate, and obtains the storage path of the computing power metadata. The NFT management module then uses the unique identifier tokenid1, the storage path, and the provider ID of the computing power metadata to mint NFTs on the NFT computing power public chain according to the NFT generation mechanism, forming the original computing power NFT.
[0052] The NFT management module also constructs JSON-formatted NFT metadata for computing power rental using the unique identifier tokenid1, rental period, baseline price for each time granularity, and encrypted data C. After generating a unique identifier tokenid2 for the computing power rental NFT metadata, it stores the metadata on the NFT computing power public blockchain, forming a distributed storage system accessible only to the NFT management module, and obtains the storage path for the computing power rental NFT metadata. The NFT management module then uses the unique identifier tokenid2, storage path, and provider ID to mint NFTs on the NFT computing power public blockchain according to the NFT generation mechanism, thus creating computing power rental NFTs.
[0053] Therefore, in this embodiment, the NFT management module mints original NFTs and multiple rental NFTs on the NFT computing power public chain. The original NFTs are not normally traded, while the multiple rental NFTs are provided to buyers for trading.
[0054] The NFT management module delivers the obtained computing power rental NFTs to the computing power resource management contract, and the computing power provider lists the computing power rental NFTs on the NFT computing power public chain through the computing power resource management contract.
[0055] When a buyer trades a computing power rental NFT, the computing power resource management contract obtains the buyer's required rental time and the corresponding rental period based on the computing power rental NFT purchased by the buyer. Then, it determines whether the buyer's required rental time is within the rental period corresponding to the purchased computing power rental NFT. If the determination result is that it is not within the rental period, the transaction is invalid; if the determination result is that it is within the rental period, the transaction is successful.
[0056] Upon transaction completion, the computing power resource management contract obtains the buyer's wallet public key. It also locates encrypted data B based on the storage path of the computing power metadata in the original computing power NFT, and encrypted data C based on the storage path of the computing power rental NFT metadata in the purchased computing power rental NFT. Furthermore, the contract decrypts encrypted data B using symmetric key B to obtain symmetric key A, and then encrypts symmetric key A using the buyer's wallet public key to obtain encrypted data D. Finally, the contract sends encrypted data D and encrypted data C from the purchased computing power rental NFT to the buyer.
[0057] Ultimately, the buyer uses their wallet's private key to decrypt encrypted data D to obtain a symmetric public key A, then uses symmetric public key A to decrypt encrypted data C to obtain a time-limited lease access credential. The buyer then uses the time-limited lease access credential to access and call upon computing resources during the corresponding lease period, thus completing the computing resource transaction between the buyer and the computing power provider.
[0058] The preferred embodiments of the present invention have been described in detail above with reference to the accompanying drawings. These embodiments are merely descriptions of preferred embodiments and are not intended to limit the scope or concept of the invention. The specific technical features described in the above embodiments can be combined in any suitable manner without contradiction. Such combinations, as long as they do not violate the spirit of the present invention, should also be considered as part of this disclosure. To avoid unnecessary repetition, the present invention will not further describe the various possible combinations.
[0059] This invention is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this invention and without departing from the design idea of this invention, all modifications and improvements made by those skilled in the art to the technical solutions of this invention should fall within the protection scope of this invention. The technical content for which protection is sought in this invention has been fully described in the claims.
Claims
1. A method for trading computing power resources based on NFTs, characterized in that, The process is as follows: Obtain the key attribute information of the computing power resource provided by the computing power provider, and the encrypted data A and the symmetric key A, wherein the key attribute information includes provider ID, resource available time range, and the encrypted data A is obtained by encrypting the computing power access credential of the computing power provider through the symmetric key A; Divide the resource available time range in the key attribute information into multiple lease time periods, decrypt the encrypted data A through the symmetric key A to obtain the computing power access credential, and encrypt each lease time period using the computing power access credential, then splice it with the corresponding lease time period to obtain the lease access credential with a time limit corresponding to each lease time period, and then encrypt the lease access credential using the symmetric key A to obtain the encrypted data C; Construct a computing power lease NFT metadata for each lease time period, the computing power lease NFT metadata includes each lease time period and its corresponding encrypted data C, and generate a unique identifier for the computing power lease NFT metadata, then store the computing power lease NFT metadata on the NFT computing power public chain and obtain the storage path of the computing power lease NFT metadata, and then use the unique identifier, storage path and provider ID of the computing power lease NFT metadata to cast and form the computing power lease NFT on the NFT computing power public chain; Finally, trade the computing power lease NFT with the buyer on the NFT computing power public chain, and determine whether the buyer's required lease time is within the lease time period corresponding to the purchased computing power lease NFT according to the purchased computing power lease NFT, if not, the transaction is invalid, if yes, the transaction is valid; When the transaction is valid, obtain the buyer's wallet public key, encrypt the symmetric key A through the buyer's wallet public key to obtain the encrypted data D, and send the encrypted data D and the encrypted data C in the buyer's purchased computing power lease NFT to the buyer.
2. The NFT-based computing power resource transaction method according to claim 1, characterized in that, After obtaining the symmetric key A, the symmetric key B is also used to encrypt the symmetric key A to form the encrypted data B; the key attribute information, the encrypted data A and the encrypted data B are used to construct the computing power metadata, a unique identifier is generated for the computing power metadata, and then the computing power metadata is stored on the NFT computing power public chain and the storage path of the computing power metadata is obtained, and then the unique identifier, storage path and provider ID of the computing power metadata are used to cast and form the computing power original NFT on the NFT computing power public chain to prove the ownership of the computing power resource of the computing power provider; When the transaction is valid, the symmetric key A is obtained by decrypting the encrypted data B in the computing power original NFT through the symmetric key B, and then the symmetric key A is encrypted through the buyer's wallet public key to obtain the encrypted data D.
3. The NFT-based computing power resource transaction method according to claim 2, characterized in that, The computing power lease NFT metadata also includes the unique identifier of the computing power metadata.
4. The NFT-based computing power resource transaction method according to claim 1, characterized in that, The key attribute information also includes the time granularity of the lease, and the resource available time range is divided into multiple lease time periods according to the time granularity.
5. The NFT-based computing power resource transaction method according to claim 4, characterized in that, The key attribute information also includes the baseline price of each time granularity, and the computing power lease NFT metadata also includes the baseline price of each time granularity.
6. The NFT-based computing power resource transaction system, characterized in that, The power chain module, the smart contract module, and the NFT management module are used to implement the NFT-based power resource transaction method according to any one of claims 1-5, wherein: The power chain module generates an NFT power chain. The smart contract module generates a power resource management contract on the NFT power chain, obtains key attribute information, a symmetric key A, and encrypted data A of the power resource from the power provider by the power resource management contract, and sends them to the NFT management module. The NFT management module divides the resource available time range in the key attribute information into multiple lease time periods, generates the lease access credential corresponding to each lease time period, and obtains encrypted data C based on the lease access credential. The NFT management module also constructs the power lease NFT metadata and casts the power lease NFT on the NFT power chain. The power resource management contract trades the power lease NFT with the buyer on the NFT power chain, and judges whether the required lease time of the buyer is within the lease time period corresponding to the purchased power lease NFT during the transaction, obtains encrypted data D from the power resource management contract during the transaction, and sends the encrypted data D and the encrypted data C in the power lease NFT purchased by the buyer to the buyer.
7. The NFT-based computing power resource transaction system according to claim 6, wherein, After obtaining the symmetric key A, the power resource management contract encrypts the symmetric key A using the symmetric key B to form encrypted data B; during the transaction, the power resource management contract decrypts the encrypted data B in the power original NFT to obtain the symmetric key A.
8. The NFT-based computing power resource transaction system according to claim 7, characterized in that, The NFT management module also constructs the power metadata with the key attribute information, the encrypted data A, and the encrypted data B, and casts the power original NFT on the NFT power chain.
9. The NFT-based computing power resource transaction system according to claim 6, wherein, When the NFT management module divides the multiple lease time periods, the resource available time range is divided into multiple lease time periods according to the time granularity in the key attribute information.
10. The NFT-based computing power resource transaction system according to claim 6, wherein, The power lease NFT metadata constructed by the NFT management module also includes the baseline price of each time granularity.
Citation Information
Patent Citations
Data processing method and device based on block chain, equipment and storage medium
CN117094799A
Information processing system and method for NFT transaction
WO2024010121A1