CN116647323A - Processing method, device and equipment based on calculation force transaction - Google Patents

Processing method, device and equipment based on calculation force transaction Download PDF

Info

Publication number
CN116647323A
CN116647323A CN202310629552.8A CN202310629552A CN116647323A CN 116647323 A CN116647323 A CN 116647323A CN 202310629552 A CN202310629552 A CN 202310629552A CN 116647323 A CN116647323 A CN 116647323A
Authority
CN
China
Prior art keywords
user
information
equipment
party
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310629552.8A
Other languages
Chinese (zh)
Inventor
蒋成
龙岳
许翀
季玲玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310629552.8A priority Critical patent/CN116647323A/en
Publication of CN116647323A publication Critical patent/CN116647323A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a processing method, a processing device and processing equipment based on a computing power transaction. The method is applied to first equipment, wherein the first equipment is an agent transaction node corresponding to equipment of a user of a demand party, and the method comprises the following steps: responding to a computing power service request sent by equipment of the user of the demand party, and sending the computing power service request to a plurality of matching party equipment; obtaining a second matching result; transmitting the second matching result to the equipment of the user of the demand party, and transmitting the computing service request and the second matching result to the equipment of the user of the target supply party through the second equipment; in response to the first confirmation information sent by the device of the consumer user and the second confirmation information sent by the device of the target supplier user through the second device, initial calculation power charge information of the consumer user is determined. The method of the application ensures that the user of the demand party and the user of the supply party reach trust, greatly reduces the transaction time and protects the safety and privacy of data.

Description

Processing method, device and equipment based on calculation force transaction
Technical Field
The present application relates to big data technology and power transaction technology, and in particular, to a processing method, apparatus and device based on power transaction.
Background
With the development of big data technology, big data center clusters are continuously deployed, and the calculation transaction can be completed based on the big data center clusters. The power transaction refers to calling equipment of other manufacturers to finish power service processing.
In the prior art, the service processing process of the power transaction can be completed through the nodes in the blockchain. However, in the prior art, because the service processing process of the computing power transaction is completed based on each node in the blockchain, and the blockchain needs to be agreed on the whole network, all nodes have the authority of reading the data related to the computing power transaction service, so that the security and privacy of the data are dangerous; and, the cost is high due to the need for each node in the blockchain to participate in the process of the computational power service.
Disclosure of Invention
The application provides a processing method, a processing device and processing equipment based on a power transaction, which are used for solving the problems of high cost and dangerous data security and privacy in the power service process.
In a first aspect, the present application provides a processing method based on a power transaction, where the method is applied to a first device, and the first device is a proxy transaction node corresponding to a device of a user of a demand party, and the method includes:
Responding to a computing power service request sent by equipment of the user of the demand party, and sending the computing power service request to a plurality of matching party equipment; wherein the power calculation service request is used for indicating to provide power calculation service for equipment of a user of a demand party; the matching party device is used for obtaining a first matching result, and the first matching result is used for indicating a supplier user matched with the computing power service request; each first matching result is used for determining a second matching result, and the second matching result is used for indicating a final target supplier user determined based on each first matching result;
acquiring the second matching result;
transmitting the second matching result to the equipment of the user of the requiring party, and transmitting the computing service request and the second matching result to the equipment of the user of the target supplying party through the second equipment; wherein the second device is a proxy transaction node corresponding to the target donor user's device;
determining initial calculation fee information of the demand side user in response to first confirmation information sent by the device of the demand side user and second confirmation information sent by the device of the target supply side user through the second device; wherein the first confirmation information characterizes the equipment of the user of the demand party agrees to provide the power calculation service for the equipment of the user of the target supply party, and the second confirmation information characterizes the equipment of the user of the target supply party agrees to provide the power calculation service for the equipment of the user of the demand party; the target provider user's device is configured to provide a computing power service to the consumer user's device based on the computing power service request.
In a possible implementation, in response to a computing power service request sent by a device of the requiring party user, sending the computing power service request to a plurality of matching party devices, including:
responding to a computing power service request sent by equipment of the user of the demand party, and determining a plurality of matching party equipment from a preset node list; wherein the preset node list comprises at least one matching party device; the matching party equipment in the matching party equipment is idle equipment or the matching party equipment in the matching party equipment is equipment with current traffic less than a preset traffic threshold;
and sending the computing power service request to the plurality of matching formula devices.
In a possible implementation manner, the service type of the computing service and the predicted access time length of the computing service are included in the computing service request; the user of the supplier has the information of the power calculation service, wherein the information of the power calculation service comprises the business type of the power calculation service, the capability information of the power calculation service and the unit price expense information of the power calculation service;
the service type of the service provider indicated by the first matching result is matched with the service request of the service provider, the capability information of the service provider is optimal, and the unit price cost information of the service provider is minimum; the first matching result comprises 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 plurality of matching party devices, and cost information corresponding to the device of the target provider user.
In a possible implementation manner, obtaining the second matching result includes:
receiving the second matching result sent by a matching party device closest to the first device in the matching party devices; the second matching result is obtained by matching Fang Shebei closest to the first matching result.
In a possible implementation manner, the second matching result includes total cost information corresponding to the target supplier user and the target supplier user; the total cost information comprises cost information corresponding to the first equipment, cost information corresponding to the second equipment, cost information corresponding to each matching party equipment in the plurality of matching party equipment and cost information corresponding to equipment of the target supplier user;
in a possible implementation, determining the initial tariff information of the demand side user in response to the first acknowledgement information sent by the device of the demand side user and the second acknowledgement information sent by the device of the target supply side user through the second device includes:
And responding to the first confirmation information sent by the equipment of the demand side user and the second confirmation information sent by the equipment of the target supply side user through the second equipment, if the account information of the demand side user is determined to meet the total cost information corresponding to the target supply side user, determining the total cost information corresponding to the target supply side user as the initial calculation cost information of the demand side user, and freezing the initial calculation cost information in the account information of the demand side user.
In a possible implementation, the method further includes:
responding to first confirmation information sent by the equipment of the demand side user and second confirmation information sent by the equipment of the target supply side user through the second equipment, if the account information of the demand side user is determined not to meet the total cost information corresponding to the target supply side user, determining a difference value between the total cost information corresponding to the target supply side user and the account information of the demand side user, and sending the difference value to the equipment of the demand side user;
when the account information of the user of the demand party is determined to meet the total cost information corresponding to the target supplier user, determining the total cost information corresponding to the target supplier user as the initial calculation cost information of the user of the demand party, and freezing the initial calculation cost information in the account information of the user of the demand party.
In a possible implementation, the computing power service request includes an estimated access time length of the computing power service; and the predicted access time length of the force calculation service is used for determining the real-time access time length of the equipment of the user of the demand party by the equipment of the target supplier, and when the predicted access time length is greater than or equal to the predicted access time length, the force calculation service is stopped being provided for the equipment of the user of the demand party.
In a possible implementation, the method further includes:
if the first log sent by the equipment of the user of the demand party is received and the second log sent by the second equipment is received, determining fee deduction information according to the access time length in the first log and the unit price fee information of the power calculation service of the target supplier;
the second log is sent to the second device by the device of the target supplier user; the first log is the service use condition of the computing power in the process that the equipment of the user of the demand party accesses the equipment of the user of the target supply party, and the second log is the service use condition of the computing power in the process that the equipment of the user of the target supply party provides the computing power service for the equipment of the user of the demand party; the service use condition of the computing power comprises access time length;
According to the deduction information, transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
In a possible implementation, the method further includes:
if the first log sent by the equipment of the user of the demand party is received and the second log sent by the second equipment is not received, after a first preset time, determining fee deduction information according to the access duration in the first log and the unit price information of the power calculation service of the target supplier;
according to the deduction information, transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
In a possible implementation, the method further includes:
If the first log sent by the equipment of the user of the demand party is not received and the second log sent by the second equipment is received, after a first preset time, determining fee deduction information according to the access duration in the second log and the unit price information of the power calculation service of the target supplier;
according to the deduction information, transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
In a possible implementation, the method further includes:
and if the fact that the first log sent by the equipment of the user of the demand party is not received and the second log sent by the second equipment is not received is determined, after a second preset time, transferring the numerical value represented by the cost information corresponding to the equipment of the user of the target provider from the account information of the second equipment to the account information of the user of the target provider.
In a possible implementation, the method further includes:
And generating the transaction process information of the power service, wherein the transaction process information of the power service comprises the access time length and the total fee information of the account transfer of the user of the demand party to the account of the user of the target supply party.
In a possible implementation, the method further includes:
responding to a first registration request sent by the equipment of the user of the demand party, and if the user of the demand party is determined to be a trusted user based on the first registration request, establishing account information of the user of the demand party; the first registration request comprises identity information of a user of a demand party and reputation proving information of the user of the demand party;
storing the identity information of the user of the requiring party, the credit proving information of the user of the requiring party and the account information of the user of the requiring party into a first blockchain corresponding to the first equipment; the access authority of the first blockchain is that only the first equipment is allowed to access; storing first information of the first device into a second blockchain; the access authority of the second blockchain is accessible to nodes allowed to be attributed to the computing power service transaction matching platform; the method comprises the steps of carrying out a first treatment on the surface of the The first information characterizes the first equipment as a proxy transaction node corresponding to the equipment of the user of the demand party;
And first registration success information fed back to the equipment of the user of the demand party.
In a possible implementation, the method further includes:
sending a second registration request to the third device; the second registration request comprises the position information of the first equipment, the computing capability proving information of the first equipment and the reputation proving of the first equipment; the third device is a proxy transaction node corresponding to the first device; the third device is configured to establish account information of the first device if the third device determines that the first device is a trusted user based on the second registration request and the computing capability of the first device meets a preset condition;
storing account information of the first device into a third blockchain; wherein the access rights of the third blockchain only allow access by the first device; storing the location information of the first device, the computing power attestation information of the first device, and the reputation attestation of the first device into a fourth blockchain; the access authority of the fourth blockchain is accessible to nodes allowed to be attributed to the power-of-computation service transaction matching platform;
And receiving second registration success information fed back by the third equipment.
In a second aspect, the present application provides a processing apparatus based on a power transaction, the apparatus being applied to a first device, the first device being a proxy transaction node corresponding to a device of a consumer user, the apparatus comprising:
a first sending unit, configured to respond to a computing power service request sent by an apparatus of the user of the demander, and send the computing power service request to a plurality of apparatuses of the matcher; wherein the power calculation service request is used for indicating to provide power calculation service for equipment of a user of a demand party; the matching party device is used for obtaining a first matching result, and the first matching result is used for indicating a supplier user matched with the computing power service request; each first matching result is used for determining a second matching result, and the second matching result is used for indicating a final target supplier user determined based on each first matching result;
an obtaining unit, configured to obtain the second matching result;
a second sending unit, configured to send the second matching result to the device of the user of the requiring party, and send the computing service request and the second matching result to the device of the user of the target provider through a second device; wherein the second device is a proxy transaction node corresponding to the target donor user's device;
A determining unit configured to determine initial calculation fee information of the demand side user in response to first confirmation information transmitted by the device of the demand side user and second confirmation information transmitted by the device of the target supply side user through the second device; wherein the first confirmation information characterizes the equipment of the user of the demand party agrees to provide the power calculation service for the equipment of the user of the target supply party, and the second confirmation information characterizes the equipment of the user of the target supply party agrees to provide the power calculation service for the equipment of the user of the demand party; the target provider user's device is configured to provide a computing power service to the consumer user's device based on the computing power service request.
In a possible implementation manner, the first sending unit includes:
the first determining module is used for responding to a power calculation service request sent by the equipment of the user of the requiring party and determining the plurality of matching party equipment from a preset node list; wherein the preset node list comprises at least one matching party device; the matching party equipment in the matching party equipment is idle equipment or the matching party equipment in the matching party equipment is equipment with current traffic less than a preset traffic threshold;
And the sending module is used for sending the power calculation service request to the plurality of matching formula equipment.
In a possible implementation manner, the service type of the computing service and the predicted access time length of the computing service are included in the computing service request; the user of the supplier has the information of the power calculation service, wherein the information of the power calculation service comprises the business type of the power calculation service, the capability information of the power calculation service and the unit price expense information of the power calculation service;
the service type of the service provider indicated by the first matching result is matched with the service request of the service provider, the capability information of the service provider is optimal, and the unit price cost information of the service provider is minimum; the first matching result comprises 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 plurality of matching party devices, and cost information corresponding to the device of the target provider user.
In a possible implementation manner, the acquiring unit is specifically configured to:
receiving the second matching result sent by a matching party device closest to the first device in the matching party devices; the second matching result is obtained by matching Fang Shebei closest to the first matching result.
In a possible implementation manner, the second matching result includes total cost information corresponding to the target supplier user and the target supplier user; the total cost information comprises cost information corresponding to the first equipment, cost information corresponding to the second equipment, cost information corresponding to each matching party equipment in the plurality of matching party equipment and cost information corresponding to equipment of the target supplier user;
in a possible implementation, the determining unit includes:
and the second determining module is used for responding to the first confirmation information sent by the equipment of the demand side user and the second confirmation information sent by the equipment of the target supply side user through the second equipment, and if the account information of the demand side user is determined to meet the total cost information corresponding to the target supply side user, determining the total cost information corresponding to the target supply side user as the initial calculation cost information of the demand side user, and freezing the initial calculation cost information in the account information of the demand side user.
In a possible implementation manner, the determining unit further includes:
A third determining module, configured to determine, in response to the first acknowledgement information sent by the device of the consumer user and the second acknowledgement information sent by the device of the target supplier user through the second device, a difference between the total cost information corresponding to the target supplier user and the account information of the consumer user if it is determined that the account information of the consumer user does not satisfy the total cost information corresponding to the target supplier user, and send the difference to the device of the consumer user;
and a fourth determining module, configured to determine, when it is determined that the account information of the consumer user meets the total cost information corresponding to the target supplier user, that the total cost information corresponding to the target supplier user is initial calculation cost information of the consumer user, and freeze the initial calculation cost information in the account information of the consumer user.
In a possible implementation, the computing power service request includes an estimated access time length of the computing power service; and the predicted access time length of the force calculation service is used for determining the real-time access time length of the equipment of the user of the demand party by the equipment of the target supplier, and when the predicted access time length is greater than or equal to the predicted access time length, the force calculation service is stopped being provided for the equipment of the user of the demand party.
In a possible implementation manner, the apparatus further includes:
the first processing unit is used for determining fee deduction information according to the access time length in the first log and the unit price fee information of the power calculation service of the target provider if the first log sent by the equipment of the user of the demand party is determined to be received and the second log sent by the second equipment is received;
the second log is sent to the second device by the device of the target supplier user; the first log is the service use condition of the computing power in the process that the equipment of the user of the demand party accesses the equipment of the user of the target supply party, and the second log is the service use condition of the computing power in the process that the equipment of the user of the target supply party provides the computing power service for the equipment of the user of the demand party; the service use condition of the computing power comprises access time length;
the second processing unit is used for transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment according to the deduction information; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
In a possible implementation manner, the apparatus further includes:
a third processing unit, configured to determine deduction information according to an access duration in the first log and unit price information of the power calculation service of the target provider after a first preset time if it is determined that the first log sent by the device of the consumer user is received and the second log sent by the second device is not received;
a fourth processing unit, configured to transfer, according to the deduction information, a numerical value represented by the deduction information from account information of the user of the requiring party to account information of the second device; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
In a possible implementation manner, the apparatus further includes:
a fifth processing unit, configured to determine deduction information according to an access duration in a first preset time and unit price information of the power calculation service of the target provider after the first preset time if it is determined that the first log sent by the device of the user of the consumer is not received and the second log sent by the second device is received;
A sixth processing unit, configured to transfer, according to the deduction information, a numerical value represented by the deduction information from account information of the customer user to account information of the second device; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
In a possible implementation manner, the apparatus further includes:
and a seventh processing unit, configured to transfer, after a second preset time, a value represented by the fee information corresponding to the device of the target donor user from account information of the second device to account information of the target donor user if it is determined that the first log sent by the device of the consumer user is not received and the second log sent by the second device is not received.
In a possible implementation manner, the apparatus further includes:
and the eighth processing unit is used for generating the transaction process information of the power service, wherein the transaction process information of the power service comprises the access time length and the total cost information of the account transfer of the user of the demand party to the account of the user of the target provider.
In a possible implementation manner, the apparatus further includes:
the first registration unit is used for responding to a first registration request sent by the equipment of the user of the requiring party, and if the user of the requiring party is determined to be a trusted user based on the first registration request, account information of the user of the requiring party is established; the first registration request comprises identity information of a user of a demand party and reputation proving information of the user of the demand party;
the second registration unit is used for storing the identity information of the user of the requiring party, the credit proving information of the user of the requiring party and the account information of the user of the requiring party into a first blockchain corresponding to the first equipment; the access authority of the first blockchain is that only the first equipment is allowed to access; storing first information of the first device into a second blockchain; the access authority of the second blockchain is accessible to nodes allowed to be attributed to the computing power service transaction matching platform; the first information characterizes the first equipment as a proxy transaction node corresponding to the equipment of the user of the demand party;
and the third registration unit is used for feeding back the first registration success information to the equipment of the user of the requiring party.
In a possible implementation manner, the apparatus further includes:
a fourth registration unit, configured to send a second registration request to the third device; the second registration request comprises the position information of the first equipment, the computing capability proving information of the first equipment and the reputation proving of the first equipment; the third device is a proxy transaction node corresponding to the first device; the third device is configured to establish account information of the first device if the third device determines that the first device is a trusted user based on the second registration request and the computing capability of the first device meets a preset condition;
a fifth registration unit, configured to store account information of the first device into a third blockchain; wherein the access rights of the third blockchain only allow access by the first device; storing the location information of the first device, the computing power attestation information of the first device, and the reputation attestation of the first device into a fourth blockchain; the access authority of the fourth blockchain is accessible to nodes allowed to be attributed to the power-of-computation service transaction matching platform;
and the sixth registration unit is used for receiving the second registration success information fed back by the third equipment.
In a third aspect, an embodiment of the present application provides a first apparatus, including: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method provided in the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having stored therein computer-executable instructions, which when executed by a processor, are configured to implement the method provided in the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method provided in the first aspect.
In a sixth aspect, an embodiment of the present application provides a processing system based on a computing power transaction, the system comprising a first device as described in the first aspect, a second device, and at least one matcher device.
The application provides a processing method, a device and equipment based on an account force transaction, equipment of a user of a demand party sends an account force service request to an agent transaction node corresponding to the equipment of the user of the demand party, the agent transaction node corresponding to the equipment of the user of the demand party calculates a final target supplier user matched with the account force service request through a plurality of selected matching equipment, the result is sent to the equipment of the user of the demand party, the result and the account force service request are sent to the equipment of the user of the target supplier through the agent transaction node corresponding to the equipment of the user of the target supplier, the user of the demand party and the user of the supplier agree to the account force service transaction, the agent transaction node corresponding to the equipment of the user of the demand party determines initial account force cost information of the user of the demand party, and the equipment of the user of the target supplier provides the account force service for the equipment of the user of the demand party based on the account force service request. In the process of the power calculation service transaction node, only partial transaction nodes such as an agent transaction node corresponding to the equipment of the user of the demand party, an agent transaction node corresponding to the equipment of the user of the target supply party, a plurality of matched party equipment and the like are used, so that the transaction time is greatly reduced, and meanwhile, the safety and the privacy of data are also protected.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart of a processing method based on a power transaction according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for processing a transaction based on computing power according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a processing device based on a transaction of computing power according to an embodiment of the present application;
FIG. 4 is a schematic illustration of another processing device for computing-based transactions according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a first device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device, according to an example embodiment.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
With the development of big data technology, big data center clusters are continuously deployed, and the calculation transaction can be completed based on the big data center clusters. The power transaction refers to calling equipment of other manufacturers to finish power service processing.
Several types of existing power trading systems are as follows:
the first category, the power buyer, negotiates a power transaction with the power seller. Each transaction of the power calculation requires the power calculation buyer and the power calculation seller to simultaneously negotiate online, and the power calculation buyer and the power calculation seller are not enough automated and are too clumsy under the current situation of network digitization.
A second type of automated computing power transaction. The power calculating seller communicates the power calculating to the power calculating transaction center for unified management, and the power calculating transaction center is used for unified scheduling of the power calculating transaction. Such fully-centralized power transactions may deceive the customer such that the customer may not be fully trusted by the power transaction center.
The third class, using blockchain approach, is decentralised power transactions. The computational effort transaction can lead the client to trust, but has low efficiency, because the blockchain needs to reach consensus through the whole network, the transaction cost can be gradually increased along with the continuous increase of the nodes; all nodes have the data reading authority, and the security and privacy of the data are challenged to a certain degree.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
FIG. 1 is a flow chart of a processing method based on a power transaction according to an embodiment of the present application; as shown in fig. 1, the method in this embodiment is applied to a first device, where the first device is a proxy transaction node corresponding to a device of a user of a demand party, and the method may include:
s101, responding to a power calculation service request sent by equipment of a user of a demand party, and sending the power calculation service request to a plurality of pieces of matching party equipment; wherein the power calculation service request is used for indicating to provide power calculation service for equipment of the user of the demand party; the matching party device is used for obtaining a first matching result, and the first matching result is used for indicating a supplier user matched with the computing power service request; each first matching result is used for determining a second matching result, and the second matching result is used for indicating a final target supplier user determined based on each first matching result.
The execution body of the embodiment of the present application may be, for example, an electronic device, or a component-based product configuration apparatus or device, or other apparatus or device capable of executing the solution of the present embodiment, which is not limited thereto.
In order to complete the power calculation service, the application provides a processing system based on the power calculation transaction, which comprises a first device, a second device and at least one matching party device. The first device is a proxy transaction node corresponding to the device of the user of the demand party, and the second device is a proxy transaction node corresponding to the device of the user of the supply party.
Wherein the device of the consumer and the device of the supplier user may also need to participate in the process of the computing service. Wherein at least one of the matcher devices is part of the nodes of the respective nodes of the power service transaction system. The first device, the second device are also nodes of the respective nodes of the power service transaction system. The power-calculating service transaction system builds a service bridge between a demand party and a supply party of power-calculating service transaction, and simultaneously, completes settlement and recording of the power-calculating service transaction. The computing power service transaction system includes at least one computing power service transaction node. The system is a divide-and-conquer management system completed by different transaction nodes, each transaction node in the system controls own functions and services to complete a de-centralized transaction process of matching the transaction of the transaction. Specifically, each power service transaction node in the system can only see own information, can only manage own information, can not see information of other nodes and can not manage information of other nodes, but all power service transaction nodes follow the same agreement by using the same strategy, and jointly treat and complete the matching transaction process of power service transaction.
The device of the user of the demand party generates a request for the calculation power service when the device of the user of the demand party needs to request the calculation power service. Wherein the power service request characterizes the request to provide power service to the device of the consumer user. In one example, a user operates a device of a consumer user, and in turn enters a request for a power calculation service into the device of the consumer user. Or in another example, in the process of performing service processing by the device of the user of the demand party, when the device of the user of the demand party automatically determines that the power calculation service is required according to the self demand, the device of the user of the demand party automatically generates the power calculation service request.
In the application, the device of the user of the demand party corresponds to a proxy transaction node, and the proxy transaction node is one node in each node in the power service transaction system. Wherein, the proxy transaction node corresponding to the device of the user of the demand party can be called a first device.
The device of the consumer user sends a request for a power calculation service to the first device.
After receiving the power service request, the first device selects a plurality of nodes from the nodes of the power service transaction system as a plurality of matching party devices.
The first device sends a request for a computing power service to a plurality of matcher devices.
Each matching party device receiving the computing power service request calculates to obtain a respective first matching result, wherein the first matching result characterizes a donor user matched with the computing power service request.
And obtaining a second matching result based on each first matching result. Wherein the second match result characterizes a final target supplier user that matches the computational power service request. In one example, each of the matcher devices sends respective first matching results to a matcher device nearest to the first device, the nearest matcher device obtains a second matching result based on the received respective first matching results, and then sends the second matching result to the first device. Or, in one example, each matching party device sends the respective first matching result to a random one of the matching party devices, and the random device obtains a second matching result based on the received first matching results, and then sends the second matching result to the first device. Or, in one example, each of the matcher devices sends respective first matching results to the first device, which obtains a second matching result based on the received respective first matching results.
S102, obtaining a second matching result. .
Illustratively, referring to the description of step S101, the first device may obtain the second matching result.
S103, sending the second matching result to equipment of the user of the requiring party, and sending the computing service request and the second matching result to equipment of the user of the target supplying party through the second equipment; wherein the second device is a proxy transaction node corresponding to the device of the target donor user.
By way of example only, and in an illustrative,
in the present application, the device for the target donor user corresponds to a proxy transaction node, which is one of the nodes in the power service transaction system. Wherein the proxy transaction node corresponding to the device of the target donor user may be referred to as the second device.
The first device sends the second matching result to the device of the demand party user and inquires whether the device of the target supply party user is authorized to provide the computing power service.
Meanwhile, the first device sends the power calculation service request and the second matching result to the second device, and the second device sends the power calculation service request and the second matching result to the device of the target supplier user and inquires whether to agree to provide the power calculation service for the device of the requester user.
S104, determining initial calculation power charge information of the user of the demand party in response to the first confirmation information sent by the device of the user of the demand party and the second confirmation information sent by the device of the user of the target supply party through the second device; the first confirmation information characterizes that the equipment of the user of the demand party agrees to provide the power calculation service for the equipment of the user of the target supply party, and the second confirmation information characterizes that the equipment of the user of the target supply party agrees to provide the power calculation service for the equipment of the user of the demand party; the target provider user's device is configured to provide a power service to the consumer user's device based on the power service request.
By way of example only, and in an illustrative,
the device of the consumer user sends a first acknowledgement to the first device. Wherein the first confirmation information characterizes that the device of the demand side user agrees to the device of the target supply side user to provide the computing power service.
The target provider user's device sends the second acknowledgement to the second device, which in turn sends the second acknowledgement to the first device. Wherein the second confirmation information characterizes agreement of the target supplier user's device to provide the power calculation service for the consumer user's device.
The first device determines initial power fee information for the consumer user.
The first device sends a message to the device of the target donor user that may provide the computing power service.
The device of the target provider user provides the power calculation service for the device of the demand user according to the power calculation service request.
In this embodiment, the device of the user of the demand party sends the request for the power-calculating service to the proxy transaction node corresponding to the device of the user of the demand party, the proxy transaction node corresponding to the device of the user of the demand party calculates the final target provider user matched with the request for the power-calculating service through the selected plurality of matching devices, sends the result to the device of the user of the demand party, and sending the result and the power calculation service request to the equipment of the target supplier user through the proxy transaction node corresponding to the equipment of the target supplier user, wherein the power calculation service transaction is agreed by both the consumer user and the supplier user, the proxy transaction node corresponding to the equipment of the consumer user determines the initial power calculation cost information of the consumer user, and the equipment of the target supplier user provides power calculation service for the equipment of the consumer user based on the power calculation service request. In the process of the power calculation service transaction node, only partial transaction nodes such as an agent transaction node corresponding to the equipment of the user of the demand party, an agent transaction node corresponding to the equipment of the user of the target supply party, a plurality of matched party equipment and the like are used, so that the transaction time is greatly reduced, and meanwhile, the safety and the privacy of data are also protected.
FIG. 2 is a flow chart of another method for processing a transaction based on computing power according to an embodiment of the present application; as shown in fig. 2, the method may include:
s201, the equipment of the user of the demand party is registered in the computing power service transaction matching platform.
The first step of S201, the first equipment responds to a first registration request sent by equipment of a user of a demand party, and if the user of the demand party is determined to be a trusted user based on the first registration request, account information of the user of the demand party is established; the first registration request comprises identity information of the user of the requiring party and credit proving information of the user of the requiring party. The first device is a proxy transaction node corresponding to the device of the user of the demand party.
The second step of S201, the first device stores the identity information of the user of the demand side, the credit proving information of the user of the demand side and the account information of the user of the demand side into a first blockchain corresponding to the first device; wherein the access right of the first blockchain is that only the first device is allowed to access; storing first information of the first device into a second blockchain; the access authority of the second blockchain is accessible to nodes allowed to be attributed to the computing power service transaction matching platform; the first information characterizes the first device as a proxy transaction node corresponding to a device of the consumer user.
The third step of S201, the first device feeds back the first registration success information to the device of the user of the demand party.
Illustratively, in order for the consumer user to use the computing power service, the consumer user's device needs to complete the registration process first.
Firstly, the equipment of the user of the demand party accesses the address of the transaction matching platform of the power computing service, one transaction node is selected from a transaction node list of the access page to serve as a proxy transaction node of the equipment of the user of the demand party, and the proxy transaction node corresponding to the equipment of the user of the demand party is marked as first equipment.
The device of the requiring party user sends a first registration request to the first device. The first registration request comprises identity information of the user of the requiring party and credit proving information of the user of the requiring party.
The first device analyzes the received first registration request and establishes account information for the consumer if the consumer is trusted.
The first device stores identity information of the consumer, reputation attestation information of the consumer, and account information of the consumer into a first blockchain. Wherein the first blockchain only allows access by the first device.
The first device stores the first information into the second blockchain. Wherein the second blockchain allows access to all transaction nodes in the power services transaction matching platform. The first information indicates which transaction node the device of the consumer has selected as the proxy transaction node for the device of the consumer.
The first device sends a message of successful registration to the device of the requiring party user.
The consumer user pre-deposits a portion of the funds into the consumer user's account via the consumer user's device. In one example, a consumer user pre-deposits 1000 elements into the consumer user's account via the consumer user's device.
S202, the first device registers in a computing power service transaction matching platform.
The first step of S202, the first device sends a second registration request to the third device; the second registration request comprises the position information of the first equipment, the computing capability proving information of the first equipment and the reputation proving of the first equipment; the third device is an agent transaction node corresponding to the first device; and the third device is used for establishing account information of the first device based on the second registration request, wherein the first device is determined to be a trusted user, and the computing capability of the first device accords with a preset condition. The first device is a proxy transaction node corresponding to the device of the user of the demand party.
S202, the second step, the first device stores account information of the first device into a third blockchain; wherein the access rights of the third blockchain only allow the first device to access; storing the position information of the first equipment, the computing capability proving information of the first equipment and the reputation proving of the first equipment into a fourth blockchain; the access authority of the fourth blockchain is accessible to nodes which are allowed to be attributed to the power-of-computation service transaction matching platform.
The third step of S202, the first device receives the second registration success information fed back by the third device.
By way of example only, and in an illustrative,
if the first device does not belong to the transaction matching platform of the power service at first, the first device is a transaction node to be added, the transaction node to be added wants to be added into the transaction matching platform of the power service, and registration is required to be completed on the transaction matching platform of the power service, and the registration steps are as follows:
the to-be-added transaction node accesses the address of the power service transaction matching platform, selects one transaction node from the transaction node list of the access page as the proxy node of the to-be-added transaction node, and marks the proxy transaction node corresponding to the to-be-added transaction node as third equipment.
The to-be-joined transaction node sends a second registration request to the third device. The second registration request comprises position information of the transaction node to be added, computing capability proving information of the transaction node to be added and reputation proving of the transaction node to be added.
The third device analyzes the second registration request, and if the transaction node to be added is trusted and the computing capability of the transaction node to be added meets the preset condition, the account information of the transaction node to be added is established. In one example, account information for a to-be-added transaction node is established if the to-be-added transaction node is trusted and the to-be-added transaction node has the capability of computing a power transaction match calculation.
The third device stores account information to be added to the transaction node in a third blockchain. Wherein the third blockchain only allows access to the to-be-added transaction node.
The third device stores the location information of the transaction node to be added, the computing capability certification information of the transaction node to be added, and the reputation certification of the transaction node to be added into the fourth blockchain. Wherein the fourth blockchain allows access to all transaction nodes in the power services transaction matching platform.
And the third equipment adds the transaction node to be added into a transaction node list of the computing power service transaction matching platform, so that the transaction node to be added becomes a transaction node of the computing power service transaction matching platform.
And the third device sends a message of successful registration to the transaction node to be added.
S203, the equipment of the supplier user is registered in the power service transaction matching platform.
Step S203 includes the following processes:
the first step of S203, the second device responds to the third registration request sent by the device of the donor user, if the donor user is determined to be a trusted user based on the third registration request, the account information of the donor user is established; the third registration request comprises identity information of the provider user, credit proving information of the provider user and computing power service information of the provider user; the power calculation service information includes the service type of the power calculation service, the capability information of the power calculation service and the unit price expense information of the power calculation service. Wherein the second device is a proxy transaction node corresponding to the device of the donor user.
The second step of S203, the second device storing the identity information of the donor user, the reputation attestation information of the donor user, and the account information of the donor user into a fifth blockchain corresponding to the second device; wherein the access right of the fifth blockchain is that only the second device is allowed to access; storing the power calculation service information and the second information of the supplier user into a sixth blockchain; the access authority of the sixth blockchain is accessible to nodes which are allowed to be attributed to the power-of-computation service transaction matching platform; the second information characterizes the second device as a proxy transaction node corresponding to the device of the donor user.
And step three of S203, the second device feeds back third registration success information to the device of the donor user.
Illustratively, in order to provide a power-calculating service to a consumer user, the device of the provider user needs to complete the registration process first.
First, the device of the provider user accesses the address of the transaction matching platform of the power service, selects one transaction node from the transaction node list of the access page as a proxy transaction node of the device of the provider user, and marks the proxy transaction node corresponding to the device of the provider user as a second device.
The device of the donor user sends a third registration request to the second device. The third registration request includes identity information of the provider user, credit proving information of the provider user and computing power service information of the provider user. The power calculating service information comprises the service type of the power calculating service, the capability information of the power calculating service and the unit price expense information of the power calculating service.
The second device analyzes the third registration request and establishes account information for the donor user if the donor user is authentic.
The second device stores the identity information of the donor user, the reputation attestation information of the donor user, and the account information of the donor user into a fifth blockchain. Wherein the fifth blockchain only allows access to proxy transactional nodes of the device of the donor user.
The second device stores the power service information and the second information of the donor user into a sixth blockchain. Wherein the sixth blockchain allows access to all transaction nodes in the power services transaction matching platform. Wherein the second information indicates which transaction node the device of the donor user selected as a proxy transaction node for the device of the donor user.
The second device sends a message to the device of the donor user that the registration was successful.
S204, the first equipment responds to a power calculation service request sent by equipment of a user of a demand party, and a plurality of matching party equipment is determined from a preset node list; the preset node list comprises at least one matching party device; the matching party equipment in the matching party equipment is idle equipment, or the matching party equipment in the matching party equipment is equipment with current traffic less than a preset traffic threshold; the first device is a proxy transaction node corresponding to a device of the consumer user. The computing force service request is sent to a plurality of matcher devices.
Wherein the power calculation service request is used for indicating to provide power calculation service for equipment of the user of the demand party; the matching party device is used for obtaining a first matching result, and the first matching result is used for indicating a supplier user matched with the computing power service request; each first matching result is used for determining a second matching result, and the second matching result is used for indicating a final target supplier user determined based on each first matching result.
In one example, the service request includes a service type of the service, and a predicted access duration of the service; the provider user has the power calculation service information including the service type of the power calculation service, the capability information of the power calculation service, and the unit price information of the power calculation service.
The service type of the power calculation service is matched with the power calculation service request, the capability information of the power calculation service is optimal, and the unit price cost information of the power calculation service is minimum for the provider user indicated by the first matching result; 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 plurality of matcher devices, and cost information corresponding to the device of the target supplier user.
By way of example only, and in an illustrative,
the device of the consumer user sends a request for a power service to the first device. The first device is an agent transaction node corresponding to the device of the user of the demand party; the computing power service request comprises the service type of the computing power service and the predicted access time length of the computing power service;
the first device selects 5 transaction nodes from a transaction node list of the computing power service transaction matching platform as matching party devices. In one example, the first device selects a free transaction node in the list of transaction nodes as a matcher device. Alternatively, in another example, the first device selects a transaction node in the list of transaction nodes having a current traffic volume of less than 2 as the matcher device.
The first device sends the computing power service request to the selected five matcher devices.
Each matching formula obtains a first matching result according to the computing power service request. Wherein the first matching result includes the supplier user, total cost information matched with the computing power service request. Wherein the total cost information includes a projected cost to be charged by the supplier user, a projected cost to calculate a transaction node to be used in the power service transaction.
In one example, each of the matchers first matches the business type of the power service request with the business type of the power service of the provider user, selects the provider user that matches the business type of the power service request, and then selects the provider user from the selected provider users that has the best capability information of the power service and the smallest unit price information of the power service.
Each matching party then calculates the predicted access duration of the power service for the requesting party based on the monovalent cost information of the power service for the respective selected donor party user, the estimated fees each supplier user needs to charge are calculated. The calculation method comprises the following steps: estimated cost that the provider user needs to charge = monovalent cost information of the provider user's computing power service. In one example, if the monovalent fee information for the power calculation service of the supplier user is 100 yuan/day and the predicted access time period for the power calculation service of the consumer user is 6 days, the predicted fee that the supplier user needs to charge is 600 yuan.
The transaction node used in a power service transaction also charges a fee, and the estimated fee of the transaction node used can be calculated proportionally according to the estimated fee that the user of the supplier needs to charge. The transaction nodes used in one power service transaction comprise proxy transaction nodes corresponding to equipment of a user on a demand side, proxy transaction nodes corresponding to equipment of a user on a supply side and a plurality of selected matching equipment. In one example, if the projected cost of a transaction node used in a transaction for a power service: estimated charge the supplier user needs to charge = 4; the projected cost of the transaction node used in the transaction for the power service is 400 yuan. Each transaction node used in the power service transaction then bisects the 400 elements.
The 5 matching formulas send the respective calculated first matching results to the matching formula nearest to the first device. The matching party closest to the first equipment gathers the first matching results of the other four matching parties and the matching party closest to the first equipment to obtain a second matching result, and then sends the second matching result to the second equipment. Wherein the second matching result includes a final target provider user matching the computational power service request, total cost information corresponding to the final target provider user. Wherein the total cost information includes a projected cost to be charged by the final target supplier user, a projected cost of a transaction node used in the computing power service transaction.
In one example, among the 5 matching formulas, matching party 1 is nearest to the first device, then matching party 2, matching party 3, matching party 4 and matching party 5 send respective first matching results to matching party 1, matching party 1 analyzes a total of 5 first matching results of its own and the other four matching formulas, and selects the result with the highest number of identical supplier users as the final target supplier user. For example, if the supplier user selected by the matching formula 1 is m, the supplier user selected by the matching formula 2 is n, the supplier user selected by the matching party 3 is m, the supplier user selected by the matching party 4 is m, and the supplier user selected by the matching formula 5 is m, then the matching formula 1 analyzes the five results to obtain the final target supplier user as m. And further obtaining a second matching result. Wherein the second matching result includes a final target provider user m that matches the computing power service request, and total cost information corresponding to the final target provider user m.
S205, the first equipment receives a second matching result sent by a matching party equipment with the nearest distance with the first equipment in the plurality of matching party equipment; the second matching result is obtained by the matching party equipment closest to the first matching result.
In one example, the second matching result includes total fee information corresponding to the target supplier user and the target supplier user; 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 plurality of matcher devices, and cost information corresponding to the device of the target supplier user.
By way of example only, and in an illustrative,
referring to the description of step S204, the first device may obtain the second matching result.
S206, the first device sends the second matching result to the device of the user of the demand party, and sends the computing service request and the second matching result to the device of the user of the target provider through the second device; wherein the second device is a proxy transaction node corresponding to the device of the target donor user.
By way of example only, and in an illustrative,
the first device sends the second matching result to the device of the demand party user and inquires whether the device of the target supply party user is authorized to provide the computing power service.
Meanwhile, the first device sends the power calculation service request and the second matching result to the second device, and the second device sends the power calculation service request and the second matching result to the device of the target supplier user and inquires whether to agree to provide the power calculation service for the device of the requester user. Wherein the second device is a proxy transaction node corresponding to the device of the target donor user.
S207, the first device responds to the first confirmation information sent by the device of the user of the demand party and the second confirmation information sent by the device of the user of the target supply party through the second device to determine the initial calculation cost information of the user of the demand party; the first confirmation information characterizes that the equipment of the user of the demand party agrees to provide the power calculation service for the equipment of the user of the target supply party, and the second confirmation information characterizes that the equipment of the user of the target supply party agrees to provide the power calculation service for the equipment of the user of the demand party; the target provider user's device is configured to provide a power service to the consumer user's device based on the power service request.
In one example, step S207 includes the following:
the first case.
The first device responds to the first confirmation information sent by the device of the user of the demand party and the second confirmation information sent by the device of the user of the target supply party through the second device, if the account information of the user of the demand party is determined to meet the total cost information corresponding to the user of the target supply party, the total cost information corresponding to the user of the target supply party is determined to be the initial calculation cost information of the user of the demand party, and the initial calculation cost information in the account information of the user of the demand party is frozen.
The second case.
The first device responds to the first confirmation information sent by the device of the user of the demand party and the second confirmation information sent by the device of the user of the target supply party through the second device, and if the account information of the user of the demand party is determined not to meet the total cost information corresponding to the user of the target supply party, the difference value between the total cost information corresponding to the user of the target supply party and the account information of the user of the demand party is determined, and the difference value is sent to the device of the user of the demand party.
When the account information of the user of the demand party is determined to meet the total cost information corresponding to the user of the target supply party, the first device determines the total cost information corresponding to the user of the target supply party as the initial calculation power cost information of the user of the demand party, and freezes the initial calculation power cost information in the account information of the user of the demand party.
In one example, the request for the computing power service includes an estimated time of access for the computing power service; and the predicted access time length of the power calculation service is used for determining the real-time access time length of the equipment of the user of the target supplier, and when the predicted access time length is greater than or equal to the predicted access time length, the power calculation service is stopped being provided for the equipment of the user of the requirement.
By way of example only, and in an illustrative,
the device of the consumer user sends a first acknowledgement to the first device. Wherein the first confirmation information characterizes that the device of the demand side user agrees to the device of the target supply side user to provide the computing power service.
The target provider user's device sends the second acknowledgement to the second device, which in turn sends the second acknowledgement to the first device. Wherein the second confirmation information characterizes agreement of the target supplier user's device to provide the power calculation service for the consumer user's device.
The first device determines initial power fee information for the consumer user.
In one example of this, the first and second embodiments,
if the total cost corresponding to the target supplier user is 1000 yuan, the fund balance in the account of the user of the demand party is 2000 yuan, and the fund balance in the account of the user of the demand party is enough to pay the total cost corresponding to the target supplier user, the first device determines that the total cost 1000 yuan corresponding to the target supplier user is the initial calculation power cost information of the user of the demand party, and freezes 1000 yuan in the account fund balance 2000 yuan of the user of the demand party.
If the total cost corresponding to the target supplier user is 1000 yuan, the funds balance in the account of the consumer user is 800 yuan, and the funds balance in the account of the consumer user is insufficient to pay the total cost corresponding to the target supplier user, the first device calculates the difference between the total cost corresponding to the target supplier user and the funds balance in the account of the consumer user, in this example 200 yuan. The first device sends the fund difference information 200 elements required by the account of the consumer to the device of the consumer. The user of the demand party stores 200 yuan into the account of the user of the demand party through the equipment of the user of the demand party, and the fund balance in the account of the user of the demand party is enough to pay the total cost corresponding to the user of the target supply party, then 1000 yuan of the total cost corresponding to the user of the target supply party is determined as the initial power calculation cost information of the user of the demand party, and 1000 yuan of the fund balance 1000 yuan of the account of the user of the demand party is frozen.
The first device sends a message to the device of the target donor user that may provide the computing power service.
The target provider user's device provides a computing power service for the consumer user's device.
If the real-time access duration of the device of the user of the demand party is greater than or equal to the predicted access duration, the device of the target supplier user stops providing the computing service for the device of the user of the demand party.
In one example of this, the first and second embodiments,
the device of the demand side user predicts the access time period to be 3 days, and when the real-time access time period of the device of the demand side user is 3 days or more, the device of the target supply side user stops providing the computing power service for the device of the demand side user.
S208, the first device determines deduction information based on the first log sent by the device of the user of the demand side and the second log sent by the second device.
Step S208 includes the following cases.
First case:
if the first device determines that the first log sent by the device of the user of the demand party is received and the second log sent by the second device is received, determining fee deduction information according to the access duration in the first log and the unit price fee information of the power calculation service of the target provider.
The second log is sent to the second device for the device of the target supplier user; the first log is the service use condition of the computing power in the process that the equipment of the user of the demand party accesses the equipment of the user of the target supply party, and the second log is the service use condition of the computing power in the process that the equipment of the user of the target supply party provides the computing power for the equipment of the user of the demand party; the computing power service use case comprises an access duration.
The first equipment transfers the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment according to the deduction information; the second device is configured to transfer the value characterized by the deduction information from account information of the second device to account information of the target supplier user.
Second case:
if the first device determines that the first log sent by the device of the user of the demand party is received and the second log sent by the second device is not received, after a first preset time, determining fee deduction information according to the access duration in the first log and the unit price fee information of the power calculation service of the target provider.
The first device transfers the value represented by the deduction information from the account information of the user of the demand party to the account information of the second device according to the deduction information; the second device is configured to transfer the value characterized by the deduction information from account information of the second device to account information of the target supplier user.
Third case:
if the first log sent by the equipment of the user of the demand party is not received and the second log sent by the second equipment is received, after the first preset time, fee deduction information is determined according to the access time length in the second log and the unit price fee information of the power calculation service of the target supplier.
According to the deduction information, transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment; the second device is configured to transfer the value characterized by the deduction information from account information of the second device to account information of the target supplier user.
Fourth case:
and if the first log sent by the equipment of the demand side user is not received and the second log sent by the second equipment is not received, transferring the value characterized by the initial calculation power cost information of the equipment demand side user of the target supply side user from the account information of the second equipment to the account information of the target supply side user after the second preset time.
By way of example only, and in an illustrative,
the device of the consumer user sends a first log to the first device. The first log is the access duration in the process that the equipment of the demand side user accesses the equipment of the target supply side user.
The device of the target donor user sends the second log to the second device, which then sends the second log to the first device. The second log provides the access time length in the power calculation service process for the equipment of the target supplier user and the equipment of the demand user.
The first device settles the power service transaction according to the received first log and second log, and determines the amount of money that the account of the user of the demand party needs to be transferred to the account of the user of the target supply party.
In one example of this, the first and second embodiments,
the device of the consumer user sends a first log to the first device.
The device of the target donor user sends the second log to the second device, which then sends the second log to the first device.
The first device compares the received access time length in the first log and the second log, and calculates the amount of money to be transferred to the account of the target supplier user by the account of the user of the consumer according to the access time length and the unit price information of the power calculation service of the target supplier. The calculation method comprises the following steps: the account of the demand side user requires the amount of money transferred to the account of the target provider side = access time length.
The first device transfers the calculated transfer amount from the account information of the requiring side user to the account of the second device, and then the second device transfers the transfer amount from the account of the second device to the account of the target supplying side user.
The first device calculates the account information of the user of the demand party according to the deduction information in proportion, and the account information needs to be transferred to the fee information of a transaction node used in the transaction of the power computing service. The transaction nodes used in the power calculation service transaction comprise agent transaction nodes corresponding to the equipment of the user of the demand party, agent transaction nodes corresponding to the equipment of the user of the supply party and a plurality of selected matching equipment.
The first device transfers the calculated value characterized by the cost information from the account information of the consumer to the account information of the first device.
The first device divides the value represented by the cost information equally according to the number of transaction nodes used in the power service transaction, and then transfers the divided value represented by the cost information from the account information of the first device to the account information of the proxy transaction node corresponding to the device of the user of the demand party, the account information of the proxy transaction node corresponding to the device of the user of the supply party and the account information of each selected matching party device.
In one example of this, the first and second embodiments,
the device of the consumer user sends a first log to the first device.
The device of the target donor user does not send the second log to the first device via the second device.
After a first preset time, the first device calculates an amount of money that the account of the consumer user needs to be transferred to the account of the target provider user according to the access duration in the first log and the monovalent fee information of the power calculation service of the target provider. The calculation method comprises the following steps: the amount of money transferred to the account of the target supplier user required by the account of the consumer user=the access time period in the first log.
The first device transfers the calculated transfer amount from the account information of the requiring side user to the account of the second device, and then the second device transfers the transfer amount from the account of the second device to the account of the target supplying side user.
The first device calculates the account information of the user of the demand party according to the deduction information in proportion, and the account information needs to be transferred to the fee information of a transaction node used in the transaction of the power computing service. The transaction nodes used in the power calculation service transaction comprise agent transaction nodes corresponding to the equipment of the user of the demand party, agent transaction nodes corresponding to the equipment of the user of the supply party and a plurality of selected matching equipment.
The first device transfers the calculated value characterized by the cost information from the account information of the consumer to the account information of the first device.
The first device divides the value represented by the cost information equally according to the number of transaction nodes used in the power service transaction, and then transfers the divided value represented by the cost information from the account information of the first device to the account information of the proxy transaction node corresponding to the device of the user of the demand party, the account information of the proxy transaction node corresponding to the device of the user of the supply party and the account information of each selected matching party device.
In one example of this, the first and second embodiments,
the device of the consumer user does not send the first log to the first device.
The device of the target donor user sends the second log to the first device via the second device.
After the first preset time, the first device calculates an amount of money that the account of the user of the requiring party needs to be transferred to the account of the user of the target provider according to the access duration in the second log and the monovalent fee information of the power calculation service of the target provider. The calculation method comprises the following steps: the amount of money transferred to the account of the target supplier user required by the account of the consumer user=the access time period in the second log.
The first device transfers the calculated transfer amount from the account information of the requiring side user to the account of the second device, and then the second device transfers the transfer amount from the account of the second device to the account of the target supplying side user.
The first device calculates the account information of the user of the demand party according to the deduction information in proportion, and the account information needs to be transferred to the fee information of a transaction node used in the transaction of the power computing service. The transaction nodes used in the power calculation service transaction comprise agent transaction nodes corresponding to the equipment of the user of the demand party, agent transaction nodes corresponding to the equipment of the user of the supply party and a plurality of selected matching equipment.
The first device transfers the calculated value characterized by the cost information from the account information of the consumer to the account information of the first device.
The first device divides the value represented by the cost information equally according to the number of transaction nodes used in the power service transaction, and then transfers the divided value represented by the cost information from the account information of the first device to the account information of the proxy transaction node corresponding to the device of the user of the demand party, the account information of the proxy transaction node corresponding to the device of the user of the supply party and the account information of each selected matching party device.
In one example of this, the first and second embodiments,
the device of the consumer user does not send the first log to the first device.
The device of the target donor user does not send the second log to the first device via the second device.
After a second preset time, the first device uses the value characterized by the initial power charge information of the consumer user as the amount that the account of the consumer user needs to be transferred to the account of the target supplier user.
The first device transfers the calculated transfer amount from the account information of the requiring side user to the account of the second device, and then the second device transfers the transfer amount from the account of the second device to the account of the target supplying side user.
The first device calculates in proportion according to the initial account fee information of the user of the demand party, and the account information of the user of the demand party needs fee information transferred to a transaction node used in the account service transaction. The transaction nodes used in the power calculation service transaction comprise agent transaction nodes corresponding to the equipment of the user of the demand party, agent transaction nodes corresponding to the equipment of the user of the supply party and a plurality of selected matching equipment.
The first device transfers the calculated value characterized by the cost information from the account information of the consumer to the account information of the first device.
The first device divides the value represented by the cost information equally according to the number of transaction nodes used in the power service transaction, and then transfers the divided value represented by the cost information from the account information of the first device to the account information of the proxy transaction node corresponding to the device of the user of the demand party, the account information of the proxy transaction node corresponding to the device of the user of the supply party and the account information of each selected matching party device.
S209, the first device generates power service transaction process information, wherein the power service transaction process information comprises access duration and total cost information of account transfer of the user of the demand party to the account of the user of the target supply party.
By way of example only, and in an illustrative,
the first device stores into a seventh blockchain the power service transaction process access duration and total cost information for the account transfer of the consumer user to the account of the target donor user. The seventh blockchain has access rights which allow nodes belonging to the power of credit service transaction matching platform to be accessible.
In this embodiment, the transaction node of the power calculation service, the device of the user of the demand party, and the device of the user of the supply party all complete registration on the transaction matching platform of the power calculation service; the equipment of the user of the demand party sends a calculation power service request to first equipment; the first equipment selects a plurality of transaction nodes from a transaction node list of the computing power service transaction matching platform as matching party equipment; the first equipment sends the computing power service request to a plurality of selected matching party equipment; each matching party device obtains a respective first matching result, sends the result to matching party devices with the closest distance to the first device in the plurality of matching party devices, obtains a second matching result based on the first matching result by the matching party device with the closest distance, and sends the second matching result to the first device; the first device sends a second matching result to the device of the user of the demand party and inquires whether to agree to the transaction of the power calculation service; the first device sends the computing power service request and the second matching result to the device of the target supplier user through the second device, and inquires whether to agree to the computing power service transaction; after receiving a message sent by the equipment of the user of the demand party and agreeing to use the power calculation service and a message sent by the equipment of the user of the supply party and agreeing to provide the power calculation service, the first equipment determines initial power calculation cost information of the user of the demand party; the target provider user's device provides the power service to the consumer user's device based on the power service request. The first device determines deduction information based on a first log sent by the device of the consumer user and a second log sent by the second device. The first device generates the power service transaction process information. In the process of the power calculation service transaction node, only partial transaction nodes such as an agent transaction node corresponding to the equipment of the user of the demand party, an agent transaction node corresponding to the equipment of the user of the target supply party, a plurality of matched party equipment and the like are used, so that the transaction time is greatly reduced, and meanwhile, the safety and the privacy of data are also protected.
Fig. 3 is a processing device based on a power transaction according to an embodiment of the present application, as shown in fig. 3, the device 300 includes:
a first sending unit 301, configured to send, in response to a computing power service request sent by a device of a user of a demand party, the computing power service request to a plurality of matching party devices; wherein the power calculation service request is used for indicating to provide power calculation service for equipment of the user of the demand party; the matching party device is used for obtaining a first matching result, and the first matching result is used for indicating a supplier user matched with the computing power service request; each first matching result is used for determining a second matching result, and the second matching result is used for indicating a final target supplier user determined based on each first matching result.
An obtaining unit 302, configured to obtain a second matching result.
A second sending unit 303, configured to send a second matching result to the device of the user of the requiring party, and send the computing service request and the second matching result to the device of the user of the target provider through the second device; wherein the second device is a proxy transaction node corresponding to the device of the target donor user.
A determining unit 304 for determining initial calculation fee information of the demand side user in response to the first confirmation information transmitted by the device of the demand side user and the second confirmation information transmitted by the device of the target supply side user through the second device; the first confirmation information characterizes that the equipment of the user of the demand party agrees to provide the power calculation service for the equipment of the user of the target supply party, and the second confirmation information characterizes that the equipment of the user of the target supply party agrees to provide the power calculation service for the equipment of the user of the demand party; the target provider user's device is configured to provide a power service to the consumer user's device based on the power service request.
The device provided in this embodiment, referring to the technical solution in the method provided in any of the foregoing embodiments, has similar implementation principles and technical effects, and will not be described in detail.
Fig. 4 is a schematic diagram of another processing apparatus for transaction based on computing power according to an embodiment of the present application, as shown in fig. 4, the apparatus 400 includes:
a first sending unit 401, configured to send a computing power service request to a plurality of matching party devices in response to a computing power service request sent by a device of a user of a demand party; wherein the power calculation service request is used for indicating to provide power calculation service for equipment of the user of the demand party; the matching party device is used for obtaining a first matching result, and the first matching result is used for indicating a supplier user matched with the computing power service request; each first matching result is used for determining a second matching result, and the second matching result is used for indicating a final target supplier user determined based on each first matching result.
An obtaining unit 402, configured to obtain a second matching result.
A second sending unit 403, configured to send a second matching result to the device of the user of the demand party, and send the computing service request and the second matching result to the device of the user of the target provider through the second device; wherein the second device is a proxy transaction node corresponding to the device of the target donor user.
A determining unit 404 for determining initial calculation fee information of the demand side user in response to the first confirmation information transmitted by the device of the demand side user and the second confirmation information transmitted by the device of the target supply side user through the second device; the first confirmation information characterizes that the equipment of the user of the demand party agrees to provide the power calculation service for the equipment of the user of the target supply party, and the second confirmation information characterizes that the equipment of the user of the target supply party agrees to provide the power calculation service for the equipment of the user of the demand party; the target provider user's device is configured to provide a power service to the consumer user's device based on the power service request.
In one example, the first transmitting unit 401 includes:
a first determining module 4011, configured to determine, from a preset node list, a plurality of matching party devices in response to a power calculation service request sent by a device of a user of a requiring party; the preset node list comprises at least one matching party device; the matcher device in the plurality of matcher devices is an idle device, or the matcher device in the plurality of matcher devices is a device with current traffic less than a preset traffic threshold.
A sending module 4012 is configured to send the computing power service request to a plurality of matcher devices.
In one example, the service request includes a service type of the service, and a predicted access duration of the service; the provider user has the power calculation service information including the service type of the power calculation service, the capability information of the power calculation service, and the unit price information of the power calculation service.
The service type of the power calculation service is matched with the power calculation service request, the capability information of the power calculation service is optimal, and the unit price cost information of the power calculation service is minimum for the provider user indicated by the first matching result; 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 plurality of matcher devices, and cost information corresponding to the device of the target supplier user.
In one example, the obtaining unit 402 is specifically configured to:
receiving a second matching result sent by a matching party device closest to the first device in the plurality of matching party devices; the second matching result is obtained by the matching party equipment closest to the first matching result.
In one example, the second matching result includes total fee information corresponding to the target supplier user and the target supplier user; 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 plurality of matcher devices, and cost information corresponding to the device of the target supplier user.
In one example, the determining unit 404 includes:
the second determining module 4041 is configured to determine, in response to the first acknowledgement information sent by the device of the consumer user and the second acknowledgement information sent by the device of the target supplier user through the second device, that the total cost information corresponding to the target supplier user is the initial calculation cost information of the consumer user and freeze the initial calculation cost information in the account information of the consumer user if it is determined that the account information of the consumer user meets the total cost information corresponding to the target supplier user.
In one example, the determining unit 404 further includes:
and a third determining module 4042, configured to determine, in response to the first acknowledgement information sent by the device of the consumer user and the second acknowledgement information sent by the device of the target supplier user through the second device, a difference between the total cost information corresponding to the target supplier user and the account information of the consumer user and send the difference to the device of the consumer user if it is determined that the account information of the consumer user does not satisfy the total cost information corresponding to the target supplier user.
A fourth determining module 4043, configured to determine, when determining that the account information of the user of the demand party satisfies the total cost information corresponding to the target supplier user, that the total cost information corresponding to the target supplier user is the initial calculation cost information of the user of the demand party, and freeze the initial calculation cost information in the account information of the user of the demand party.
In one example, the request for the computing power service includes an estimated time of access for the computing power service; and the predicted access time length of the power calculation service is used for determining the real-time access time length of the equipment of the user of the target supplier, and when the predicted access time length is greater than or equal to the predicted access time length, the power calculation service is stopped being provided for the equipment of the user of the requirement.
In one example, the apparatus further comprises:
the first processing unit 405 is configured to determine deduction information according to the access duration in the first log and the unit price information of the power service of the target provider if it is determined that the first log sent by the device of the user of the demand party is received and the second log sent by the second device is received.
The second log is sent to the second device for the device of the target supplier user; the first log is the service use condition of the computing power in the process that the equipment of the user of the demand party accesses the equipment of the user of the target supply party, and the second log is the service use condition of the computing power in the process that the equipment of the user of the target supply party provides the computing power for the equipment of the user of the demand party; the computing power service use case comprises an access duration.
A second processing unit 406, configured to transfer, according to the deduction information, a value represented by the deduction information from account information of the user of the consumer to account information of the second device; the second device is configured to transfer the value characterized by the deduction information from account information of the second device to account information of the target supplier user.
In one example, the apparatus further comprises:
the third processing unit 407 is configured to determine, after a first preset time, fee deduction information according to the access duration in the first log and the unit price information of the power calculation service of the target provider if it is determined that the first log sent by the device of the user of the demand party is received and the second log sent by the second device is not received.
A fourth processing unit 408, configured to transfer the value represented by the deduction information from the account information of the user of the requiring party to the account information of the second device according to the deduction information; the second device is configured to transfer the value characterized by the deduction information from account information of the second device to account information of the target supplier user.
In one example, the apparatus further comprises:
and a fifth processing unit 409, configured to determine fee deduction information according to the access duration in the second log and the unit price information of the power service of the target provider after the first preset time if it is determined that the first log sent by the device of the consumer user is not received and the second log sent by the second device is received.
A sixth processing unit 410, configured to transfer the value represented by the deduction information from account information of the user of the requiring party to account information of the second device according to the deduction information; the second device is configured to transfer the value characterized by the deduction information from account information of the second device to account information of the target supplier user.
In one example, the apparatus further comprises:
the seventh processing unit 411 is configured to, if it is determined that the first log sent by the device of the requiring party user is not received and the second log sent by the second device is not received, transfer, after a second preset time, a value represented by the cost information corresponding to the device of the target donor user from the account information of the second device to the account information of the target donor user.
In one example, the apparatus further comprises:
the eighth processing unit 412 is configured to generate power service transaction process information, where the power service transaction process information includes an access duration and total cost information of the account of the user of the demander transferred to the account of the user of the target provider.
In one example, the apparatus further comprises:
a first registration unit 413, configured to establish account information of the user of the requesting party, if the user of the requesting party is determined to be a trusted user based on the first registration request in response to a first registration request issued by a device of the user of the requesting party; the first registration request comprises identity information of the user of the requiring party and credit proving information of the user of the requiring party.
A second registration unit 414, configured to store identity information of the user of the requesting party, reputation attestation information of the user of the requesting party, and account information of the user of the requesting party into a first blockchain corresponding to the first device; wherein the access right of the first blockchain is that only the first device is allowed to access; storing first information of the first device into a second blockchain; the access authority of the second blockchain is accessible to nodes allowed to be attributed to the computing power service transaction matching platform; the first information characterizes the first device as a proxy transaction node corresponding to a device of the consumer user.
And a third registration unit 415, configured to feed back first registration success information to the device of the user of the demand party.
In one example, the apparatus further comprises:
a fourth registration unit 416, configured to send a second registration request to the third device; the second registration request comprises the position information of the first equipment, the computing capability proving information of the first equipment and the reputation proving of the first equipment; the third device is an agent transaction node corresponding to the first device; and the third device is used for establishing account information of the first device based on the second registration request, wherein the first device is determined to be a trusted user, and the computing capability of the first device accords with a preset condition.
A fifth registration unit 417 configured to store account information of the first device into the third blockchain; wherein the access rights of the third blockchain only allow the first device to access; storing the position information of the first equipment, the computing capability proving information of the first equipment and the reputation proving of the first equipment into a fourth blockchain; the access authority of the fourth blockchain is accessible to nodes which are allowed to be attributed to the power-of-computation service transaction matching platform.
A sixth registration unit 418, configured to receive second registration success information fed back by the third device.
The device provided in this embodiment, referring to the technical solution in the method provided in any of the foregoing embodiments, has similar implementation principles and technical effects, and will not be described in detail.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 5, where the electronic device includes: a transmitter 501, a receiver 502, a memory 503, and a processor 504.
Memory 503 for storing computer instructions.
A processor 504, configured to execute computer instructions stored in the memory 503 to implement the technical solutions of the methods of any implementation manner provided in the foregoing embodiments.
And the receiver 502 is configured to receive instructions and data sent by other devices.
A transmitter 501 for transmitting instructions and data to an external device.
Fig. 6 is a block diagram of an electronic device, which may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like, in accordance with an exemplary embodiment.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power 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.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The 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. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices 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 memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. 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 touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the assemblies, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or one of the assemblies of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The 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, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. 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.
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 elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The present application also provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, are configured to implement the methods provided by the above embodiments.
The application also provides a computer program product comprising a computer program which, when executed by a processor, implements the method provided by the above embodiments.
The application also provides a processing system based on the power transaction, which comprises the first device, the second device and at least one matcher device in the method provided by the embodiment.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (34)

1. A method of processing a power-based transaction, the method being applied to a first device that is a proxy transaction node corresponding to a device of a consumer user, the method comprising:
responding to a computing power service request sent by equipment of the user of the demand party, and sending the computing power service request to a plurality of matching party equipment; wherein the power calculation service request is used for indicating to provide power calculation service for equipment of a user of a demand party; the matching party device is used for obtaining a first matching result, and the first matching result is used for indicating a supplier user matched with the computing power service request; each first matching result is used for determining a second matching result, and the second matching result is used for indicating a final target supplier user determined based on each first matching result;
acquiring the second matching result;
transmitting the second matching result to the equipment of the user of the requiring party, and transmitting the computing service request and the second matching result to the equipment of the user of the target supplying party through the second equipment; wherein the second device is a proxy transaction node corresponding to the target donor user's device;
Determining initial calculation fee information of the demand side user in response to first confirmation information sent by the device of the demand side user and second confirmation information sent by the device of the target supply side user through the second device; wherein the first confirmation information characterizes the equipment of the user of the demand party agrees to provide the power calculation service for the equipment of the user of the target supply party, and the second confirmation information characterizes the equipment of the user of the target supply party agrees to provide the power calculation service for the equipment of the user of the demand party; the target provider user's device is configured to provide a computing power service to the consumer user's device based on the computing power service request.
2. The method of claim 1, wherein in response to a computing power service request issued by a device of the consumer user, transmitting the computing power service request to a plurality of matcher devices comprises:
responding to a computing power service request sent by equipment of the user of the demand party, and determining a plurality of matching party equipment from a preset node list; wherein the preset node list comprises at least one matching party device; the matching party equipment in the matching party equipment is idle equipment or the matching party equipment in the matching party equipment is equipment with current traffic less than a preset traffic threshold;
And sending the computing power service request to the plurality of matching formula devices.
3. The method according to claim 1, wherein the service request includes a service type of the service, and a predicted access duration of the service; the user of the supplier has the information of the power calculation service, wherein the information of the power calculation service comprises the business type of the power calculation service, the capability information of the power calculation service and the unit price expense information of the power calculation service;
the service type of the service provider indicated by the first matching result is matched with the service request of the service provider, the capability information of the service provider is optimal, and the unit price cost information of the service provider is minimum; the first matching result comprises 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 plurality of matching party devices, and cost information corresponding to the device of the target provider user.
4. The method of claim 1, wherein obtaining the second match result comprises:
Receiving the second matching result sent by a matching party device closest to the first device in the matching party devices; the second matching result is obtained by matching Fang Shebei closest to the first matching result.
5. The method according to claim 1, wherein the second matching result includes total fee information corresponding to a target supplier user and the target supplier user; 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 plurality of matching party devices, and cost information corresponding to the device of the target provider user.
6. The method of claim 1, wherein determining the initial tariff information for the consumer user in response to the first acknowledgement information sent by the consumer user's device and the second acknowledgement information sent by the target donor user's device via the second device comprises:
and responding to the first confirmation information sent by the equipment of the demand side user and the second confirmation information sent by the equipment of the target supply side user through the second equipment, if the account information of the demand side user is determined to meet the total cost information corresponding to the target supply side user, determining the total cost information corresponding to the target supply side user as the initial calculation cost information of the demand side user, and freezing the initial calculation cost information in the account information of the demand side user.
7. The method of claim 6, wherein the method further comprises:
responding to first confirmation information sent by the equipment of the demand side user and second confirmation information sent by the equipment of the target supply side user through the second equipment, if the account information of the demand side user is determined not to meet the total cost information corresponding to the target supply side user, determining a difference value between the total cost information corresponding to the target supply side user and the account information of the demand side user, and sending the difference value to the equipment of the demand side user;
when the account information of the user of the demand party is determined to meet the total cost information corresponding to the target supplier user, determining the total cost information corresponding to the target supplier user as the initial calculation cost information of the user of the demand party, and freezing the initial calculation cost information in the account information of the user of the demand party.
8. The method of claim 1, wherein the request for the computing power service includes an estimated time of access for the computing power service; and the predicted access time length of the force calculation service is used for determining the real-time access time length of the equipment of the user of the demand party by the equipment of the target supplier, and when the predicted access time length is greater than or equal to the predicted access time length, the force calculation service is stopped being provided for the equipment of the user of the demand party.
9. The method according to claim 1, characterized in that the method further comprises:
if the first log sent by the equipment of the user of the demand party is received and the second log sent by the second equipment is received, determining fee deduction information according to the access time length in the first log and the unit price fee information of the power calculation service of the target supplier;
the second log is sent to the second device by the device of the target supplier user; the first log is the service use condition of the computing power in the process that the equipment of the user of the demand party accesses the equipment of the user of the target supply party, and the second log is the service use condition of the computing power in the process that the equipment of the user of the target supply party provides the computing power service for the equipment of the user of the demand party; the service use condition of the computing power comprises access time length;
according to the deduction information, transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
10. The method according to claim 9, wherein the method further comprises:
if the first log sent by the equipment of the user of the demand party is received and the second log sent by the second equipment is not received, after a first preset time, determining fee deduction information according to the access duration in the first log and the unit price information of the power calculation service of the target supplier;
according to the deduction information, transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
11. The method according to claim 9, wherein the method further comprises:
if the first log sent by the equipment of the user of the demand party is not received and the second log sent by the second equipment is received, after a first preset time, determining fee deduction information according to the access duration in the second log and the unit price information of the power calculation service of the target supplier;
According to the deduction information, transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
12. The method according to claim 9, wherein the method further comprises:
and if the fact that the first log sent by the equipment of the user of the demand party is not received and the second log sent by the second equipment is not received is determined, after a second preset time, transferring the numerical value represented by the cost information corresponding to the equipment of the user of the target provider from the account information of the second equipment to the account information of the user of the target provider.
13. The method according to claim 9, wherein the method further comprises:
and generating the transaction process information of the power service, wherein the transaction process information of the power service comprises the access time length and the total fee information of the account transfer of the user of the demand party to the account of the user of the target supply party.
14. The method according to any one of claims 1-13, further comprising:
Responding to a first registration request sent by the equipment of the user of the demand party, and if the user of the demand party is determined to be a trusted user based on the first registration request, establishing account information of the user of the demand party; the first registration request comprises identity information of a user of a demand party and reputation proving information of the user of the demand party;
storing the identity information of the user of the requiring party, the credit proving information of the user of the requiring party and the account information of the user of the requiring party into a first blockchain corresponding to the first equipment; the access authority of the first blockchain is that only the first equipment is allowed to access; storing first information of the first device into a second blockchain; the access authority of the second blockchain is accessible to nodes allowed to be attributed to the computing power service transaction matching platform; the first information characterizes the first equipment as a proxy transaction node corresponding to the equipment of the user of the demand party;
and first registration success information fed back to the equipment of the user of the demand party.
15. The method according to any one of claims 1-13, further comprising:
Sending a second registration request to the third device; the second registration request comprises the position information of the first equipment, the computing capability proving information of the first equipment and the reputation proving of the first equipment; the third device is a proxy transaction node corresponding to the first device; the third device is configured to establish account information of the first device if the third device determines that the first device is a trusted user based on the second registration request and the computing capability of the first device meets a preset condition;
storing account information of the first device into a third blockchain; wherein the access rights of the third blockchain only allow access by the first device; storing the location information of the first device, the computing power attestation information of the first device, and the reputation attestation of the first device into a fourth blockchain; the access authority of the fourth blockchain is accessible to nodes allowed to be attributed to the power-of-computation service transaction matching platform;
and receiving second registration success information fed back by the third equipment.
16. A computing power transaction-based processing apparatus for application to a first device that is a proxy transaction node corresponding to a device of a consumer user, the apparatus comprising:
A first sending unit, configured to respond to a computing power service request sent by an apparatus of the user of the demander, and send the computing power service request to a plurality of apparatuses of the matcher; wherein the power calculation service request is used for indicating to provide power calculation service for equipment of a user of a demand party; the matching party device is used for obtaining a first matching result, and the first matching result is used for indicating a supplier user matched with the computing power service request; each first matching result is used for determining a second matching result, and the second matching result is used for indicating a final target supplier user determined based on each first matching result;
an obtaining unit, configured to obtain the second matching result;
a second sending unit, configured to send the second matching result to the device of the user of the requiring party, and send the computing service request and the second matching result to the device of the user of the target provider through a second device; wherein the second device is a proxy transaction node corresponding to the target donor user's device;
a determining unit configured to determine initial calculation fee information of the demand side user in response to first confirmation information transmitted by the device of the demand side user and second confirmation information transmitted by the device of the target supply side user through the second device; wherein the first confirmation information characterizes the equipment of the user of the demand party agrees to provide the power calculation service for the equipment of the user of the target supply party, and the second confirmation information characterizes the equipment of the user of the target supply party agrees to provide the power calculation service for the equipment of the user of the demand party; the target provider user's device is configured to provide a computing power service to the consumer user's device based on the computing power service request.
17. The apparatus of claim 16, wherein the first transmitting unit comprises:
the first determining module is used for responding to a power calculation service request sent by the equipment of the user of the requiring party and determining the plurality of matching party equipment from a preset node list; wherein the preset node list comprises at least one matching party device; the matching party equipment in the matching party equipment is idle equipment or the matching party equipment in the matching party equipment is equipment with current traffic less than a preset traffic threshold;
and the sending module is used for sending the power calculation service request to the plurality of matching formula equipment.
18. The apparatus of claim 16, wherein the request for the computing power service includes a traffic type of the computing power service, an expected access duration of the computing power service; the user of the supplier has the information of the power calculation service, wherein the information of the power calculation service comprises the business type of the power calculation service, the capability information of the power calculation service and the unit price expense information of the power calculation service;
the service type of the service provider indicated by the first matching result is matched with the service request of the service provider, the capability information of the service provider is optimal, and the unit price cost information of the service provider is minimum; the first matching result comprises 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 plurality of matching party devices, and cost information corresponding to the device of the target provider user.
19. The apparatus according to claim 16, wherein the acquisition unit is specifically configured to:
receiving the second matching result sent by a matching party device closest to the first device in the matching party devices; the second matching result is obtained by matching Fang Shebei closest to the first matching result.
20. The apparatus of claim 16, wherein the second matching result includes total cost information corresponding to a target supplier user and the target supplier user; 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 plurality of matching party devices, and cost information corresponding to the device of the target provider user.
21. The apparatus according to claim 16, wherein the determining unit comprises:
and the second determining module is used for responding to the first confirmation information sent by the equipment of the demand side user and the second confirmation information sent by the equipment of the target supply side user through the second equipment, and if the account information of the demand side user is determined to meet the total cost information corresponding to the target supply side user, determining the total cost information corresponding to the target supply side user as the initial calculation cost information of the demand side user, and freezing the initial calculation cost information in the account information of the demand side user.
22. The apparatus of claim 21, wherein the determining unit further comprises:
a third determining module, configured to determine, in response to the first acknowledgement information sent by the device of the consumer user and the second acknowledgement information sent by the device of the target supplier user through the second device, a difference between the total cost information corresponding to the target supplier user and the account information of the consumer user if it is determined that the account information of the consumer user does not satisfy the total cost information corresponding to the target supplier user, and send the difference to the device of the consumer user;
And a fourth determining module, configured to determine, when it is determined that the account information of the consumer user meets the total cost information corresponding to the target supplier user, that the total cost information corresponding to the target supplier user is initial calculation cost information of the consumer user, and freeze the initial calculation cost information in the account information of the consumer user.
23. The apparatus of claim 16, wherein the request for the computing power service includes an estimated time of access for the computing power service; and the predicted access time length of the force calculation service is used for determining the real-time access time length of the equipment of the user of the demand party by the equipment of the target supplier, and when the predicted access time length is greater than or equal to the predicted access time length, the force calculation service is stopped being provided for the equipment of the user of the demand party.
24. The apparatus of claim 16, wherein the apparatus further comprises:
the first processing unit is used for determining fee deduction information according to the access time length in the first log and the unit price fee information of the power calculation service of the target provider if the first log sent by the equipment of the user of the demand party is determined to be received and the second log sent by the second equipment is received;
The second log is sent to the second device by the device of the target supplier user; the first log is the service use condition of the computing power in the process that the equipment of the user of the demand party accesses the equipment of the user of the target supply party, and the second log is the service use condition of the computing power in the process that the equipment of the user of the target supply party provides the computing power service for the equipment of the user of the demand party; the service use condition of the computing power comprises access time length;
the second processing unit is used for transferring the numerical value represented by the deduction information from the account information of the user of the demand party to the account information of the second equipment according to the deduction information; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
25. The apparatus of claim 24, wherein the apparatus further comprises:
a third processing unit, configured to determine deduction information according to an access duration in the first log and unit price information of the power calculation service of the target provider after a first preset time if it is determined that the first log sent by the device of the consumer user is received and the second log sent by the second device is not received;
A fourth processing unit, configured to transfer, according to the deduction information, a numerical value represented by the deduction information from account information of the user of the requiring party to account information of the second device; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
26. The apparatus of claim 24, wherein the apparatus further comprises:
a fifth processing unit, configured to determine deduction information according to an access duration in a first preset time and unit price information of the power calculation service of the target provider after the first preset time if it is determined that the first log sent by the device of the user of the consumer is not received and the second log sent by the second device is received;
a sixth processing unit, configured to transfer, according to the deduction information, a numerical value represented by the deduction information from account information of the customer user to account information of the second device; the second device is used for transferring the numerical value represented by the deduction information from the account information of the second device to the account information of the target supplier user.
27. The apparatus of claim 24, wherein the apparatus further comprises:
and a seventh processing unit, configured to transfer, after a second preset time, a value represented by the fee information corresponding to the device of the target donor user from account information of the second device to account information of the target donor user if it is determined that the first log sent by the device of the consumer user is not received and the second log sent by the second device is not received.
28. The apparatus of claim 24, wherein the apparatus further comprises:
and the eighth processing unit is used for generating the transaction process information of the power service, wherein the transaction process information of the power service comprises the access time length and the total cost information of the account transfer of the user of the demand party to the account of the user of the target provider.
29. The apparatus according to any one of claims 16-28, further comprising:
the first registration unit is used for responding to a first registration request sent by the equipment of the user of the requiring party, and if the user of the requiring party is determined to be a trusted user based on the first registration request, account information of the user of the requiring party is established; the first registration request comprises identity information of a user of a demand party and reputation proving information of the user of the demand party;
The second registration unit is used for storing the identity information of the user of the requiring party, the credit proving information of the user of the requiring party and the account information of the user of the requiring party into a first blockchain corresponding to the first equipment; the access authority of the first blockchain is that only the first equipment is allowed to access; storing first information of the first device into a second blockchain; the access authority of the second blockchain is accessible to nodes allowed to be attributed to the computing power service transaction matching platform; the first information characterizes the first equipment as a proxy transaction node corresponding to the equipment of the user of the demand party;
and the third registration unit is used for feeding back the first registration success information to the equipment of the user of the requiring party.
30. The apparatus according to any one of claims 16-28, further comprising:
a fourth registration unit, configured to send a second registration request to the third device; the second registration request comprises the position information of the first equipment, the computing capability proving information of the first equipment and the reputation proving of the first equipment; the third device is a proxy transaction node corresponding to the first device; the third device is configured to establish account information of the first device if the third device determines that the first device is a trusted user based on the second registration request and the computing capability of the first device meets a preset condition;
A fifth registration unit, configured to store account information of the first device into a third blockchain; wherein the access rights of the third blockchain only allow access by the first device; storing the location information of the first device, the computing power attestation information of the first device, and the reputation attestation of the first device into a fourth blockchain; the access authority of the fourth blockchain is accessible to nodes allowed to be attributed to the power-of-computation service transaction matching platform;
and the sixth registration unit is used for receiving the second registration success information fed back by the third equipment.
31. A first device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-15.
32. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-15.
33. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-15.
34. A computing-based transaction processing system, the system comprising the first device, the second device, and at least one matcher device of claim 31.
CN202310629552.8A 2023-05-30 2023-05-30 Processing method, device and equipment based on calculation force transaction Pending CN116647323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310629552.8A CN116647323A (en) 2023-05-30 2023-05-30 Processing method, device and equipment based on calculation force transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310629552.8A CN116647323A (en) 2023-05-30 2023-05-30 Processing method, device and equipment based on calculation force transaction

Publications (1)

Publication Number Publication Date
CN116647323A true CN116647323A (en) 2023-08-25

Family

ID=87624315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310629552.8A Pending CN116647323A (en) 2023-05-30 2023-05-30 Processing method, device and equipment based on calculation force transaction

Country Status (1)

Country Link
CN (1) CN116647323A (en)

Similar Documents

Publication Publication Date Title
US20180144417A1 (en) Recharge method and recharge device
CN107358435B (en) Bus payment method and device
CN105573472B (en) A kind of method and apparatus for closing application program
CN107241521B (en) Webpage access method and device
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN105427161A (en) Monetary exchange rate exchange method and device
CN107820300A (en) Network search method and device
CN112184218A (en) Data processing method and device and data processing device
CN107230064B (en) Virtual card multiplexing method and device
CN112464110A (en) Method, device, server, client, terminal and storage medium for promoting interpersonal activities in application with social function
CN103945321B (en) The method and apparatus of resource transfers
CN104835035A (en) Numerical value transferring method, device, and system
CN116402618A (en) Funds distribution method, funds distribution device, electronic equipment and storage medium
CN116647323A (en) Processing method, device and equipment based on calculation force transaction
CN115062921A (en) Carbon emission quota adjusting method and device, storage medium and electronic equipment
CN114186894A (en) Project risk detection method and device, electronic equipment and storage medium
CN107707862A (en) Treating method and apparatus, first terminal, the second terminal of Video Remote assistance
CN108074094B (en) Resource supplementing method and device
CN109255601B (en) Terminal bus card processing method and device
CN105160527A (en) Mobile payment method and device
CN112685765B (en) Data quality evaluation method and device for data quality evaluation
CN114826648A (en) Authentication assembly, authentication method, electronic equipment and storage medium
CN117273893A (en) Legal overdraft method and device for fund pool and storage medium
CN116645096A (en) Resource processing method and device, electronic equipment and storage medium
CN107784224B (en) Permission adaptation method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination