Computing power sharing method, blockchain network nodes, blockchain network
By introducing computing power supply nodes, network supply nodes and user nodes into the blockchain network, and generating and broadcasting computing power supply solutions and network supply solutions, the resource waste caused by unfair computing power scheduling in the existing technology is solved, and the fair distribution and effective utilization of resources are achieved.
Patent Information
- Application Number
- CN202211033723.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-08-26
AI Technical Summary
In the prior art, resource waste caused by unfair computing power scheduling includes problems such as the inability of computing power suppliers to obtain fair scheduling, user computing power shortage, resource waste, etc.
The computing power sharing method based on blockchain network is adopted to generate and broadcast computing power supply solutions and network supply solutions through information exchange and signature verification between user nodes, computing power supply nodes and network supply nodes to ensure fair distribution and effective utilization of resources.
It reduces the waste of network transmission resources caused by the computing power supply solution that does not meet user needs, ensures the fair distribution of resources, and improves the fairness and efficiency of computing power scheduling.
Smart Images

Figure CN115396210B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and specifically to a computing power sharing method based on a blockchain network, a computing power supply node of a blockchain network, a network supply node of a blockchain network, a user node of a blockchain network, and a blockchain network. Background Art
[0002] The competition for computing power has been going on since the advent of computers. Since the first supercomputer, Atanasoff-Berry Computer (ABC), appeared in 1942, computing has made rapid progress in terms of scale, performance, and versatility over the past few decades. From stand-alone systems within enterprises to private clouds and then to public clouds, computing power has gradually been integrated from various scattered points into data centers with more unified specifications. At the same time, distributed computing has gradually developed into an important way to solve the problem of how to process the large amount of data generated by the Internet.
[0003] After the emergence of cloud computing infrastructure and services such as public clouds, users with computing and storage needs are less and less concerned about the underlying network, server and other hardware infrastructure. They only need to use cloud computing services as needed and pay according to usage or usage duration, which greatly reduces the user's usage threshold. At the same time, centralized and unified cloud services provide users with a more stable environment and services. Under the trend of cloud migration, more and more private cloud and small and medium-sized enterprise users are gradually migrating services to public clouds, and public clouds are gradually becoming enterprise-level OS (Operating System). For start-ups, compared with building their own private clouds, the product development cycle is greatly shortened through various services on the public cloud, and thus the user's commercialization cycle is also greatly shortened.
[0004] From the emergence of data centers to private clouds and then to public clouds, data and computing have gradually moved closer to the center. Cloud services have gradually evolved from cloud designed with people as the center, such as web services, to the next era, with cloud designed with people as the center, such as edge computing and IOT PAAS (Internet of Things Platform as a Service), to support larger-scale computing and scheduling. Edge computing and public clouds complement each other. After simple processing at the gateway level, most of the data will still return to the central public cloud. It is an extension of the central cloud. The idea is to push part of the central cloud service computing to the edge. The gateway node is generally a data center server closer to a certain area.
[0005] Today, with the emergence of a large number of smart devices and a large amount of idle computing power, the Gravity protocol is used to integrate idle computing power into a standardized computing unit VCU (virtual computing unit), and through the P2P (peer-to-peer) NFV (Network Functions Virtualization) network, heterogeneous computing power is organized into a virtual data center. Through a decentralized computing power scheduling network, a more decentralized edge cloud infrastructure with resource and job scheduling capabilities is formed on heterogeneous nodes (including: mobile phones, smart devices, mining machines, PCs (personal computers), routers, etc.), and edge devices are organized into a distributed computing network with big data computing and storage capabilities. The computing of the data center is expanded to the edge cloud, which is also a strong complement to the existing cloud computing.
[0006] In a decentralized scheduling network, the operator of the computing power scheduling platform has great power in computing power scheduling, which may lead to unfair computing power scheduling, and some computing power suppliers cannot obtain fair scheduling and thus cannot obtain reasonable benefits; unfair computing power scheduling may also lead to a shortage of computing power resources for some users, thereby affecting the users' ongoing computing tasks and reducing computing efficiency; unfair computing power scheduling may also cause other users to have abundant computing power resources, which in turn causes a waste of computing power resources; unfair computing power scheduling may also lead to users being unable to obtain satisfactory computing power resources at one time, and they need to communicate with the computing power scheduling platform multiple times, which requires occupying network transmission resources during the communication process, thereby resulting in a waste of network transmission resources. Summary of the invention
[0007] To this end, the present invention provides a computing power sharing method based on a blockchain network, a computing power supply node of a blockchain network, a network supply node of a blockchain network, a user node of a blockchain network, and a blockchain network to solve the problem of resource waste caused by unfair computing power scheduling in the prior art.
[0008] In order to achieve the above-mentioned purpose, the first aspect of the present invention provides a computing power sharing method based on a blockchain network, the method is used for a computing power supply node of a blockchain network, and the method comprises:
[0009] Upon receiving first demand information sent by a user node of the blockchain network, generating second demand information according to the first demand information and broadcasting it to the blockchain network;
[0010] The first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node; the second demand information includes the data storage address, the network transmission requirements, and the address of the computing power node corresponding to the computing power supply node;
[0011] Upon receiving network supply plan information sent by at least one network supply node of the blockchain network, determining, according to the network supply plan information, a network supply node corresponding to the network supply plan information as a network supplier of the computing power supply node;
[0012] Generate computing power supply plan information according to the network supply plan information sent by the network provider and broadcast it to the blockchain network, wherein the computing power supply plan information includes the address of the computing power node and the access rights of the computing power node;
[0013] When the confirmation information sent by the user node is received, the access permission of the computing power node is activated so that the user node can access the computing power node through the access permission of the computing power node.
[0014] Optionally, the first demand information is information signed using the private key of the user node; the generating the second demand information based on the first demand information and broadcasting it to the blockchain network includes: verifying the signature of the first demand information, and generating the second demand information based on the first demand information if the verification passes; signing the second demand information using the private key of the computing power supply node, and broadcasting the signed second demand information to the blockchain network; the network supply plan information is information signed using the private key of the network supply node; and determining, based on the network supply plan information, a network supply node corresponding to the network supply plan information as the computing power supply node. The network supplier of the computing power supply node comprises: verifying the signature of the received network supply plan information; determining a network supply plan information as the final network supply plan information from the verified network supply plan information, and the network supply node corresponding to the final network supply plan information is the network supplier of the computing power supply node; generating computing power supply plan information according to the network supply plan information sent by the network supplier and broadcasting it to the blockchain network, comprising: generating computing power supply plan information according to the network supply plan information sent by the network supplier; using the private key of the computing power supply node to sign the computing power supply plan information and broadcasting it to the blockchain network.
[0015] Optionally, the network supply plan information is information encrypted according to a pre-agreed algorithm using the public key of the computing power supply node; before determining, based on the network supply plan information, that a network supply node corresponding to the network supply plan information is the network supplier of the computing power supply node, it also includes: using the private key of the computing power supply node to decrypt the received network supply plan information according to a pre-agreed algorithm; generating computing power supply plan information according to the network supply plan information sent by the network supplier and broadcasting it to the blockchain network, includes: generating computing power supply plan information according to the network supply plan information sent by the network supplier; using the public key of the user node to encrypt the computing power supply plan information according to a pre-agreed algorithm and broadcasting it to the blockchain network.
[0016] Optionally, the first demand information includes computing power and network quality detection code; the generating of the second demand information based on the first demand information and broadcasting it to the blockchain network includes: running the computing power and network quality detection code at the computing power node corresponding to the computing power supply node to detect whether the computing power of the computing power node meets the computing power usage demand; when the computing power of the computing power node meets the computing power usage demand, generating the second demand information based on the first demand information and broadcasting it to the blockchain network; wherein the second demand information also includes the computing power and network quality detection code, so that the network supply node runs the computing power and network quality detection code to detect whether the network supply node meets the network transmission demand.
[0017] Optionally, the network supply plan information includes the network supply plan and the corresponding resource quantity; the determining, based on the network supply plan information, a network supply node corresponding to the network supply plan information as the network supplier of the computing power supply node includes: determining, based on the resource quantity corresponding to the network supply plan, a network supply node corresponding to the network supply plan information as the network supplier of the computing power supply node; the generating, based on the network supply plan information sent by the network supplier, computing power supply plan information includes: generating a computing power supply plan based on the network supply plan in the network supply plan information sent by the network supplier, and determining the resource quantity corresponding to the computing power supply plan based on the resource quantity corresponding to the network supply plan; the computing power supply plan information includes the computing power supply plan and the resource quantity corresponding to the computing power supply plan.
[0018] A second aspect of the present invention provides a computing power sharing method based on a blockchain network, the method being used for a network supply node of a blockchain network, the method comprising:
[0019] In the case of receiving the second demand information sent by the computing power supply node of the blockchain network, generating a network supply plan according to the second demand information; the second demand information includes the data storage address corresponding to the user node of the blockchain network, the network transmission requirement, and the address of the computing power node corresponding to the computing power supply node;
[0020] Send network supply plan information to the computing power supply node, where the network supply plan information includes the network supply plan.
[0021] Optionally, the second demand information is information signed using the private key of the computing power supply node; generating a network supply plan based on the second demand information includes: verifying the signature of the second demand information, and if the verification is passed, generating a network supply plan based on the second demand information; sending the network supply plan information to the computing power supply node includes: using the public key of the computing power supply node to encrypt the network supply plan information according to a pre-agreed algorithm; using the private key of the network supply node to sign the encrypted network supply plan information; and sending the signed network supply plan information to the computing power supply node.
[0022] Optionally, the second demand information includes computing power and network quality detection code; generating a network supply plan based on the second demand information includes: running the computing power and network quality detection code to detect whether the network supply node meets the network transmission demand; when the network supply node meets the network transmission demand, generating a network supply plan based on the second demand information, and determining the amount of resources corresponding to the network supply plan; the network supply plan information includes the network supply plan and the amount of resources corresponding to the network supply plan.
[0023] A third aspect of the present invention provides a computing power sharing method based on a blockchain network, the method being used for a user node of a blockchain network, the method comprising:
[0024] Generate first demand information and broadcast it to the blockchain network; the first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node;
[0025] In the case of receiving computing power supply plan information sent by at least one computing power supply node of the blockchain network, determining a computing power supply node corresponding to the computing power supply plan information as a computing power supplier of the user node according to the computing power supply plan information; the computing power supply plan information includes an address of a computing power node corresponding to the computing power supply node and access rights to the computing power node;
[0026] Send confirmation information to the computing power provider, and access the computing power node corresponding to the computing power provider through the access rights of the computing power node corresponding to the computing power provider.
[0027] Optionally, generating first demand information and broadcasting it to the blockchain network includes: generating the first demand information; signing the first demand information using the private key of the user node, and broadcasting it to the blockchain network; the computing power supply plan information is information signed using the private key of the computing power supply node and encrypted using the public key of the user node according to a pre-agreed algorithm; determining, based on the computing power supply plan information, a computing power supply node corresponding to the computing power supply plan information as a computing power supplier of the user node, includes: verifying the signature of the received computing power supply plan information; if the verification passes, decrypting the computing power supply plan information using the private key of the user node according to a pre-agreed algorithm; determining a computing power supply plan information from the decrypted computing power supply plan information as the final computing power supply plan information, and the computing power supply node corresponding to the final computing power supply plan information is the computing power supplier of the user node.
[0028] Optionally, the first demand information also includes a computing power and network quality detection code; after accessing the computing power node corresponding to the computing power provider through the access rights of the computing power node corresponding to the computing power provider, it includes: using the computing power and network quality detection code to detect whether the computing power node corresponding to the computing power provider meets the computing power usage demand.
[0029] A fourth aspect of the present invention provides a computing power supply node for a blockchain network, comprising:
[0030] A demand broadcasting module, configured to, upon receiving first demand information sent by a user node of a blockchain network, generate second demand information according to the first demand information and broadcast the second demand information to the blockchain network;
[0031] The first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node; the second demand information includes the data storage address, the network transmission requirements, and the address of the computing power node corresponding to the computing power supply node;
[0032] A network selection module, configured to, upon receiving network supply scheme information sent by at least one network supply node of the blockchain network, determine, according to the network supply scheme information, a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node;
[0033] A scheme broadcasting module, used to generate computing power supply scheme information according to the network supply scheme information sent by the network provider and broadcast it to the blockchain network, wherein the computing power supply scheme information includes the address of the computing power node and the access rights of the computing power node;
[0034] The activation module is used to activate the access rights of the computing power node when receiving the confirmation information sent by the user node, so that the user node can access the computing power node through the access rights of the computing power node.
[0035] A fifth aspect of the present invention provides a network supply node of a blockchain network, comprising:
[0036] A solution generation module, configured to generate a network supply solution according to the second demand information sent by the computing power supply node of the blockchain network upon receiving the second demand information; the second demand information includes the data storage address corresponding to the user node of the blockchain network, the network transmission demand, and the address of the computing power node corresponding to the computing power supply node;
[0037] A sending module is used to send network supply plan information to the computing power supply node, and the network supply plan information includes the network supply plan.
[0038] A sixth aspect of the present invention provides a user node of a blockchain network, comprising:
[0039] A demand generation module, used to generate first demand information and broadcast it to the blockchain network; the first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node;
[0040] A computing power selection module, configured to, upon receiving computing power supply scheme information sent by at least one computing power supply node of the blockchain network, determine, according to the computing power supply scheme information, a computing power supply node corresponding to the computing power supply scheme information as a computing power supplier of the user node; the computing power supply scheme information includes an address of a computing power node corresponding to the computing power supply node and access rights to the computing power node;
[0041] An access module is used to send confirmation information to the computing power provider and access the computing power node corresponding to the computing power provider through the access rights of the computing power node corresponding to the computing power provider.
[0042] The seventh aspect of the present invention provides a blockchain network, including: the computing power supply node of the above-mentioned blockchain network; the network supply node of the above-mentioned blockchain network; and the user node of the above-mentioned blockchain network.
[0043] The present invention has the following advantages:
[0044] In the computing power sharing method based on blockchain network, the computing power supply node of blockchain network, the network supply node of blockchain network, the user node of blockchain network and the blockchain network of the present invention, computing power supply plan information is generated according to user needs, and after the computing power supply plan information is generated, it is sent to users for selection, thereby reducing the waste of network transmission resources caused by the computing power supply plan not meeting user needs; at the same time, the present invention is based on blockchain to record the entire computing power sharing process, and utilizes the tamper-proof characteristics of blockchain to make the entire process traceable, thereby ensuring user interests. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0046] Figure 1 A flowchart of a computing power sharing method based on a blockchain network provided in an embodiment of the present invention;
[0047] Figure 2 A flowchart of a computing power sharing method based on a blockchain network provided in an embodiment of the present invention;
[0048] Figure 3 A flowchart of a computing power sharing method based on a blockchain network provided in an embodiment of the present invention;
[0049] Figure 4 A flowchart of a computing power sharing method based on a blockchain network provided in an embodiment of the present invention;
[0050] Figure 5 A block diagram of a computing power supply node of a blockchain network provided by an embodiment of the present invention;
[0051] Figure 6 A block diagram of the composition of a network supply node of a blockchain network provided by an embodiment of the present invention;
[0052] Figure 7 A block diagram of the composition of a user node of a blockchain network provided by an embodiment of the present invention;
[0053] Figure 8 A block diagram of the composition of a blockchain network provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0055] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0056] The terms used in the present invention are only used to describe specific embodiments and are not intended to limit the present invention. As used in the present invention, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0057] When the terms “comprising” and / or “made of…” are used in the present invention, it specifies the existence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the existence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0058] Embodiments of the present invention may be described with reference to plan views and / or cross-sectional views by way of ideal schematic views of the present invention. Therefore, the exemplary illustrations may be modified according to manufacturing techniques and / or tolerances.
[0059] Unless otherwise defined, all terms (including technical and scientific terms) used in the present invention have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present invention, and will not be interpreted as having an idealized or overly formal meaning unless the present invention clearly defines it as such.
[0060] In a first aspect, an embodiment of the present invention provides a computing power sharing method based on blockchain, which is used for computing power supply nodes of a blockchain network.
[0061] Among them, the blockchain network includes at least one user node, at least one computing power supply node, and at least one network supply node.
[0062] As the name implies, a user node is a user's node in the blockchain network. It corresponds to one or more data storage nodes, which are used to store the data required for computing tasks and the data generated. The data storage node is only connected to the user node through the network and is not connected to the blockchain network.
[0063] As the name suggests, a computing power supply node is a server (such as a computing power scheduling platform) that provides computing power to users in the blockchain network. It corresponds to one or more computing power nodes, which are where the computing power is "really" located. The computing power node can join the blockchain network or not.
[0064] As the name suggests, a network supply node is a server (such as a network operator) in the blockchain network that provides network support for users to use computing power to perform computing tasks.
[0065] Reference Figure 1 The computing power sharing method based on the blockchain network of the embodiment of the present invention includes:
[0066] S101. Upon receiving first demand information sent by a user node of a blockchain network, generate second demand information according to the first demand information and broadcast it to the blockchain network.
[0067] User nodes publish their demands, namely the first demand information, in the blockchain network by broadcasting.
[0068] All computing power supply nodes in the blockchain network can receive the first demand information. After receiving the first demand information, each computing power supply node generates second demand information based on the first demand information, and broadcasts the second demand information to the network supply nodes in the blockchain network in the blockchain network to seek a network supply solution to provide network security for users to use computing power.
[0069] Among them, the first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node; the second demand information includes the data storage address, network transmission requirements, and the address of the computing power node corresponding to the computing power supply node.
[0070] The data storage address corresponding to the user node is the address of the data storage node corresponding to the user node.
[0071] Computing power usage requirements include computing power capacity and usage time; network transmission requirements include network bandwidth, network latency, latency bandwidth, storage space requirements, etc.
[0072] S102. Upon receiving network supply plan information sent by at least one network supply node of the blockchain network, determine, based on the network supply plan information, a network supply node corresponding to the network supply plan information as the network supplier of the computing power supply node.
[0073] After receiving the second demand information, the network supply node in the blockchain network generates a network supply plan based on the data storage address, the address of the computing power node and the corresponding network transmission demand in the second demand information, and sends the network supply plan to the computing power supply node in the form of network supply plan information.
[0074] When a computing power supply node receives information about multiple network supply plans, it compares and analyzes these network supply plans and determines that one of the network supply plans is the adopted network supply plan. The network supply node corresponding to the network supply plan is the network supplier of the computing power supply node.
[0075] S103. Generate computing power supply plan information based on the network supply plan information sent by the network provider and broadcast it to the blockchain network.
[0076] The computing power supply node generates a computing power supply plan based on the adopted network supply plan, and broadcasts the computing power supply plan in the form of computing power supply plan information on the blockchain network to send the computing power supply plan information to the user node.
[0077] Among them, the computing power supply plan information includes not only the computing power supply plan, but also the address of the computing power node and the access rights of the computing power node.
[0078] The access rights of the computing power nodes in the computing power supply plan information are not activated access rights.
[0079] S104. Upon receiving the confirmation information sent by the user node, activate the access rights of the computing power node, so that the user node can access the computing power node through the access rights of the computing power node.
[0080] The user node receives the computing power supply plan information from the computing power supply node, analyzes the computing power supply plan, and if it accepts the computing power supply plan, sends confirmation information to the computing power supply node.
[0081] After receiving the confirmation information, the computing power supply node activates the access rights of the computing power node. The user node can then use the access rights of the computing power node to access the computing power node to obtain computing power and complete computing tasks.
[0082] In the computing power sharing method based on the blockchain network in the embodiment of the present invention, computing power supply plan information is generated according to the needs of users, and after the computing power supply plan information is generated, it is sent to users for selection, thereby reducing the waste of network transmission resources caused by the computing power supply plan not meeting user needs; at the same time, the present invention is based on the blockchain to record the entire computing power sharing process, and uses the tamper-proof characteristics of the blockchain to make the entire process traceable, thereby ensuring the interests of users.
[0083] In some embodiments, nodes in the blockchain network sign information when transmitting it to indicate the source of the information; when receiving information, the signature is verified to ensure that the information is what they want.
[0084] That is to say, in some embodiments, the user node uses the private key of the user node to sign the first demand information. In step S101, the computing power supply node verifies the signature after receiving the first demand information. If the verification passes, the computing power supply node generates the second demand information based on the first demand information.
[0085] At the same time, after generating the second demand information, the computing power supply node also uses the private key of the computing power supply node to sign the second demand information, and broadcasts the signed second demand information on the blockchain network.
[0086] The network supply node uses the private key of the network supply node to sign the network supply plan information. In step S102, after receiving the network supply plan information, the computing power supply node shall verify the signature of the network supply plan information. If the verification is successful, the network supply plans shall be compared and analyzed to determine that one of the network supply plans is the adopted network supply plan, and the corresponding network supply node is the network supplier.
[0087] In step S103, the computing power supply node generates computing power supply plan information, signs the computing power supply plan information using the private key of the computing power supply node, and broadcasts the signed computing power supply plan information to the blockchain network.
[0088] In some embodiments, for confidentiality reasons, the network provisioning plan information and computing power provisioning plan information are encrypted before transmission.
[0089] That is to say, the network supply node uses the public key of the computing power supply node to encrypt the network supply plan information according to a pre-agreed algorithm.
[0090] In step S102, after receiving the network supply plan information, the received network supply plan information is first decrypted using the private key of the computing power supply node according to a pre-agreed algorithm.
[0091] In step S103, after the computing power supply node generates the computing power supply plan information, it uses the public key of the user node to encrypt the computing power supply plan information according to the pre-agreed computing power, and broadcasts the encrypted computing power supply plan information to the blockchain network.
[0092] The user node receives the encrypted computing power supply plan information, uses the user node's private key to decrypt it according to a pre-agreed algorithm, and obtains the computing power supply plan information.
[0093] In some embodiments, the first requirement information also includes computing power and network quality detection codes.
[0094] In step S101, after the computing power supply node receives the first demand information, it runs the computing power and network quality detection code on the computing power node corresponding to the computing power supply node to detect whether the computing power of the computing power node meets the computing power usage demand. When the computing power of the computing power node meets the computing power usage demand, the second demand information is generated according to the first demand information. The second demand information of course also includes the computing power and network quality detection code.
[0095] When the network supply node receives the second demand information, it runs the computing power and network quality detection code to detect whether it meets the network transmission requirements. If so, it generates a network supply plan based on the second demand information.
[0096] In some embodiments, the network provisioning solution information includes a network provisioning solution and a corresponding resource amount.
[0097] The amount of resources corresponding to the network supply solution may specifically be the Token (digital token) required to pay for using the network supply solution.
[0098] In step S102, based on the network supply plan information, determining a network supply node corresponding to the network supply plan information as a network provider of the computing power supply node can be performed by determining the adopted network supply plan based on the amount of resources corresponding to each network supply plan, and determining the network supply node corresponding to the adopted network supply plan information as the network provider of the computing power supply node.
[0099] In step S103, generating computing power supply plan information according to the network supply plan information sent by the network provider can be to generate a computing power supply plan according to the network supply plan sent by the network provider, and determine the amount of resources corresponding to the computing power supply plan according to the amount of resources corresponding to the network supply plan, and broadcast the computing power supply plan and the amount of resources corresponding to the computing power supply plan to the blockchain network in the form of computing power supply plan information.
[0100] In a second aspect, an embodiment of the present invention provides a computing power sharing method based on blockchain, which is used for network supply nodes of a blockchain network.
[0101] The blockchain network of the embodiment of the present invention also includes at least one user node, at least one computing power supply node, and at least one network supply node. The composition and function of each node of the blockchain network are also consistent with the blockchain network in the previous invention embodiment, and will not be repeated here.
[0102] Reference Figure 2 The computing power sharing method based on the blockchain network of the embodiment of the present invention includes:
[0103] S201. Upon receiving the second demand information sent by the computing power supply node of the blockchain network, generate a network supply plan according to the second demand information.
[0104] S202. Send network supply plan information to the computing power supply node, where the network supply plan information includes a network supply plan.
[0105] The second demand information includes the data storage address corresponding to the user node of the blockchain network, the network transmission demand, and the address of the computing power node corresponding to the computing power supply node;
[0106] That is to say, after the network supply node in the blockchain network receives the second demand information sent by the computing power supply node, it generates a network supply plan based on the data storage address, the address of the computing power node and the corresponding network transmission demand in the second demand information, and sends the network supply plan to the computing power supply node in the form of network supply plan information.
[0107] In the computing power sharing method based on the blockchain network in the embodiment of the present invention, network supply plan information is generated according to the needs of the computing power supply node, and after the network supply plan information is generated, it is sent to the computing power supply node for selection by the computing power supply node, thereby reducing the waste of network transmission resources caused by the network supply plan not meeting the needs of the computing power supply node; at the same time, the present invention is based on the blockchain to record the entire computing power sharing process, and uses the tamper-proof feature of the blockchain to make the entire process traceable, thereby ensuring the interests of all parties.
[0108] In some embodiments, nodes in the blockchain network sign information when transmitting it to indicate the source of the information; when receiving information, the signature is verified to ensure that the information is what they want.
[0109] That is to say, in some embodiments, the computing power supply node uses the private key of the computing power supply node to sign the second demand information. In step S201, when the network supply node receives the second demand information, it verifies the signature of the second demand information. If the verification passes, it generates a network supply plan based on the second demand information.
[0110] In step S202, the network supply node signs the encrypted network supply plan information using the private key of the network supply node, and sends the signed network supply plan information to the computing power supply node.
[0111] In some embodiments, for confidentiality reasons, the network provisioning solution information needs to be encrypted before transmission.
[0112] In step S202, sending the network supply plan information to the computing power supply node may be that the network supply node uses the public key of the computing power supply node to encrypt the network supply plan information according to a pre-agreed algorithm, and sends the encrypted network supply plan information to the computing power supply node.
[0113] In some embodiments, the second requirement information includes computing power and network quality detection code.
[0114] In step S201, upon receiving the second demand information, the network supply node runs the computing power and network quality detection code to detect whether it meets the network transmission requirements. If so, a network supply plan is generated according to the second demand information.
[0115] In some embodiments, the network provisioning solution information includes a network provisioning solution and a corresponding resource amount.
[0116] The amount of resources corresponding to the network supply solution may specifically be the Token (digital token) required to pay for using the network supply solution.
[0117] In step S201, while generating a network supply plan based on the second demand information, the amount of resources corresponding to the network supply plan is determined; in step S202, the network supply plan and the amount of resources corresponding to the network supply plan are sent to the computing power supply plan in the form of network supply plan information.
[0118] In a third aspect, an embodiment of the present invention provides a computing power sharing method based on blockchain, which is used for user nodes of a blockchain network.
[0119] The blockchain network of the embodiment of the present invention also includes at least one user node, at least one computing power supply node, and at least one network supply node. The composition and function of each node of the blockchain network are also consistent with the blockchain network in the previous invention embodiment, and will not be repeated here.
[0120] Reference Figure 3 The computing power sharing method based on the blockchain network of the embodiment of the present invention includes:
[0121] S301. Generate first demand information and broadcast it to the blockchain network.
[0122] The user node generates the first demand information according to its own needs and publishes its first demand information in the blockchain network by broadcasting.
[0123] Among them, the first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node.
[0124] S302. Upon receiving computing power supply plan information sent by at least one computing power supply node of the blockchain network, determine, based on the computing power supply plan information, a computing power supply node corresponding to the computing power supply plan information as the computing power supplier of the user node.
[0125] The computing power supply nodes in the blockchain network can all receive the first demand information. After receiving the first demand information, each computing power supply node generates computing power supply plan information based on the first demand information and sends it to the user node through communication with the network supply nodes.
[0126] Among them, the computing power supply plan information includes the address of the computing power node corresponding to the computing power supply node and the access rights of the computing power node.
[0127] When a user node receives information about multiple computing power supply plans, it compares and analyzes these computing power supply plans and determines that one of the computing power supply plans is the adopted computing power supply plan. The computing power supply node corresponding to the computing power supply plan is the computing power supplier of the user node.
[0128] S303: Send confirmation information to the computing power provider, and access the computing power node corresponding to the computing power provider through the access rights of the computing power node corresponding to the computing power provider.
[0129] The user node sends confirmation information to the computing power provider so that the computing power provider can activate the access rights of the computing power node after receiving the confirmation information. The user node can then use the access rights of the computing power node to access the computing power node to obtain computing power and complete computing tasks.
[0130] In the computing power sharing method based on the blockchain network in the embodiment of the present invention, computing power supply plan information is generated according to the needs of users, and after the computing power supply plan information is generated, it is sent to users for selection, thereby reducing the waste of network transmission resources caused by the computing power supply plan not meeting user needs; at the same time, the present invention is based on the blockchain to record the entire computing power sharing process, and uses the tamper-proof characteristics of the blockchain to make the entire process traceable, thereby ensuring the interests of users.
[0131] In some embodiments, nodes in the blockchain network sign information when transmitting it to indicate the source of the information; when receiving information, the signature is verified to ensure that the information is what they want.
[0132] That is to say, in step S301, after the user node generates the first demand information, it uses the private key of the user node to sign the first demand information, and broadcasts the signed first demand information to the blockchain network.
[0133] The computing power supply node generates computing power supply plan information, signs the computing power supply plan information using the private key of the computing power supply node, and broadcasts the signed computing power supply plan information to the blockchain network.
[0134] After receiving the computing power supply plan information, the user node first verifies the signature of the received computing power supply plan information, and determines a computing power supply plan from the verified computing power supply plan information as the final computing power supply plan information to be adopted, and the corresponding computing power supply node is the computing power supplier.
[0135] In some embodiments, for confidentiality reasons, computing power provisioning plan information is encrypted before transmission.
[0136] That is to say, the computing power supply node uses the public key of the user node to encrypt the computing power supply plan information according to the pre-agreed computing power, and broadcasts the encrypted computing power supply plan information to the blockchain network.
[0137] In step S302, the user node receives the encrypted computing power supply plan information, uses the user node's private key to decrypt it according to a pre-agreed algorithm, and obtains the computing power supply plan information.
[0138] In some embodiments, the first requirement information also includes computing power and network quality detection codes.
[0139] In step S303, after the user node accesses the computing power node corresponding to the computing power provider through the access rights of the computing power node corresponding to the computing power provider, the computing power and network quality detection code is used to detect whether the computing power node corresponding to the computing power provider meets the computing power usage requirements. If the computing power node cannot meet the requirements, the user node can obtain compensation.
[0140] In some embodiments, the computing power supply plan information includes the computing power supply plan and the corresponding resource amount.
[0141] The amount of resources corresponding to the computing power supply plan may specifically be the Token (digital token) required to pay for using the computing power supply plan.
[0142] In step S302, when the user node receives information on multiple computing power supply plans, it can determine one of the computing power supply plans as the adopted computing power supply plan based on the resource amounts corresponding to these computing power supply plans. The computing power supply node corresponding to the computing power supply plan is the computing power supplier of the user node.
[0143] In a fourth aspect, an embodiment of the present invention provides a computing power sharing method based on blockchain.
[0144] The method is used in a blockchain network, which includes at least one user node, at least one computing power supply node, and at least one network supply node.
[0145] As the name implies, a user node is a user's node in the blockchain network. It corresponds to one or more data storage nodes, which are used to store the data required for computing tasks and the data generated. The data storage node is only connected to the user node through the network and is not connected to the blockchain network.
[0146] As the name suggests, a computing power supply node is a server (such as a computing power scheduling platform) that provides computing power to users in the blockchain network. It corresponds to one or more computing power nodes, which are where the computing power is "really" located. The computing power node can join the blockchain network or not.
[0147] As the name suggests, a network supply node is a server (such as a network operator) in the blockchain network that provides network support for users to use computing power to perform computing tasks.
[0148] Reference Figure 4 The computing power sharing method based on the blockchain network of the embodiment of the present invention includes:
[0149] S401. The user node generates first demand information, signs the first demand information using the private key of the user node, and broadcasts it to the blockchain network.
[0150] Among them, the first demand information includes computing power usage requirements, network transmission requirements, the data storage address corresponding to the user node (that is, the address of the data storage node corresponding to the user node), computing power and network quality detection code.
[0151] Computing power usage requirements include computing power capacity and usage time; network transmission requirements include network bandwidth, network latency, latency bandwidth, storage space requirements, etc.
[0152] S402. When the computing power supply node receives the first demand information sent by the user node of the blockchain network, the computing power supply node verifies the signature of the first demand information. If the verification passes, the computing power and network quality detection code is run on the computing power node corresponding to the computing power supply node to detect whether the computing power of the computing power node meets the computing power usage demand.
[0153] S403. When the computing power of the computing power node meets the computing power usage demand, the computing power supply node generates second demand information based on the first demand information, and signs the second demand information using the private key of the computing power supply node, and broadcasts the signed second demand information to the blockchain network.
[0154] Among them, the second demand information includes the data storage address, network transmission requirements, the address of the computing power node corresponding to the computing power supply node, and the computing power and network quality detection code.
[0155] S404. When the network supply node receives the second demand information sent by the computing power supply node, the network supply node verifies the signature of the second demand information. If the verification passes, the computing power and network quality detection code is run to detect whether the network supply node meets the network transmission requirements.
[0156] S405. When the network supply node meets the network transmission demand, a network supply plan is generated according to the second demand information, and the amount of resources corresponding to the network supply plan is determined. The network supply plan and the amount of resources corresponding to the network supply plan (i.e., network supply plan information) are encrypted using the public key of the computing power supply node according to a pre-agreed algorithm. The encrypted network supply plan information is signed using the private key of the network supply node, and the signed network supply plan information is sent to the computing power supply node.
[0157] The amount of resources corresponding to the network supply solution may specifically be the Token (digital token) required to pay for using the network supply solution.
[0158] The network supply node can send the signed network supply plan information to the computing power supply node by broadcasting on the blockchain network.
[0159] S406. When the computing power supply node receives the network supply plan information sent by the network supply node, the computing power supply node verifies the signature of the received network supply plan information. If the verification passes, the computing power supply node uses the private key of the computing power supply node to decrypt the network supply plan information according to a pre-agreed algorithm to obtain the network supply plan and the corresponding resource amount.
[0160] S407. The computing power supply node evaluates and compares the multiple network supply plans received, determines a network supply plan as the final network supply plan, and the corresponding network supply node is the network supplier of the computing power supply node. It generates a computing power supply plan based on the final network supply plan, determines the amount of resources corresponding to the computing power supply plan, and generates computing power supply plan information.
[0161] The amount of resources corresponding to the computing power supply plan may specifically be the Token (digital token) required to pay for using the computing power supply plan.
[0162] The computing power supply plan information includes the computing power supply plan and the corresponding resource quantity, the address of the computing power node corresponding to the computing power supply node, and the access rights of the computing power node.
[0163] S408. The computing power supply node uses the public key of the user node to encrypt the computing power supply plan according to a pre-agreed algorithm, uses the private key of the computing power supply node to sign the encrypted computing power supply plan information, and broadcasts the signed computing power supply plan information to the blockchain network.
[0164] S409. The user node receives computing power supply plan information sent by at least one computing power supply node, and verifies the signature of the computing power supply plan information after receiving the computing power supply plan information. If the verification is successful, the computing power supply plan information is decrypted using the private key of the user node according to a pre-agreed algorithm, and the decrypted computing power supply plan information is evaluated and compared to determine one computing power supply plan information as the final computing power supply plan information. The computing power supply node corresponding to the final computing power supply plan information is the computing power supplier of the user node.
[0165] S410. The user node trades the corresponding token to the computing power provider and the computing power provider's network provider on the blockchain network. Once the blockchain network confirms that the transaction is successful, the computing power provider activates the access rights of the computing power node, and the user node accesses the computing power node through the access rights of the computing power node.
[0166] User nodes can run computing power and network quality detection codes on computing power nodes, and automatically review computing power peaks and network quality, and publish them in the blockchain network through computing power suppliers. If the published data does not meet the computing power usage requirements and network usage requirements, users can automatically obtain corresponding compensation.
[0167] In the computing power sharing method based on the blockchain network in the embodiment of the present invention, computing power supply plan information is generated according to the needs of users, and after the computing power supply plan information is generated, it is sent to users for selection, thereby reducing the waste of network transmission resources caused by the computing power supply plan not meeting user needs; at the same time, the present invention is based on the blockchain to record the entire computing power sharing process, and utilizes the tamper-proof characteristics of the blockchain to make the entire process traceable, thereby ensuring the interests of users, and conducting transactions through the blockchain network, which also makes the computing power scheduling of the computing power scheduling platform fair, and the computing power providers can obtain fair scheduling and thus obtain reasonable benefits, thereby promoting the operation of the computing power platform.
[0168] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0169] Fifth, refer to Figure 5 , an embodiment of the present invention provides a computing power supply node of a blockchain network, including:
[0170] The demand broadcast module 501 is used to generate second demand information according to the first demand information and broadcast it to the blockchain network when receiving the first demand information sent by the user node of the blockchain network;
[0171] The first demand information includes computing power usage requirements, network transmission requirements, and data storage addresses corresponding to user nodes; the second demand information includes data storage addresses, network transmission requirements, and addresses of computing power nodes corresponding to computing power supply nodes;
[0172] A network selection module 502 is used to determine, upon receiving network supply scheme information sent by at least one network supply node of the blockchain network, a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node according to the network supply scheme information;
[0173] The solution broadcast module 503 is used to generate computing power supply solution information according to the network supply solution information sent by the network provider and broadcast it to the blockchain network. The computing power supply solution information includes the address of the computing power node and the access rights of the computing power node;
[0174] The activation module 504 is used to activate the access rights of the computing power node when receiving the confirmation information sent by the user node, so that the user node can access the computing power node through the access rights of the computing power node.
[0175] In the computing power supply node of the blockchain network of the present invention, computing power supply plan information is generated according to the needs of users, and after the computing power supply plan information is generated, it is sent to users for selection, thereby reducing the waste of network transmission resources caused by the computing power supply plan not meeting user needs; at the same time, the present invention is based on the blockchain to record the entire computing power sharing process, and utilizes the tamper-proof characteristics of the blockchain to make the entire process traceable, thereby ensuring the interests of users.
[0176] Sixth, refer to Figure 6 , an embodiment of the present invention provides a network supply node of a blockchain network, including:
[0177] A solution generation module 601 is used to generate a network supply solution according to the second demand information sent by the computing power supply node of the blockchain network when receiving the second demand information; the second demand information includes the data storage address corresponding to the user node of the blockchain network, the network transmission demand, and the address of the computing power node corresponding to the computing power supply node;
[0178] The sending module 602 is used to send network supply plan information to the computing power supply node, and the network supply plan information includes a network supply plan.
[0179] In the computing power supply node of the blockchain network of the present invention, computing power supply plan information is generated according to the needs of users, and after the computing power supply plan information is generated, it is sent to users for selection, thereby reducing the waste of network transmission resources caused by the computing power supply plan not meeting user needs; at the same time, the present invention is based on the blockchain to record the entire computing power sharing process, and utilizes the tamper-proof characteristics of the blockchain to make the entire process traceable, thereby ensuring the interests of users.
[0180] Seventh, refer to Figure 7 , an embodiment of the present invention provides a user node of a blockchain network, including:
[0181] Demand generation module 701, used to generate first demand information and broadcast it to the blockchain network; the first demand information includes computing power usage requirements, network transmission requirements, and data storage addresses corresponding to user nodes;
[0182] The computing power selection module 702 is used to determine, upon receiving computing power supply plan information sent by at least one computing power supply node of the blockchain network, a computing power supply node corresponding to the computing power supply plan information as a computing power supplier of the user node according to the computing power supply plan information; the computing power supply plan information includes an address of a computing power node corresponding to the computing power supply node and access rights of the computing power node;
[0183] The access module 703 is used to send confirmation information to the computing power provider and access the computing power node corresponding to the computing power provider through the access rights of the computing power node corresponding to the computing power provider.
[0184] In the user nodes of the blockchain network of the present invention, computing power supply plan information is generated according to the needs of users, and after the computing power supply plan information is generated, it is sent to users for selection, thereby reducing the waste of network transmission resources caused by the computing power supply plan not meeting user needs; at the same time, the present invention is based on blockchain to record the entire computing power sharing process, and uses the tamper-proof characteristics of blockchain to make the entire process traceable, thereby ensuring the interests of users.
[0185] Eighth aspect, refer to Figure 8 An embodiment of the present invention provides a blockchain network, characterized in that it includes: at least one computing power supply node 801 of the above-mentioned blockchain network, at least one network supply node 802 of the above-mentioned blockchain network, and at least one user node 803 of the above-mentioned blockchain network.
[0186] In the blockchain network of the present invention, computing power supply plan information is generated according to user needs, and after the computing power supply plan information is generated, it is sent to users for selection, thereby reducing the waste of network transmission resources caused by the computing power supply plan not meeting user needs; at the same time, the present invention is based on blockchain to record the entire computing power sharing process, and utilizes the tamper-proof characteristics of blockchain to make the entire process traceable, thereby ensuring user interests.
[0187] It should be clear that the present invention is not limited to the specific configurations and processes described in the above embodiments and shown in the figures. For the convenience and brevity of description, a detailed description of the known methods is omitted here, and the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, which will not be repeated here.
[0188] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the invented method described above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0189] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0190] Those skilled in the art will understand that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present embodiment and to form different embodiments.
[0191] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A computing power sharing method based on blockchain network, characterized in that , the method is used for a computing power supply node of a blockchain network, and the method comprises: Upon receiving first demand information sent by a user node of the blockchain network, generating second demand information according to the first demand information and broadcasting it to the blockchain network; The first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node; the second demand information includes the data storage address, the network transmission requirements, and the address of the computing power node corresponding to the computing power supply node; Upon receiving network supply plan information sent by at least one network supply node of the blockchain network, determining, according to the network supply plan information, a network supply node corresponding to the network supply plan information as a network supplier of the computing power supply node; Generate computing power supply plan information according to the network supply plan information sent by the network provider and broadcast it to the blockchain network, wherein the computing power supply plan information includes the address of the computing power node and the access rights of the computing power node; Upon receiving the confirmation information sent by the user node, activating the access permission of the computing power node, so that the user node can access the computing power node through the access permission of the computing power node; The network provisioning scheme information includes the network provisioning scheme and the corresponding resource amount; The step of determining, according to the network supply scheme information, a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node comprises: According to the amount of resources corresponding to the network supply plan, determine a network supply node corresponding to the network supply plan information as a network supplier of the computing power supply node; The generating computing power supply plan information according to the network supply plan information sent by the network provider includes: Generate a computing power supply plan according to the network supply plan in the network supply plan information sent by the network provider, and determine the resource amount corresponding to the computing power supply plan according to the resource amount corresponding to the network supply plan; The computing power supply plan information includes the computing power supply plan and the amount of resources corresponding to the computing power supply plan.
2. The method according to claim 1, characterized in that The first requirement information is information signed by the private key of the user node; and generating the second requirement information according to the first requirement information and broadcasting it to the blockchain network includes: Verifying the signature of the first requirement information, and generating second requirement information according to the first requirement information if the verification passes; Signing the second demand information using the private key of the computing power supply node, and broadcasting the signed second demand information to the blockchain network; The network supply scheme information is information signed using a private key of the network supply node; and determining, according to the network supply scheme information, a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node comprises: Verify the signature of the received network provisioning solution information; Determine a piece of network supply plan information from the verified network supply plan information as the final network supply plan information, and the network supply node corresponding to the final network supply plan information is the network supplier of the computing power supply node; The generating computing power supply plan information according to the network supply plan information sent by the network provider and broadcasting it to the blockchain network includes: Generate computing power supply plan information according to the network supply plan information sent by the network provider; The computing power supply plan information is signed using the private key of the computing power supply node and broadcast to the blockchain network.
3. The method according to claim 1, characterized in that The network supply plan information is information encrypted using the public key of the computing power supply node according to a pre-agreed algorithm; Before determining, according to the network supply scheme information, a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node, the method further includes: Decrypting the received network provisioning solution information using the private key of the computing power provisioning node according to a pre-agreed algorithm; The generating computing power supply plan information according to the network supply plan information sent by the network provider and broadcasting it to the blockchain network includes: Generate computing power supply plan information according to the network supply plan information sent by the network provider; The computing power supply plan information is encrypted using the public key of the user node according to a pre-agreed algorithm and broadcast to the blockchain network.
4. The method according to claim 1, characterized in that: The first demand information includes computing power and network quality detection code; Generating the second demand information according to the first demand information and broadcasting it to the blockchain network includes: Running the computing power and network quality detection code on the computing power node corresponding to the computing power supply node to detect whether the computing power of the computing power node meets the computing power usage demand; When the computing power of the computing power node meets the computing power usage demand, generating second demand information according to the first demand information and broadcasting it to the blockchain network; The second demand information also includes the computing power and network quality detection code, so that the network supply node can run the computing power and network quality detection code to detect whether the network supply node meets the network transmission demand.
5. A computing power sharing method based on a blockchain network, characterized in that: The method is used for a network supply node of a blockchain network, and the method comprises: In the case of receiving the second demand information sent by the computing power supply node of the blockchain network, generating a network supply plan according to the second demand information; the second demand information includes the data storage address corresponding to the user node of the blockchain network, the network transmission requirement, and the address of the computing power node corresponding to the computing power supply node; Sending network supply plan information to the computing power supply node, wherein the network supply plan information includes the network supply plan, so that the computing power supply node determines, according to the network supply plan information, a network supply node corresponding to the network supply plan information as a network supplier of the computing power supply node, and generates computing power supply plan information according to the network supply plan information sent by the network supplier and broadcasts it to the blockchain network; The network supply scheme information also includes the amount of resources corresponding to the network supply scheme, so that the computing power supply node determines a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node according to the amount of resources corresponding to the network supply scheme; Among them, the computing power supply plan information includes a computing power supply plan and the resource quantity corresponding to the computing power supply plan; the computing power supply plan is generated by the computing power supply node according to the network supply plan in the network supply plan information sent by the network provider; the resource quantity corresponding to the computing power supply plan is determined by the computing power supply node according to the resource quantity corresponding to the network supply plan.
6. The method according to claim 5, characterized in that The second demand information is information signed using the private key of the computing power supply node; The generating a network provisioning solution according to the second demand information includes: Verifying the signature of the second demand information, and if the verification passes, generating a network provisioning solution according to the second demand information; The sending the network supply solution information to the computing power supply node includes: Encrypting the network supply solution information using the public key of the computing power supply node according to a pre-agreed algorithm; Signing the encrypted network provisioning solution information using the private key of the network provisioning node; Send the signed network supply plan information to the computing power supply node.
7. The method according to claim 5, characterized in that The second demand information includes computing power and network quality detection code; The generating a network supply solution according to the second demand information includes: Run the computing power and network quality detection code to detect whether the network supply node meets the network transmission requirements; In the case where the network supply node meets the network transmission demand, generating a network supply plan according to the second demand information, and determining the amount of resources corresponding to the network supply plan; The network provisioning solution information includes the network provisioning solution and the amount of resources corresponding to the network provisioning solution.
8. A computing power sharing method based on a blockchain network, characterized in that: The method is used for a user node of a blockchain network, and the method comprises: Generate first demand information and broadcast it to the blockchain network; the first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node; In the case of receiving computing power supply plan information sent by at least one computing power supply node of the blockchain network, determining a computing power supply node corresponding to the computing power supply plan information as a computing power supplier of the user node according to the computing power supply plan information; the computing power supply plan information includes an address of a computing power node corresponding to the computing power supply node and access rights to the computing power node; Send confirmation information to the computing power provider, and access the computing power node corresponding to the computing power provider through the access rights of the computing power node corresponding to the computing power provider; Among them, the computing power supply plan information includes a computing power supply plan and the resource quantity corresponding to the computing power supply plan. The computing power supply plan is generated by the computing power supply node according to the network supply plan in the network supply plan information sent by the network provider, and the resource quantity corresponding to the computing power supply plan is determined by the computing power supply node according to the resource quantity corresponding to the network supply plan.
9. The method according to claim 8, characterized in that Generate the first demand information and broadcast it to the blockchain network, including: generating the first demand information; Signing the first demand information using the private key of the user node and broadcasting it to the blockchain network; The computing power supply plan information is information signed with the private key of the computing power supply node and encrypted with the public key of the user node according to a pre-agreed algorithm; The determining, according to the computing power supply scheme information, a computing power supply node corresponding to the computing power supply scheme information as a computing power supplier of the user node includes: Verify the signature of the received computing power supply plan information; If the verification is successful, the computing power supply plan information is decrypted using the private key of the user node according to a pre-agreed algorithm; A computing power supply plan information is determined from the decrypted computing power supply plan information as the final computing power supply plan information, and the computing power supply node corresponding to the final computing power supply plan information is the computing power supplier of the user node.
10. The method according to claim 8, characterized in that The first demand information also includes computing power and network quality detection codes; After accessing the computing power node corresponding to the computing power provider through the access permission of the computing power node corresponding to the computing power provider, the method includes: The computing power and network quality detection code is used to detect whether the computing power node corresponding to the computing power provider meets the computing power usage requirements.
11. A computing power supply node of a blockchain network, characterized in that: include: A demand broadcasting module, configured to, upon receiving first demand information sent by a user node of a blockchain network, generate second demand information according to the first demand information and broadcast the second demand information to the blockchain network; The first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node; the second demand information includes the data storage address, the network transmission requirements, and the address of the computing power node corresponding to the computing power supply node; A network selection module, configured to, upon receiving network supply scheme information sent by at least one network supply node of the blockchain network, determine, according to the network supply scheme information, a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node; A scheme broadcasting module, used to generate computing power supply scheme information according to the network supply scheme information sent by the network provider and broadcast it to the blockchain network, wherein the computing power supply scheme information includes the address of the computing power node and the access rights of the computing power node; An activation module, configured to activate the access permission of the computing power node upon receiving the confirmation information sent by the user node, so that the user node can access the computing power node through the access permission of the computing power node; The network provisioning scheme information includes the network provisioning scheme and the corresponding resource amount; The step of determining, according to the network supply scheme information, a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node comprises: According to the amount of resources corresponding to the network supply plan, determine a network supply node corresponding to the network supply plan information as a network supplier of the computing power supply node; The generating computing power supply plan information according to the network supply plan information sent by the network provider includes: Generate a computing power supply plan according to the network supply plan in the network supply plan information sent by the network provider, and determine the resource amount corresponding to the computing power supply plan according to the resource amount corresponding to the network supply plan; The computing power supply plan information includes the computing power supply plan and the amount of resources corresponding to the computing power supply plan.
12. A network supply node of a blockchain network, characterized in that: include: A solution generation module, configured to generate a network supply solution according to the second demand information sent by the computing power supply node of the blockchain network upon receiving the second demand information; the second demand information includes the data storage address corresponding to the user node of the blockchain network, the network transmission demand, and the address of the computing power node corresponding to the computing power supply node; A sending module, configured to send network supply plan information to the computing power supply node, wherein the network supply plan information includes the network supply plan, so that the computing power supply node determines, according to the network supply plan information, a network supply node corresponding to the network supply plan information as a network supplier of the computing power supply node, and generates computing power supply plan information according to the network supply plan information sent by the network supplier and broadcasts it to the blockchain network; The network supply scheme information also includes the amount of resources corresponding to the network supply scheme, so that the computing power supply node determines a network supply node corresponding to the network supply scheme information as a network supplier of the computing power supply node according to the amount of resources corresponding to the network supply scheme; Among them, the computing power supply plan information includes a computing power supply plan and the resource quantity corresponding to the computing power supply plan; the computing power supply plan is generated by the computing power supply node according to the network supply plan in the network supply plan information sent by the network provider; the resource quantity corresponding to the computing power supply plan is determined by the computing power supply node according to the resource quantity corresponding to the network supply plan.
13. A user node of a blockchain network, characterized in that: include: A demand generation module, used to generate first demand information and broadcast it to the blockchain network; the first demand information includes computing power usage requirements, network transmission requirements, and the data storage address corresponding to the user node; A computing power selection module, configured to, upon receiving computing power supply scheme information sent by at least one computing power supply node of the blockchain network, determine, according to the computing power supply scheme information, a computing power supply node corresponding to the computing power supply scheme information as a computing power supplier of the user node; the computing power supply scheme information includes an address of a computing power node corresponding to the computing power supply node and access rights to the computing power node; An access module, used to send confirmation information to the computing power provider, and access the computing power node corresponding to the computing power provider through the access rights of the computing power node corresponding to the computing power provider; Among them, the computing power supply plan information includes a computing power supply plan and the resource quantity corresponding to the computing power supply plan. The computing power supply plan is generated by the computing power supply node according to the network supply plan in the network supply plan information sent by the network provider, and the resource quantity corresponding to the computing power supply plan is determined by the computing power supply node according to the resource quantity corresponding to the network supply plan.
14. A blockchain network, characterized in that: include: The computing power supply node of the blockchain network described in claim 11; A network supply node of the blockchain network as claimed in claim 12; And a user node of the blockchain network as described in claim 13.
Citation Information
Patent Citations
Block chain computing power optimization scheduling method oriented to intelligent data processing
CN112769641A
Service-oriented computing power network system, working method and storage medium
CN113079218A
Computing power network processing method and device, equipment and storage medium
CN113900837A