CN109272318B - Resource flow transaction method, device, equipment and medium applied to requester client - Google Patents

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

Info

Publication number
CN109272318B
CN109272318B CN201811182915.3A CN201811182915A CN109272318B CN 109272318 B CN109272318 B CN 109272318B CN 201811182915 A CN201811182915 A CN 201811182915A CN 109272318 B CN109272318 B CN 109272318B
Authority
CN
China
Prior art keywords
client
resource
provider
information
blockchain server
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
CN201811182915.3A
Other languages
Chinese (zh)
Other versions
CN109272318A (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 CN201811182915.3A priority Critical patent/CN109272318B/en
Publication of CN109272318A publication Critical patent/CN109272318A/en
Application granted granted Critical
Publication of CN109272318B publication Critical patent/CN109272318B/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/3821Electronic credentials
    • G06Q20/38215Use of certificates or encrypted proofs of transaction rights

Abstract

The invention discloses a resource flow transaction method, a device, equipment and a medium applied to a client of a requester, wherein the method comprises the following steps: selecting a provider client, and establishing association with the provider client through a blockchain server; receiving and using a resource stream provided by the provider client; generating credential information representing the state of using the resource flow according to a preset rule, sending the credential information to a 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 a provider client by a requester client. By applying the embodiment of the invention, a fair resource flow transaction mode can be realized.

Description

Resource flow transaction method, device, equipment and medium applied to requester client
Technical Field
The invention relates to the technical field of internet, in particular to a resource flow transaction method, a device, equipment and a medium applied to a client of a requester.
Background
With the development of scientific technology and the increasing connectivity of society, the trading and sharing of resources become more and more common, wherein due to the characteristics of liquidity and consumption, the resource flow is often traded between a requesting party needing to use the resource flow and a providing party capable of providing the resource flow. In the prior art, the transaction of the resource flow is often 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 resource flow transaction method, a device, equipment and a medium applied to a client of a requester 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 client of a requester, which is applied to the client of the requester and comprises the following steps:
selecting a provider client, and establishing association with the provider client through a blockchain server;
receiving and using a resource stream provided by the provider client;
generating credential information representing the state of using the resource flow according to a preset rule, sending the credential information to a 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 a requester client.
Optionally, the selecting one provider client, and establishing an association with the provider client through the blockchain server includes:
acquiring resource flow release information of a plurality of provider clients, wherein the resource flow release information comprises identification information of the provider clients and price information of resource flows;
the method comprises the steps of selecting one provider client based on the plurality of resource stream publishing information, sending transaction request information to a blockchain server, and forwarding the transaction request information to the selected provider client by the blockchain server so that the provider client starts providing the resource stream when the transaction request information is permitted.
Optionally, the transaction request information includes a digital signature of the requester client, so that the blockchain server forwards the transaction request information to the provider client when verifying that the transaction request information is true based on the digital signature of the requester client.
Optionally, the generating credential information representing a state of the resource flow according to the preset rule, and sending the credential information to the blockchain server includes:
during the use of the resource flow, generating a resource flow use certificate representing the current use state at preset time intervals, sending the resource flow use certificate to the provider client, and sending the resource flow use certificate to the blockchain server by the provider client.
Optionally, the resource flow usage credential includes a digital signature of the requestor client, so that the provider client sends the resource flow usage credential to the blockchain server when verifying that the resource flow usage credential is true based on the digital signature of the requestor client.
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 client of a requester, which is applied to the client of the requester and comprises the following components:
the transaction establishing module is used for selecting a provider client and establishing association with the provider client through a blockchain server;
a resource receiving module for receiving and using a resource stream provided by the provider client;
the transaction management module is used for generating credential information representing the state of the resource flow to be used according to a preset rule, 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 client side of the provider by the client side of the requester.
Optionally, the selecting, by the transaction establishing module, a provider client, and establishing an association with the provider client through the blockchain server includes:
the transaction establishing module is used for acquiring resource flow issuing information of a plurality of provider clients, wherein the resource flow issuing information comprises identification information of the provider clients and price information of resource flows; the method comprises the steps of selecting one provider client based on the plurality of resource stream publishing information, sending transaction request information to a blockchain server, and forwarding the transaction request information to the selected provider client by the blockchain server so that the provider client starts providing resource streams when the transaction request information is permitted.
Optionally, the transaction request information includes a digital signature of the requester client, so that the blockchain server forwards the transaction request information to the provider client when verifying that the transaction request information is true based on the digital signature of the requester client.
Optionally, the generating, by the transaction management module according to a preset rule, credential information representing a state of using the resource flow, and sending the credential information to the blockchain server includes:
the transaction management module is used for generating a resource flow use certificate representing the current use state at preset time intervals during the use of the resource flow, sending the resource flow use certificate to the provider client, and sending the resource flow use certificate to the block chain server by the provider client.
Optionally, the resource flow usage credential includes a digital signature of the requestor client, so that the provider client sends the resource flow usage credential to the blockchain server when verifying that the resource flow usage credential is true based on the digital signature of the requestor client.
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.
An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement:
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, which 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.
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 behavior of any blockchain server is witnessed by other blockchain servers in the blockchain network, so that the multi-party credible supervision on the transaction behavior of the resource flow is formed, no matter whether a requester, a provider or the blockchain server in the blockchain network can not cheat, the problem that either the requester or the provider or more cheats in the resource flow transaction process can be at least partially solved, alleviated, inhibited or even avoided, and the 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 client of a requester according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a resource flow transaction apparatus applied to a requester 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 resource flow transaction method, a device, equipment and a medium applied to a client of a requester, and firstly introduces the resource flow transaction method applied to the client of the requester 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, and the like, 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 a 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, depending on the implementation desired.
Fig. 2 is a schematic flow chart of a resource flow transaction method applied to a client of a requester according to an embodiment of the present invention; as shown in fig. 2, the method is applied to a requester client, and a transaction process of a resource stream provided by the present disclosure is explained below from the perspective of the requester client.
As shown in fig. 2, the method includes:
s201: selecting a provider client, and establishing association with the provider client through a blockchain server.
S202: a resource stream provided by the provider client is received and used.
S203: generating credential information representing the state of using the resource flow according to a preset rule, sending the credential information to a 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 a requester client.
It can be seen that the method shown in fig. 2 establishes an association with a selected provider client to conduct a transaction before the transaction begins, enables the blockchain server to supervise the status of the transaction by sending credential information to the blockchain server while the transaction is in progress, and determines the transaction fee for payment by the blockchain server after the transaction is over. 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 witnessed 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 servers in the blockchain network can not cheat no matter a requesting party, a providing party or the block chain network, and a fair resource flow transaction mode 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, step S201 of the method shown in fig. 2 selects a provider client, and establishing an association with the provider client through a blockchain server includes: the method comprises the steps of obtaining resource flow publishing information of a plurality of provider clients, wherein the resource flow publishing information comprises identification information of the provider clients and price information of resource flows, selecting one provider client based on the plurality of resource flow publishing information, sending transaction request information to a blockchain server, and forwarding the transaction request information to the selected provider client by the blockchain server, so that the provider clients start providing the resource flows when the transaction request information is permitted.
According to the embodiment, any provider client can send resource flow release information according to the characteristics of the resource flow of the provider client, the resource flow release information can be acquired by any requester client, the resource flow release information can include the related information such as the type, the quantity, the price and the like of the resource flow which can be provided, any requester client can select a proper provider client according to the requirement of the requester client, the transaction request information is sent to the provider client through the block chain server after the selected provider client is determined, and the transaction of the resource flow can be started after the permission of the provider client is obtained.
As an optional embodiment, the transaction request information sent by the requester client after selecting the provider client may include a digital signature of the requester client, so that the blockchain server forwards the transaction request information to the provider client when verifying that the transaction request information is true based on the digital signature of the requester client. It can be seen that, in this embodiment, the authenticity of the transaction request information can be verified through the digital signature of the requesting client carried in the transaction request information, and only when the transaction request information is authentic, the transaction request information is forwarded to the providing client through the blockchain server, and the corresponding transaction can be performed.
Specifically, the digital signature of the requester client may be formed through asymmetric encryption, for example, the requester client encrypts the transaction request information based on its own private key to obtain the digital signature of the requester client, and the blockchain server may verify the authenticity of the transaction request information by using the public key corresponding to the requester client, for example, in this embodiment, the digital signatures of both parties of the transaction may be formed through asymmetric encryption, and for any requester client, the requester 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, the public key of the requester client may be obtained by other requester clients, each provider client, and/or each blockchain server, and the private key is not public, 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 also have a dedicated key pair, and any blockchain server may also 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 ways, and the goal is to prove the authenticity of the sent information to a plurality of blockchain servers as third parties, and any way that can achieve this goal is possible, which is not limited herein.
Specifically, in this embodiment, the above-mentioned asymmetric encryption manner may also be adopted to form digital signatures of two parties of a transaction, for example, the requesting client may encrypt the resource stream usage certificate based on its private key to obtain the digital signature of the requesting client, the providing client may encrypt the resource stream usage certificate and the digital signature of the requesting client based on its 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.
In one embodiment of the present disclosure, the step S203 of the method shown in fig. 2 generates credential information representing a state of using the resource stream according to a preset rule, and the sending the credential information to the blockchain server includes: during the use of the resource flow, generating a resource flow use certificate representing the current use state at preset time intervals, sending the resource flow use certificate to the provider client, and sending the resource flow use certificate to the blockchain server by the provider client. Namely, the credential information is generated by the client of the requester, sent to the client of the provider from the client of the requester, and then sent to the blockchain server in the blockchain network from the client of the provider, so that a common witness of multiple parties to the credential information is formed. In this embodiment, the resource flow usage credentials are generated over time, and the provider client may send each resource flow usage credential received by the provider client to the blockchain server, or may send one or more of the received resource flow usage credentials to the blockchain server, for example, the last resource flow usage credential generated by the requester client may be sent to the blockchain server.
For example, after starting to use the resource stream, the requester client may generate a resource stream usage credential at intervals of a preset time interval T and send the resource stream usage credential to the provider client providing the resource stream, where the resource stream usage credential may record information such as the number of resource streams currently used by the requester client, so that the corresponding provider client knows the current state and situation of the requester client using the resource stream, and may timely stop the supply of the resource stream when the requester client no longer continues to use the resource stream, and may subsequently calculate a corresponding transaction fee according to the total amount of the resource stream used by the requester client.
Further, in order to increase the reliability of the credential information and avoid the credential information from being forged or tampered in the transmission process, as an optional embodiment, the resource stream usage credential further includes a digital signature of the requesting client in addition to the information characterizing the usage state of the resource stream, so that the provider client sends the resource stream usage credential to the blockchain server when verifying that the resource stream usage credential is true based on the digital signature of the requesting client. In the embodiment, the authenticity of the resource flow use credential is proved by adding the digital signature of the requesting client to the resource flow use credential, and the resource flow use credential is considered to be valid only if the providing client sends the resource flow use credential to the blockchain server if the resource flow use credential is authentic.
Specifically, the digital signature of the requester client may be formed through asymmetric encryption, for example, the requester client encrypts the resource flow usage credential based on a private key of the requester client to obtain the digital signature of the requester client, and the provider client may verify the authenticity of the resource flow usage credential by using a public key corresponding to the requester client, which is described above and is not described herein again.
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.
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 the multi-party credible supervision on 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 a certain time and a certain place, 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 method further includes generating a digital signature a1 for the requestor client a based on the generated transaction request information and a private key of the requestor client a, the digital signature a1 being appended to the generated transaction request information, the identifying information of the requestor client a, the identifying information of the selected provider client B, the expected usage traffic volume, and a second value characterizing the amount of the prepaid deposit, the second value corresponding to a value of the digital currency decremented from the account of the requestor client a. The requestor client a sends the transaction request message to a traffic sharing contract running in the blockchain server, the traffic sharing contract verifies that the transaction request message is authentic according to the public key of the requestor client a and the digital signature a1, 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 appended to the received transaction request information to form transaction approval information, which the provider client B sends to the traffic sharing contract indicating agreement to traffic sharing and to start 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 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 traffic use credential received last 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 can calculate the transaction cost corresponding to the current flow sharing based on the flow use certificate and the unit flow price, that is, the value of the digital currency that the requester client a should pay to the provider client B, the transaction cost is represented by a first value, and the first value represents the value added to the 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. The transaction process of the resource flow is completed.
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 satisfied. The method has the advantages of being not only for the network traffic resource, but also for the transaction of other various resource flows.
In the embodiment of the invention shown in fig. 2, the embodiment of the invention further provides a resource flow transaction apparatus applied to the client of the requester.
Fig. 3 is a schematic structural diagram of a resource flow transaction apparatus applied to a requester client according to an embodiment of the present invention, which is applied to a requester client. As shown in fig. 3, the resource flow transaction apparatus 300 includes: a transaction establishment module 301, a resource reception module 302, and a transaction management module 303.
The transaction establishment module 301 is configured to select a provider client with which to establish an association via the blockchain server.
Resource receiving module 302 is used to receive and use the resource stream provided by the provider client.
The transaction management module 303 is configured to generate credential information representing a state of using the resource flow according to a preset rule, 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 by the requester client to the account of the provider client.
In one embodiment of the present disclosure, the transaction establishment module 301 selects a provider client with which to establish an association via the blockchain server comprises: the transaction establishing module 301 is configured to obtain resource stream publishing information of a plurality of provider clients, where the resource stream publishing information includes identification information of the provider clients and price information of the resource streams, select one provider client based on the plurality of resource stream publishing information, send transaction request information to the blockchain server, and forward the transaction request information to the selected provider client by the blockchain server, so that the provider client starts providing the resource streams when granting the transaction request information.
Optionally, the transaction request information may include a digital signature of the requestor client, so that the blockchain server forwards the transaction request information to the provider client when verifying that the transaction request information is true based on the digital signature of the requestor client.
In an embodiment of the present disclosure, the transaction management module 303 generates credential information representing a state of using the resource stream according to a preset rule, and sending the credential information to the blockchain server includes: the transaction management module 303 is configured to generate a resource flow usage credential representing a current usage state at preset time intervals during resource flow usage, send the resource flow usage credential to the provider client, and send the resource flow usage credential to the blockchain server by the provider client.
As an optional embodiment, the resource flow usage credential includes a digital signature of the requestor client, so that the provider client sends the resource flow usage credential to the blockchain server when verifying that the resource flow usage credential is true based on the digital signature of the requestor client.
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.
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.
And/or any of the transaction establishing module 301, the resource receiving module 302, and the transaction managing module 303 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, the resource receiving module 302, and the transaction managing module 303 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 in any other reasonable manner 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, the resource receiving module 302, and the transaction managing module 303 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
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 seen 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 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 stream transaction process can be at least partially solved, alleviated, inhibited, or even avoided, thereby realizing a fair resource stream transaction mode.
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 scope of use and functionality 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 needed. 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 by 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.
In response 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.
It will be appreciated by those of skill in the art that various combinations and/or combinations of the various embodiments of the disclosure and/or the features recited in the claims can be made even if such combinations or combinations are not explicitly recited in the disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
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 (13)

1. A resource flow transaction method applied to a requester client is characterized by comprising the following steps:
selecting a provider client, and establishing association with the provider client through a blockchain server;
receiving and using a resource stream provided by the provider client;
generating credential information representing the state of using the resource flow according to a preset rule, sending the credential information to a 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 a provider client by a requester client;
the generating credential information representing a state of using the resource flow according to a preset rule, and the sending the credential information to the blockchain server includes: during the use of the resource flow, generating a resource flow use certificate representing the current use state at preset time intervals, sending the resource flow use certificate to the provider client, and sending the resource flow use certificate to the blockchain server by the provider client.
2. The method of claim 1, wherein selecting a provider client with which to establish an association with the provider client via a blockchain server comprises:
acquiring resource flow release information of a plurality of provider clients, wherein the resource flow release information comprises identification information of the provider clients and price information of resource flows;
the method comprises the steps of selecting one provider client based on the plurality of resource stream publishing information, sending transaction request information to a blockchain server, and forwarding the transaction request information to the selected provider client by the blockchain server so that the provider client starts providing the resource stream when the transaction request information is permitted.
3. The method of claim 2, wherein the transaction request information includes a digital signature of a requestor client, such that a blockchain server forwards the transaction request information to the provider client when verifying that the transaction request information is authentic based on the digital signature of the requestor client.
4. The method of claim 3, wherein the resource stream usage credential comprises a digital signature of a requestor client, such that the provider client sends the resource stream usage credential to a blockchain server upon verifying that the resource stream usage credential is authentic based on the digital signature of the requestor client.
5. 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.
6. The resource flow transaction device applied to the client side of the request party is characterized by comprising the following components:
the transaction establishing module is used for selecting a provider client and establishing association with the provider client through a blockchain server;
a resource receiving module for receiving and using a resource stream provided by the provider client;
the transaction management module is used for generating credential information representing the state of the resource flow to be used according to a preset rule, 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 client side of the provider by the client side of the requester.
7. The apparatus of claim 6, wherein the transaction establishment module selects a provider client, and wherein establishing an association with the provider client via a blockchain server comprises:
the transaction establishing module is used for acquiring resource flow release information of a plurality of provider clients, wherein the resource flow release information comprises identification information of the provider clients and price information of the resource flows; the method comprises the steps of selecting one provider client based on the plurality of resource stream publishing information, sending transaction request information to a blockchain server, and forwarding the transaction request information to the selected provider client by the blockchain server so that the provider client starts providing the resource stream when the transaction request information is permitted.
8. The apparatus of claim 7, wherein the transaction request information comprises a digital signature of a requestor client, such that a blockchain server forwards the transaction request information to the provider client when verifying that the transaction request information is authentic based on the digital signature of the requestor client.
9. The apparatus of claim 6, wherein the transaction management module generates credential information characterizing a state of using the resource stream according to a preset rule, and wherein sending the credential information to the blockchain server comprises:
the transaction management module is used for generating a resource flow use certificate representing the current use state at preset time intervals during the use of the resource flow, sending the resource flow use certificate to the provider client side, and sending the resource flow use certificate to the blockchain server by the provider client side.
10. The apparatus of claim 9, wherein the resource stream usage credential comprises a digital signature of a requestor client, such that the provider client sends the resource stream usage credential to a blockchain server upon verifying that the resource stream usage credential is authentic based on the digital signature of the requestor client.
11. The apparatus of claim 6, 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.
12. 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 5.
13. A computer readable medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform:
a method of trading of a resource flow as claimed in any one of claims 1 to 5.
CN201811182915.3A 2018-10-11 2018-10-11 Resource flow transaction method, device, equipment and medium applied to requester client Active CN109272318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811182915.3A CN109272318B (en) 2018-10-11 2018-10-11 Resource flow transaction method, device, equipment and medium applied to requester client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811182915.3A CN109272318B (en) 2018-10-11 2018-10-11 Resource flow transaction method, device, equipment and medium applied to requester client

Publications (2)

Publication Number Publication Date
CN109272318A CN109272318A (en) 2019-01-25
CN109272318B true CN109272318B (en) 2020-12-01

Family

ID=65195680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811182915.3A Active CN109272318B (en) 2018-10-11 2018-10-11 Resource flow transaction method, device, equipment and medium applied to requester client

Country Status (1)

Country Link
CN (1) CN109272318B (en)

Families Citing this family (2)

* 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
CN112070606B (en) * 2020-07-16 2024-01-12 深圳市先河系统技术有限公司 Resource management method based on block chain, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897902A (en) * 2017-02-21 2017-06-27 中链科技有限公司 Service transacting method, system and trading server based on block chain technology
CN108596649A (en) * 2018-03-22 2018-09-28 深圳市网心科技有限公司 Account book rewards settlement method, server and computer readable storage medium
CN108595126A (en) * 2018-04-27 2018-09-28 腾讯科技(深圳)有限公司 Data-storage system, querying method, inquiry unit, server and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11188899B2 (en) * 2015-04-07 2021-11-30 Dmg Blockchain Solutions Inc. Off network identity tracking in anonymous cryptocurrency exchange networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897902A (en) * 2017-02-21 2017-06-27 中链科技有限公司 Service transacting method, system and trading server based on block chain technology
CN108596649A (en) * 2018-03-22 2018-09-28 深圳市网心科技有限公司 Account book rewards settlement method, server and computer readable storage medium
CN108595126A (en) * 2018-04-27 2018-09-28 腾讯科技(深圳)有限公司 Data-storage system, querying method, inquiry unit, server and storage medium

Also Published As

Publication number Publication date
CN109272318A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109300038B (en) Resource flow transaction system
CN110428257B (en) Password cracking task processing method, equipment and storage medium
US11528147B2 (en) Verifying integrity and secure operations of cloud-based software services
US20170134161A1 (en) Blockchaining for media distribution
KR101354898B1 (en) Electronic commerce transactions over a peer-to-peer communications channel
CN108668277B (en) Method and equipment for sharing and acquiring information
CN109168139B (en) WiFi sharing method based on block chain and server
CN111369236B (en) Data management method and device applied to blockchain
JP2021535680A (en) Blockchain system data management methods, equipment, computer programs, and electronics
US10757007B1 (en) Techniques for payment-based network transmissions
CN110796449A (en) Transaction processing method, system, medium and computing device
CN110619222A (en) Authorization processing method, device, system and medium based on block chain
CN109345251A (en) Negotiable block chain method of commerce, device, equipment and storage medium
CN109272318B (en) Resource flow transaction method, device, equipment and medium applied to requester client
CN114978635A (en) Cross-domain authentication method and device, and user registration method and device
CN111049806B (en) Joint authority control method and device, electronic equipment and storage medium
Lin et al. A fully decentralized infrastructure for subscription-based IoT data trading
KR101120059B1 (en) Billing verifying apparatus, billing apparatus and method for cloud computing environment
CN114329565A (en) Data sharing method, device and storage medium
WO2020073277A1 (en) Resource flow transaction method and apparatus
WO2019186978A1 (en) Electronic transaction system, transaction server, verification server, electronic transaction method and program
CN109345247B (en) Resource flow transaction method, device, equipment and medium applied to provider client
CN111401891B (en) Data management method and device applied to blockchain
CN109325858B (en) Resource flow transaction method and device, computer equipment and computer readable medium
CN112488707A (en) Service flow supervision method and 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