[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109345247B - Resource flow transaction method, device, equipment and medium applied to provider client - Google Patents

Resource flow transaction method, device, equipment and medium applied to provider client Download PDF

Info

Publication number
CN109345247B
CN109345247B CN201811182913.4A CN201811182913A CN109345247B CN 109345247 B CN109345247 B CN 109345247B CN 201811182913 A CN201811182913 A CN 201811182913A CN 109345247 B CN109345247 B CN 109345247B
Authority
CN
China
Prior art keywords
client
transaction
resource
resource flow
requester
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.)
Active
Application number
CN201811182913.4A
Other languages
Chinese (zh)
Other versions
CN109345247A (en
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.)
Hefei DappWorks Technology Co Ltd
Original Assignee
Hefei DappWorks Technology 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 Hefei DappWorks Technology Co Ltd filed Critical Hefei DappWorks Technology Co Ltd
Priority to CN201811182913.4A priority Critical patent/CN109345247B/en
Publication of CN109345247A publication Critical patent/CN109345247A/en
Application granted granted Critical
Publication of CN109345247B publication Critical patent/CN109345247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a resource flow transaction method, a device, equipment and a medium applied to a provider client, wherein the method is applied to the provider client and comprises the following steps: establishing an association with a requestor client through a blockchain server, providing a resource stream to the requestor client such that the requestor client receives and uses the resource stream; obtaining credential information representing a state of the requester client using the resource stream, sending the credential information to a blockchain server, and determining, by the blockchain server, a first numerical value based on the credential information, where the first numerical value is used to represent a numerical value added by the requester client to an account of a provider client. By applying the embodiment of the invention, a fair resource flow transaction mode is realized.

Description

Resource flow transaction method, device, equipment and medium applied to provider client
Technical Field
The invention relates to the technical field of internet, in particular to a method, a device, equipment and a medium applied to resource flow transaction of a provider client.
Background
With the development of scientific technology and the continuous enhancement of social connectivity, the trading and sharing of resources become more and more common, wherein due to the characteristics of liquidity and consumptiveness, resource streams are often traded between requesters needing to use the resource streams and providers capable of providing the resource streams. In the prior art, the transaction of the resource flow is usually only participated by two parties, namely a requester and a provider, and due to lack of reliable supervision of other parties, malicious behaviors that one or more parties of the requester and the provider obtain illegal benefits through cheating often occur in the transaction process, and the transaction of the resource flow cannot be carried out fairly, justly and transparently.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a medium for resource flow transaction of a provider client, so as to realize a fair resource flow transaction mode.
The invention solves the technical problems through the following technical scheme:
the embodiment of the invention provides a resource flow transaction method applied to a provider client, which is applied to the provider client and comprises the following steps:
establishing an association with a requestor client through a blockchain server, providing a resource stream to the requestor client such that the requestor client receives and uses the resource stream;
obtaining credential information representing a state of the requester client using the resource stream, sending the credential information to a blockchain server, and determining, by the blockchain server, a first numerical value based on the credential information, where the first numerical value is used to represent a numerical value added by the requester client to an account of a provider client.
Optionally, the establishing, by the blockchain server, an association with the requester client, and the providing the resource flow to the requester client includes:
receiving transaction request information sent by a blockchain server, wherein the transaction request information comprises identification information of a requester client and a digital signature of the requester client, and the transaction request information is sent to the blockchain server by the requester client;
when the transaction request information is granted, transmitting transaction grant information to a blockchain server, the transaction grant information including the transaction request information and a digital signature of a provider client, and beginning to provide a resource stream to the requestor client.
Optionally, the transaction request information further includes a total amount of the expected used resource stream;
the establishing of the association with the client of the requester through the blockchain server further comprises: when the total amount of expected usage resource flow is not greater than the total amount of resource flow that can be provided, the transaction request information is granted.
Optionally, obtaining credential information that characterizes a state of the requesting client using the resource stream, and sending the credential information to the blockchain server includes:
receiving a resource flow use certificate sent by the client of the requester;
and if the resource flow use certificate is not received after the preset time is exceeded, judging that the requesting client end uses the resource flow to be ended, and sending the received resource flow use certificate to the block chain server.
Optionally, if the resource flow usage credential sent by the requestor client includes a digital signature of the requestor client, the sending the received resource flow usage credential to the blockchain server further includes: verifying the resource flow use certificate based on the digital signature of the requester client, and if the verification is true, sending the resource flow use certificate to a block chain server; and/or
The sending the received resource flow usage credentials to the blockchain server further comprises: and correspondingly sending the resource flow use certificate and the digital signature of the client side of the provider to a blockchain server.
Optionally, the resource stream comprises at least one of: network traffic resources, power resources, computing resources, and/or designated data flow resources with real-time dynamics.
The embodiment of the invention provides a resource flow transaction device applied to a provider client, which is applied to the provider client and comprises the following components:
the transaction establishing module is used for establishing association with the client of the requester through the blockchain server and providing the resource flow to the client of the requester so that the client of the requester receives and uses the resource flow;
and the transaction management module is used for acquiring credential information representing the state of the requester client using the resource flow, sending the credential information to the blockchain server, and determining a first numerical value by the blockchain server based on the credential information, wherein the first numerical value is used for representing a numerical value added to an account of the provider client by the requester client.
Optionally, the establishing a transaction with the client via the blockchain server by the transaction establishing module, and providing the resource flow to the client includes:
the transaction establishing module is used for receiving transaction request information sent by the blockchain server, wherein the transaction request information comprises identification information of a requester client and a digital signature of the requester client, and the transaction request information is sent to the blockchain server by the requester client; when the transaction request information is granted, transmitting transaction grant information to a blockchain server, the transaction grant information including the transaction request information and a digital signature of a provider client, and beginning to provide a resource stream to the requestor client.
Optionally, the transaction request information further includes a total amount of the expected used resource stream;
the transaction establishing module is further configured to grant the transaction request information when the total amount of expected usage resource flow is not greater than the total amount of resource flow that can be provided.
Optionally, the obtaining, by the transaction management module, credential information representing a state of the requester client using the resource stream, and sending the credential information to the blockchain server includes:
the transaction management module is used for receiving a resource flow use certificate sent by the client of the requester; and if the resource flow use certificate is not received after the preset time is exceeded, judging that the requesting client end uses the resource flow to be ended, and sending the received resource flow use certificate to the block chain server.
Optionally, the resource flow usage credential sent by the requestor client includes a digital signature of the requestor client, and the transaction management module is further configured to verify the resource flow usage credential based on the digital signature of the requestor client, and send the resource flow usage credential to the block chain server if the verification is true; and/or
And the transaction management module is also used for correspondingly sending the resource flow use certificate and the digital signature of the client side of the provider to the blockchain server.
Optionally, the resource stream comprises at least one of: network traffic resources, power resources, computing resources, and/or designated data flow resources with real-time dynamics.
The embodiment of the invention provides computer equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the computer equipment realizes that:
a method of trading a resource flow according to any one of the preceding claims.
An embodiment of the present invention provides a computer-readable medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform:
a method of trading a resource flow according to any one of the preceding claims.
Compared with the prior art, the invention has the following advantages:
by applying the embodiment of the invention, the transaction of the resource flow is participated in by the blockchain server as a third party from the beginning to the end, and the blockchain server is any node in the blockchain network, and the action of any blockchain server is seen by other blockchain servers in the blockchain network, so that the multi-party credible supervision on the transaction action of the resource flow is formed, no matter a requester, a provider or the blockchain server in the blockchain network cannot cheat, the problem that either one or more than two parties of the requester and the provider cheat in the resource flow transaction process can be at least partially solved, alleviated, inhibited or even avoided, and a fair resource flow transaction mode is realized.
Drawings
Fig. 1 is a schematic view of a scenario in which the embodiment of the present invention may be applied;
fig. 2 is a schematic flow chart of a resource flow transaction method applied to a provider client according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a resource flow transaction apparatus applied to a provider client according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following examples are given for the detailed implementation and specific operation of the present invention, but the scope of the present invention is not limited to the following examples.
The embodiment of the invention provides a method, a device, equipment and a medium for trading a resource flow of a client of a provider, and firstly introduces the method for trading the resource flow of the client of the provider provided by the embodiment of the invention.
Fig. 1 is a schematic view of a scenario to which the embodiment of the present invention may be applied. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a computer device 101, a computer device 102, and a network 103. While the computer device 101 is shown in fig. 1 as a server, in other embodiments the computer device 101 may be a terminal device installed with various client applications, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., and the computer device 101 may also be a server for providing various services. While the computer device 102 is shown in fig. 1 as a terminal device, in other embodiments the computer device 102 may be a terminal device installed with various client applications, including but not limited to smart phones, tablets, laptop computers, desktop computers, and the like, and the computer device 102 may also be a server for providing various services. Network 103 is the medium used to provide communications links between computer device 101 and computer device 102, and network 103 may include various connection types, such as wired, wireless communications links, or fiber optic cables, among others.
The computer device 101 and the computer device 102 may perform a transaction of the resource stream through the network 103, for example, the computer device 101 may be a requester requiring use of the resource stream, the computer device 102 may be a provider capable of providing the resource stream, after the transaction of the resource stream is started, the computer device 102 provides the corresponding resource stream to the computer device 101, the computer device 101 receives and uses the resource stream, after the computer device 101 stops using the resource stream, the computer device 101 pays a corresponding transaction fee to the computer device 102 according to the total amount of the resource stream used by the computer device 101, and the transaction is ended after the transaction fee is paid. Similarly, computer device 102 may be a requester requiring use of the resource stream, computer device 101 may be a provider capable of providing the resource stream, after the transaction of the resource stream is started, computer device 101 provides the corresponding resource stream to computer device 102, computer device 102 receives and uses the resource stream, after computer device 102 stops using the resource stream, computer device 102 pays a corresponding transaction fee to computer device 101 according to the total amount of the resource stream used by computer device 102, and the transaction is ended after the transaction fee is paid.
It should be understood that the type and number of computer devices and networks in FIG. 1 are merely illustrative. There may be any type and number of computer devices and networks, as the implementation requires.
Fig. 2 is a schematic flowchart of a resource flow transaction method applied to a provider client according to an embodiment of the present invention, and as shown in fig. 2, the method is applied to the provider client, and the resource flow transaction process provided by the present disclosure is described as follows from the perspective of the provider client:
the method comprises the following steps:
s201: establishing an association with a requestor client through a blockchain server, providing a resource stream to the requestor client such that the requestor client receives and uses the resource stream.
S202: obtaining credential information representing a state of the requester client using the resource stream, sending the credential information to a blockchain server, and determining, by the blockchain server, a first numerical value based on the credential information, where the first numerical value is used to represent a numerical value added by the requester client to an account of a provider client.
It can be seen that the method shown in fig. 2 establishes an association with a corresponding requester client through the blockchain server before the transaction starts to perform the transaction, enables the blockchain server to supervise the transaction progress status by sending the credential information to the blockchain server during the transaction, and determines the transaction fee through the blockchain server after the transaction is ended so as to enable the requester client to perform payment. According to the method, the transaction of the resource flow is participated in by the blockchain server as a third party from beginning to end, and the blockchain server is any node in the blockchain network, and the action of any blockchain server is seen by other blockchain servers in the blockchain network, so that multi-party credible supervision on the transaction action of the resource flow is formed, the blockchain server in a requester, a provider or the blockchain network cannot cheat, and a fair transaction mode of the resource flow is realized.
As described above, the resource flow in the embodiments of the present disclosure refers to a resource that can be continuously and streamingly provided and consumed with usage, and may be, for example, one or more of a network traffic resource, a power resource, a computing resource, a designated data flow resource with real-time dynamics, and the like, without limitation.
In one embodiment of the present disclosure, operation S201 of the method shown in fig. 2 establishes an association with a requesting client through a blockchain server, and providing a resource flow to the requesting client includes: receiving transaction request information sent by a blockchain server, wherein the transaction request information comprises identification information of a requester client and a digital signature of the requester client, the transaction request information is sent to the blockchain server by the requester client, when the transaction request information is permitted, transaction permission information is sent to the blockchain server, the transaction permission information comprises the transaction request information and the digital signature of a provider client, and resource flow is started to be provided to the requester client.
According to the embodiment, after the requester client selects the provider client according to the self requirement, the transaction request information expressing the transaction requirement of the resource flow is sent to the provider client through the blockchain server, the provider client can judge whether to permit the transaction request information according to the self requirement, if the transaction request information is permitted, the corresponding transaction permission information is sent to the blockchain server, namely association between the requester client and the provider client is established, the transaction can be started, if the transaction request information is not permitted, subsequent processing can be omitted, namely association between the requester client and the provider client is not established, and the transaction cannot be carried out. The transaction request information carries a digital signature of a requester client for proving the authenticity of the transaction request information, and the blockchain server can forward the transaction request information to the provider client after verifying that the transaction request information is true based on the digital signature of the requester client, or the provider client can verify the authenticity of the transaction request information based on the digital signature of the requester client after receiving the transaction request information, and whether the transaction request information is permitted or not is considered after the transaction request information is verified to be true. The transaction approval information carries a digital signature of a provider client for proving authenticity of the transaction approval information, and the blockchain server may verify authenticity of the transaction approval information based on the digital signature of the provider client, or the blockchain server may verify authenticity of the transaction approval information collectively not only by the digital signature of the provider client but also by the digital signature of a requester client in the transaction request information carried in the transaction approval information.
Specifically, the digital signature of the requester client and/or the digital signature of the provider client may be formed by means of asymmetric encryption, for example,
specifically, in this embodiment, digital signatures of both transaction parties may be formed in an asymmetric encryption manner, for any requesting client, the requesting client corresponds to a unique key pair, and the key pair includes a public key and a private key, where the public key is public, that is, other requesting clients, each provider client, and/or each blockchain server may obtain the public key of the requesting client, and the private key is not public, and any other party cannot obtain the private key of the requesting client, and only the requesting client can use the private key by itself. Similarly, any provider client may have a dedicated key pair, and any blockchain server may have a dedicated key pair. The digital signature of the requester client in the transaction request information may be obtained by encrypting the transaction request information based on a private key of the requester client, and the blockchain server may verify the authenticity of the digital signature by using a public key of the requester client to prove the authenticity of the transaction request information. And/or the digital signature of the provider client in the transaction permission information may be obtained by encrypting the transaction permission information based on a private key of the provider client, and the blockchain server may verify the authenticity of the digital signature by using a public key of the provider client to prove the authenticity of the transaction permission information. In other embodiments, the two parties to the transaction may form their respective digital signatures in other manners, and any manner that can achieve the purpose of proving the authenticity of the sent information to a plurality of blockchain servers as third parties may be used, which is not limited herein.
Further, as an optional embodiment, the transaction request information sent by the requester client further includes a total amount of the expected used resource flow, and after the transaction request information is forwarded to the provider client by the blockchain server, the provider client may determine whether itself can meet the supply requirement according to the total amount of the expected used resource flow therein, i.e. as one of the references for determining whether to permit the transaction. That is, the operation S201 of establishing an association with the requester client through the blockchain server further includes: when the total amount of expected usage resource flow is not greater than the total amount of resource flow that can be provided, the transaction request information is granted.
In one embodiment of the present disclosure, the obtaining, by operation S202 of the method shown in fig. 2, credential information characterizing a state of the requesting client using the resource stream, and the sending the credential information to the blockchain server includes: and receiving the resource flow use certificate sent by the client side of the request party, judging that the resource flow used by the client side of the request party is finished if the resource flow use certificate is not received after the preset time is exceeded, and sending the received resource flow use certificate to the block chain server.
For example, the provider client receives a resource stream usage certificate sent by the requester client at preset time intervals, the resource stream usage certificate records information about usage states such as the number of currently used resource streams, and after receiving the resource stream usage certificate, if the resource stream usage certificate is not received after a preset time, the provider client indicates that the requester client has stopped using, the supply of the resource streams can be stopped, and the transaction fee is settled through the blockchain server.
Further, in order to improve the reliability of the credential information, the resource flow usage credential sent by the requestor client further includes, in addition to the information characterizing the resource flow usage state, a digital signature of the requestor client, where the digital signature is used to prove the authenticity of the resource flow usage credential, and then the sending, in operation S202, the received resource flow usage credential to the blockchain server further includes: and verifying the resource flow use certificate based on the digital signature of the client side of the requester, and if the verification is true, sending the resource flow use certificate to the block chain server. And/or the sending the received resource flow usage credential to the blockchain server in operation S202 further includes: and correspondingly sending the resource flow use certificate and the digital signature of the client side of the provider to the blockchain server, so that the blockchain server can verify the authenticity of the resource flow use certificate according to the digital signature of the client side of the provider and/or the digital signature of the client side of the requester. In the embodiment, the authenticity of the resource flow use certificate is proved by adding the digital signature of the requester client and the digital signature of the provider client to the resource flow use certificate, and only when the resource flow use certificate is authentic, the resource flow use certificate is considered to be valid, and the blockchain server can perform transaction settlement by using the resource flow use certificate.
It should be noted that the resource flow in the embodiment of the present disclosure refers to a resource that can be continuously and streamingly provided and consumed along with use, for example, the resource may be a network traffic resource, an electric power resource, a calculation power resource, a specified data stream resource with real-time dynamics, and the like, and various streamable consumable resources with such characteristics may be used as the resource flow in the embodiment of the present disclosure, which is not limited herein. Based on the above characteristics of the resource flow, the transaction of the resource flow is usually started when the resource flow is used, and ended when the resource flow is used, so that the transaction fee corresponding to the transaction of the resource flow is often obtained only after the transaction is ended, and the corresponding transaction fee is calculated according to the total usage amount of the resource flow.
Specifically, in this embodiment, the above-mentioned asymmetric encryption manner may also be adopted to form digital signatures of both transaction parties, for example, the requesting client encrypts the resource stream usage certificate based on its own private key to obtain the digital signature of the requesting client, the providing client encrypts the resource stream usage certificate and the digital signature of the requesting client based on its own private key to obtain the digital signature of the providing client, and the blockchain server may verify the authenticity of the digital signature of the requesting client and the digital signature of the providing client by using the public key of the requesting client and the public key of the providing client to prove the authenticity of the transaction request information.
By applying the embodiment shown in fig. 2 of the present invention, the transaction of the resource flow is participated in by the blockchain server as the third party from the beginning to the end, and because the blockchain server is any node in the blockchain network, the behavior of any blockchain server is witnessed by other blockchain servers in the blockchain network, so that multi-party credible supervision for the transaction behavior of the resource flow is formed, no matter whether the requester, the provider or the blockchain server in the blockchain network cannot cheat, the problem of cheating by any one or more parties of the requester and the provider in the resource flow transaction process can be at least partially solved, alleviated, inhibited, or even avoided, and a fair resource flow transaction mode is realized.
For ease of understanding, a specific application of the resource flow trading system to which embodiments of the present invention are applied is described below. In practical application, first, the requester client a searches for traffic sharing information sent by each provider client through a dedicated channel, where the traffic sharing information corresponds to the resource flow publishing information, and one or more kinds of information used for describing characteristics of the provided traffic, such as unit traffic price, total amount of the provided traffic, and type of the provided traffic, may be recorded in the traffic sharing information sent by each provider client, and the requester client a may select a suitable provider client according to its own needs. The dedicated channel used by the client a of the requester may be a local area network provided by the client of the provider and enabling the client a of the requester to be used for free at certain time, certain place and the like, and of course, the dedicated channel may be in other forms as long as the requirement of the client a of the requester for viewing the traffic sharing information can be temporarily met.
Then, after the requester client a selects the provider client B, transaction request information is generated, which includes: the identification information of the requestor client a, the identification information of the selected provider client B, the expected usage traffic total, and a second value representing the amount of the prepaid deposit, the second value corresponding to the value of the digital currency decremented from the account of the requestor client a, the requestor client a further generating a digital signature a1 of the requestor client a based on the generated transaction request information and the private key of the requestor client a, the digital signature a1 being appended to the generated transaction request information. The client a of the requester sends the transaction request information to a traffic sharing contract running in the blockchain server, and after the traffic sharing contract verifies that the transaction request information is true according to the public key and the digital signature a1 of the client a of the requester, sending the transaction request information to the provider client B, wherein the provider client B can determine whether to permit traffic sharing with respect to the requester client a according to information recorded in the transaction request information, and if the traffic sharing is permitted, the provider client B can generate a digital signature B1 of the provider client B based on the received transaction request information and a private key of the provider client B, the digital signature B1 is attached to the received transaction request message to form transaction approval message, which the provider client B sends to the traffic sharing contract indicating approval for traffic sharing and starts providing traffic to the requester client a.
The traffic sharing contract can store the received transaction permission information into the blockchain database corresponding to each blockchain server through the consensus verification of each blockchain server so as to obtain the joint supervision of multiple parties.
During the traffic sharing period, the requester client a periodically transmits to the provider client B traffic usage credentials corresponding to the above resource flow usage credentials, and each traffic usage credential records the total amount of traffic used by the requester client a from the start of usage to the time point corresponding to the traffic usage credential. The provider client B can know that the requester client a is still using the traffic each time the provider client B receives the traffic use credential, and when the provider client B does not receive the updated traffic use credential more than a predetermined time after receiving one traffic use credential, the provider client B can determine that the requester client a stops using the traffic, and the provider client B can stop providing the traffic to the requester client a and submit the last received traffic use credential to the traffic sharing contract. In this way, when the requester client a does not send traffic usage credentials to the provider client B for a long time, the provider client B can prevent a situation where the requester client a uses traffic without paying for it by cutting off traffic sharing.
After receiving the flow use certificate submitted by the provider client B, the flow sharing contract may calculate, based on the flow use certificate and the unit flow price, a transaction fee corresponding to the current flow sharing, that is, a numerical value of digital money that the requester client a should pay to the provider client B, where the transaction fee is represented by a first numerical value, and the first numerical value represents a numerical value added to an account of the provider client B. The transaction fee may be deducted from the deposit paid by the requester client a in advance, if the second value is 200 and the first value is 150, the deposit is left 50 after the transaction fee is deducted from the deposit of the requester client a, and the remaining deposit may be processed according to the requirement of the requester client a, and if the deposit is returned to the requester client a, that is, the account value of the requester client a is increased by 50, the deposit may not be returned to the requester client a, and the deposit is used when the requester client a needs to pay the transaction fee next time. This completes the transaction process of the resource flow.
It can be seen that, compared with the current situation that network traffic resources are provided for users only by each large telecommunication operator, the traffic is provided for the client of the requester through the provider client selected bidirectionally and autonomously, the monopoly established by each large telecommunication operator by virtue of the advantages of policy, capital, user scale and the like is broken, the blockchain network is introduced to participate in the witness process, the traffic pricing becomes public and transparent, the statistics of traffic use conditions is not counted by one operator, but is jointly witnessed and supervised by multiple parties, the fairness and reasonability of the traffic transaction process are realized, and the requirements of the traffic provider and the traffic requester are both met. The method has the advantages of being not only for the network traffic resource, but also for the transaction of other various resource flows.
Corresponding to the embodiment of the invention shown in fig. 2, the embodiment of the invention also provides a resource flow transaction device applied to the provider client.
Fig. 3 is a schematic structural diagram of a resource flow transaction apparatus applied to a provider client according to an embodiment of the present invention, and as shown in fig. 3, the resource flow transaction apparatus 300 includes: a transaction setup module 301 and a transaction management module 302.
The transaction establishment module 301 is configured to establish an association with a requestor client through a blockchain server, and provide a resource stream to the requestor client, so that the requestor client receives and uses the resource stream.
The transaction management module 302 is configured to obtain credential information representing a state of the requester client using the resource stream, send the credential information to the blockchain server, and determine, by the blockchain server, a first value based on the credential information, where the first value is used to represent a value added to an account of the provider client by the requester client.
By applying the embodiment shown in fig. 3 of the present invention, the transaction of the resource stream is participated in by the blockchain server as a third party from the beginning to the end, and since the blockchain server is an arbitrary node in the blockchain network, and the behavior of any blockchain server is witnessed by other blockchain servers in the blockchain network, a multi-party trusted supervision on the transaction behavior of the resource stream is formed, and no matter a requester, a provider or the blockchain server in the blockchain network cannot cheat, the problem of cheating by any one or more parties of the requester and the provider in the resource stream transaction process can be at least partially solved, alleviated, inhibited, or even avoided, thereby realizing a fair resource stream transaction mode.
In one embodiment of the present disclosure, the transaction establishment module 301 establishes an association with the requestor client through the blockchain server, and providing the resource stream to the requestor client includes: the transaction establishing module 301 is configured to receive transaction request information sent by a blockchain server, where the transaction request information includes identification information of a requester client and a digital signature of the requester client, the transaction request information is sent by the requester client to the blockchain server, and when the transaction request information is granted, send transaction grant information to the blockchain server, where the transaction grant information includes the transaction request information and the digital signature of a provider client, and start providing a resource stream to the requester client.
Further, as an optional embodiment, the transaction request information may also include an expected total amount of usage resource flow. The transaction establishment module 301 is further configured to grant the transaction request information when the total amount of expected usage resource flows is not greater than the total amount of resource flows that can be provided.
In one embodiment of the present disclosure, the transaction management module 302 obtaining credential information characterizing a state of the requesting client using the resource stream, and sending the credential information to the blockchain server includes: the transaction management module 302 is configured to receive a resource flow usage credential sent by the requestor client; and if the resource flow use certificate is not received after the preset time is exceeded, judging that the requesting client end uses the resource flow to be ended, and sending the received resource flow use certificate to the block chain server.
Optionally, the resource flow usage credential sent by the requestor client includes a digital signature of the requestor client, and the transaction management module 302 is further configured to verify the resource flow usage credential based on the digital signature of the requestor client, and if the verification is true, send the resource flow usage credential to the block chain server; and/or the transaction management module 302 is further configured to correspondingly send the resource flow usage certificate and the digital signature of the provider client to the blockchain server.
In the above embodiments, the resource flow may include, but is not limited to, at least one of the following: network traffic resources, power resources, computing resources, and/or designated data flow resources with real-time dynamics.
According to an embodiment of the present disclosure, the resource flow transaction apparatus 600 and the resource flow transaction apparatus 700 may be deployed in the same client or in different clients, which is not limited herein.
It should be noted that the implementation, solved technical problems, implemented functions, and achieved technical effects of each module/unit/subunit and the like in the apparatus part embodiment are respectively the same as or similar to the implementation, solved technical problems, implemented functions, and achieved technical effects of each corresponding step in the method part embodiment, and are not described herein again.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any number of the transaction establishment module 301 and the transaction management module 302 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the transaction establishing module 301 and the transaction managing module 302 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable way of integrating or packaging a circuit, or in any one of three implementations of software, hardware and firmware, or in a suitable combination of any of them. Alternatively, at least one of the transaction establishing module 301 and the transaction managing module 302 may be at least partly implemented as a computer program module, which when executed may perform a corresponding function.
Corresponding to the embodiment shown in fig. 2 of the present invention, the embodiment of the present invention further provides a computer device.
The computer device shown in fig. 4 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention, and as shown in fig. 4, the computer device 400 includes a processor 401 that can perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. Processor 401 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 401 may also include onboard memory for caching purposes. Processor 401 may include a single processing unit or multiple processing units for performing the different actions of the method flows in accordance with embodiments of the present disclosure.
In the RAM 403, various programs and data necessary for the operation of the computer apparatus 400 are stored. The processor 401, ROM 402 and RAM 403 are connected to each other by a bus 404. The processor 401 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 402 and/or the RAM 403. Note that the programs may also be stored in one or more memories other than the ROM 402 and RAM 403. The processor 401 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, computer device 400 may also include an input/output (I/O) interface 405, input/output (I/O) interface 405 also being connected to bus 404. The computer device 400 may also include one or more of the following components connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 910 is also connected to the I/O interface 405 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 911. The computer program, when executed by the processor 401, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
Corresponding to the embodiment of the present invention shown in fig. 2, an embodiment of the present invention further provides a computer-readable medium, which may be included in the apparatus/device/system described in the above embodiment; or may exist separately and not be assembled into the device/apparatus/system. The computer readable medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, a computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical fiber cable, radio frequency signals, etc., or any suitable combination of the foregoing.
For example, according to embodiments of the present disclosure, a computer-readable medium may include ROM 402 and/or RAM 403 and/or one or more memories other than ROM 402 and RAM 403 described above.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (14)

1. A resource flow transaction method applied to a provider client is characterized by comprising the following steps:
establishing an association with a requestor client through a blockchain server, providing a resource stream to the requestor client such that the requestor client receives and uses the resource stream;
during the period of using the resource flow, generating a resource flow use certificate representing the current use state at intervals of preset time, acquiring certificate information representing the state of using the resource flow by the requester client, sending the certificate information to a blockchain server, and determining a first numerical value by the blockchain server based on the certificate information, wherein the first numerical value is used for representing a numerical value added to an account of a provider client by the requester client; the method comprises the steps of enabling a blockchain server to supervise the transaction progress status by sending credential information to the blockchain server during the transaction progress, and determining a transaction fee by the blockchain server after the transaction is ended so as to enable a requester client to pay.
2. The method of claim 1, wherein establishing an association with a requestor client through a blockchain server, providing a resource stream to the requestor client comprises:
receiving transaction request information sent by a blockchain server, wherein the transaction request information comprises identification information of a requester client and a digital signature of the requester client, and the transaction request information is sent to the blockchain server by the requester client;
when the transaction request information is granted, transmitting transaction grant information to a blockchain server, the transaction grant information including the transaction request information and a digital signature of a provider client, and beginning to provide a resource stream to the requestor client.
3. The method of claim 2,
the transaction request information further includes an expected total amount of usage resource flow;
the establishing of the association with the client of the requester through the blockchain server further comprises: when the total amount of expected usage resource flow is not greater than the total amount of resource flow that can be provided, the transaction request information is granted.
4. The method of claim 1, wherein obtaining credential information characterizing a state of the requesting client using a resource stream, and wherein sending the credential information to a blockchain server comprises:
receiving a resource flow use certificate sent by the client of the requester;
and if the resource flow use certificate is not received after the preset time is exceeded, judging that the requesting client end uses the resource flow to be ended, and sending the received resource flow use certificate to the block chain server.
5. The method of claim 4,
the sending the received resource flow usage credential to the blockchain server further includes: verifying the resource flow use certificate based on the digital signature of the requester client, and if the verification is true, sending the resource flow use certificate to a block chain server; and/or
The sending the received resource flow usage credentials to the blockchain server further comprises: and correspondingly sending the resource flow use certificate and the digital signature of the client side of the provider to a blockchain server.
6. The method of claim 1, wherein the resource stream comprises at least one of: network traffic resources, power resources, computing resources, and/or designated data flow resources with real-time dynamics.
7. A resource flow transaction device applied to a provider client is characterized by comprising:
the transaction establishing module is used for establishing association with the client of the requester through the blockchain server and providing the resource flow to the client of the requester so that the client of the requester receives and uses the resource flow;
the transaction management module is used for generating a resource flow use certificate representing the current use state at intervals of preset time during the use of the resource flow, acquiring certificate information representing the use state of the resource flow by the requester client, sending the certificate information to the blockchain server, and determining a first numerical value by the blockchain server based on the certificate information, wherein the first numerical value is used for representing a numerical value added to an account of the provider client by the requester client; the method comprises the steps of enabling a blockchain server to supervise the transaction progress status by sending credential information to the blockchain server during the transaction progress, and determining a transaction fee by the blockchain server after the transaction is ended so as to enable a requester client to pay.
8. The apparatus of claim 7, wherein the transaction establishment module establishes an association with the requestor client via a blockchain server, and wherein providing the resource flow to the requestor client comprises:
the transaction establishing module is used for receiving transaction request information sent by the blockchain server, wherein the transaction request information comprises identification information of a requester client and a digital signature of the requester client, and the transaction request information is sent to the blockchain server by the requester client; when the transaction request information is granted, transmitting transaction grant information to a blockchain server, the transaction grant information including the transaction request information and a digital signature of a provider client, and beginning to provide a resource stream to the requestor client.
9. The apparatus of claim 8,
the transaction request information further includes an expected total amount of usage resource flow;
the transaction establishing module is further configured to grant the transaction request information when the total amount of expected usage resource flow is not greater than the total amount of resource flow that can be provided.
10. The apparatus of claim 7, wherein the transaction management module obtains credential information characterizing a state of the requestor client using the resource stream, and wherein sending the credential information to a blockchain server comprises:
the transaction management module is used for receiving a resource flow use certificate sent by the client of the requester; and if the resource flow use certificate is not received after the preset time is exceeded, judging that the requesting client end uses the resource flow to be ended, and sending the received resource flow use certificate to the block chain server.
11. The apparatus of claim 10,
the resource flow use certificate sent by the requester client comprises a digital signature of the requester client, and the transaction management module is further used for verifying the resource flow use certificate based on the digital signature of the requester client, and if the verification is true, sending the resource flow use certificate to the block chain server; and/or
And the transaction management module is also used for correspondingly sending the resource flow use certificate and the digital signature of the client side of the provider to the blockchain server.
12. The apparatus of claim 7, wherein the resource stream comprises at least one of: network traffic resources, power resources, computing resources, and/or designated data flow resources with real-time dynamics.
13. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing:
a method of trading of a resource flow as claimed in any one of claims 1 to 6.
14. A computer readable medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform a method of trading for resource flows as claimed in any one of claims 1 to 6.
CN201811182913.4A 2018-10-11 2018-10-11 Resource flow transaction method, device, equipment and medium applied to provider client Active CN109345247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811182913.4A CN109345247B (en) 2018-10-11 2018-10-11 Resource flow transaction method, device, equipment and medium applied to provider client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811182913.4A CN109345247B (en) 2018-10-11 2018-10-11 Resource flow transaction method, device, equipment and medium applied to provider client

Publications (2)

Publication Number Publication Date
CN109345247A CN109345247A (en) 2019-02-15
CN109345247B true CN109345247B (en) 2021-05-07

Family

ID=65309300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811182913.4A Active CN109345247B (en) 2018-10-11 2018-10-11 Resource flow transaction method, device, equipment and medium applied to provider client

Country Status (1)

Country Link
CN (1) CN109345247B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111461691B (en) * 2020-04-17 2020-12-11 支付宝(杭州)信息技术有限公司 Flow statistical system, method and device based on block chain

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180014534A (en) * 2016-08-01 2018-02-09 서강대학교산학협력단 Verification system and method for transaction based block chain
JP2018156464A (en) * 2017-03-17 2018-10-04 Kddi株式会社 Optimizing method and system for decentralized container arrangement

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10026118B2 (en) * 2016-02-22 2018-07-17 Bank Of America Corporation System for allowing external validation of data in a process data network
CN108011709A (en) * 2016-12-27 2018-05-08 北京量子保科技有限公司 A kind of data trade method based on block chain
CN107426157B (en) * 2017-04-21 2020-04-17 杭州趣链科技有限公司 Alliance chain authority control method based on digital certificate and CA authentication system
CN108596649A (en) * 2018-03-22 2018-09-28 深圳市网心科技有限公司 Account book rewards settlement method, server and computer readable storage medium
CN108596365A (en) * 2018-03-29 2018-09-28 云南电网有限责任公司信息中心 Distributed power energy trade network system
CN108600975A (en) * 2018-04-26 2018-09-28 深圳市威宇智通科技有限公司 Flow sharing method and its system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180014534A (en) * 2016-08-01 2018-02-09 서강대학교산학협력단 Verification system and method for transaction based block chain
JP2018156464A (en) * 2017-03-17 2018-10-04 Kddi株式会社 Optimizing method and system for decentralized container arrangement

Also Published As

Publication number Publication date
CN109345247A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109300038B (en) Resource flow transaction system
US11528147B2 (en) Verifying integrity and secure operations of cloud-based software services
KR101354898B1 (en) Electronic commerce transactions over a peer-to-peer communications channel
US20170134161A1 (en) Blockchaining for media distribution
CN109168139B (en) WiFi sharing method based on block chain and server
Wright et al. SmartEdge: A smart contract for edge computing
CN108668277B (en) Method and equipment for sharing and acquiring information
US20180019873A1 (en) System and method of cryptographically provable zero knowledge social networking
JP2021535680A (en) Blockchain system data management methods, equipment, computer programs, and electronics
CN110619222A (en) Authorization processing method, device, system and medium based on block chain
US12079867B2 (en) Electronic transaction system, transaction server, verification server, method of transaction, and program
CN114978635A (en) Cross-domain authentication method and device, and user registration method and device
US12026760B2 (en) Method and apparatus for transacting resource flow
CN109711840B (en) Transaction data processing method and device and storage medium
CN109272318B (en) Resource flow transaction method, device, equipment and medium applied to requester client
WO2018024815A1 (en) Resource path monitoring
CN109325858B (en) Resource flow transaction method and device, computer equipment and computer readable medium
CN116167068A (en) Block chain-based network edge resource trusted allocation method and system
CN116308321A (en) Account separating method and device based on income account separating system, electronic equipment and storage medium
CN109345247B (en) Resource flow transaction method, device, equipment and medium applied to provider client
KR101120059B1 (en) Billing verifying apparatus, billing apparatus and method for cloud computing environment
CN112488707B (en) Business circulation supervision method and system
CN110276693A (en) Settlement of insurance claim method and system
CN118214761A (en) Attribute-based encrypted data sharing method, system and device based on block chain
US9996875B2 (en) Online bidding system

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
GR01 Patent grant
GR01 Patent grant