Disclosure of Invention
In view of the above, the invention provides a method and a device for realizing a shared network, which solve the technical problems that the shared network and payment are not realized in the prior art, and the method and the device are fast, efficient, safe, fair and convenient and have small value scale.
In order to solve the above technical problems, the present invention provides a method for implementing a shared network, including:
setting a network sharing service strategy protocol based on a block chain account book in a block chain system; the sharing network providing client issues content information, price, minimum cutting unit and collecting address information of the sharing network according to the network sharing service policy protocol;
the sharing network demand client searches the sharing network of the sharing network providing client and accesses the information data of the other party; based on the network demand of the shared network demand client, acquiring content information, price, minimum cutting unit and collection address information of the shared network corresponding to the network demand of the shared network providing client, and screening out a target shared network providing client by combining with the blockchain system;
Constructing a shared network transaction based on the shared network demand client, the target shared network providing client and a block chain network shared service policy agreement policy, carrying out transaction charging based on the network demand, the price and the minimum cutting unit, and forming a corresponding shared network transaction agreement policy based on the shared network transaction by a preset agreement forming policy; and when the completion of the shared network transaction is detected according to the shared network transaction protocol policy, completing the payment of the shared network transaction charging based on the blockchain system.
Optionally, wherein the method further comprises:
detecting the signal strength of network communication between the shared network demand client and the shared network providing client when the shared network providing client and/or the shared network demand client move;
according to a preset shared network blockchain screening strategy, combining the signal intensity, carrying out comprehensive sequencing on signal intensity and service quality, and sequentially selecting one shared network providing client from the sequencing as an updated shared network providing client;
and switching the communication connection of the sharing network demand client to be connected with the updated sharing network providing client.
Optionally, wherein the method further comprises:
the shared network demand client and the target shared network providing client build service transaction and prepaid non-spent transaction output to the shared network demand client based on the blockchain system;
the target sharing network provides a client broadcast to the blockchain system to verify the validity of the unexpired transaction output and join a transaction pool; and providing shared network service for the shared network demand client after the unexpired transaction output is legal.
Optionally, wherein the method further comprises:
based on the content information of the shared network in the shared network providing client, acquiring the required shared network content, price and minimum cutting unit corresponding to the content information of the shared network demand client, sorting the shared network demand client according to the preset shared network blockchain screening strategy from strong to weak according to the service quality, and sequentially selecting one shared network demand client as a target shared network demand client;
constructing a shared network transaction based on the target shared network demand client, the shared network providing client and a network shared service policy agreement, carrying out transaction charging based on content information, price and a minimum cutting unit of the shared network, and forming a corresponding shared network transaction protocol policy based on the shared network transaction by a preset protocol forming policy; and when the completion of the shared network transaction is detected according to the shared network transaction protocol policy, completing the payment of the shared network transaction charging based on the blockchain system.
Optionally, the screening the target shared network providing client in combination with the blockchain system includes:
setting a shared network block chain screening strategy according to the environmental condition information;
and ordering the shared network providing clients according to the service quality from strong to weak based on the shared network blockchain screening strategy, and sequentially selecting one shared network providing client as a target shared network providing client.
In another aspect, the present invention further provides a device for implementing a shared network, which is applied to a blockchain payment system, including: the system comprises a shared network setting module, a target shared network providing client selecting module and a shared network transaction processing module; wherein,
the shared network setting module is used for setting a network shared service policy protocol based on a blockchain account book; the sharing network providing client issues content information, price, minimum cutting unit and collecting address information of the sharing network according to the network sharing service policy protocol;
the target shared network providing client selecting module is connected with the shared network setting module, and when a shared network demand client searches the shared network of the shared network providing client and accesses information data of the other party; based on the network demand of the shared network demand client, acquiring content information, price, minimum cutting unit and collection address information of the shared network corresponding to the network demand of the shared network providing client, and screening out a target shared network providing client by combining with the blockchain system;
The shared network transaction processing module is connected with the shared network setting module and the target shared network providing client selecting module, constructs a shared network transaction based on the shared network demand client, the target shared network providing client and the blockchain network shared service policy protocol policy, carries out transaction charging based on the network demand, the price and the minimum cutting unit, and forms a corresponding shared network transaction protocol policy based on the shared network transaction by a preset protocol forming policy; and when the completion of the shared network transaction is detected according to the shared network transaction protocol policy, completing the payment of the shared network transaction charging based on the blockchain system.
Optionally, the apparatus further comprises: the shared network switching module is connected with the shared network setting module, the target shared network providing client selecting module and the shared network transaction processing module,
detecting the signal strength of network communication between the shared network demand client and the shared network providing client when the shared network providing client and/or the shared network demand client move;
according to a preset shared network blockchain screening strategy, combining the signal intensity, carrying out comprehensive sequencing on signal intensity and service quality, and sequentially selecting one shared network providing client from the sequencing as an updated shared network providing client;
And switching the communication connection of the sharing network demand client to be connected with the updated sharing network providing client.
Optionally, the apparatus further comprises: the shared network transaction processing module is connected with the shared network setting module and the target shared network providing client selecting module,
controlling the sharing network demand client to construct service transactions with the target sharing network providing client and outputting prepaid non-spent transactions thereto based on the blockchain system;
controlling the target sharing network to provide a client broadcast to the blockchain system to verify the validity of the unexpired transaction output and joining a transaction pool; and providing shared network service for the shared network demand client after the unexpired transaction output is legal.
Optionally, the apparatus further comprises: the shared network demand transaction processing module is connected with the shared network setting module and the target shared network providing client selecting module,
based on the content information of the shared network in the shared network providing client, acquiring the required shared network content, price and minimum cutting unit corresponding to the content information of the shared network demand client, sorting the shared network demand client according to the preset shared network blockchain screening strategy from strong to weak according to the service quality, and sequentially selecting one shared network demand client as a target shared network demand client;
Constructing a shared network transaction based on the target shared network demand client, the shared network providing client and a network shared service policy agreement, carrying out transaction charging based on content information, price and a minimum cutting unit of the shared network, and forming a corresponding shared network transaction protocol policy based on the shared network transaction by a preset protocol forming policy; and when the completion of the shared network transaction is detected according to the shared network transaction protocol policy, completing the payment of the shared network transaction charging based on the blockchain system.
Optionally, the target sharing network provides a client selection module, including: the shared network block chain screening strategy setting unit and the target shared network providing client selecting unit; wherein,
the shared network block chain screening strategy setting unit sets a shared network block chain screening strategy according to the environmental condition information;
the target shared network providing client selecting unit is connected with the shared network blockchain screening strategy setting unit, and when a shared network demand client searches the shared network of the shared network providing client and accesses information data of the other party; acquiring content information, price, minimum cutting unit and collection address information of the shared network corresponding to the network demand of the shared network providing client based on the network demand of the shared network demand client;
And ordering the shared network providing clients according to the service quality from strong to weak based on the shared network blockchain screening strategy, and sequentially selecting one shared network providing client as a target shared network providing client.
Compared with the prior art, the method and the device for realizing the shared network have the advantages that at least one of the following beneficial effects is realized:
(1) The method and the device for realizing the shared network provide the micro payment and zero confirmation characteristics based on the block chain, so that a server can use the idle resource shared network for a served under the condition of not revealing privacy such as passwords and the like; the sharing network comprises but is not limited to sharing wifi, so that the traditional sharing mode is prevented from revealing personal information of a wifi provider, such as a wifi password; or wifi does not set a password, and the problem that the wifi is possibly attacked is solved.
(2) The method and the device for realizing the shared network can lead the shared network provider to share the idle network resources for other people to use and charge fees, the mode of sharing the network resources is various, the shared network can be shared according to the idle time, and a fixed part of broadband can be shared, wherein the logic is not unique.
(3) According to the method and the device for realizing the shared network, a network user does not need to keep a shared network, the shared network can be switched in the using process without breaking the network, for example, the shared network user can smoothly surf the internet through the whole street.
(4) The method and the device for realizing the shared network utilize the application scene of the micro payment and zero confirmation payment characteristics of the blockchain in real life, and once the transaction is sent to the transaction pool, the transaction can be judged to be effective. The micro payment and zero confirmation of the blockchain are extremely low, the minimum value scale of the micro payment is about 1 milli in theory, the micro payment can be used for purchasing 100W electric lamps to be lighted for 10 seconds, the coverage area of the street lamp can be completely passed, and the traditional payment cannot be realized. The data traffic sharing wifi can be cut by a minimum cleavable unit (for example, 1kb and 1 mins), and micro payment with a minimum value scale can be achieved without wasting resources.
(5) The method and the device for realizing the shared network can provide services according to different charging strategies, for example: deposit mode, post-pay mode, step charge mode, group charge mode, not exclusive here. A wide variety of charging modes can meet the business requirements of different scenes. The method can bypass the processes of addressing, DNS analysis and the like of the Internet, so that a shared network user can use the network without the network, and the traditional mode must access the network to acquire the shared network password. The payment is convenient and efficient without the process of DNS resolution and related addressing, and the payment can be actively priced by a service provider or priced by a service provider and robbed by the service provider. The charging mode can be various, and does not distinguish between prepayment and postpayment, and can also provide a charging mode of first-order payment, including active collection, active payment and the like. The method and the method for screening the service party can be various, can be preset based on the blockchain payment system, and can meet various requirements.
(6) The method and the device for realizing the shared network in the invention can ensure that the blockchain ledger SPV and the shared network module are not integrated, so that reasonable splitting can be realized, for example: the wifi router is connected with the computer, so that the collection of the shared network can be sent to the SPV wallet of the computer. Because the service mode and the content are agreed on by both parties, the service mode and the content can be various, and the shared network provider can provide other services such as storage, inquiry and the like besides the data traffic service for the user, so the service is not unique. The interaction parties exchange value through the shared network, the service is not necessary, the service can be available, the service can also be unavailable, the service is not limited, and the interaction parties can only exchange value, so that fair transaction of the shared network is realized. The medium for value exchange here may be tokens, points, or even valuable resources such as property, which are not unique here.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting of the application. It should be further noted that, for convenience of description, only the portions relevant to the present application are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Blockchain is a term in the field of information technology, essentially, it is a shared database, and data or information stored therein has the characteristics of "non-falsifiable", "whole trace", "traceable", "open transparent", "collective maintenance", etc. Based on the characteristics, the blockchain technology lays a solid 'trust' foundation, creates a reliable 'cooperation' mechanism and has wide application prospect. The blockchain system includes not only the bitcoin btc and its forked coins, but also other blockchain systems using distributed billing techniques.
Blockchain originates from bitcoin, an electronic cash system based on P2P network technology, encryption technology, time stamping technology, blockchain technology, etc. From a technological perspective, blockchains involve many scientific and technical problems of mathematics, cryptography, internet and computer programming. From the application perspective, the blockchain is simply a distributed shared ledger and database, and has the characteristics of intermediation removal, non-falsification, whole trace, traceability, collective maintenance, disclosure transparency and the like. These features ensure the "honest" and "transparent" of the blockchain, laying a foundation for creating trust for the blockchain. The application scene with rich blockchain is basically based on the blockchain, so that the problem of information asymmetry can be solved, and collaborative trust and consistent actions among a plurality of subjects are realized.
Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. Blockchain (Blockchain), an important concept of bitcoin, is essentially a de-centralized database, and serves as a bottom technology of bitcoin, and is a series of data blocks which are generated by association through a cryptography method, wherein each data block contains information of a batch of bitcoin network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. Generally, blockchain systems consist of a data layer, a network layer, a consensus layer, an incentive layer, a contract layer, and an application layer.
The public blockchain (Public Block Chains) refers to: any individual or group in the world can send a transaction and the transaction can get a valid confirmation of the blockchain and anyone can participate in its consensus process. The public blockchain is the earliest and the most widely used blockchain, and each large bitcoins series of virtual digital currency is based on the public blockchain, and there is only one blockchain corresponding to the currency in the world.
Industry block chain (Consortium Block Chains): designating a plurality of preselected nodes as billable persons from within a certain group, the generation of each block is decided jointly by all preselected nodes (the preselected nodes participate in the consensus process), other access nodes can participate in the transaction, but do not have the accounting process (whether accounting is hosted in nature or just becomes distributed accounting, how many of the preselected nodes decide how billable persons for each block become the main risk points for the blockchain), and other persons can make a limited query through the blockchain open API.
Private blockchain (Private Block Chains): accounting is performed by using only the general ledger technique of the blockchain, which can be a company or a person, and the writing authority of the blockchain is shared independently, and the blockchain is not greatly different from other distributed storage schemes. While traditional finance is an attempt to try private blockchains, public chain applications such as bitcoin have been industrialized, and private chain application products are still under investigation.
In the blockchain system of the present embodiment, UTXOs: UTXO (Unspent Transaction Outputs) is the unconsumed transaction output, which is a core concept for bitcoin transaction generation and verification. The transactions form a set of chain structures, all legal bitcoin transactions can be traced back to the output of one or more transactions in the forward direction, the sources of the chains are mining rewards, and the end is the output of the transaction which is not currently spent. Simply can be understood as "money" in a digital wallet, where UTXOs refer not only to the unexpired transaction output in the btc network, but also to a transaction structure constructed using the same principles.
Blockchain ledger SPV (also known as the ledger of the owner): a light node in a blockchain system having minimal processing power for transaction transceiving, the SPV wallet comprising the following basic functions: 1. UTXO collection may be understood as a stored prepaid "money". 2. The private key, the public key and the address, the basic information 3 and the Merkle path of the blockchain account, and all UTXOs and the Merkle tree constructed by the related hash are stored.
Full node: nodes that can handle full account retrieval, validation, mining, and have a pool of transactions, in a blockchain system, can be understood as devices or organizations that have full functionality.
Zero confirmation payment: in the past blockchain payment system, whether the payment is effective can be verified after waiting for the block to be checked out and confirmed, and the transaction can be confirmed to be effective after the transaction is put into a transaction pool in zero-confirmation payment, so that the system is convenient for small micro-payment.
Micro-payment: in a blockchain system, the minimum value scale that can be supported can be 1 milli-RMB or even smaller, and for some such as data exchanges, resource exchanges, exchanges can be made with the smallest cleavable unit.
Near field short range communication includes all communication modes without routing, addressing, and hopping, and can be regarded as short range communication.
As shown in fig. 1, a flow chart of a method for implementing a shared network in this embodiment is shown, and the method includes the following steps:
step 101, setting a network sharing service strategy protocol based on a blockchain account book in a blockchain system; the sharing network provides the client to issue the content information, price, minimum cutting unit and cashing address information of the sharing network according to the network sharing service policy protocol.
Referring to fig. 6 and fig. 7, fig. 6 is a schematic flow diagram of an on-chain smart contract of the method for implementing a shared network according to the present embodiment; fig. 7 is a schematic flow chart of an intelligent contract under the chain of the method for implementing the shared network in the present embodiment. The blockchain service policy protocol is an exchange service policy preset based on the activity of value exchange, wherein the exchange modes of the exchanged service content and the activity content are set according to the attribute properties, the sites, the characteristics of the two parties and the like of the value exchange activity. The direct exchange linking effect of the two exchange parties can be realized through the block chain service strategy protocol. Through the exchange form of the block chain service strategy protocol of the block chain system, micro-payment with the minimum value scale of 1 smart (or 1 li RMB) and even smaller value exchange can be provided, so that real micro-unit payment is realized, and fairness and rationality of exchange or transaction are improved. The major differences from traditional payments are: 1. exchange activities with sufficiently small value scales can be implemented; 2. the block chain-based system does not need the intermediary service of an intermediary, can realize the de-intermediation in the exchange process, and saves the cost of using intermediation; 3. the existing traditional payment is cleared in real time, and the transfer is not cleared in real time, and can be cleared only by confirmation. For example, the bank card which can be transferred to the account user only after the payment bank receives the money and needs to be cleared is poor in use timeliness, and the invention can realize real-time account transfer of exchange or transaction of the two parties based on the blockchain technology.
In some alternative embodiments, the recommended price and the minimum cutting unit can be set according to the attribute classification feature of the things of the exchange service, and when the service activity is started, the recommended price and the minimum cutting unit are pushed according to the recommended price and the minimum cutting unit, so that the user can set the service by one key. Recording when the object has no recommended price and minimum cutting unit, and setting the initial recommended price and minimum cutting unit according to the implementation content of the activity after completing the exchange activity. Preferably, a relation training model for establishing the attribute classification characteristics of each object and the recommended price and the minimum cutting unit can be set, data is extracted from actual exchange activity data, and the data is trained by using the training model to obtain the recommended price and the minimum cutting unit.
Step 102, the sharing network demand client searches the sharing network of the sharing network providing client and accesses the information data of the other party; based on the network requirement of the shared network requirement client, acquiring content information, price, minimum cutting unit and collection address information of the shared network corresponding to the network requirement of the shared network providing client, and screening out the target shared network providing client by combining with the block chain system.
Step 103, constructing a shared network transaction based on the shared network demand client, the target shared network providing client and the blockchain network shared service policy agreement policy, carrying out transaction charging based on the network demand, the price and the minimum cutting unit, and forming a corresponding shared network transaction agreement policy based on the shared network transaction by a preset agreement forming policy; and when the completion of the shared network transaction is detected according to the shared network transaction protocol policy, completing the payment of the shared network transaction charging based on the blockchain system.
Optionally, when the sharing network transaction is detected to be completed, generating a renewal sharing network transaction prompt based on the sharing network transaction according to a preset prompt strategy, and sending the renewal sharing network transaction prompt to the sharing network demand client;
and when the sharing network demand client confirms the sharing network transaction, continuing the sharing network transaction according to the confirmed content information of the sharing network until the sharing network transaction is completed again.
In some alternative embodiments, as shown in fig. 2, a flowchart of a second method for implementing a shared network in this embodiment, unlike in fig. 1, further includes:
step 201, detecting a signal strength of network communication between the shared network client and the shared network client when the shared network client is provided and/or the shared network client is moving.
Step 202, according to a preset shared network blockchain screening strategy, combining signal strength and service quality comprehensive ordering is performed, and one shared network providing client is sequentially selected from the signal strength and service quality comprehensive ordering to serve as an updated shared network providing client.
Step 203, the communication connection of the shared network demand client is switched to be connected with the updated shared network providing client.
Here, it is also possible to: setting the content of the service quality evaluation item and the evaluation standard of the exchange activity, firstly detecting the content of the evaluation item between the two sides of the exchange activity when the exchange activity is started, and calculating the service quality parameters between the two sides of the exchange activity and other terminals in the nearby range based on the preset evaluation standard and the calculation mode. And according to a preset blockchain screening strategy, combining with the service quality parameters, carrying out service quality comprehensive sequencing, and sequentially selecting one service providing client from the service quality comprehensive sequencing as an updating service providing client.
For example, in the sharing wifi, under the same wifi condition, the wifi with fewer connection terminals can be configured with higher priority, and the standard of determining the service quality includes, but is not limited to, the signal strength of the connection between the two parties.
In some alternative embodiments, as shown in fig. 3, a flow chart of a third method for implementing a shared network in this embodiment, unlike in fig. 1, further includes:
Step 301, the shared network demand client and the target shared network providing client build service transaction and prepay non-spent transaction output to the same based on the blockchain system.
Step 302, the target sharing network provides the validity of the non-spent transaction output which is broadcast to the blockchain system by the client side and added into the transaction pool; and providing the shared network service for the shared network demand client after the unexpired transaction output is legal.
In some alternative embodiments, as shown in fig. 4, a flowchart of a fourth method for implementing a shared network in this embodiment, unlike in fig. 1, further includes:
step 401, obtaining required shared network content, price and minimum cutting unit corresponding to the shared network content information of the shared network demand client based on the shared network content information of the shared network providing client, sorting the shared network demand client according to the preset shared network blockchain screening policy from strong to weak according to the high quality of service, and sequentially selecting one shared network demand client as a target shared network demand client.
Step 402, constructing a shared network transaction based on a target shared network demand client, a shared network providing client and a network shared service policy agreement, carrying out transaction charging based on content information, price and a minimum cutting unit of the shared network, and forming a corresponding shared network transaction protocol policy based on the shared network transaction by a preset protocol forming policy; and when the completion of the shared network transaction is detected according to the shared network transaction protocol policy, completing the payment of the shared network transaction charging based on the blockchain system.
In some alternative embodiments, as shown in fig. 5, a flowchart of a fifth method for implementing a shared network in this embodiment, unlike in fig. 1, further includes:
step 501, setting a shared network blockchain screening strategy according to environmental condition information.
The screening policies and charging policies of the shared network in different regional environments or conditional environments should be different, because the shared cost of the shared network is different, and different corresponding policies need to be set for fairness.
Step 502, sorting the shared network providing clients according to the service quality from strong to weak based on the shared network blockchain screening policy, and sequentially selecting one shared network providing client as a target shared network providing client.
In some alternative embodiments, as shown in fig. 8, a schematic structural diagram of an apparatus 800 for implementing a shared network in this embodiment may be used to implement the above method for implementing a shared network, where the apparatus for implementing a shared network is applied to a blockchain payment system, and includes: a shared network setting module 801, a target shared network providing client selection module 802, and a shared network transaction processing module 803.
Wherein, the shared network setting module 801 sets a network sharing service policy protocol based on a blockchain ledger; the sharing network provides the client to issue the content information, price, minimum cutting unit and cashing address information of the sharing network according to the network sharing service policy protocol.
The target shared network providing client selecting module 802 is connected with the shared network setting module 801, and when the shared network demand client searches the shared network of the shared network providing client and accesses the information data of the other party; based on the network requirement of the shared network requirement client, acquiring content information, price, minimum cutting unit and collection address information of the shared network corresponding to the network requirement of the shared network providing client, and screening out the target shared network providing client by combining with the block chain system.
The shared network transaction processing module 803 is connected with the shared network setting module 801 and the target shared network providing client 802 selection module, constructs a shared network transaction based on the shared network demand client, the target shared network providing client and the blockchain network shared service policy agreement policy, performs transaction charging based on the network demand, the price and the minimum cutting unit, and forms a corresponding shared network transaction agreement policy with a preset agreement formation policy based on the shared network transaction; and when the completion of the shared network transaction is detected according to the shared network transaction protocol policy, completing the payment of the shared network transaction charging based on the blockchain system.
The bip270 proposes a technical solution for payment by using short-range communication (NFC), which mainly includes: and through a short-distance communication mode, value transfer is carried out between the two terminals, and a receiving party carries out broadcast transaction. The method comprises the following steps:
the scheme for implementing the shared network in this embodiment declares all the modes of non-hop and non-route payment, taking wifi as an example: NFC is not mobile, whereas wifi is mobile; the NFC cannot be switched among multiple terminals, and wifi can be used for switching charging; the non-jump communication includes not only short distance communication but also communication means such as satellite telephone and terminal, long link optical fiber, and wifi of short distance. The scheme of the embodiment sets modes of price, price inquiry, renewal, switching, deposit, prepayment, postpayment and the like, and the payment basis is micro payment based on blockchain.
In some alternative embodiments, as shown in fig. 9, a schematic structural diagram of a second apparatus 900 for implementing a shared network in this embodiment, unlike in fig. 8, further includes: the shared network switching module 901 is connected to the shared network setting module 801, the target shared network providing client selecting module 802, and the shared network transaction processing module 803.
The method is used for detecting the signal strength of network communication between the shared network demand client and the shared network providing client when the shared network providing client and/or the shared network demand client move.
And according to a preset shared network block chain screening strategy, combining the signal strength, carrying out comprehensive sequencing on the signal strength and the service quality, and sequentially selecting one shared network providing client from the sequencing as an updated shared network providing client.
And switching the communication connection of the shared network demand client to be connected with the updated shared network supply client.
In some alternative embodiments, as shown in fig. 10, a schematic structural diagram of a third apparatus 1000 for implementing a shared network in this embodiment, unlike in fig. 6, further includes: the shared network transaction processing module 1001 is connected to the shared network setting module 801 and the target shared network providing client 802 selection module.
The controlling shared network demand client and the target shared network provide client build service transactions and prepaid non-spent transaction output thereto based on the blockchain system.
The control target sharing network provides the validity of the non-spent transaction output which is broadcast to the blockchain system by the client side and added into the transaction pool; and providing the shared network service for the shared network demand client after the unexpired transaction output is legal.
In some alternative embodiments, as shown in fig. 11, a schematic structural diagram of a fourth apparatus 1100 for implementing a shared network in this embodiment, unlike in fig. 6, further includes: the shared network demand transaction processing module 1101 is connected to the shared network setting module 801 and the target shared network providing client 802 selection module.
And based on the content information of the shared network in the shared network providing client, acquiring the required shared network content, price and minimum cutting unit corresponding to the content information of the shared network demand client, sorting the shared network demand client according to the preset shared network blockchain screening strategy from strong to weak according to the service quality, and sequentially selecting one shared network demand client as a target shared network demand client.
Constructing a shared network transaction based on a target shared network demand client, a shared network providing client and a network shared service policy agreement, carrying out transaction charging based on content information, price and a minimum cutting unit of the shared network, and forming a corresponding shared network transaction agreement policy based on the shared network transaction by a preset agreement forming policy; and when the completion of the shared network transaction is detected according to the shared network transaction protocol policy, completing the payment of the shared network transaction charging based on the blockchain system.
In some alternative embodiments, as shown in fig. 12, a schematic structural diagram of an apparatus 1200 for implementing a shared network in the fifth embodiment, unlike in fig. 6, the target shared network provides a client selection module 802, which includes: the shared network blockchain filtering policy setting unit 821 and the target shared network providing client selecting unit 822.
Wherein, the shared network blockchain filtering policy setting unit 821 sets the shared network blockchain filtering policy according to the environmental condition information.
The target shared network providing client selecting unit 822 is connected with the shared network blockchain screening policy setting unit 821, and when the shared network demand client searches the shared network of the shared network providing client and accesses the information data of the other party; based on the network demand of the shared network demand client, acquiring content information, price, minimum cutting unit and collection address information of the shared network corresponding to the network demand of the shared network providing client.
Based on the shared network blockchain screening strategy, the shared network providing clients are ordered from strong to weak according to the service quality, and one shared network providing client is sequentially selected as a target shared network providing client.
In some alternative embodiments, the apparatus may further comprise: the passive service transaction processing module is connected with the payment setting module and the target service providing client selecting module, acquires required service content, price and minimum cutting units corresponding to the provided service information of the served clients based on the provided service information of the service providing clients, sorts the served clients according to the preset blockchain screening strategy from strong to weak according to the service quality, and sequentially selects one served client as the target served client.
Constructing service transaction based on the target served client, the service providing client and the blockchain transaction protocol strategy, carrying out transaction charging based on the provided service information, the price and the minimum cutting unit, and forming a corresponding service transaction protocol strategy based on the service transaction by a preset protocol forming strategy; and when the service transaction is detected to be completed according to the service transaction protocol policy, completing payment of transaction charging based on the blockchain system.
The embodiment provides a method and a device for processing shared wifi, wherein the method comprises the following steps: the wifi provider issues information such as use cost, a minimum cuttable unit, a collection address and the like on wifi which has modified a protocol and has an SPV function; the wifi user searches the equipment of the wifi sharer through the wifi searching protocol, and accesses and obtains information such as the use cost, the minimum cuttable unit, the collection address and the like. A wifi user constructs a UTXO through SPV according to the required service and sends the attached use information to a wifi provider; after acquiring UTXO and related information, the wifi provider forwards the UTXO to all nodes for verification; after the full node verification is passed, the transaction pool is added, and a wifi provider is informed that the transaction is legal and the transaction pool is added; the wifi provider provides service for the wifi user according to the information returned by the full node, and starts charging; and after the service is finished, the wifi provider disconnects the service.
Payment modes are diverse and not uniquely specified, including the following mode contents: active payment mode through wifi; through wifi active collection mode; prepaid mode; post-pay mode; deposit mode; payment patterns of points, securities, etc. of the on-chain smart contracts; payment modes of points, securities, etc. of the intelligent contracts under the chain; charging mode through wifi group; through wifi group payment mode; and issuing a task order-robbing mode through wifi.
The identity of the wifi provider and the wifi user are not uniquely defined, and the identity can be person-to-person, person-to-object, object-to-person or object-to-object. The correspondence may be varied, one-to-one, many-to-one, one-to-many, and many-to-one. The relationship between SPV and wifi modules is also various, can be one-to-one, can be one-to-many, can be many-to-one, and can also be many-to-many, and is not unique here.
While certain specific embodiments of the invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the invention. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.