Computing power transaction method and computing power transaction system
Through the synergy between blockchain network and supervision nodes, computing power quotation information is generated and securely transmitted, and the problems of computing power quotation information leakage and fairness in the existing technology are solved, and a fair and just computing power bidding process is realized.
Patent Information
- Application Number
- CN202510098693.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-23
AI Technical Summary
When existing computing power servers publish quotation information, due to uncertainty in order, the quotation information is leaked, and fair competition in computing power cannot be guaranteed.
The computing power needs released by the user nodes are obtained through the blockchain network, and determine whether the target computing power node is a node designated by the user node that provides computing power services. The supervisory node sends the target random factors to help the target computing power node generate quotation release information and ensure the secure transmission of quotation information.
It realizes fairness in computing power competition, avoids the leakage of quotation information, and ensures that user nodes can select the winning bid node with the best cost-effectiveness from multiple quotations to meet their computing power needs.
Smart Images

Figure CN120034544A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a computing power trading method and a computing power trading system. Background Art
[0002] A computing server is a server with certain computing, storage and network connection capabilities, which can meet the computing power needs of different users based on its computing power. Since different computing servers provide different computing power capabilities, users can choose the computing power they need from multiple computing servers.
[0003] After receiving the computing power demand sent by the user, each computing power server will publish its corresponding quotation information in sequence. However, the order in which the quotation information is published will cause the quotations of some computing power servers to be leaked, and fair competition in computing power cannot be guaranteed. Summary of the invention
[0004] To this end, the present disclosure provides a computing power trading method and a computing power trading system to solve the problem of how to make the competition of computing power fair.
[0005] In a first aspect, the present disclosure provides a computing power trading method, which is applied to a target computing power node. The method includes: obtaining the computing power demand published by the user node from the blockchain network, and determining, based on the computing power demand, that the target computing power node is the computing power node designated by the user node to provide computing power services for it, wherein the blockchain network includes at least two target computing power nodes; obtaining a target random factor corresponding to the target computing power node sent by a supervisory node; generating quotation release information based on the real quotation information and the target random factor of the target computing power node; and sending the quotation release information to the blockchain network so that the user node can select a winning node based on the at least two quotation release information obtained, and the winning node is used to provide computing power for the user node to achieve its computing power demand.
[0006] In a second aspect, the present disclosure provides a computing power trading method, which is applied to a supervisory node, and the method includes: obtaining the computing power demand published by the user node from the blockchain network, the computing power demand including the blockchain identifier of the target computing power node specified by the user node; generating a target random factor corresponding to each target computing power node according to the blockchain identifier of each target computing power node; for each target computing power node, sending its corresponding target random factor to the target computing power node according to the working status of the target computing power node, and the target random factor is used for the target computing power node to calculate its corresponding quotation release information.
[0007] In a third aspect, the present disclosure provides a computing power trading method, which is applied to user nodes, and the method includes: publishing computing power requirements to the blockchain network, and the computing power requirements include the blockchain identifier of the target computing power node; obtaining quotation release information published by at least two target computing power nodes from the blockchain network, and the quotation release information is determined by the target computing power node based on its real quotation information and the target random factor corresponding to the target computing power node; based on the quotation release information published by at least two target computing power nodes, selecting a winning node, and the winning node is used to provide computing power for the user node to achieve its computing power requirements.
[0008] In a fourth aspect, the present disclosure provides a computing power trading system, which includes: a user node, a supervisory node and at least two target computing power nodes connected through a blockchain network; a target computing power node, used to implement any computing power trading method applied to the target computing power node in the present disclosure; a supervisory node, used to implement any computing power trading method applied to the supervisory node in the present disclosure; and a user node, used to implement any computing power trading method applied to the user node in the present disclosure.
[0009] The computing power trading method and computing power trading system disclosed in the present invention obtain the computing power demand published by the user node from the blockchain network, so as to confirm whether the target computing power node is the node designated by the user node to provide computing power services for it according to the computing power demand, thereby determining whether the target computing power node can participate in the computing power competition; when it is determined that the target computing power node is the computing power node designated by the user node to provide computing power services for it, the target computing power node obtains the target random factor corresponding to the target computing power node from the supervisory node, and then generates the quotation publishing information according to the real quotation information of the target computing power node and the target random factor, because the target random factor is related to each target computing power node. The corresponding target computing power node is not only random, but also can be matched with each target computing power node, so that the generated quotation release information is not easily obtained by third-party devices, ensuring the transmission security of the quotation release information in the blockchain network; only the user node can obtain the quotation release information provided by its designated target computing power node. Therefore, the problem of quotation leakage due to the different order of publishing quotation information can be avoided, so that the user node can select the winning node with the best cost-effectiveness from at least two quotation release information, so that the winning node can provide computing power for the user node to achieve its computing power needs, thereby ensuring the fairness of the computing power bidding process. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing detailed example embodiments with reference to the accompanying drawings, in which:
[0011] Figure 1 A schematic diagram showing a flow chart of a computing power trading method provided by an embodiment of the present disclosure;
[0012] Figure 2 A schematic diagram showing a flow chart of another computing power trading method provided by an embodiment of the present disclosure;
[0013] Figure 3 A schematic diagram showing a flow chart of another computing power trading method provided by an embodiment of the present disclosure;
[0014] Figure 4 A block diagram showing a computing power trading system provided by an embodiment of the present disclosure is shown;
[0015] Figure 5 A block diagram showing another computing power trading system provided by an embodiment of the present disclosure is shown;
[0016] Figure 6 A flowchart showing a working method of a computing power trading system provided by an embodiment of the present disclosure is shown;
[0017] Figure 7 A block diagram of a target computing power node device provided in an embodiment of the present disclosure;
[0018] Figure 8 A block diagram of a supervisory node device provided in an embodiment of the present disclosure;
[0019] Fig. 9 A block diagram of a user node device provided in an embodiment of the present disclosure;
[0020] Fig.10 A block diagram of the composition of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] The specific embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure can be implemented without the need for some of these specific details. The following description of the embodiments is only intended to provide a better understanding of the present disclosure by illustrating examples of the present disclosure.
[0022] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0023] In a first aspect, an embodiment of the present disclosure provides a computing power trading method.
[0024] Figure 1A flow chart of a computing power trading method provided by an embodiment of the present disclosure is shown. The computing power trading method can be applied to a target computing power node. Figure 1 As shown, the computing power trading method includes but is not limited to the following steps.
[0025] Step S101, obtaining the computing power demand published by the user node from the blockchain network, and determining, based on the computing power demand, that the target computing power node is the computing power node designated by the user node to provide computing power services for it.
[0026] Among them, the blockchain network includes at least two target computing power nodes.
[0027] It should be noted that the computing power requirement not only includes the user node's description of the computing power resources it needs, but also includes at least two target computing power nodes designated by it to provide computing power services for it. For example, the computing power requirement includes the blockchain identifiers of at least two target computing power nodes.
[0028] After obtaining the computing power requirement, the target computing power node can determine whether its blockchain identifier is within the computing power requirement through data analysis. If the computing power requirement includes the blockchain identifier of the current computing power node, it indicates that the current computing power node is the target computing power node, and it needs to report its corresponding quotation information to the user node for screening.
[0029] Step S102, obtaining the target random factor corresponding to the target computing power node sent by the supervisory node.
[0030] Among them, each target computing power node corresponds to a target random factor, which has a certain degree of randomness. However, since the target random factor corresponding to each target computing power node is different, each target computing power node can process the information it wants to send based on its corresponding target random factor to ensure that the information it sends is not known by third-party devices during the transmission process, thereby improving the security of information transmission.
[0031] Step S103, generating quotation release information according to the real quotation information of the target computing power node and the target random factor.
[0032] Among them, the quotation release information can be information determined by calculation based on the real quotation information of the target computing power node and the target random factor. For example, the quotation release information can reflect the difference between the real quotation information of the target computing power node and the target random factor, or reflect the real quotation information of the target computing power node and the sum of the target random factor.
[0033] The present disclosure does not impose any limitation on this, and other unexplained operation methods are also within the protection scope of the present disclosure and will not be described again.
[0034] Step S104, sending the quotation release information to the blockchain network, so that the user node can select the winning node according to at least two quotation release information obtained.
[0035] Among them, the winning node is used to provide computing power for the user node to meet its computing power requirements.
[0036] The winning node is the node with the best cost-effectiveness among all computing power nodes. Not only does its computing power capacity meet the computing power requirements of the user node, but the bid of the winning node is better than other computing power nodes to meet the budget of the user node.
[0037] In this embodiment, the computing power demand published by the user node is obtained from the blockchain network, so as to confirm whether the target computing power node is the node designated by the user node to provide computing power services for it according to the computing power demand, thereby determining whether the target computing power node can participate in the computing power competition; when it is determined that the target computing power node is the computing power node designated by the user node to provide computing power services for it, the target computing power node obtains the target random factor corresponding to the target computing power node from the supervisory node, and then generates the quotation release information according to the real quotation information of the target computing power node and the target random factor, because the target random factor is the target random factor corresponding to each target computing power node. , which is not only random, but also can be matched with each target computing power node, so that the generated quotation release information is not easily obtained by third-party devices, ensuring the transmission security of the quotation release information in the blockchain network; only the user node can obtain the quotation release information provided by its designated target computing power node, therefore, it can avoid the problem of quotation leakage due to the different order of publishing quotation information, so that the user node can select the winning node with the best cost performance from at least two quotation release information, so that the winning node can provide computing power for the user node to achieve its computing power needs, thereby ensuring the fairness and justice of the computing power bidding process.
[0038] In some exemplary embodiments, the real offer information includes a real offer value;
[0039] In step S103, the quotation release information is generated according to the real quotation information of the target computing power node and the target random factor, including: calculating and obtaining a first quotation value according to the real quotation value and the target random factor; and generating the quotation release information according to the first quotation value and the first preset key.
[0040] Among them, the first preset key is negotiated and determined in advance with the user node, and / or the paired node of the target computing power node, so that the user node, and / or the paired node of the target computing power node can decrypt the quotation release information when obtaining the quotation release information to obtain the first quotation value, which is convenient for subsequent calculations.
[0041] In some embodiments, the first bid value can be determined by calculating the difference between the real bid value and the target random factor. Since the target random factor is random, even if a third-party node obtains the first bid value, it cannot accurately obtain the real bid information of the target computing power node, thereby avoiding the real bid information of the target computing power node from being leaked and ensuring the fairness of the bidding process for computing power.
[0042] In some exemplary embodiments, the quotation release information further includes differential quotation information;
[0043] The method also includes: obtaining second quotation information published by the paired node from the blockchain network; and generating difference quotation information according to the second quotation value and the first quotation value.
[0044] The second quotation information includes a second quotation value, which is a quotation value determined based on the real quotation value of the paired node and the target random factor corresponding to the paired node. The paired node is another computing power node designated by the user node that can provide computing power services to the user node.
[0045] It should be noted that in the quotation process, the paired node and the target computing power node are in a combined relationship, and the two computing power nodes jointly quote to the user node, so that the user can easily determine which computing power node has a higher quotation and which computing power node has a lower quotation point based on the difference quotation information between the two computing power nodes, thereby screening the computing power nodes.
[0046] In some embodiments, the difference quotation information may be information determined based on the difference between the second quotation value and the first quotation value. For example, the difference quotation information includes a difference value, which is equal to the difference between the second quotation value and the first quotation value, or the difference value is equal to the difference between the first quotation value and the second quotation value, thereby reflecting the difference in the quotation values of the two computing power nodes.
[0047] Since the quotation release information sent by each target computing power node not only includes the bid value of the target computing power node (such as the first bid value generated based on the real bid value of the target computing power node and the target random factor), but also reflects the difference in bid information between the target computing power node and its corresponding paired node, the user node can accurately know the bid difference between itself and the paired node without exposing the real bid value of the target computing power node, and quickly screen out the winning node from multiple target computing power nodes, thereby improving the screening speed of the computing power nodes and ensuring the fairness of the bidding process.
[0048] In some exemplary embodiments, the computing power nodes specified in the computing power requirement also include: subordinate nodes of the target computing power node, or superior nodes of the target computing power node.
[0049] The method further includes: when the working state of the subordinate node of the target computing power node is a dormant state, waking up the subordinate node of the target computing power node in response to a wake-up instruction sent by the supervisory node;
[0050] Alternatively, when the working state of the target computing power node is a sleep state, in response to a wake-up instruction sent by the upper node of the target computing power node, the working state of the target computing power node is adjusted from the sleep state to the active state.
[0051] Among them, when the working state of the subordinate node of the target computing power node is a dormant state, the wake-up instruction includes the blockchain identifier of the subordinate node of the target computing power node. When the subordinate node of the target computing power node receives the wake-up instruction, the subordinate node of the target computing power node confirms that it needs to change its working state, that is, to change its working state from a dormant state to an activated state.
[0052] When the working state of the target computing power node is dormant, the target computing power node will receive a wake-up command sent by the upper node of the target computing power node, so that the target computing power node can switch its working state and participate in the computing power quotation, thereby providing user nodes with more abundant computing power selection options.
[0053] Since the working status of the upper node of the target computing power node, the working status of the target computing power node and its subordinate nodes can be either activated or dormant, by determining the working status of different computing power nodes at different levels, the conversion of the working status of multiple levels of different computing power nodes can be achieved, so that different computing power nodes at all levels can participate in the computing power quotation, so that user nodes can obtain better quality computing power services.
[0054] Figure 2 A schematic diagram of another computing power trading method provided by an embodiment of the present disclosure is shown. The computing power trading method can be applied to a supervisory node. Figure 2 As shown, the computing power trading method includes but is not limited to the following steps.
[0055] Step S201, obtaining the computing power requirements published by the user node from the blockchain network.
[0056] Among them, the computing power requirement includes the blockchain identifier of the target computing power node specified by the user node.
[0057] Step S202: Generate a target random factor corresponding to each target computing power node according to the blockchain identifier of each target computing power node.
[0058] Among them, the target random factor can be obtained by processing the blockchain identifier of the target computing power node based on a preset random function.
[0059] For example, the blockchain identifier of a target computing power node is input into a preset random function, and the random function will output a random value corresponding to it. This data value can be used as the target random factor corresponding to the target computing power node.
[0060] Since the target random factor has a certain degree of randomness, when the target computing power node obtains the corresponding target random factor, it can encapsulate the real bid value published by the target computing power node based on the target random factor and generate the corresponding quotation release information, so that the real bid value of the target random node will not be leaked during the bidding process, thereby ensuring the fairness of the entire computing power bidding process.
[0061] Step S203: For each target computing power node, the corresponding target random factor is sent to the target computing power node according to the working status of the target computing power node.
[0062] The target random factor is used by the target computing node to calculate its corresponding quotation release information. The working state of the target computing node includes a dormant state or an activated state.
[0063] When the working state of the target computing power node is activated, the supervisory node will directly send the target random factor corresponding to the target computing power node to the target computing power node.
[0064] When the working state of the target computing power node is dormant, it indicates that the target computing power node is currently not working. At this time, the supervisory node needs to determine whether to send the target random factor to the target computing power node according to the computing power demand to match the computing power demand.
[0065] In this embodiment, the computing power demand published by the user node is obtained from the blockchain network, and the computing power demand includes the blockchain identifier of the target computing power node specified by the user node, so that the target computing power node specified by the user can be distinguished by the blockchain identifier of each node; then, according to the blockchain identifier of each target computing power node, the target random factor corresponding to each target computing power node is generated to obtain the target random factor corresponding to each target computing power node; wherein, since the working state of each target computing power node may be different (such as being in a dormant state or an activated state), therefore, the supervisory node will send its corresponding target random factor to the target computing power node according to the working state of each target computing power node, so that each target computing power node can obtain its corresponding target random factor, and based on the random target random factor corresponding to each target computing power node, the real quotation value published by the target computing power node is encapsulated to avoid the leakage of its real quotation value, so as to ensure the transmission security of the quotation release information published by the target computing power node in the blockchain network.
[0066] In some exemplary embodiments, before sending the corresponding target random factor to the target computing power node according to the working status of the target computing power node in step S203, the method also includes: obtaining topological structure information of the blockchain network.
[0067] Among them, the topological structure information includes the ownership relationship information between multi-level computing power nodes and the connection relationship information between each computing power node at the same level.
[0068] For example, the topological structure information includes the blockchain identifier of the upper node of the target computing power node, the blockchain identifier of the subordinate node of the target computing power node, and the identifiers of other computing power nodes at the same level as the target computing power node.
[0069] Through the relationship information between multiple different computing power nodes, the level of the target computing power node can be clearly identified, which facilitates the subsequent search for the parent node of the target computing power node in a dormant state and speeds up the awakening of the dormant computing power node.
[0070] In some exemplary embodiments, sending the corresponding target random factor to the target computing power node according to the working status of the target computing power node in step S203 includes:
[0071] When the working state of the target computing power node is a dormant state, the parent node of the target computing power node is determined according to the topological structure information, and a wake-up command is sent to the parent node of the target computing power node; when the working state of the target computing power node is an activated state, the corresponding target random factor is sent to the target computing power node.
[0072] Among them, the wake-up instruction is used to instruct the upper node of the target computing power node to wake up the target computing power node.
[0073] By determining the different working states of the target computing power node and sending corresponding information to the target computing power node or its superior node, the target computing power node can obtain its corresponding target random factor more quickly, and clearly understand that it needs to participate in the quotation of computing power services for user nodes, so that the computing power quotation can be carried out as soon as possible, and each target computing power node can be in an activated state, providing the user node with its corresponding quotation information, thereby improving the speed of computing power selection.
[0074] In some exemplary embodiments, there are multiple target computing nodes; the method also includes: in response to a data request sent by a user node, sending the target random factors corresponding to each of the multiple target computing nodes to the user node.
[0075] Among them, the user node is used to determine the winning node based on the target random factors corresponding to multiple target computing power nodes and the quotation release information of each target computing power node. The winning node is used to provide computing power for the user node to achieve its computing power requirements.
[0076] It should be noted that since the quotation release information sent by multiple target computing power nodes obtained by the user node are all information processed from the real quotation information of each target computing power node, the user node cannot directly determine the quotation differences of each target computing power node through the quotation release information. Therefore, the user node needs to obtain the target random factor corresponding to each target computing power node from the supervisory node, so as to use the target random factor corresponding to each target computing power node to parse and process the quotation release information sent by it, so as to obtain the real quotation value of each target computing power node, and the real quotation value can only be known by the user node, so that the user node can screen out the winning node that ultimately provides computing power services for it according to the real quotation value of each target computing power node.
[0077] Figure 3 A flow chart of another computing power trading method provided by an embodiment of the present disclosure is shown. The computing power trading method can be applied to user nodes. Figure 3 As shown, the computing power trading method includes but is not limited to the following steps.
[0078] Step S301, publishing computing power requirements to the blockchain network.
[0079] The computing power requirement includes the blockchain identifier of the target computing power node. The target computing power node is the computing power node designated by the user node to provide computing power services.
[0080] By specifying at least two computing power nodes as target computing power nodes based on computing power requirements, at least two target computing power nodes can provide corresponding quotation information to facilitate user nodes to screen computing power resources.
[0081] Step S302: Obtain quotation release information published by at least two target computing power nodes from the blockchain network.
[0082] Among them, the quotation release information is determined by the target computing power node based on its real quotation information and the target random factor corresponding to the target computing power node.
[0083] The target random factor has a certain degree of randomness, and each target computing power node can obtain the corresponding target random factor. Therefore, each target computing power node can ensure that its quotation release information is not known by third-party devices during the transmission process, thereby ensuring the security of information transmission.
[0084] Step S303: Select a winning node based on the quotation information published by at least two target computing power nodes.
[0085] Among them, the winning node is used to provide computing power for the user node to meet its computing power requirements.
[0086] After obtaining the quotation release information published by at least two target computing power nodes, the user node will analyze the quotation release information published by at least two target computing power nodes, comprehensively evaluate the differences in quotations of each target computing power node, and thus select the winning node with the highest cost-effectiveness based on the differences.
[0087] In some exemplary embodiments, the step S303 of selecting a winning node based on the quotation release information released by at least two target computing power nodes can be implemented in the following manner: after obtaining the quotation release information released by all target computing power nodes, a data request is sent to the supervisory node; in response to the data response fed back by the supervisory node, the target random factors corresponding to all target computing power nodes are obtained; according to the target random factors corresponding to each target computing power node, the quotation release information of each target computing power node is analyzed to determine the winning node.
[0088] Among them, since the quotation release information of each target computing power node is determined based on the real quotation information of the target computing power node and the target random factor corresponding to the target computing power node, after the user node obtains the target random factor corresponding to each target computing power node, it can disassemble the quotation release information of each target computing power node to obtain the real quotation value of each target computing power node.
[0089] For example, if the quotation release information of the target computing power node is determined based on the difference between the actual quotation value of the target computing power node and the target random factor, the user node can use the target random factor corresponding to the target computing power node to add the quotation release information of the target computing power node to obtain the actual quotation value of the target computing power node.
[0090] Through the above operations, the user node can analyze the quotation release information of multiple target computing power nodes it has obtained, obtain the actual quotation value of each target computing power node, and compare the actual quotation value of each target computing power node, and select the node with the lowest quotation as the winning node (or, select the winning node whose quotation is within the preset quotation range, where the preset quotation range is the most cost-effective range), thereby speeding up the screening of computing power nodes, enabling the user node to obtain the winning node in time, and use the computing power service provided by the winning node to solve its computing power needs.
[0091] In this embodiment, by publishing computing power requirements to the blockchain network, each computing power node in the blockchain network can know whether it is qualified to provide computing power services to the user node. Each computing power node determines whether it is the target computing power node through the blockchain identifier of the target computing power node included in the computing power requirements; obtaining quotation release information published by at least two target computing power nodes from the blockchain network, the quotation release information is determined by the target computing power node according to its real quotation information and the target random factor corresponding to the target computing power node; because the target random factor corresponds to each target computing power node, it is not only random, but also can be matched with each target computing power node, so that the generated quotation release information is not easily obtained by a third-party device, ensuring the transmission security of the quotation release information in the blockchain network; according to the quotation release information published by at least two target computing power nodes, the winning node with the best price-performance ratio is selected, so that the winning node provides computing power for the user node to achieve its computing power requirements, thereby ensuring the fairness and justice of the computing power bidding process.
[0092] In a second aspect, an embodiment of the present disclosure provides a computing power trading system.
[0093] Figure 4 FIG. 1 is a block diagram showing a computing power trading system provided by an embodiment of the present disclosure. Figure 4 As shown, the computing power trading system includes but is not limited to: a user node 410, a supervisory node 420 and at least two target computing power nodes (e.g., a first target computing power node 431, a second target computing power node 432, etc.) connected via a blockchain network.
[0094] User node 410 is used to implement any one of the computing power trading methods applied to user nodes in the present disclosure.
[0095] Supervisory node 420 is used to implement any one of the computing power trading methods applied to the supervisory node in the present disclosure.
[0096] The first target computing power node 431 or the second target computing power node 432 is used to implement any one of the computing power trading methods applied to the target computing power node in the present disclosure.
[0097] Figure 5 FIG. 2 shows a block diagram of another computing power trading system provided by an embodiment of the present disclosure. Figure 5As shown, the computing power trading system includes but is not limited to the following nodes: user node 510, multiple first-level computing power nodes (such as first-level computing power node 521, first-level computing power node 522, first-level computing power node 523, first-level computing power node 524, first-level computing power node 525, etc.), multiple second-level computing power nodes (such as second-level computing power node 531, second-level computing power node 532, etc.), multiple third-level computing power nodes (such as third-level computing power node 541, third-level computing power node 542, third-level computing power node 543, third-level computing power node 544, etc.), and supervision node 550.
[0098] Among them, the user node 510 is connected to multiple first-level computing nodes using a blockchain network. Each first-level computing node can be used as a bookkeeping node of the blockchain network. In other words, the first-level computing node needs to save the blockchain ledger, while the second-level computing node and the third-level computing node do not need to save the blockchain ledger.
[0099] The target computing power node can be any one of a plurality of first-level computing power nodes, a plurality of second-level computing power nodes, and a plurality of third-level computing power nodes.
[0100] When the user node 510 publishes its computing power demand, it can specify multiple target computing power nodes through the computing power demand, so that the multiple target computing power nodes can quote and bid against each other, so that the user node 510 can select the winning node according to the quotation release information published by the multiple target computing power nodes. The target winning node is used to provide computing power for the user node 510 to achieve its computing power demand.
[0101] like Figure 5 As shown, the first-level computing power node 522 has two subordinate second-level computing power nodes (i.e., second-level computing power node 531 and second-level computing power node 532), the second-level computing power node 531 has two subordinate third-level computing power nodes (i.e., third-level computing power node 541 and third-level computing power node 542), and the second-level computing power node 532 has two subordinate third-level computing power nodes (i.e., third-level computing power node 543 and third-level computing power node 544).
[0102] In some embodiments, the first-level computing power node can be implemented using an intelligent computing center node, the second computing power node can be implemented using a computing power base node, and the third computing power node can be implemented using a computing power access node.
[0103] Among them, when the blockchain network is initially created, the genesis block includes multiple first-level computing power nodes, and each first-level computing power node corresponds to a blockchain identifier and public key.
[0104] During initialization, the working status of the second-level computing power nodes and the third-level computing power nodes are both in sleep mode to save energy consumption of the computing power nodes, and there is no need to synchronize the ledger information of the blockchain network.
[0105] In the subsequent computing power processing process, the working status of each second-level computing power node and third-level computing power node can be determined by its upper-level computing power node (that is, the computing power nodes at each level have the characteristics of step-by-step communication and step-by-step awakening), or they can update themselves.
[0106] For example, a first-level computing power node can wake up each of its subordinate second-level computing power nodes, and each second-level computing power node can also wake up each of its subordinate third-level computing power nodes.
[0107] For another example, the first-level computing power node sends a broadcast message (the broadcast message includes the blockchain identifier of the first-level computing power node) to each of its subordinate second-level computing power nodes at a preset interval, so that each of its subordinate second-level computing power nodes knows that the first-level computing power node is in an activated state and obtains the computing power tasks issued by the first-level computing power node.
[0108] Figure 6 A flowchart of a working method of a computing power trading system provided by an embodiment of the present disclosure is shown. Figure 6 As shown, the working method of the computing power trading system includes but is not limited to the following steps.
[0109] In step S601, the user node uses the private key to sign its public key and blockchain identifier, and broadcasts the signed information to the blockchain network to register with the computing power trading system; the user node uses the private key to sign the computing power demand it proposes, and broadcasts the signed computing power demand to the blockchain network.
[0110] The computing power requirement includes the blockchain identifier of the target computing power node, wherein the target computing power node may be at least two of the first-level computing power node, the second-level computing power node and the third-level computing power node.
[0111] In step S602, the supervisory node obtains the computing power requirement signed by the user node from the blockchain network and verifies the signature information therein; if the verification is successful, the supervisory node generates a target random factor corresponding to the target computing power node according to the blockchain identifier of the target computing power node specified in the computing power requirement.
[0112] Among them, the working state of the target computing power node includes a dormant state or an activated state.
[0113] When the target computing power nodes include the second-level computing power node 531 and its subordinate third-level computing power node 541, the supervisory node generates a target random factor Rd corresponding to the second-level computing power node 531 and a target random factor Re corresponding to the third-level computing power node 541.
[0114] Step S603, when the working state of the target computing power node is a dormant state, the supervisory node determines the parent node of the target computing power node based on the acquired topological structure information of the blockchain network, and sends a wake-up instruction to the parent node of the target computing power node; when the working state of the target computing power node is an activated state, the supervisory node sends its corresponding target random factor to the target computing power node.
[0115] Among them, the wake-up instruction is used to instruct the upper node of the target computing power node to wake up the target computing power node.
[0116] In some embodiments, the working status of the target computing power node can be determined in the following manner: the supervisory node first sends its corresponding target random factor to the target computing power node. If no data reception response is received from the target computing power node within a preset time (e.g., 5 seconds, or 8 seconds, etc.), it means that the working status of the target computing power node is in a dormant state.
[0117] For example, when the working states of the second-level computing power node 531 and the third-level computing power node 541 are both activated, the supervisory node sends the target random factor Rd to the corresponding second-level computing power node 531, and sends the target random factor Re to the corresponding third-level computing power node 541.
[0118] For another example, when the working state of the second-level computing power node 531 is an activated state and the working state of the third-level computing power node 541 is a dormant state, the supervisory node sends a wake-up instruction to the upper node of the third-level computing power node 541 (i.e., the second-level computing power node 531) so that the second-level computing power node 531 wakes up the third-level computing power node 541.
[0119] For another example, when the working states of the second-level computing power node 531 and the third-level computing power node 541 are both in the dormant state, the supervisory node finds out, based on the topological structure information of the blockchain network, that the parent node of the second-level computing power node 531 is the first-level computing power node 522, and that the parent node of the third-level computing power node 541 is the second-level computing power node 531; then, a wake-up instruction is sent to the first-level computing power node 522 to enable the first-level computing power node 522 to wake up the second-level computing power node 531; when the working state of the second-level computing power node 531 is the activated state, a wake-up instruction is sent to it again to enable the second-level computing power node 531 to wake up its subordinate third-level computing power node 541.
[0120] In some embodiments, the supervisory node may also carry the supervisory node information through a wake-up instruction so that the computing power node that receives the wake-up instruction can obtain the supervisory node information.
[0121] Step S604: The target computing power node determines the corresponding real quotation information according to the computing power demand it obtains, and then generates quotation release information based on the real quotation information and the target random factor.
[0122] Among them, the target computing power node can be a second-level computing power node and / or a third-level computing power node.
[0123] If the real bid information corresponding to the second-level computing power node 531 includes the real bid value Pd, the bid value included in the bid release information of the second-level computing power node can be expressed as Pd-Rd, that is, the difference between the real bid value and its corresponding target random factor.
[0124] If the real quotation information corresponding to the third-level computing power node 531 includes the real quotation value Pe, the quotation value included in the quotation release information of the third-level computing power node 531 can be expressed as Pe-Re.
[0125] In some embodiments, when the second-level computing power node and the third-level computing power node are both target computing power nodes, the second-level computing power node is characterized as a pairing node of the third-level computing power node; at this time, the third-level computing power node can obtain the second quotation information published by the second-level computing power node through the blockchain network; at the same time, the third-level computing power node generates a first quotation information based on its true quotation value and its corresponding target random factor, and then generates a difference quotation information based on the difference between the first quotation information and the second quotation information; and publishes the difference quotation information to the blockchain network.
[0126] For example, if the real quotation information corresponding to the second-level computing power node 531 includes the real quotation value Pd, and the real quotation information corresponding to the third-level computing power node 541 includes the real quotation value Pe, then the second quotation information released by the second-level computing power node 531 is represented as Pe-Re-Pd, and the first quotation information released by the third-level computing power node 541 is represented as Pd-Rd-Pe.
[0127] Step S605: The target computing power node publishes the quotation release information it generates to the blockchain network.
[0128] In some embodiments, before publishing its quotation release information, the target computing power node will also use the public key of its corresponding paired node to encrypt the quotation information it sends based on a preset encryption algorithm, and use its own private key to sign the encrypted quotation information to generate signed quotation release information, thereby ensuring the security of the quotation release information transmitted in the blockchain network.
[0129] For example, the second-level computing power node 531 uses the public key of its subordinate third-level computing power node 541 to encrypt its reported value Pd-Rd based on a preset encryption algorithm, and signs the encrypted information with the private key of the second-level computing power node 531 to generate signed information. Then, the signed information is sent to the blockchain network so that the third-level computing power node 541 can obtain the reported value Pd-Rd sent by it.
[0130] When the third-level computing power node 541 obtains the signed information sent by the second-level computing power node 531 from the blockchain network, the third-level computing power node 541 first verifies the signature. If the verification is successful, the third-level computing power node 541 uses the private key of the third-level computing power node 541 to decrypt the obtained information to obtain the quoted value Pd-Rd of the second-level computing power node 531. Furthermore, the third-level computing power node 541 will also calculate the difference between it and the quoted value of the second-level computing power node 531 (i.e., Pd-Rd-Pe). Finally, the difference value and the quoted value Pe-Re of the third-level computing power node 541 are used as its quotation release information and published to the blockchain network, so that the user node can obtain the quotation release information of the third-level computing power node 541.
[0131] Similar to the above method, the third-level computing power node 541 will use the public key of the second-level computing power node 531 to encrypt its reported value Pe-Re based on a preset encryption algorithm, and sign the encrypted information with the private key of the third-level computing power node 541 to generate signed information. Then, the signed information is sent to the blockchain network so that the second-level computing power node 531 can obtain the signed information.
[0132] When the second-level computing power node 531 obtains the signed information sent by the third-level computing power node 541 from the blockchain network, the second-level computing power node 531 first verifies the signature. If the verification is successful, the obtained information is decrypted using the private key of the second-level computing power node 531 to obtain the quoted value Pe-Re of the third-level computing power node 541. Furthermore, the second-level computing power node 531 will also calculate the difference between it and the quoted value of the third-level computing power node 541 (i.e., Pe-Re-Pd). Finally, the difference value and the quoted value Pd-Rd of the second-level computing power node 531 are used together as its quotation release information and published to the blockchain network, so that the user node can obtain the quotation release information of the second-level computing power node 531.
[0133] In step S606, the user node applies to the supervisory node for the target random factor of each target computing power node, and then obtains the quotation release information published by at least two target computing power nodes from the blockchain network; and then selects the winning node based on the quotation release information published by at least two target computing power nodes.
[0134] Among them, the winning node is used to provide computing power for the user node to meet its computing power requirements.
[0135] In some embodiments, the user node will also verify the quotation publishing information published by each target computing power node to determine whether there are false quotations.
[0136] For example, after the user node obtains the quotation release information of the second-level computing power node 531 and the third-level computing power node 541, the user node will add Rd to the difference between the quotation value sent by the second-level computing power node 531 and the quotation value of the third-level computing power node 541 (i.e., Pe-Re-Pd) to obtain the first calculation result (Pe-Re-Pd+Rd); then, add Re to the difference between the quotation value sent by the third-level computing power node 541 and the second-level computing power node 531 (i.e., Pd-Rd-Pe) to obtain the second calculation result (Pd-Rd-Pe+Re); further, the first calculation result and the second calculation result are added to obtain the sum.
[0137] When the obtained sum value is 0, it indicates that the quotation release information of the second-level computing power node 531 and the third-level computing power node 541 is accurate.
[0138] When the obtained sum is greater than 0, it indicates that the bid of the second-level computing power node 531 is higher than that of the third-level computing power node 541, so the optimal winning node is determined based on the difference in bids of different computing power nodes. That is, the winning node is the node that meets the computing power requirements of the user node and has a moderate bid value. In other words, the winning node is the node with the highest cost performance.
[0139] In step S607, the user node uses its own private key to sign the blockchain identifier of the winning node, and sends the signed information to the blockchain network so that each target computing power node can know the blockchain identifier of the winning node.
[0140] Among them, the winning node will initiate a transfer transaction record in the blockchain network, and the user node will obtain the corresponding computing power usage rights from the winning node based on the actual quotation information of the winning node and the computing power requirements published by the user node.
[0141] In this embodiment, the target computing power node obtains the computing power demand published by the user node from the blockchain network, so as to confirm whether the target computing power node is the node designated by the user node to provide computing power services for it according to the computing power demand, thereby determining whether the target computing power node can participate in the computing power competition; when it is determined that the target computing power node is the computing power node designated by the user node to provide computing power services for it, the target random factor corresponding to the target computing power node is obtained from the supervisory node, and then the quotation release information is generated according to the real quotation information of the target computing power node and the target random factor. Because the target random factor corresponds to each target computing power node, it is not only random, but also can It can correspond to each target computing power node, so that the generated quotation release information is not easily obtained by third-party devices, thereby ensuring the transmission security of the quotation release information in the blockchain network; using the first sending module to send the quotation release information to the blockchain network, so that the user node can obtain the quotation release information provided by its designated target computing power node. Therefore, the problem of quotation leakage due to the different order of publishing quotation information can be avoided, and the user node can select the winning node with the best cost-effectiveness from at least two quotation release information, so that the winning node can provide computing power for the user node to achieve its computing power needs, thereby ensuring the fairness and justice of the computing power bidding process.
[0142] In a third aspect, the embodiments of the present disclosure provide a target computing power node device, a supervisory node device and a user node device.
[0143] Figure 7 This is a block diagram of a target computing power node device provided by an embodiment of the present disclosure. Figure 7 As shown, the target computing power node device 700 includes but is not limited to the following modules.
[0144] The first acquisition module 701 is configured to obtain the computing power demand published by the user node from the blockchain network, and determine, based on the computing power demand, that the target computing power node is the computing power node designated by the user node to provide computing power services for it.
[0145] Among them, the blockchain network includes at least two target computing power nodes.
[0146] The second acquisition module 702 is configured to obtain the target random factor corresponding to the target computing power node sent by the supervisory node.
[0147] The first generating module 703 is configured to generate quotation publishing information according to the real quotation information of the target computing power node and the target random factor.
[0148] The first sending module 704 is configured to send the quotation release information to the blockchain network, so that the user node can select the winning node according to the at least two quotation release information obtained.
[0149] Among them, the winning node is used to provide computing power for the user node to meet its computing power requirements.
[0150] It should be noted that the target computing power node device 700 can implement any computing power trading method applied to the target computing power node device in the present disclosure.
[0151] In this embodiment, the computing power demand published by the user node is obtained from the blockchain network through the first acquisition module, so as to confirm whether the target computing power node is the node designated by the user node to provide computing power services for it according to the computing power demand, thereby determining whether the target computing power node can participate in the computing power competition; when it is determined that the target computing power node is the computing power node designated by the user node to provide computing power services for it, the second acquisition module is used to obtain the target random factor corresponding to the target computing power node from the supervisory node, and then the first generation module is used to generate the quotation release information according to the real quotation information and the target random factor of the target computing power node. Because the target random factor corresponds to each target computing power node, it not only It has randomness and can also match with each target computing power node, so that the generated quotation release information is not easily obtained by third-party devices, ensuring the transmission security of the quotation release information in the blockchain network; using the first sending module to send the quotation release information to the blockchain network, so that the user node can obtain the quotation release information provided by its designated target computing power node, therefore, it can avoid the problem of quotation leakage due to the different order of publishing quotation information, so that the user node can select the best cost-effective bidder from at least two quotation release information, so that the bidder can provide computing power for the user node to achieve its computing power needs, thereby ensuring the fairness and justice of the computing power bidding process.
[0152] Figure 8 A block diagram of a supervisory node device provided by an embodiment of the present disclosure. Figure 8 As shown, the supervisory node device 800 includes but is not limited to the following modules.
[0153] The third acquisition module 801 is configured to obtain the computing power requirements published by the user node from the blockchain network.
[0154] Among them, the computing power requirement includes the blockchain identifier of the target computing power node specified by the user node.
[0155] The second generation module 802 is configured to generate a target random factor corresponding to each target computing power node according to the blockchain identifier of each target computing power node.
[0156] The second sending module 803 is configured to send the corresponding target random factor to each target computing power node according to the working status of the target computing power node.
[0157] Among them, the target random factor is used for the target computing power node to calculate its corresponding quotation release information.
[0158] It should be noted that the supervisory node device 800 can implement any one of the computing power trading methods applied to the supervisory node device in the present disclosure.
[0159] In this embodiment, the computing power demand published by the user node is obtained from the blockchain network through the third acquisition module, and the computing power demand includes the blockchain identifier of the target computing power node specified by the user node, so as to distinguish the target computing power node specified by the user through the blockchain identifier of each node; then, the second generation module is used to generate the target random factor corresponding to each target computing power node according to the blockchain identifier of each target computing power node, so as to obtain the target random factor corresponding to each target computing power node; wherein, since the working state of each target computing power node may be different (such as being in a dormant state or an activated state), therefore, the supervisory node will use the second sending module for each target computing power node to send its corresponding target random factor to the target computing power node according to the working state of the target computing power node, so that each target computing power node can obtain its corresponding target random factor, and based on the random target random factor corresponding to each target computing power node, the real quotation value published by the target computing power node is encapsulated to avoid the leakage of its real quotation value, so as to ensure the transmission security of the quotation release information published by the target computing power node in the blockchain network.
[0160] Fig. 9 A block diagram of a user node device provided by an embodiment of the present disclosure. Fig. 9 As shown, the user node device 900 includes but is not limited to the following modules.
[0161] The publishing module 901 is configured to publish computing power requirements to the blockchain network.
[0162] Among them, the computing power requirement includes the blockchain identifier of the target computing power node.
[0163] The fourth acquisition module 902 is configured to obtain quotation publishing information published by at least two target computing power nodes from the blockchain network.
[0164] Among them, the quotation release information is determined by the target computing power node based on its real quotation information and the target random factor corresponding to the target computing power node;
[0165] The selection module 903 is configured to select a winning node based on the quotation release information released by at least two target computing power nodes.
[0166] Among them, the winning node is used to provide computing power for the user node to meet its computing power requirements.
[0167] It should be noted that the user node device 900 can implement any one of the computing power trading methods applied to user node devices in the present disclosure.
[0168] In this embodiment, the computing power demand is published to the blockchain network through the publishing module, so that each computing power node in the blockchain network can know whether it is qualified to provide computing power services to the user node. Each computing power node determines whether it is the target computing power node through the blockchain identifier of the target computing power node included in the computing power demand; the fourth acquisition module is used to obtain the quotation release information published by at least two target computing power nodes from the blockchain network. The quotation release information is determined by the target computing power node according to its real quotation information and the target random factor corresponding to the target computing power node. Because the target random factor corresponds to each target computing power node, it is not only random, but also can be matched with each target computing power node, so that the generated quotation release information is not easily obtained by a third-party device, thereby ensuring the transmission security of the quotation release information in the blockchain network; the selection module is used to select the winning node with the best cost-effectiveness according to the quotation release information published by at least two target computing power nodes, so that the winning node can provide computing power for the user node to achieve its computing power demand, thereby ensuring the fairness and justice of the computing power bidding process.
[0169] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present disclosure, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by the present disclosure, but this does not mean that there are no other units in this embodiment.
[0170] On the fourth aspect, the embodiments of the present disclosure provide electronic devices, computer-readable media and computer program products, all of which can be used to implement any computing power trading method in the embodiments of the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.
[0171] Fig.10 A block diagram of the composition of an electronic device provided in an embodiment of the present disclosure.
[0172] like Fig.10As shown, the electronic device includes: at least one processor 1001, at least one memory 1002, and one or more I / O interfaces 1003. The processor 1001, the memory 1002, and the I / O interface 1003 are interconnected via a bus 1004. The memory 1002 stores one or more computer programs, and the one or more computer programs are executed by at least one processor 1001, so that at least one processor 1001 can implement any one of the computing power trading methods described in the above embodiments.
[0173] Each module in the above electronic device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0174] The embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, wherein the computer program implements any one of the computing power trading methods described in the above embodiments when executed by a processor. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.
[0175] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above-mentioned computing power trading method.
[0176] Those skilled in the art will appreciate that all or some of the steps, systems, and functional modules / units in the above disclosed methods 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.
[0177] Some physical components or all physical components can 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 can be distributed on a computer-readable storage medium, which can include a computer storage medium (or a non-temporary medium) and a communication medium (or a temporary medium). As known to those of ordinary skill 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 program instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technology, portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer-readable program 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.
[0178] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0179] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0180] The computer program product described herein may be implemented in hardware, software, or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK), etc.
[0181] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0182] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0183] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0184] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, and the execution order between each box can be determined according to the functions involved in each box. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0185] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure.
Claims
1. A computing power trading method, characterized in that: Applied to the target computing power node, the method includes: Obtaining computing power requirements published by the user node from the blockchain network, and determining, based on the computing power requirements, that the target computing power node is a computing power node designated by the user node to provide computing power services for it, wherein the blockchain network includes at least two of the target computing power nodes; Obtaining a target random factor corresponding to the target computing power node sent by a supervisory node; Generate quotation release information according to the real quotation information of the target computing power node and the target random factor; The quotation release information is sent to the blockchain network so that the user node can select a winning node based on at least two of the obtained quotation release information, and the winning node is used to provide computing power for the user node to meet its computing power requirements.
2. The method according to claim 1, characterized in that The real quotation information includes the real quotation value; The generating of quotation release information according to the real quotation information of the target computing power node and the target random factor includes: Calculate and obtain a first bid value according to the real bid value and the target random factor; The quotation release information is generated according to the first quotation value and the first preset key.
3. The method according to claim 2, characterized in that The quotation release information also includes differential quotation information; The method further comprises: Obtaining second quotation information published by a paired node from the blockchain network, the second quotation information including a second quotation value, the paired node being another computing power node designated by the user node that can provide computing power services for the user node; The difference quotation information is generated according to the second quotation value and the first quotation value.
4. The method according to claim 1, characterized in that The computing power nodes specified in the computing power requirement also include: subordinate nodes of the target computing power node, or superior nodes of the target computing power node; The method further comprises: When the working state of the subordinate node of the target computing power node is a dormant state, waking up the subordinate node of the target computing power node in response to the wake-up instruction sent by the supervisory node; or, When the working state of the target computing power node is the sleep state, in response to the wake-up instruction sent by the upper node of the target computing power node, the working state of the target computing power node is adjusted from the sleep state to the active state.
5. A computing power trading method, characterized in that: Applied to a supervisory node, the method comprises: Obtaining computing power requirements published by the user node from the blockchain network, where the computing power requirements include the blockchain identifier of the target computing power node specified by the user node; Generate a target random factor corresponding to each target computing power node according to the blockchain identifier of each target computing power node; For each of the target computing power nodes, according to the working status of the target computing power node, the corresponding target random factor is sent to the target computing power node, and the target random factor is used for the target computing power node to calculate its corresponding quotation release information.
6. The method according to claim 5, characterized in that Before sending the target random factor corresponding to the target computing power node to the target computing power node according to the working state of the target computing power node, the method further includes: The topological structure information of the blockchain network is obtained, wherein the topological structure information includes the belonging relationship information between multi-level computing power nodes and the connection relationship information between each computing power node at the same level.
7. The method according to claim 6, characterized in that The sending the corresponding target random factor to the target computing power node according to the working state of the target computing power node includes: When the working state of the target computing power node is a dormant state, determining the upper node of the target computing power node according to the topological structure information, and sending a wake-up instruction to the upper node of the target computing power node, wherein the wake-up instruction is used to instruct the upper node of the target computing power node to wake up the target computing power node; When the working state of the target computing power node is an activated state, the corresponding target random factor is sent to the target computing power node.
8. The method according to any one of claims 5 to 7, characterized in that There are multiple target computing nodes; the method further includes: In response to the data request sent by the user node, sending the target random factors corresponding to each of the plurality of target computing power nodes to the user node; Among them, the user node is used to determine the winning node according to the target random factors corresponding to each of the multiple target computing power nodes and the quotation release information of each of the target computing power nodes, and the winning node is used to provide computing power for the user node to achieve its computing power requirements.
9. A computing power trading method, characterized in that: Applied to a user node, the method comprises: Publishing computing power requirements to the blockchain network, wherein the computing power requirements include the blockchain identifier of the target computing power node; Obtaining quotation release information published by at least two of the target computing power nodes from the blockchain network, where the quotation release information is determined by the target computing power node according to its real quotation information and a target random factor corresponding to the target computing power node; A winning node is selected based on the quotation release information released by at least two of the target computing power nodes, and the winning node is used to provide computing power for the user node to meet its computing power requirements.
10. The method according to claim 9, characterized in that The step of selecting a winning node according to the quotation release information released by at least two of the target computing power nodes includes: After obtaining the quotation information published by all target computing power nodes, send a data request to the supervisory node; In response to the data response fed back by the supervisory node, obtaining the target random factors corresponding to all the target computing power nodes; According to the target random factors corresponding to each of the target computing power nodes, the quotation release information of each of the target computing power nodes is analyzed to determine the winning node.
11. A computing power trading system, characterized in that: include: User nodes, supervisory nodes, and at least two target computing nodes connected through the blockchain network; The target computing power node is used to implement the computing power trading method according to any one of claims 1 to 4; The supervisory node is used to implement the computing power trading method according to any one of claims 5 to 8; A user node, used to implement the computing power trading method as described in any one of claims 9 to 10.