Hash power transaction-based processing method, device and equipment
Patent Information
- Application Number
- CN202310629552.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-05-30
AI Technical Summary
[0004]本申请提供一种基于算力交易的处理方法、装置以及设备,用以解决算力服务过程中成本高,数据的安全性和隐私性受到危险的问题
[0095]This application provides a processing method, apparatus, and device based on computing power transactions. The requesting user's device sends a computing power service request to its corresponding proxy transaction node. This proxy transaction node, through multiple selected matching devices, calculates the final target supplying user matching the computing power service request and sends the result to the requesting user's device. The result and the computing power service request are then sent to the target supplying user's device via the proxy transaction node corresponding to the target supplying user's device. Both the requesting user and the supplying user agree to the computing power service transaction. The proxy transaction node determines the initial computing power fee information for the requesting user. The target supplying user's device provides computing power services to the requesting user's device based on the computing power service request. Because the computing power service transaction process only utilizes a portion of the transaction nodes—the proxy transaction node corresponding to the requesting user's device, the proxy transaction node corresponding to the target supplying user's device, and multiple matching devices—transaction time is significantly reduced while simultaneously protecting data security and privacy.
Smart Images

Figure CN116647323B_ABST
Abstract
Description
Technical Field
[0001] This application relates to big data technology and computing power trading technology, and in particular to a processing method, apparatus and equipment based on computing power trading. Background Technology
[0002] With the development of big data technology, big data center clusters are being deployed continuously, enabling computing power transactions to be completed based on these clusters. Computing power transactions refer to utilizing equipment from other vendors to provide computing power services.
[0003] In existing technologies, the service processing of computing power transactions can be completed through nodes in a blockchain. However, because the service processing of computing power transactions is based on individual nodes in the blockchain, and the blockchain requires consensus across the entire network, all nodes have the right to read data related to computing power transaction services, which endangers data security and privacy. Furthermore, the need for all nodes in the blockchain to participate in the computing power service process results in high costs. Summary of the Invention
[0004] This application provides a processing method, apparatus, and device based on computing power transactions to address the problems of high costs and compromised data security and privacy during the computing power service process.
[0005] In a first aspect, this application provides a processing method based on computing power transactions, the method being applied to a first device, the first device being a proxy transaction node corresponding to the device of a demand-side user, the method comprising:
[0006] In response to a computing power service request issued by the user's device, the computing power service request is sent to multiple matching devices; wherein, the computing power service request is used to instruct the provision of computing power services to the user's device; the matching devices are used to obtain a first matching result, which is used to indicate the supplier user that matches the computing power service request; each first matching result is used to determine a second matching result, which is used to indicate the final target supplier user determined based on each first matching result;
[0007] Obtain the second matching result;
[0008] The second matching result is sent to the device of the demand-side user, and the computing power service request and the second matching result are sent to the device of the target supply-side user through the second device; wherein, the second device is a proxy transaction node corresponding to the device of the target supply-side user;
[0009] In response to a first confirmation message sent by the demand-side user's device and a second confirmation message sent by the target supplier's device through the second device, the initial computing power cost information of the demand-side user is determined; wherein, the first confirmation message indicates that the demand-side user's device agrees to the target supplier's device providing computing power services, and the second confirmation message indicates that the target supplier's device agrees to provide computing power services to the demand-side user's device; the target supplier's device is used to provide computing power services to the demand-side user's device based on the computing power service request.
[0010] In one feasible implementation, in response to a computing power service request issued by the user's device, the computing power service request is sent to multiple matching devices, including:
[0011] In response to a computing power service request issued by the user's device, multiple matching devices are determined from a preset node list; wherein, the preset node list includes at least one matching device; the matching device among the multiple matching devices is an idle device, or, the matching device among the multiple matching devices is a device whose current business volume is less than a preset business volume threshold;
[0012] The computing power service request is sent to the multiple matching party devices.
[0013] In one feasible implementation, the computing power service request includes the service type of the computing power service and the estimated access duration of the computing power service; the supplier user has computing power service information, which includes the service type of the computing power service, the capability information of the computing power service, and the unit price information of the computing power service.
[0014] The supplier user indicated by the first matching result is the supplier user whose computing power service business type matches the computing power service request, whose computing power service capability information is optimal, and whose computing power service unit price information is the lowest; the first matching result includes total cost information;
[0015] The total cost information includes cost information corresponding to the first device, cost information corresponding to the second device, cost information corresponding to each of the multiple matching devices, and cost information corresponding to the target supplier user's device.
[0016] In one feasible implementation, obtaining the second matching result includes:
[0017] The system receives the second matching result sent by the matching device that is closest to the first device among the plurality of matching devices; wherein the second matching result is obtained by the closest matching device based on each of the first matching results.
[0018] In one feasible implementation, the second matching result includes the target supplier user and the total cost information corresponding to the target supplier user; the total cost information includes the cost information corresponding to the first device, the cost information corresponding to the second device, the cost information corresponding to each of the plurality of matching device devices, and the cost information corresponding to the device of the target supplier user.
[0019] In one feasible implementation, in response to a first confirmation message sent by the demand-side user's device and a second confirmation message sent by the target supplier's device through the second device, the initial computing power cost information of the demand-side user is determined, including:
[0020] In response to the first confirmation message sent by the device of the demand-side user and the second confirmation message sent by the device of the target supplier user through the second device, if it is determined that the account information of the demand-side user meets the total cost information corresponding to the target supplier user, then the total cost information corresponding to the target supplier user is determined as the initial computing power cost information of the demand-side user, and the initial computing power cost information in the account information of the demand-side user is frozen.
[0021] In one feasible implementation, the method further includes:
[0022] In response to the first confirmation information sent by the device of the demand-side user and the second confirmation information sent by the device of the target supplier user through the second device, if it is determined that the account information of the demand-side user does not meet the total cost information corresponding to the target supplier user, then the difference between the total cost information corresponding to the target supplier user and the account information of the demand-side user is determined, and the difference is sent to the device of the demand-side user.
[0023] When it is determined that the account information of the demand-side user meets the total cost information corresponding to the target supply-side user, the total cost information corresponding to the target supply-side user is determined as the initial computing power cost information of the demand-side user, and the initial computing power cost information in the account information of the demand-side user is frozen.
[0024] In one feasible implementation, the computing power service request includes the estimated access duration of the computing power service; the estimated access duration of the computing power service is used by the target supplier user's device to determine the real-time access duration of the demand user's device, and if it is greater than or equal to the estimated access duration, the computing power service is stopped for the demand user's device.
[0025] In one feasible implementation, the method further includes:
[0026] If it is determined that the first log sent by the device of the demander is received, and the second log sent by the second device is received, then the deduction information is determined based on the access duration in the first log and the unit price information of the computing power service of the target supplier.
[0027] Wherein, the second log is sent by the target supplier user's device to the second device; the first log is the computing power service usage during the process of the demand user's device accessing the target supplier user's device; the second log is the computing power service usage during the process of the target supplier user's device providing computing power services to the demand user's device; the computing power service usage includes the access duration.
[0028] Based on the deduction information, the value represented by the deduction information is transferred from the account information of the demand-side user to the account information of the second device; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
[0029] In one feasible implementation, the method further includes:
[0030] If it is determined that the first log sent by the device of the demander has been received, but the second log sent by the second device has not been received, then after a first preset time, the deduction information is determined based on the access duration in the first log and the unit price information of the computing power service of the target supplier.
[0031] Based on the deduction information, the value represented by the deduction information is transferred from the account information of the demand-side user to the account information of the second device; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
[0032] In one feasible implementation, the method further includes:
[0033] If it is determined that the first log sent by the user's device is not received, but the second log sent by the second device is received, then after a first preset time, the deduction information is determined based on the access duration in the second log and the unit price information of the target supplier's computing power service.
[0034] Based on the deduction information, the value represented by the deduction information is transferred from the account information of the demand-side user to the account information of the second device; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
[0035] In one feasible implementation, the method further includes:
[0036] If it is determined that the first log sent by the demand user's device has not been received, and the second log sent by the second device has not been received, then after a second preset time, the value represented by the fee information corresponding to the target supplier's device will be transferred from the account information of the second device to the account information of the target supplier.
[0037] In one feasible implementation, the method further includes:
[0038] Generate computing power service transaction process information, which includes access duration and total cost information for the transfer from the demand-side user's account to the target supply-side user's account.
[0039] In one feasible implementation, the method further includes:
[0040] In response to a first registration request issued by the user's device, if the user is determined to be a trusted user based on the first registration request, then the user's account information is established; wherein, the first registration request includes the user's identity information and the user's reputation verification information.
[0041] The identity information, credit verification information, and account information of the demand-side user are stored in a first blockchain corresponding to the first device; wherein the access permission of the first blockchain is limited to the first device; the first information of the first device is stored in a second blockchain; wherein the access permission of the second blockchain is limited to nodes belonging to the computing power service transaction matching platform; the first information indicates that the first device is an agent transaction node corresponding to the device of the demand-side user;
[0042] The first registration success message is sent back to the device of the user who made the request.
[0043] In one feasible implementation, the method further includes:
[0044] A second registration request is sent to a third device; wherein the second registration request includes the location information of the first device, the computing power proof information of the first device, and the reputation proof of the first device; the third device is a proxy transaction node corresponding to the first device; wherein the third device is used to determine, based on the second registration request, that the first device is a trusted user and that the computing power of the first device meets preset conditions, and then establish the account information of the first device;
[0045] The account information of the first device is stored in a third blockchain; wherein the access permission of the third blockchain is only allowed to the first device; the location information, computing power proof information, and reputation proof of the first device are stored in a fourth blockchain; wherein the access permission of the fourth blockchain is allowed to all nodes belonging to the computing power service transaction matching platform.
[0046] Receive the second registration success information from the third device.
[0047] Secondly, this application provides a processing device based on computing power trading. The device is applied to a first device, which is a proxy trading node corresponding to the device of a demand-side user. The device includes:
[0048] A first sending unit is configured to respond to a computing power service request issued by the device of the demand-side user and send the computing power service request to multiple matching-side devices; wherein the computing power service request is used to instruct the provision of computing power services to the device of the demand-side user; the matching-side devices are configured to obtain a first matching result, which is used to indicate the supplier user that matches the computing power service request; each first matching result is used to determine a second matching result, which is used to indicate the final target supplier user determined based on each first matching result;
[0049] The acquisition unit is used to acquire the second matching result;
[0050] The second sending unit is used to send the second matching result to the device of the demand user, and to send the computing power service request and the second matching result to the device of the target supplier user through the second device; wherein, the second device is a proxy transaction node corresponding to the device of the target supplier user;
[0051] A determining unit is configured to determine the initial computing power cost information of the demand user in response to a first confirmation message sent by the device of the demand user and a second confirmation message sent by the device of the target supplier user through the second device; wherein the first confirmation message indicates that the device of the demand user agrees to the device of the target supplier user providing computing power services, and the second confirmation message indicates that the device of the target supplier user agrees to provide computing power services to the device of the demand user; the device of the target supplier user is configured to provide computing power services to the device of the demand user based on the computing power service request.
[0052] In one feasible implementation, the first sending unit includes:
[0053] The first determining module is used to determine the plurality of matching devices from a preset node list in response to a computing power service request issued by the device of the demanding user; wherein the preset node list includes at least one matching device; the matching device among the plurality of matching devices is an idle device, or the matching device among the plurality of matching devices is a device whose current business volume is less than a preset business volume threshold;
[0054] The sending module is used to send the computing power service request to the multiple matching party devices.
[0055] In one feasible implementation, the computing power service request includes the service type of the computing power service and the estimated access duration of the computing power service; the supplier user has computing power service information, which includes the service type of the computing power service, the capability information of the computing power service, and the unit price information of the computing power service.
[0056] The supplier user indicated by the first matching result is the supplier user whose computing power service business type matches the computing power service request, whose computing power service capability information is optimal, and whose computing power service unit price information is the lowest; the first matching result includes total cost information;
[0057] The total cost information includes cost information corresponding to the first device, cost information corresponding to the second device, cost information corresponding to each of the multiple matching devices, and cost information corresponding to the target supplier user's device.
[0058] In one feasible implementation, the acquisition unit is specifically used for:
[0059] The system receives the second matching result sent by the matching device that is closest to the first device among the plurality of matching devices; wherein the second matching result is obtained by the closest matching device based on each of the first matching results.
[0060] In one feasible implementation, the second matching result includes the target supplier user and the total cost information corresponding to the target supplier user; the total cost information includes the cost information corresponding to the first device, the cost information corresponding to the second device, the cost information corresponding to each of the plurality of matching device devices, and the cost information corresponding to the device of the target supplier user.
[0061] In one feasible implementation, the determining unit includes:
[0062] The second determining module is used to respond to the first confirmation information sent by the device of the demand user and the second confirmation information sent by the device of the target supplier user through the second device. If it is determined that the account information of the demand user meets the total cost information corresponding to the target supplier user, then the total cost information corresponding to the target supplier user is determined as the initial computing power cost information of the demand user, and the initial computing power cost information in the account information of the demand user is frozen.
[0063] In one feasible implementation, the determining unit further includes:
[0064] The third determining module is used to respond to the first confirmation information sent by the device of the demand user and the second confirmation information sent by the device of the target supplier user through the second device. If it is determined that the account information of the demand user does not meet the total cost information corresponding to the target supplier user, then the difference between the total cost information corresponding to the target supplier user and the account information of the demand user is determined, and the difference is sent to the device of the demand user.
[0065] The fourth determining module is used to determine the total cost information corresponding to the target supplier user as the initial computing power cost information of the demand user when the account information of the demand user meets the total cost information corresponding to the target supplier user, and to freeze the initial computing power cost information in the account information of the demand user.
[0066] In one feasible implementation, the computing power service request includes the estimated access duration of the computing power service; the estimated access duration of the computing power service is used by the target supplier user's device to determine the real-time access duration of the demand user's device, and if it is greater than or equal to the estimated access duration, the computing power service is stopped for the demand user's device.
[0067] In one feasible implementation, the apparatus further includes:
[0068] The first processing unit is configured to determine the deduction information based on the access duration in the first log and the unit price information of the computing power service of the target supplier if it is determined that a first log sent by the device of the demand user has been received and a second log sent by the second device has been received.
[0069] Wherein, the second log is sent by the target supplier user's device to the second device; the first log is the computing power service usage during the process of the demand user's device accessing the target supplier user's device; the second log is the computing power service usage during the process of the target supplier user's device providing computing power services to the demand user's device; the computing power service usage includes the access duration.
[0070] The second processing unit is used to transfer the value represented by the deduction information from the account information of the demand-side user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
[0071] In one feasible implementation, the apparatus further includes:
[0072] The third processing unit is configured to, if it is determined that the first log sent by the device of the demander has been received and the second log sent by the second device has not been received, determine the deduction information based on the access duration in the first log and the unit price information of the computing power service of the target supplier after a first preset time.
[0073] The fourth processing unit is used to transfer the value represented by the deduction information from the account information of the demand-side user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
[0074] In one feasible implementation, the apparatus further includes:
[0075] The fifth processing unit is configured to, if it is determined that the first log sent by the device of the demander has not been received, and the second log sent by the second device has been received, determine the deduction information after a first preset time, based on the access duration in the second log and the unit price information of the computing power service of the target supplier.
[0076] The sixth processing unit is used to transfer the value represented by the deduction information from the account information of the demand-side user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
[0077] In one feasible implementation, the apparatus further includes:
[0078] The seventh processing unit is configured to, if it is determined that the first log sent by the device of the demander has not been received and the second log sent by the second device has not been received, transfer the value represented by the fee information corresponding to the device of the target supplier from the account information of the second device to the account information of the target supplier after a second preset time.
[0079] In one feasible implementation, the apparatus further includes:
[0080] The eighth processing unit is used to generate computing power service transaction process information, wherein the computing power service transaction process information includes access duration and total cost information for the transfer from the demand-side user's account to the target supply-side user's account.
[0081] In one feasible implementation, the apparatus further includes:
[0082] The first registration unit is configured to respond to a first registration request issued by the device of the demand user, and if the demand user is determined to be a trusted user based on the first registration request, then establish the account information of the demand user; wherein, the first registration request includes the identity information and reputation verification information of the demand user;
[0083] The second registration unit is used to store the identity information, credit verification information, and account information of the demand-side user in a first blockchain corresponding to the first device; wherein the access permission of the first blockchain is limited to the first device; and to store the first information of the first device in a second blockchain; wherein the access permission of the second blockchain is limited to nodes belonging to the computing power service transaction matching platform; the first information indicates that the first device is an agent transaction node corresponding to the device of the demand-side user.
[0084] The third registration unit is used to send the first registration success information back to the device of the user in need.
[0085] In one feasible implementation, the apparatus further includes:
[0086] The fourth registration unit is used to send a second registration request to a third device; wherein the second registration request includes the location information of the first device, the computing power proof information of the first device, and the reputation proof of the first device; the third device is a proxy transaction node corresponding to the first device; wherein the third device is used to determine, based on the second registration request, that the first device is a trusted user and that the computing power of the first device meets preset conditions, and then establish the account information of the first device;
[0087] The fifth registration unit is used to store the account information of the first device in the third blockchain; wherein the access permission of the third blockchain is only allowed to the first device; and to store the location information, computing power proof information, and reputation proof of the first device in the fourth blockchain; wherein the access permission of the fourth blockchain is allowed to all nodes belonging to the computing power service transaction matching platform.
[0088] The sixth registration unit is used to receive the second registration success information fed back by the third device.
[0089] Thirdly, embodiments of this application provide a first device, including: a processor, and a memory communicatively connected to the processor;
[0090] The memory stores computer-executed instructions;
[0091] The processor executes computer execution instructions stored in the memory to implement the method provided in the first aspect above.
[0092] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method provided in the first aspect above.
[0093] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method provided in the first aspect described above.
[0094] In a sixth aspect, embodiments of this application provide a processing system based on computing power transactions, the system including a first device, a second device, and at least one matching device as described in the first aspect.
[0095] This application provides a processing method, apparatus, and device based on computing power transactions. The requesting user's device sends a computing power service request to its corresponding proxy transaction node. This proxy transaction node, through multiple selected matching devices, calculates the final target supplying user matching the computing power service request and sends the result to the requesting user's device. The result and the computing power service request are then sent to the target supplying user's device via the proxy transaction node corresponding to the target supplying user's device. Both the requesting user and the supplying user agree to the computing power service transaction. The proxy transaction node determines the initial computing power fee information for the requesting user. The target supplying user's device provides computing power services to the requesting user's device based on the computing power service request. Because the computing power service transaction process only utilizes a portion of the transaction nodes—the proxy transaction node corresponding to the requesting user's device, the proxy transaction node corresponding to the target supplying user's device, and multiple matching devices—transaction time is significantly reduced while simultaneously protecting data security and privacy. Attached Figure Description
[0096] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0097] Figure 1 A flowchart illustrating a processing method based on computing power transactions provided in this application embodiment;
[0098] Figure 2 A flowchart illustrating another processing method based on computing power transactions provided in this application embodiment;
[0099] Figure 3 A processing apparatus based on computing power transactions is provided for embodiments of this application;
[0100] Figure 4 Another processing apparatus based on computing power transactions provided in the embodiments of this application;
[0101] Figure 5 This application provides a schematic diagram of the structure of a first device according to an embodiment of the present application;
[0102] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0103] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0104] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0105] With the development of big data technology, big data center clusters are being deployed continuously, enabling computing power transactions to be completed based on these clusters. Computing power transactions refer to utilizing equipment from other vendors to provide computing power services.
[0106] The existing computing power trading systems are as follows:
[0107] The first type involves computing power buyers and sellers negotiating computing power transactions. Each computing power transaction requires both the buyer and seller to negotiate online simultaneously, which is not automated enough and is too cumbersome in today's digitalized world.
[0108] The second type is automated computing power trading. Sellers entrust their computing power to a computing power trading center for unified management, which then centrally schedules the trading. This completely centralized approach to computing power trading may deceive customers, making them unable to fully trust the trading center.
[0109] The third type uses blockchain technology for decentralized computing power trading. This type of computing power trading can establish trust among clients, but it is inefficient because blockchain requires consensus across the entire network. As the number of nodes increases, transaction costs gradually rise; all nodes have data read permissions, which poses challenges to data security and privacy.
[0110] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0111] Figure 1 A flowchart illustrating a processing method based on computing power transactions is provided for embodiments of this application; as shown below. Figure 1 As shown, the method in this embodiment is applied to a first device, which is a proxy transaction node corresponding to the device of the demand user. The method may include:
[0112] S101. In response to a computing power service request issued by a user's device, the computing power service request is sent to multiple matching devices; wherein, the computing power service request is used to instruct the provision of computing power services to the user's device; the matching devices are used to obtain a first matching result, which is used to indicate the supplier user that matches the computing power service request; each first matching result is used to determine a second matching result, which is used to indicate the final target supplier user determined based on each first matching result.
[0113] For example, the executing entity of this application embodiment may be an electronic device, or a product configuration device or device based on components, or other device or device capable of executing the solution of this embodiment, and there are no limitations thereto.
[0114] This application provides a computing power trading-based processing system for providing computing power services. The system includes a first device, a second device, and at least one matching device. The first device is a proxy trading node corresponding to the device of the demand-side user, and the second device is a proxy trading node corresponding to the device of the supply-side user.
[0115] In this system, both the devices of demand-side users and supply-side users need to participate in the computing power service process. At least one matching device is a node within the various nodes of the computing power service transaction system. The first device and the second device are also nodes within the various nodes of the computing power service transaction system. This computing power service transaction system builds a service bridge between the demand and supply sides of computing power service transactions, and simultaneously completes the settlement and recording of computing power service transactions. This computing power service transaction system includes at least one computing power service transaction node. This computing power service transaction system is a decentralized management system completed by different computing power service transaction nodes. Each computing power service transaction node in this system governs its own functions and services, collectively completing a decentralized computing power service matching transaction process. Specifically, each computing power service transaction node in this system can only see and manage its own information; it cannot see or manage the information of other nodes. However, all computing power service transaction nodes use the same strategies and adhere to the same conventions to jointly govern and complete the computing power service matching transaction process.
[0116] When a user's device needs to request computing power services, it generates a computing power service request. This request represents a request to provide computing power services to the user's device. In one example, a user operates the user's device, thereby inputting a computing power service request into the device. Alternatively, in another example, during business processing, the user's device automatically determines that it needs computing power services based on its own requirements and automatically generates a computing power service request.
[0117] In this application, a proxy transaction node corresponds to the device of the demand-side user. This proxy transaction node is one of the nodes in the computing power service transaction system. The proxy transaction node corresponding to the demand-side user's device can be referred to as the first device.
[0118] The user's device sends the computing power service request to the first device.
[0119] After receiving a computing power service request, the first device selects multiple nodes from various nodes in the computing power service transaction system to serve as multiple matching device parties.
[0120] The first device sends computing power service requests to multiple matching device devices.
[0121] Each matching device that receives a computing power service request calculates its own first matching result, where the first matching result represents the supplier user that matches the computing power service request.
[0122] A second matching result is obtained based on each of the first matching results. The second matching result represents the final target supplier user matched with the computing power service request. In one example, each matching device sends its first matching result to the matching device closest to the first device. This closest matching device obtains the second matching result based on the received first matching results and then sends the second matching result to the first device. Alternatively, in one example, each matching device sends its first matching result to a random device among the matching devices. This random device obtains the second matching result based on the received first matching results and then sends the second matching result to the first device. Or, in another example, each matching device sends its first matching result to the first device, which obtains the second matching result based on the received first matching results.
[0123] S102. Obtain the second matching result.
[0124] For example, referring to the description of step S101, the first device can obtain the second matching result.
[0125] S103. Send the second matching result to the device of the demand user, and send the computing power service request and the second matching result to the device of the target supply user through the second device; wherein, the second device is the proxy transaction node corresponding to the device of the target supply user.
[0126] For example,
[0127] In this application, a proxy transaction node corresponds to the device of the target supplier user. This proxy transaction node is one of the nodes in the computing power service transaction system. The proxy transaction node corresponding to the device of the target supplier user can be referred to as the second device.
[0128] The first device sends the second matching result to the demand user's device and asks whether the user agrees to allow the target supplier's device to provide computing power services.
[0129] Simultaneously, the first device sends the computing power service request and the second matching result to the second device, which then sends the computing power service request and the second matching result to the target supplier user's device and asks whether it agrees to provide computing power services to the demand user's device.
[0130] S104. In response to the first confirmation information sent by the demand user's device and the second confirmation information sent by the target supplier's device through the second device, the initial computing power fee information of the demand user is determined; wherein, the first confirmation information indicates that the demand user's device agrees to the target supplier's device providing computing power services, and the second confirmation information indicates that the target supplier's device agrees to provide computing power services to the demand user's device; the target supplier's device is used to provide computing power services to the demand user's device based on the computing power service request.
[0131] For example,
[0132] The demand-side user's device sends a first confirmation message to the first device. This first confirmation message indicates that the demand-side user's device agrees to allow the target supplier's device to provide computing power services.
[0133] The target supplier's device sends a second confirmation message to a second device, which then sends the second confirmation message to the first device. The second confirmation message indicates that the target supplier's device agrees to provide computing power services to the demander's device.
[0134] The first device determines the initial computing power cost information for the user in need.
[0135] The first device can send a message about providing computing power services to the target supplier's device.
[0136] The target supplier's equipment provides computing power services to the demander's equipment based on the computing power service request.
[0137] In this embodiment, the demand-side user's device sends a computing power service request to the proxy transaction node corresponding to the demand-side user's device. This proxy transaction node, through multiple selected matching devices, calculates the final target supplier user matching the computing power service request and sends this result to the demand-side user's device. The result and the computing power service request are then sent to the target supplier user's device via the proxy transaction node corresponding to the target supplier user's device. Both the demand-side user and the supplier user agree to the computing power service transaction. The proxy transaction node corresponding to the demand-side user's device determines the initial computing power fee information for the demand-side user. The target supplier user's device provides computing power services to the demand-side user's device based on the computing power service request. Because the computing power service transaction process only utilizes a portion of the transaction nodes—the proxy transaction node corresponding to the demand-side user's device, the proxy transaction node corresponding to the target supplier user's device, and multiple matching devices—transaction time is significantly reduced while simultaneously protecting data security and privacy.
[0138] Figure 2 A flowchart illustrating another processing method based on computing power transactions provided in this application embodiment; as shown. Figure 2 As shown, the method may include:
[0139] S201. The user's equipment is registered on the computing power service transaction matching platform.
[0140] In the first step of S201, the first device responds to the first registration request issued by the demand user's device. If the demand user is determined to be a trusted user based on the first registration request, then the demand user's account information is established. The first registration request includes the demand user's identity information and reputation verification information. The first device is a proxy transaction node corresponding to the demand user's device.
[0141] In the second step of S201, the first device stores the identity information, credit proof information, and account information of the demand user in the first blockchain corresponding to the first device; wherein the access permission of the first blockchain is that only the first device is allowed to access it; the first information of the first device is stored in the second blockchain; wherein the access permission of the second blockchain is that all nodes belonging to the computing power service transaction matching platform are allowed to access it; the first information indicates that the first device is the agent transaction node corresponding to the device of the demand user.
[0142] The third step of S201 is for the first device to send the first registration success message back to the user's device.
[0143] For example, in order to use computing power services, demand-side users need to complete a registration process for their devices.
[0144] First, the user's device accesses the address of the computing power service transaction matching platform, selects a transaction node from the transaction node list on the access page as the proxy transaction node for the user's device, and records the proxy transaction node corresponding to the user's device as the first device.
[0145] The demand-side user's device sends the first registration request to the first device. This first registration request includes the demand-side user's identity information and credit verification information.
[0146] The first device analyzes the first registration request it receives. If the requesting user is trustworthy, it establishes the requesting user's account information.
[0147] The first device stores the user's identity information, credit information, and account information in the first blockchain. This first blockchain is accessible only to the first device.
[0148] The first device stores the first piece of information in the second blockchain. This second blockchain is accessible to all transaction nodes within the computing power service transaction matching platform. The first piece of information indicates which transaction node the demand-side user's device has selected as its proxy transaction node.
[0149] The first device sends a message indicating successful registration to the user's device.
[0150] The demand-side user deposits a portion of the funds into their account in advance through their device. In one example, the demand-side user deposits 1,000 yuan into their account in advance through their device.
[0151] S202. The first device is registered on the computing power service transaction matching platform.
[0152] In the first step of S202, the first device sends a second registration request to the third device. The second registration request includes the location information of the first device, proof of the first device's computing power, and proof of the first device's reputation. The third device is a proxy transaction node corresponding to the first device. The third device is used to determine, based on the second registration request, that the first device is a trusted user and that the first device's computing power meets preset conditions, and then establishes the first device's account information. The first device is the proxy transaction node corresponding to the user's device.
[0153] In the second step of S202, the first device stores its account information in the third blockchain, where access to the third blockchain is restricted to the first device only; the first device stores its location information, computing power proof information, and reputation proof information in the fourth blockchain, where access to the fourth blockchain is restricted to all nodes belonging to the computing power service transaction matching platform.
[0154] The third step of S202 is that the first device receives the second registration success information from the third device.
[0155] For example,
[0156] If the first device is not initially part of the computing power service trading matching platform, it is a node to be added to the trading platform. To join the computing power service trading matching platform, this node needs to register on the platform. The registration steps are as follows:
[0157] The node to be added to the transaction accesses the address of the computing power service transaction matching platform, selects a transaction node from the transaction node list on the access page as the proxy node of the node to be added to the transaction, and records the proxy transaction node corresponding to the node to be added to the transaction as the third device.
[0158] The node to be joined in the transaction sends a second registration request to the third device. The second registration request includes the location information of the node to be joined, the computing power proof information of the node to be joined, and the reputation proof of the node to be joined.
[0159] The third device analyzes the second registration request. If the node to be joined in the transaction is trustworthy and its computing power meets preset conditions, it establishes the account information for the node. In one example, if the node to be joined in the transaction is trustworthy and has the capability to perform computing power transaction matching calculations, it establishes the account information for the node.
[0160] The third device stores the account information of nodes to be added to the transaction in a third blockchain. This third blockchain is only accessible to nodes to be added to the transaction.
[0161] The third device stores the location information of the nodes to be added to the transaction, the computing power proof information of the nodes to be added to the transaction, and the reputation proof of the nodes to be added to the transaction in the fourth blockchain. The fourth blockchain is accessible to all transaction nodes in the computing power service transaction matching platform.
[0162] The third device adds the node to be added to the transaction node list of the computing power service transaction matching platform, making the node to be added a transaction node of the computing power service transaction matching platform.
[0163] The third device sends a successful registration message to the nodes waiting to join the transaction.
[0164] S203. Supplier users' equipment is registered on the computing power service transaction matching platform.
[0165] Step S203 includes the following processes:
[0166] In the first step of S203, the second device responds to the third registration request issued by the supplier user's device. If the supplier user is determined to be a trusted user based on the third registration request, then the supplier user's account information is established. The third registration request includes the supplier user's identity information, reputation verification information, and computing power service information. The computing power service information includes the service type, capacity information, and unit price information of the computing power service. The second device is a proxy transaction node corresponding to the supplier user's device.
[0167] In the second step of S203, the second device stores the supplier user's identity information, reputation information, and account information into the fifth blockchain corresponding to the second device; the access permission of the fifth blockchain is that only the second device is allowed to access it; the second device stores the supplier user's computing power service information and second information into the sixth blockchain; the access permission of the sixth blockchain is that all nodes belonging to the computing power service transaction matching platform can access it; the second information indicates that the second device is an agent transaction node corresponding to the supplier user's device.
[0168] The third step of S203 is the third registration success message that the second device sends to the supplier user's device.
[0169] For example, in order to provide computing power services to demand-side users, the devices of supply-side users need to complete the registration process first.
[0170] First, the supplier user's device accesses the address of the computing power service transaction matching platform, selects a transaction node from the transaction node list on the access page as the supplier user's device's proxy transaction node, and records the proxy transaction node corresponding to the supplier user's device as the second device.
[0171] The supplier's device sends a third registration request to the second device. This third registration request includes the supplier's identity information, creditworthiness information, and computing power service information. The computing power service information includes the service type, capacity, and unit price of the computing power service.
[0172] The second device analyzes the third registration request, and if the supplier user is trustworthy, it establishes the supplier user's account information.
[0173] The second device stores the supplier's identity information, creditworthiness information, and account information in the fifth blockchain. This fifth blockchain is accessible only to the supplier's device's proxy transaction nodes.
[0174] The second device stores the computing power service information and second information of the supplier user in the sixth blockchain. This sixth blockchain is accessible to all transaction nodes in the computing power service transaction matching platform. The second information indicates which transaction node the supplier user's device has selected as its proxy transaction node.
[0175] The second device sends a successful registration message to the supplier's user device.
[0176] S204. In response to the computing power service request issued by the user's device, the first device determines multiple matching devices from a preset node list; wherein the preset node list includes at least one matching device; the matching devices among the multiple matching devices are idle devices, or the matching devices among the multiple matching devices are devices whose current business volume is less than a preset business volume threshold; the first device is a proxy transaction node corresponding to the user's device. The computing power service request is sent to the multiple matching devices.
[0177] The computing power service request is used to instruct the provision of computing power services to the devices of the demand-side users; the matching device is used to obtain a first matching result, which is used to indicate the supply-side users that match the computing power service request; each first matching result is used to determine a second matching result, which is used to indicate the final target supply-side users determined based on each first matching result.
[0178] In one example, the computing power service request includes the service type and the estimated access duration of the computing power service; the supplier user has computing power service information, which includes the service type, capacity information, and unit price information of the computing power service.
[0179] The first matching result indicates the supplier user that matches the computing power service business type with the computing power service request, has the best computing power service capability information, and has the lowest unit price information for the computing power service; the first matching result includes total cost information.
[0180] The total cost information includes cost information corresponding to the first device, cost information corresponding to the second device, cost information corresponding to each of the multiple matching devices, and cost information corresponding to the target supplier user's device.
[0181] For example,
[0182] The demand-side user's device sends a computing power service request to the first device. The first device is the proxy transaction node corresponding to the demand-side user's device; the computing power service request includes the service type and the estimated access duration of the computing power service.
[0183] The first device selects five transaction nodes from the transaction node list of the computing power service transaction matching platform as matching devices. In one example, the first device selects idle transaction nodes from the transaction node list as matching devices. Alternatively, in another example, the first device selects transaction nodes from the transaction node list whose current business volume is less than 2 as matching devices.
[0184] The first device sends the computing power service request to the five selected matching devices.
[0185] Each matching party obtains a first matching result based on the computing power service request. This first matching result includes the supplier user matched with the computing power service request and total cost information. The total cost information includes the estimated cost to be charged by the supplier user and the estimated cost of the transaction nodes used in the computing power service transaction.
[0186] In one example, each matching party first matches the service type of the computing power service request with the service type of the computing power service provided by the supplier user, selects the supplier user that matches the service type of the computing power service request, and then selects the supplier user with the best computing power service capability information and the lowest unit price information from these selected supplier users.
[0187] Next, each matching party calculates the estimated fee to be charged to its respective supplier user based on the unit price information of the computing power service selected by them and the estimated access duration of the computing power service of the demand user. The calculation method is: Estimated fee to be charged to the supplier user = Unit price information of the supplier user's computing power service * Estimated access duration of the demand user's computing power service. In one example, if the unit price information of the supplier user's computing power service is 100 yuan / day and the estimated access duration of the demand user's computing power service is 6 days, then the estimated fee to be charged to the supplier user is 600 yuan.
[0188] The transaction nodes used in a computing power service transaction also incur a certain fee. The estimated fee for the transaction nodes used is calculated proportionally based on the estimated fee to be collected by the supplier. A computing power service transaction includes proxy transaction nodes corresponding to the demander's equipment, proxy transaction nodes corresponding to the supplier's equipment, and multiple selected matching devices. In one example, if the estimated fee for the transaction nodes used in a computing power service transaction is 4 yuan and the estimated fee to be collected by the supplier is 6 yuan, then the estimated fee for the transaction nodes used in this computing power service transaction is 400 yuan. This 400 yuan is then shared equally among the various transaction nodes used in the computing power service transaction.
[0189] Five matching parties send their calculated first matching results to the matching party closest to the first device. This closest matching party aggregates the first matching results from the other four parties and its own to obtain a second matching result, which is then sent to the first device. The second matching result includes the final target supplier user matched with the computing power service request, and the total cost information corresponding to the final target supplier user. This total cost information includes the estimated cost to the final target supplier user and the estimated cost of the transaction nodes used in the computing power service transaction.
[0190] In one example, among the five matching parties, matching party 1 is closest to the first device. Matching parties 2, 3, 4, and 5 then send their respective first matching results to matching party 1. Matching party 1 analyzes its own results and the results from the other four parties, selecting the result with the highest number of identical supplier users as the final target supplier user. For example, if matching party 1 selects *m* supplier users, matching party 2 selects *n* supplier users, matching party 3 selects *m* supplier users, matching party 4 selects *m* supplier users, and matching party 5 selects *m* supplier users, then matching party 1 analyzes these five results to obtain the final target supplier user *m*. This leads to the second matching result. The second matching result includes the final target supplier user *m* matched with the computing power service request and the total cost information corresponding to the final target supplier user *m*.
[0191] S205. The first device receives a second matching result sent by the matching device that is closest to the first device among a plurality of matching devices; wherein the second matching result is obtained by the closest matching device based on each of the first matching results.
[0192] In one example, the second matching result includes the target supplier user and the total cost information corresponding to the target supplier user; the total cost information includes the cost information corresponding to the first device, the cost information corresponding to the second device, the cost information corresponding to each of the multiple matching devices, and the cost information corresponding to the target supplier user's device.
[0193] For example,
[0194] Referring to the description of step S204, the first device can obtain the second matching result.
[0195] S206. The first device sends the second matching result to the device of the demand user, and sends the computing power service request and the second matching result to the device of the target supply user through the second device; wherein, the second device is a proxy transaction node corresponding to the device of the target supply user.
[0196] For example,
[0197] The first device sends the second matching result to the demand user's device and asks whether the user agrees to allow the target supplier's device to provide computing power services.
[0198] Simultaneously, the first device sends the computing power service request and the second matching result to the second device. The second device then sends the computing power service request and the second matching result to the target supplier user's device and inquires whether it agrees to provide computing power services to the demand user's device. The second device acts as a proxy transaction node corresponding to the target supplier user's device.
[0199] S207. The first device responds to the first confirmation information sent by the demand user's device and the second confirmation information sent by the target supplier's device through the second device to determine the initial computing power fee information of the demand user; wherein, the first confirmation information indicates that the demand user's device agrees to the target supplier's device providing computing power services, and the second confirmation information indicates that the target supplier's device agrees to provide computing power services to the demand user's device; the target supplier's device is used to provide computing power services to the demand user's device based on the computing power service request.
[0200] In one example, step S207 includes the following cases:
[0201] The first scenario.
[0202] The first device responds to the first confirmation information sent by the demand user's device and the second confirmation information sent by the target supplier's device through the second device. If it is determined that the demand user's account information meets the total cost information corresponding to the target supplier, then the total cost information corresponding to the target supplier is determined as the demand user's initial computing power cost information, and the initial computing power cost information in the demand user's account information is frozen.
[0203] The second scenario.
[0204] The first device responds to the first confirmation information sent by the demand user's device and the second confirmation information sent by the target supplier's device through the second device. If it is determined that the demand user's account information does not meet the total cost information corresponding to the target supplier, the first device determines the difference between the total cost information corresponding to the target supplier and the demand user's account information and sends the difference to the demand user's device.
[0205] When the first device determines that the account information of the demand user meets the total cost information corresponding to the target supplier user, it determines the total cost information corresponding to the target supplier user as the initial computing power cost information of the demand user and freezes the initial computing power cost information in the account information of the demand user.
[0206] In one example, the computing power service request includes the estimated access duration of the computing power service; the estimated access duration of the computing power service is used by the target supplier's device to determine the real-time access duration of the demand user's device. If the access duration is greater than or equal to the estimated access duration, the computing power service is stopped for the demand user's device.
[0207] For example,
[0208] The demand-side user's device sends a first confirmation message to the first device. This first confirmation message indicates that the demand-side user's device agrees to allow the target supplier's device to provide computing power services.
[0209] The target supplier's device sends a second confirmation message to a second device, which then sends the second confirmation message to the first device. The second confirmation message indicates that the target supplier's device agrees to provide computing power services to the demander's device.
[0210] The first device determines the initial computing power cost information for the user in need.
[0211] In one example,
[0212] If the total cost for the target supplier is 1,000 yuan and the balance in the demander's account is 2,000 yuan, and the balance in the demander's account is sufficient to pay the total cost for the target supplier, then the first device determines the total cost of 1,000 yuan for the target supplier as the initial computing power cost information for the demander, and freezes 1,000 yuan of the demander's account balance of 2,000 yuan.
[0213] If the total cost for the target supplier is 1000 yuan, and the demander's account balance is 800 yuan, the demander's account balance is insufficient to cover the total cost. The first device then calculates the difference between the total cost and the demander's account balance; in this example, the difference is 200 yuan. The first device then sends the required 200 yuan to the demander's device. The demander deposits the 200 yuan into their account via their device. At this point, the demander's account balance is sufficient to cover the total cost. Therefore, the total cost of 1000 yuan for the target supplier is determined as the demander's initial computing power cost, and 1000 yuan of the 1000 yuan balance in the demander's account is frozen.
[0214] The first device can send a message about providing computing power services to the target supplier's device.
[0215] The equipment of the target supplier provides computing power services to the equipment of the demander.
[0216] If the real-time access duration of the demand-side user's device is greater than or equal to the expected access duration, the target supply-side user's device will stop providing computing power services to the demand-side user's device.
[0217] In one example,
[0218] The expected access duration of the demand-side user's device is 3 days. When the real-time access duration of the demand-side user's device is greater than or equal to 3 days, the target supply-side user's device will stop providing computing power services to the demand-side user's device.
[0219] S208. The first device determines the deduction information based on the first log sent by the user's device and the second log sent by the second device.
[0220] Step S208 includes the following situations.
[0221] First scenario:
[0222] If the first device determines that it has received the first log sent by the user's device and the second log sent by the second device, it determines the deduction information based on the access duration and the unit price information of the target supplier's computing power service in the first log.
[0223] The second log is sent from the target supplier user's device to the second device; the first log is the computing power service usage during the process of the demand user's device accessing the target supplier user's device; the second log is the computing power service usage during the process of the target supplier user's device providing computing power services to the demand user's device; the computing power service usage includes the access duration.
[0224] The first device transfers the value represented by the deduction information from the demand-side user's account information to the second device's account information based on the deduction information; the second device is used to transfer the value represented by the deduction information from the second device's account information to the target supplier's account information.
[0225] The second scenario:
[0226] If the first device determines that it has received the first log sent by the user's device but has not received the second log sent by the second device, then after a first preset time, it determines the deduction information based on the access duration in the first log and the unit price information of the target supplier's computing power service.
[0227] The first device transfers the value represented by the deduction information from the demand-side user's account information to the second device's account information based on the deduction information; the second device then transfers the value represented by the deduction information from the second device's account information to the target supplier's account information.
[0228] The third scenario:
[0229] If it is determined that the first log sent by the user's device is not received, but the second log sent by the second device is received, then after the first preset time, the deduction information is determined based on the access duration in the second log and the unit price information of the target supplier's computing power service.
[0230] Based on the deduction information, the value represented by the deduction information is transferred from the demand-side user's account information to the second device's account information; the second device is used to transfer the value represented by the deduction information from the second device's account information to the target supplier's account information.
[0231] The fourth scenario:
[0232] If it is determined that the first log sent by the demand user's device has not been received, and the second log sent by the second device has not been received, then after the second preset time, the value represented by the initial computing power cost information of the target supplier user's device demand user will be transferred from the account information of the second device to the account information of the target supplier user.
[0233] For example,
[0234] The demand-side user's device sends the first log to the first device. The first log contains the access duration during the process of the demand-side user's device accessing the target supplier's device.
[0235] The target supplier's device sends a second log to a second device, which then sends the second log to the first device. The second log contains the access duration during the process of the target supplier's device providing computing power services to the demand user's device.
[0236] The first device settles the computing power service transaction based on the first and second logs received, and determines the amount that the demand-side user's account needs to transfer to the target supply-side user's account.
[0237] In one example,
[0238] The user's device sends the first log to the first device.
[0239] The target supplier's device sends a second log to a second device, and then the second device sends the second log to the first device.
[0240] The first device compares the access durations in the first and second logs it receives. Based on the access durations and the unit price information of the target supplier's computing power service, it calculates the amount that the demand-side user's account needs to transfer to the target supplier's account. The calculation method is: Amount that the demand-side user's account needs to transfer to the target supplier's account = Access duration * Unit price information of the target supplier's computing power service.
[0241] The first device will calculate the transfer amount and transfer it from the demander's account information to the second device's account. Then, the second device will transfer the transfer amount from its account to the target supplier's account.
[0242] The first device calculates the fees that the demand-side user's account information needs to transfer to the transaction nodes used in the computing power service transaction based on the deduction information and on a proportional basis. The transaction nodes used in the computing power service transaction include: the proxy transaction node corresponding to the demand-side user's equipment, the proxy transaction node corresponding to the supply-side user's equipment, and multiple selected matching party devices.
[0243] The first device will transfer the calculated cost information, representing the value, from the demander's account information to the first device's account information.
[0244] The first device divides the value represented by the fee information equally according to the number of transaction nodes used in the computing power service transaction. Then, the value represented by the divided fee information is transferred from the account information of the first device to the account information of the agent transaction node corresponding to the device of the demand user, the account information of the agent transaction node corresponding to the device of the supply user, and the account information of the selected matching device.
[0245] In one example,
[0246] The user's device sends the first log to the first device.
[0247] The target supplier's device did not send a second log to the first device through the second device.
[0248] After a first preset time, the first device calculates the amount that the demand-side user's account needs to transfer to the target-side user's account based on the access duration in the first log and the unit price information of the target supplier's computing power service. The calculation method is as follows: Amount that the demand-side user's account needs to transfer to the target-side user's account = Access duration in the first log * Unit price information of the target supplier's computing power service.
[0249] The first device will calculate the transfer amount and transfer it from the demander's account information to the second device's account. Then, the second device will transfer the transfer amount from its account to the target supplier's account.
[0250] The first device calculates the fees that the demand-side user's account information needs to transfer to the transaction nodes used in the computing power service transaction based on the deduction information and on a proportional basis. The transaction nodes used in the computing power service transaction include: the proxy transaction node corresponding to the demand-side user's equipment, the proxy transaction node corresponding to the supply-side user's equipment, and multiple selected matching party devices.
[0251] The first device will transfer the calculated cost information, representing the value, from the demander's account information to the first device's account information.
[0252] The first device divides the value represented by the fee information equally according to the number of transaction nodes used in the computing power service transaction. Then, the value represented by the divided fee information is transferred from the account information of the first device to the account information of the agent transaction node corresponding to the device of the demand user, the account information of the agent transaction node corresponding to the device of the supply user, and the account information of the selected matching device.
[0253] In one example,
[0254] The user's device did not send the first log to the first device.
[0255] The target supplier's device sends a second log to the first device through the second device.
[0256] After a first preset time, the first device calculates the amount that the demand-side user's account needs to transfer to the target-side user's account based on the access duration in the second log and the unit price information of the target supplier's computing power service. The calculation method is as follows: Amount that the demand-side user's account needs to transfer to the target-side user's account = Access duration in the second log * Unit price information of the target supplier's computing power service.
[0257] The first device will calculate the transfer amount and transfer it from the demander's account information to the second device's account. Then, the second device will transfer the transfer amount from its account to the target supplier's account.
[0258] The first device calculates the fees that the demand-side user's account information needs to transfer to the transaction nodes used in the computing power service transaction based on the deduction information and on a proportional basis. The transaction nodes used in the computing power service transaction include: the proxy transaction node corresponding to the demand-side user's equipment, the proxy transaction node corresponding to the supply-side user's equipment, and multiple selected matching party devices.
[0259] The first device will transfer the calculated cost information, representing the value, from the demander's account information to the first device's account information.
[0260] The first device divides the value represented by the fee information equally according to the number of transaction nodes used in the computing power service transaction. Then, the value represented by the divided fee information is transferred from the account information of the first device to the account information of the agent transaction node corresponding to the device of the demand user, the account information of the agent transaction node corresponding to the device of the supply user, and the account information of the selected matching device.
[0261] In one example,
[0262] The user's device did not send the first log to the first device.
[0263] The target supplier's device did not send a second log to the first device through the second device.
[0264] After the second preset time, the first device will use the value represented by the initial computing power cost information of the demand user as the amount that the demand user's account needs to transfer to the target supplier's account.
[0265] The first device will calculate the transfer amount and transfer it from the demander's account information to the second device's account. Then, the second device will transfer the transfer amount from its account to the target supplier's account.
[0266] The first device calculates the proportion of computing power fees that the demander's account information needs to transfer to the transaction nodes used in the computing power service transaction, based on the initial computing power fee information of the demander's user. The transaction nodes used in the computing power service transaction include: the proxy transaction node corresponding to the demander's device, the proxy transaction node corresponding to the supplier's device, and multiple selected matching devices.
[0267] The first device will transfer the calculated cost information, representing the value, from the demander's account information to the first device's account information.
[0268] The first device divides the value represented by the fee information equally according to the number of transaction nodes used in the computing power service transaction. Then, the value represented by the divided fee information is transferred from the account information of the first device to the account information of the agent transaction node corresponding to the device of the demand user, the account information of the agent transaction node corresponding to the device of the supply user, and the account information of the selected matching device.
[0269] S209. The first device generates computing power service transaction process information, which includes access duration and total cost information for the transfer from the demand user's account to the target supplier's account.
[0270] For example,
[0271] The first device stores the access duration of the computing power service transaction process and the total cost information of the transfer from the demand-side user's account to the target supply-side user's account in the seventh blockchain. The access permissions for the seventh blockchain are open to all nodes belonging to the computing power service transaction matching platform.
[0272] In this embodiment, the computing power service transaction nodes, the devices of the demand-side users, and the devices of the supply-side users all register on the computing power service transaction matching platform. The demand-side user's device sends a computing power service request to the first device. The first device selects multiple transaction nodes as matching devices from the transaction node list of the computing power service transaction matching platform. The first device sends the computing power service request to the selected multiple matching devices. Each matching device obtains its own first matching result and sends the result to the matching device closest to the first device among the multiple matching devices. The closest matching device derives a second matching result based on the first matching result and sends the second matching result to the first device. The first device sends the second matching result to the demand-side user's device and asks whether it agrees to the computing power service transaction. The first device sends the computing power service request and the second matching result to the target supply-side user's device through the second device and asks whether it agrees to the computing power service transaction. After receiving the message from the demand-side user's device agreeing to use the computing power service and the message from the supply-side user's device agreeing to provide the computing power service, the first device determines the initial computing power fee information of the demand-side user. The target supply-side user's device provides computing power services to the demand-side user's device based on the computing power service request. The first device determines the deduction information based on the first log sent by the demand-side user's device and the second log sent by the second device. The first device generates computing power service transaction process information. Because the computing power service transaction process only uses some transaction nodes, such as the proxy transaction node corresponding to the demand-side user's device, the proxy transaction node corresponding to the target supply-side user's device, and multiple matching party devices, the transaction time is greatly reduced, while protecting data security and privacy.
[0273] Figure 3 This application provides a processing device based on computing power transactions, such as... Figure 3 As shown, the device 300 includes:
[0274] The first sending unit 301 is configured to respond to a computing power service request issued by a user's device and send the computing power service request to multiple matching devices; wherein the computing power service request is used to instruct the provision of computing power services to the user's device; the matching devices are used to obtain a first matching result, which is used to indicate the supplier user that matches the computing power service request; each first matching result is used to determine a second matching result, which is used to indicate the final target supplier user determined based on each first matching result.
[0275] The acquisition unit 302 is used to acquire the second matching result.
[0276] The second sending unit 303 is used to send the second matching result to the device of the demand user, and to send the computing power service request and the second matching result to the device of the target supplier user through the second device; wherein, the second device is a proxy transaction node corresponding to the device of the target supplier user.
[0277] The determining unit 304 is configured to determine the initial computing power cost information of the demand user in response to the first confirmation information sent by the demand user's device and the second confirmation information sent by the target supplier's device through the second device; wherein, the first confirmation information indicates that the demand user's device agrees to the target supplier's device providing computing power services, and the second confirmation information indicates that the target supplier's device agrees to provide computing power services to the demand user's device; the target supplier's device is used to provide computing power services to the demand user's device based on the computing power service request.
[0278] The apparatus provided in this embodiment is similar in principle and technical effect to the methods provided in any of the foregoing embodiments, and will not be described again.
[0279] Figure 4 Another processing apparatus based on computing power transactions provided in the embodiments of this application, such as Figure 4 As shown, the device 400 includes:
[0280] The first sending unit 401 is configured to respond to a computing power service request issued by a user's device and send the computing power service request to multiple matching devices; wherein the computing power service request is used to instruct the provision of computing power services to the user's device; the matching devices are used to obtain a first matching result, which is used to indicate the supplier user that matches the computing power service request; each first matching result is used to determine a second matching result, which is used to indicate the final target supplier user determined based on each first matching result.
[0281] Acquisition unit 402 is used to acquire the second matching result.
[0282] The second sending unit 403 is used to send the second matching result to the device of the demand user, and to send the computing power service request and the second matching result to the device of the target supplier user through the second device; wherein, the second device is a proxy transaction node corresponding to the device of the target supplier user.
[0283] The determining unit 404 is configured to determine the initial computing power cost information of the demand user in response to the first confirmation information sent by the demand user's device and the second confirmation information sent by the target supplier's device through the second device; wherein, the first confirmation information indicates that the demand user's device agrees to the target supplier's device providing computing power services, and the second confirmation information indicates that the target supplier's device agrees to provide computing power services to the demand user's device; the target supplier's device is used to provide computing power services to the demand user's device based on the computing power service request.
[0284] In one example, the first transmitting unit 401 includes:
[0285] The first determining module 4011 is used to respond to a computing power service request issued by a user's device and determine multiple matching devices from a preset node list; wherein, the preset node list includes at least one matching device; the matching device among the multiple matching devices is an idle device, or the matching device among the multiple matching devices is a device whose current business volume is less than a preset business volume threshold.
[0286] The sending module 4012 is used to send computing power service requests to multiple matching party devices.
[0287] In one example, the computing power service request includes the service type and the estimated access duration of the computing power service; the supplier user has computing power service information, which includes the service type, capacity information, and unit price information of the computing power service.
[0288] The first matching result indicates the supplier user that matches the computing power service business type with the computing power service request, has the best computing power service capability information, and has the lowest unit price information for the computing power service; the first matching result includes total cost information.
[0289] The total cost information includes cost information corresponding to the first device, cost information corresponding to the second device, cost information corresponding to each of the multiple matching devices, and cost information corresponding to the target supplier user's device.
[0290] In one example, unit 402 is retrieved, specifically for:
[0291] The system receives a second matching result from the matching device that is closest to the first device among a plurality of matching devices; wherein the second matching result is obtained by the closest matching device based on each of the first matching results.
[0292] In one example, the second matching result includes the target supplier user and the total cost information corresponding to the target supplier user; the total cost information includes the cost information corresponding to the first device, the cost information corresponding to the second device, the cost information corresponding to each of the multiple matching devices, and the cost information corresponding to the target supplier user's device.
[0293] In one example, unit 404 is defined as including:
[0294] The second determining module 4041 is used to respond to the first confirmation information sent by the device of the demand user and the second confirmation information sent by the device of the target supplier user through the second device. If it is determined that the account information of the demand user meets the total cost information corresponding to the target supplier user, then the total cost information corresponding to the target supplier user is determined as the initial computing power cost information of the demand user, and the initial computing power cost information in the account information of the demand user is frozen.
[0295] In one example, determining unit 404 also includes:
[0296] The third determining module 4042 is used to respond to the first confirmation information sent by the device of the demand user and the second confirmation information sent by the device of the target supplier user through the second device. If it is determined that the account information of the demand user does not meet the total cost information corresponding to the target supplier user, the module determines the difference between the total cost information corresponding to the target supplier user and the account information of the demand user, and sends the difference to the device of the demand user.
[0297] The fourth determining module 4043 is used to determine the total cost information corresponding to the target supplier user as the initial computing power cost information of the demand user when the account information of the demand user meets the total cost information corresponding to the target supplier user, and to freeze the initial computing power cost information in the account information of the demand user.
[0298] In one example, the computing power service request includes the estimated access duration of the computing power service; the estimated access duration of the computing power service is used by the target supplier's device to determine the real-time access duration of the demand user's device. If the access duration is greater than or equal to the estimated access duration, the computing power service is stopped for the demand user's device.
[0299] In one example, the device also includes:
[0300] The first processing unit 405 is configured to determine the deduction information based on the access duration and the unit price information of the target supplier's computing power service if it determines that it has received a first log sent by the user's device and a second log sent by the second device.
[0301] The second log is sent from the target supplier user's device to the second device; the first log is the computing power service usage during the process of the demand user's device accessing the target supplier user's device; the second log is the computing power service usage during the process of the target supplier user's device providing computing power services to the demand user's device; the computing power service usage includes the access duration.
[0302] The second processing unit 406 is used to transfer the value represented by the deduction information from the account information of the demand user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
[0303] In one example, the device also includes:
[0304] The third processing unit 407 is configured to, if it is determined that a first log sent by the user's device has been received and a second log sent by the second device has not been received, determine the deduction information based on the access duration in the first log and the unit price information of the target supplier's computing power service after a first preset time.
[0305] The fourth processing unit 408 is used to transfer the value represented by the deduction information from the account information of the demand user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
[0306] In one example, the device also includes:
[0307] The fifth processing unit 409 is used to determine the deduction information based on the access duration and the unit price information of the target supplier's computing power service after a first preset time if it is determined that the first log sent by the demand user's device has not been received and the second log sent by the second device has been received.
[0308] The sixth processing unit 410 is used to transfer the value represented by the deduction information from the account information of the demand user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
[0309] In one example, the device also includes:
[0310] The seventh processing unit 411 is configured to, if it is determined that the first log sent by the device of the demander has not been received and the second log sent by the second device has not been received, transfer the value represented by the fee information corresponding to the device of the target supplier from the account information of the second device to the account information of the target supplier after a second preset time.
[0311] In one example, the device also includes:
[0312] The eighth processing unit 412 is used to generate computing power service transaction process information, which includes access duration and total cost information for the transfer from the demand user's account to the target supply user's account.
[0313] In one example, the device also includes:
[0314] The first registration unit 413 is used to respond to a first registration request issued by the device of the demand user. If the demand user is determined to be a trusted user based on the first registration request, the account information of the demand user is established. The first registration request includes the identity information and reputation information of the demand user.
[0315] The second registration unit 414 is used to store the identity information, credit proof information, and account information of the demand user in the first blockchain corresponding to the first device; wherein the access permission of the first blockchain is limited to the first device; and to store the first information of the first device in the second blockchain; wherein the access permission of the second blockchain is limited to nodes belonging to the computing power service transaction matching platform; the first information indicates that the first device is an agent transaction node corresponding to the device of the demand user.
[0316] The third registration unit 415 is used to send the first registration success information back to the device of the user in need.
[0317] In one example, the device also includes:
[0318] The fourth registration unit 416 is used to send a second registration request to the third device; wherein the second registration request includes the location information of the first device, the computing power proof information of the first device, and the reputation proof of the first device; the third device is a proxy transaction node corresponding to the first device; wherein the third device is used to determine, based on the second registration request, that the first device is a trusted user and that the computing power of the first device meets the preset conditions, and then establish the account information of the first device.
[0319] The fifth registration unit 417 is used to store the account information of the first device in the third blockchain; wherein the access permission of the third blockchain is only allowed to the first device; and to store the location information, computing power proof information, and reputation proof of the first device in the fourth blockchain; wherein the access permission of the fourth blockchain is allowed to all nodes belonging to the computing power service transaction matching platform.
[0320] The sixth registration unit 418 is used to receive the second registration success information fed back by the third device.
[0321] The apparatus provided in this embodiment is similar in principle and technical effect to the methods provided in any of the foregoing embodiments, and will not be described again.
[0322] Figure 5 This application provides a schematic diagram of the structure of an electronic device, such as... Figure 5 As shown, the electronic device includes: a transmitter 501, a receiver 502, a memory 503, and a processor 504.
[0323] Memory 503 is used to store computer instructions.
[0324] The processor 504 is used to execute computer instructions stored in the memory 503 to implement the technical solution of any of the methods provided in the foregoing embodiments.
[0325] Receiver 502 is used to receive instructions and data sent by other devices.
[0326] Transmitter 501 is used to send instructions and data to external devices.
[0327] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. The device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
[0328] The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0329] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0330] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0331] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.
[0332] Multimedia component 808 includes a screen that provides an output interface between device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0333] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0334] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0335] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0336] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0337] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0338] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0339] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods provided in the above embodiments.
[0340] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the methods provided in the above embodiments.
[0341] This application also provides a processing system based on computing power transactions, the system including a first device, a second device, and at least one matching device as provided in the above embodiments.
[0342] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0343] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A processing method based on computing power trading, characterized in that, The method is applied to a first device, which is a proxy transaction node corresponding to the device of the demand-side user. The method includes: In response to a computing power service request issued by the user's device, the computing power service request is sent to multiple matching devices; wherein, the computing power service request is used to instruct the provision of computing power services to the user's device; the matching devices are used to obtain a first matching result, which is used to indicate the supplier user that matches the computing power service request; each first matching result is used to determine a second matching result, which is used to indicate the final target supplier user determined based on each first matching result; Obtain the second matching result; The second matching result is sent to the device of the demand-side user, and the computing power service request and the second matching result are sent to the device of the target supply-side user through the second device; wherein, the second device is a proxy transaction node corresponding to the device of the target supply-side user; In response to a first confirmation message sent by the demand-side user's device and a second confirmation message sent by the target supplier's device through the second device, the initial computing power cost information of the demand-side user is determined; wherein, the first confirmation message indicates that the demand-side user's device agrees to the target supplier's device providing computing power services, and the second confirmation message indicates that the target supplier's device agrees to provide computing power services to the demand-side user's device; the target supplier's device is used to provide computing power services to the demand-side user's device based on the computing power service request. In response to a first registration request issued by the user's device, if the user is determined to be a trusted user based on the first registration request, then the user's account information is established; wherein, the first registration request includes the user's identity information and the user's reputation verification information. The identity information, credit verification information, and account information of the demand-side user are stored in a first blockchain corresponding to the first device; wherein the access permission of the first blockchain is limited to the first device; the first information of the first device is stored in a second blockchain; wherein the access permission of the second blockchain is limited to nodes belonging to the computing power service transaction matching platform; the first information indicates that the first device is an agent transaction node corresponding to the device of the demand-side user; The first registration success message is sent back to the device of the user who made the request.
2. The method according to claim 1, characterized in that, In response to a computing power service request issued by the user's device, the computing power service request is sent to multiple matching devices, including: In response to a computing power service request issued by the user's device, multiple matching devices are determined from a preset node list; wherein, the preset node list includes at least one matching device; the matching device among the multiple matching devices is an idle device, or, the matching device among the multiple matching devices is a device whose current business volume is less than a preset business volume threshold; The computing power service request is sent to the multiple matching party devices.
3. The method according to claim 1, characterized in that, The computing power service request includes the service type of the computing power service and the estimated access duration of the computing power service; the supplier user has computing power service information, which includes the service type of the computing power service, the capability information of the computing power service, and the unit price information of the computing power service; The supplier user indicated by the first matching result is the supplier user whose computing power service business type matches the computing power service request, whose computing power service capability information is optimal, and whose computing power service unit price information is the lowest; the first matching result includes total cost information; The total cost information includes cost information corresponding to the first device, cost information corresponding to the second device, cost information corresponding to each of the multiple matching devices, and cost information corresponding to the target supplier user's device.
4. The method according to claim 1, characterized in that, Obtaining the second matching result includes: The system receives the second matching result sent by the matching device that is closest to the first device among the plurality of matching devices; wherein the second matching result is obtained by the closest matching device based on each of the first matching results.
5. The method according to claim 1, characterized in that, The second matching result includes the target supplier user and the total cost information corresponding to the target supplier user; the total cost information includes the cost information corresponding to the first device, the cost information corresponding to the second device, the cost information corresponding to each of the multiple matching devices, and the cost information corresponding to the device of the target supplier user.
6. The method according to claim 1, characterized in that, In response to a first confirmation message sent by the demand-side user's device and a second confirmation message sent by the target supplier's device through the second device, the initial computing power cost information of the demand-side user is determined, including: In response to the first confirmation message sent by the device of the demand-side user and the second confirmation message sent by the device of the target supplier user through the second device, if it is determined that the account information of the demand-side user meets the total cost information corresponding to the target supplier user, then the total cost information corresponding to the target supplier user is determined as the initial computing power cost information of the demand-side user, and the initial computing power cost information in the account information of the demand-side user is frozen.
7. The method according to claim 6, characterized in that, The method further includes: In response to the first confirmation information sent by the device of the demand-side user and the second confirmation information sent by the device of the target supplier user through the second device, if it is determined that the account information of the demand-side user does not meet the total cost information corresponding to the target supplier user, then the difference between the total cost information corresponding to the target supplier user and the account information of the demand-side user is determined, and the difference is sent to the device of the demand-side user. When it is determined that the account information of the demand-side user meets the total cost information corresponding to the target supply-side user, the total cost information corresponding to the target supply-side user is determined as the initial computing power cost information of the demand-side user, and the initial computing power cost information in the account information of the demand-side user is frozen.
8. The method according to claim 1, characterized in that, The computing power service request includes the estimated access duration of the computing power service; the estimated access duration of the computing power service is used by the target supplier user's device to determine the real-time access duration of the demand user's device, and if it is greater than or equal to the estimated access duration, the computing power service is stopped for the demand user's device.
9. The method according to claim 1, characterized in that, The method further includes: If it is determined that the first log sent by the device of the demander is received, and the second log sent by the second device is received, then the deduction information is determined based on the access duration in the first log and the unit price information of the computing power service of the target supplier. Wherein, the second log is sent by the target supplier user's device to the second device; the first log is the computing power service usage during the process of the demand user's device accessing the target supplier user's device; the second log is the computing power service usage during the process of the target supplier user's device providing computing power services to the demand user's device; the computing power service usage includes the access duration. Based on the deduction information, the value represented by the deduction information is transferred from the account information of the demand-side user to the account information of the second device; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
10. The method according to claim 9, characterized in that, The method further includes: If it is determined that the first log sent by the device of the demander has been received, but the second log sent by the second device has not been received, then after a first preset time, the deduction information is determined based on the access duration in the first log and the unit price information of the computing power service of the target supplier. Based on the deduction information, the value represented by the deduction information is transferred from the account information of the demand-side user to the account information of the second device; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
11. The method according to claim 9, characterized in that, The method further includes: If it is determined that the first log sent by the user's device is not received, but the second log sent by the second device is received, then after a first preset time, the deduction information is determined based on the access duration in the second log and the unit price information of the target supplier's computing power service. Based on the deduction information, the value represented by the deduction information is transferred from the account information of the demand-side user to the account information of the second device; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
12. The method according to claim 9, characterized in that, The method further includes: If it is determined that the first log sent by the demand user's device has not been received, and the second log sent by the second device has not been received, then after a second preset time, the value represented by the fee information corresponding to the target supplier's device will be transferred from the account information of the second device to the account information of the target supplier.
13. The method according to claim 9, characterized in that, The method further includes: Generate computing power service transaction process information, which includes access duration and total cost information for the transfer from the demand-side user's account to the target supply-side user's account.
14. The method according to any one of claims 1-13, characterized in that, The method further includes: A second registration request is sent to a third device; wherein the second registration request includes the location information of the first device, the computing power proof information of the first device, and the reputation proof of the first device; the third device is a proxy transaction node corresponding to the first device; wherein the third device is used to determine, based on the second registration request, that the first device is a trusted user and that the computing power of the first device meets preset conditions, and then establish the account information of the first device; The account information of the first device is stored in a third blockchain; wherein the access permission of the third blockchain is only allowed to the first device; the location information, computing power proof information, and reputation proof of the first device are stored in a fourth blockchain; wherein the access permission of the fourth blockchain is allowed to all nodes belonging to the computing power service transaction matching platform. Receive the second registration success information from the third device.
15. A processing device based on computing power trading, characterized in that, The device is applied to a first device, which is a proxy transaction node corresponding to the device of the demand-side user. The device includes: A first sending unit is configured to respond to a computing power service request issued by the device of the demand-side user and send the computing power service request to multiple matching-side devices; wherein the computing power service request is used to instruct the provision of computing power services to the device of the demand-side user; the matching-side devices are configured to obtain a first matching result, which is used to indicate the supplier user that matches the computing power service request; each first matching result is used to determine a second matching result, which is used to indicate the final target supplier user determined based on each first matching result; The acquisition unit is used to acquire the second matching result; The second sending unit is used to send the second matching result to the device of the demand user, and to send the computing power service request and the second matching result to the device of the target supplier user through the second device; wherein, the second device is a proxy transaction node corresponding to the device of the target supplier user; A determining unit is configured to determine the initial computing power cost information of the demand-side user in response to a first confirmation message sent by the device of the demand-side user and a second confirmation message sent by the device of the target supplier user through the second device; wherein, the first confirmation message indicates that the device of the demand-side user agrees to the device of the target supplier user providing computing power services, and the second confirmation message indicates that the device of the target supplier user agrees to provide computing power services to the device of the demand-side user; the device of the target supplier user is configured to provide computing power services to the device of the demand-side user based on the computing power service request. The first registration unit is configured to respond to a first registration request issued by the device of the demand user, and if the demand user is determined to be a trusted user based on the first registration request, then establish the account information of the demand user; wherein, the first registration request includes the identity information and reputation verification information of the demand user; The second registration unit is used to store the identity information, credit verification information, and account information of the demand-side user in a first blockchain corresponding to the first device; wherein the access permission of the first blockchain is limited to the first device; and to store the first information of the first device in a second blockchain; wherein the access permission of the second blockchain is limited to nodes belonging to the computing power service transaction matching platform; the first information indicates that the first device is an agent transaction node corresponding to the device of the demand-side user. The second registration unit is used to send the first registration success information back to the device of the user in need.
16. The apparatus according to claim 15, characterized in that, The first transmitting unit includes: The first determining module is used to determine the plurality of matching devices from a preset node list in response to a computing power service request issued by the device of the demanding user; wherein the preset node list includes at least one matching device; the matching device among the plurality of matching devices is an idle device, or the matching device among the plurality of matching devices is a device whose current business volume is less than a preset business volume threshold; The sending module is used to send the computing power service request to the multiple matching party devices.
17. The apparatus according to claim 15, characterized in that, The computing power service request includes the service type of the computing power service and the estimated access duration of the computing power service; the supplier user has computing power service information, which includes the service type of the computing power service, the capability information of the computing power service, and the unit price information of the computing power service; The supplier user indicated by the first matching result is the supplier user whose computing power service business type matches the computing power service request, whose computing power service capability information is optimal, and whose computing power service unit price information is the lowest; the first matching result includes total cost information; The total cost information includes cost information corresponding to the first device, cost information corresponding to the second device, cost information corresponding to each of the multiple matching devices, and cost information corresponding to the target supplier user's device.
18. The apparatus according to claim 15, characterized in that, The acquisition unit is specifically used for: The system receives the second matching result sent by the matching device that is closest to the first device among the plurality of matching devices; wherein the second matching result is obtained by the closest matching device based on each of the first matching results.
19. The apparatus according to claim 15, characterized in that, The second matching result includes the target supplier user and the total cost information corresponding to the target supplier user; the total cost information includes the cost information corresponding to the first device, the cost information corresponding to the second device, the cost information corresponding to each of the multiple matching devices, and the cost information corresponding to the device of the target supplier user.
20. The apparatus according to claim 15, characterized in that, The determining unit includes: The second determining module is used to respond to the first confirmation information sent by the device of the demand user and the second confirmation information sent by the device of the target supplier user through the second device. If it is determined that the account information of the demand user meets the total cost information corresponding to the target supplier user, then the total cost information corresponding to the target supplier user is determined as the initial computing power cost information of the demand user, and the initial computing power cost information in the account information of the demand user is frozen.
21. The apparatus according to claim 20, characterized in that, The determining unit further includes: The third determining module is used to respond to the first confirmation information sent by the device of the demand user and the second confirmation information sent by the device of the target supplier user through the second device. If it is determined that the account information of the demand user does not meet the total cost information corresponding to the target supplier user, then the difference between the total cost information corresponding to the target supplier user and the account information of the demand user is determined, and the difference is sent to the device of the demand user. The fourth determining module is used to determine the total cost information corresponding to the target supplier user as the initial computing power cost information of the demand user when the account information of the demand user meets the total cost information corresponding to the target supplier user, and to freeze the initial computing power cost information in the account information of the demand user.
22. The apparatus according to claim 15, characterized in that, The computing power service request includes the estimated access duration of the computing power service; the estimated access duration of the computing power service is used by the target supplier user's device to determine the real-time access duration of the demand user's device, and if it is greater than or equal to the estimated access duration, the computing power service is stopped for the demand user's device.
23. The apparatus according to claim 15, characterized in that, The device further includes: The first processing unit is configured to determine the deduction information based on the access duration in the first log and the unit price information of the computing power service of the target supplier if it is determined that a first log sent by the device of the demand user has been received and a second log sent by the second device has been received. Wherein, the second log is sent by the target supplier user's device to the second device; the first log is the computing power service usage during the process of the demand user's device accessing the target supplier user's device; the second log is the computing power service usage during the process of the target supplier user's device providing computing power services to the demand user's device; the computing power service usage includes the access duration. The second processing unit is used to transfer the value represented by the deduction information from the account information of the demand-side user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
24. The apparatus according to claim 23, characterized in that, The device further includes: The third processing unit is configured to, if it is determined that the first log sent by the device of the demander has been received and the second log sent by the second device has not been received, determine the deduction information based on the access duration in the first log and the unit price information of the computing power service of the target supplier after a first preset time. The fourth processing unit is used to transfer the value represented by the deduction information from the account information of the demand-side user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
25. The apparatus according to claim 23, characterized in that, The device further includes: The fifth processing unit is configured to, if it is determined that the first log sent by the device of the demander has not been received, and the second log sent by the second device has been received, determine the deduction information after a first preset time, based on the access duration in the second log and the unit price information of the computing power service of the target supplier. The sixth processing unit is used to transfer the value represented by the deduction information from the account information of the demand-side user to the account information of the second device according to the deduction information; the second device is used to transfer the value represented by the deduction information from the account information of the second device to the account information of the target supply-side user.
26. The apparatus according to claim 23, characterized in that, The device further includes: The seventh processing unit is configured to, if it is determined that the first log sent by the device of the demander has not been received and the second log sent by the second device has not been received, transfer the value represented by the fee information corresponding to the device of the target supplier from the account information of the second device to the account information of the target supplier after a second preset time.
27. The apparatus according to claim 23, characterized in that, The device further includes: The eighth processing unit is used to generate computing power service transaction process information, wherein the computing power service transaction process information includes access duration and total cost information for the transfer from the demand-side user's account to the target supply-side user's account.
28. The apparatus according to any one of claims 15-27, characterized in that, The device further includes: The fourth registration unit is used to send a second registration request to a third device; wherein the second registration request includes the location information of the first device, the computing power proof information of the first device, and the reputation proof of the first device; the third device is a proxy transaction node corresponding to the first device; wherein the third device is used to determine, based on the second registration request, that the first device is a trusted user and that the computing power of the first device meets preset conditions, and then establish the account information of the first device; The fifth registration unit is used to store the account information of the first device in the third blockchain; wherein the access permission of the third blockchain is only allowed to the first device; and to store the location information, computing power proof information, and reputation proof of the first device in the fourth blockchain; wherein the access permission of the fourth blockchain is allowed to all nodes belonging to the computing power service transaction matching platform. The sixth registration unit is used to receive the second registration success information fed back by the third device.
29. A first device, comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-14.
30. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-14.
31. A computer program product comprising a computer program that, when executed by a processor, implements the method of any one of claims 1-14.
32. A processing system based on computing power trading, characterized in that, The system includes the first device, the second device, and at least one matching device as described in claim 29.
Citation Information
Patent Citations
Communication method and device for blockchain agent node
CN107332826A
Computing power transaction method and system
CN115760402A