CN109168139B - WiFi sharing method based on block chain and server - Google Patents

WiFi sharing method based on block chain and server Download PDF

Info

Publication number
CN109168139B
CN109168139B CN201810746090.7A CN201810746090A CN109168139B CN 109168139 B CN109168139 B CN 109168139B CN 201810746090 A CN201810746090 A CN 201810746090A CN 109168139 B CN109168139 B CN 109168139B
Authority
CN
China
Prior art keywords
wifi
terminal
sharing
information
user
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
CN201810746090.7A
Other languages
Chinese (zh)
Other versions
CN109168139A (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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201810746090.7A priority Critical patent/CN109168139B/en
Publication of CN109168139A publication Critical patent/CN109168139A/en
Application granted granted Critical
Publication of CN109168139B publication Critical patent/CN109168139B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/82Criteria or parameters used for performing billing operations
    • H04M15/8207Time based data metric aspects, e.g. VoIP or circuit switched packet data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/82Criteria or parameters used for performing billing operations
    • H04M15/8214Data or packet based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Abstract

The invention provides a WiFi sharing method based on a block chain and a server, wherein the method comprises the following steps: acquiring WiFi connection request information sent by a WiFi using terminal; and sending resource information and signature information of WiFi to be connected to the WiFi using terminal according to the WiFi connection request information so that the WiFi using terminal can establish connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, and using the WiFi to be connected generated by the WiFi sharing terminal. According to the WiFi sharing method and the server based on the block chains, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chains, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, the WiFi information of the user is protected, and the privacy data of the user are protected.

Description

WiFi sharing method based on block chain and server
Technical Field
The invention relates to the technical field of communication, in particular to a WiFi sharing method based on a block chain and a server.
Background
WiFi is a technology that allows an electronic device to connect to a wireless local area network, and with the continuous development of the wireless local area network technology, WiFi, which is a wireless internet technology of a mobile device, is widely used in various fields, and a WiFi sharing platform is also vigorously developed.
In the prior art, the WiFi sharing system includes a user application authentication platform, a client module, a login authentication module, a timing module, a recharge and fee deduction module, and a database module. The user application authentication platform is used for receiving registration and verification information of a WiFi user and a WiFi provider and storing the information of the WiFi user and the WiFi provider in the database module; the client module is used for receiving the login authentication information of the WiFi user, judging whether the information of the requested WiFi user is received into the database module through the login authentication module, if so, the login is successful, otherwise, the client module jumps to a user application authentication platform, and guides the user to submit the registration application information; the timing module is used for timing and controlling the WiFi service time successfully connected through the login of the client module; the recharging and fee deducting module is connected with the timing module and used for calculating the cost generated by the WiFi service time; the database module is connected with the user application authentication platform, the client module, the timing module, the recharging and fee deducting module and the WiFi management control module and used for storing login records, WiFi use timing and generated fees.
In the WiFi sharing system in the prior art, sensitive information such as registration information, WiFi passwords and use records of WiFi sharers and WiFi users are stored in a central server, and the risk of information leakage is high.
Disclosure of Invention
The invention aims to provide a WiFi sharing method and a server based on a block chain, and solves the technical problem that information leakage risk of a WiFi sharing system is high in the prior art.
In order to solve the above technical problem, in one aspect, the present invention provides a WiFi sharing method based on a block chain, including:
acquiring WiFi connection request information sent by a WiFi using terminal;
and sending resource information and signature information of WiFi to be connected to the WiFi using terminal according to the WiFi connection request information so that the WiFi using terminal can establish connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, and using the WiFi to be connected generated by the WiFi sharing terminal.
In another aspect, the present invention provides a WiFi sharing server based on a block chain, including:
the acquisition module is used for acquiring WiFi connection request information sent by a WiFi using terminal;
and the sending module is used for sending the resource information and the signature information of the WiFi to be connected to the WiFi using terminal according to the WiFi connection request information so that the WiFi using terminal can establish connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, and the WiFi to be connected generated by the WiFi sharing terminal is used.
In yet another aspect, the present invention provides an electronic device for WiFi sharing, including:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the methods described above.
According to the WiFi sharing method and the server based on the block chains, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chains, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
Drawings
Fig. 1 is a schematic diagram illustrating a WiFi sharing method based on a block chain according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a WiFi sharing server based on a block chain according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device for WiFi sharing according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a WiFi sharing method based on a block chain according to an embodiment of the present invention, and as shown in fig. 1, an embodiment of the present invention provides a WiFi sharing method based on a block chain, where an execution subject of the WiFi sharing method is a WiFi sharing server based on a block chain, which is hereinafter referred to as a block chain server. The method comprises the following steps:
step S101, obtaining WiFi connection request information sent by a WiFi using terminal;
step S102, sending resource information and signature information of WiFi to be connected to the WiFi using terminal according to the WiFi connection request information, so that the WiFi using terminal can establish connection with a WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, and therefore the WiFi to be connected generated by the WiFi sharing terminal is used.
Specifically, the system has the significance that a block chain platform is used for providing an idle Wi-Fi resource holder with a medium platform for popularizing Wi-Fi resources, so that the safety of user data is ensured, and users sharing Wi-Fi are ensured to be profitable; and convenient Wi-Fi resources are provided for users needing to use Wi-Fi.
The WiFi sharing system in the embodiment of the invention at least comprises a WiFi using terminal, a WiFi sharing terminal and a block chain server. The block chain server provides a WiFi sharing platform, so that WiFi sharing users share WiFi through WiFi sharing terminals, and the WiFi users use the WiFi generated by the WiFi sharing terminals through the WiFi using terminals.
The overall workflow of the WiFi sharing system is as follows:
(1) and when each WiFi sharing user shares a new WiFi hotspot for the first time through the WiFi sharing terminal, sending a Wi-Fi registration request to the blockchain server and paying a certain amount of tokens to the platform. The block chain server can carry out identity authentication on the WiFi sharing user, the identity authentication can be accepted and registered as digital assets by a plurality of block nodes on the block chain after passing the authentication, and the registration information comprises: the WiFi sharing user shares information such as a GPS address, an IP address, an MAC address, a network speed test report, an SSID (service set identifier), a charging rule (charging/non-charging) and the like when the WiFi logs in.
(2) After receiving a new WiFi hotspot registration on the blockchain, the blockchain broadcasts WiFi assets to it.
(3) Wi-Fi use users receive WiFi digital asset broadcasts through WiFi use terminals and form local WiFi lists according to signal strength.
(4) The Wi-Fi user selects the most suitable WiFi as the WiFi to be connected through the WiFi using terminal. Then, the WiFi using terminal transmits WiFi connection request information to the blockchain server. And after receiving the WiFi connection request information, the block chain server sends the resource information of the WiFi to be connected and signature information issued for the WiFi using terminal to the WiFi using terminal according to the WiFi connection request information. The WiFi using terminal establishes P2P connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, sends the signature information to the WiFi sharing terminal and requests a secret key. The WiFi sharing terminal verifies the signature information of the WiFi using terminal, and after the verification is passed, the secret key is encrypted and then transmitted to the WiFi using terminal. The key is not stored in the block chain, so that the key is not stolen and cracked.
(5) The WiFi using terminal automatically logs in to-be-connected WiFi generated by the WiFi sharing terminal by using the key, and tokens are automatically paid to the WiFi sharing user and the WiFi sharing platform. The token may be virtual currency or real currency, and the real currency and the virtual currency may be exchanged according to preset rules.
(6) And broadcasting the transaction by the block chain to generate a new block.
In addition, the rules regarding the cost in sharing WiFi are as follows:
(1) and after the WiFi sharing user shares the WiFi, paying the token to the WiFi sharing platform as a reward for popularizing the WiFi resources by the platform.
(2) After the WiFi using user uses the WiFi, the token is paid to the WiFi sharing user to serve as a reward for the WiFi sharing user.
(3) After the user browses the advertisement, the advertiser pays advertising fee of the WiFi sharing platform, and the WiFi sharing platform pays partial token of the user as reward.
It should be mentioned that the Wi-Fi sharing user and the Wi-Fi using user are not in an opposite relationship, and any node in the network can serve the two roles, so that the user can share the Wi-Fi resource and can use the Wi-Fi.
According to the WiFi sharing method based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
On the basis of the foregoing embodiment, further, the sending, according to the WiFi connection request information, resource information and signature information of WiFi to be connected to the WiFi user terminal includes:
calling an intelligent contract on a block chain to inquire the resource information of the WiFi to be connected according to the identity identification information of the WiFi to be connected, which is contained in the WiFi connection request information;
issuing signature information for the WiFi user terminal;
and sending the resource information of the WiFi to be connected and the signature information to the WiFi using terminal.
Specifically, the blockchain server serves as a party for managing Wi-Fi connection in the system, providing a charging mode, authenticating a Wi-Fi provider and registering Wi-Fi on a blockchain, protecting privacy information of a user, charging a Wi-Fi user and automatically settling accounts. The multifunctional wallet comprises a Wi-Fi resource management module, a security management module, a wallet management module and the like.
(1) Wi-Fi resource management module
The Wi-Fi resource management comprises Wi-Fi information registration, Wi-Fi information updating and Wi-Fi information inquiry:
the method comprises the steps that firstly, Wi-Fi information registration is carried out, when each Wi-Fi sharing user shares out a new Wi-Fi hotspot for the first time, a Wi-Fi information registration request is sent to a block chain server, after the block chain server receives the Wi-Fi information registration request of the Wi-Fi sharing user, an intelligent contract on a block chain is called, the identity of the Wi-Fi sharing user is verified firstly, after the verification is passed, the Wi-Fi information is registered to the block chain, and part of tokens of the Wi-Fi sharing user are collected.
② updating the Wi-Fi information, namely sending a Wi-Fi information updating request to a block chain server after the Wi-Fi sharing user updates a Wi-Fi hotspot, calling an intelligent contract after receiving the Wi-Fi information updating request of the Wi-Fi sharing user, firstly verifying the identity of the Wi-Fi sharing user, ② updating the Wi-Fi information on the block chain after the verification is passed.
after receiving WiFi connection request information sent by a Wi-Fi user through a Wi-Fi use terminal, calling an intelligent contract on a block chain to inquire resource information of the WiFi to be connected according to the identity information of the WiFi to be connected contained in the WiFi connection request information, and sending the resource information of the WiFi to be connected to the Wi-Fi use terminal.
These transactions containing Wi-Fi information are broadcast into the blockchain network.
(2) Security management module
firstly, identity authentication, namely after receiving WiFi connection request information sent by a Wi-Fi user through a Wi-Fi user terminal, a block chain server issues signature information (signs user information, Wi-Fi information and a timestamp) for the Wi-Fi user terminal, and sends the signature information to the Wi-Fi user terminal so that the Wi-Fi sharing terminal can verify the identity of the Wi-Fi user terminal, and a secret key is provided for the Wi-Fi user terminal after the verification is passed.
and secondly, encryption storage, namely encrypting the super account book and the transaction data on the block chain in an asymmetric encryption mode, wherein only a specific user with a private key can access the specific data.
(3) Wallet management module
The wallet management comprises a recharging service, a cash withdrawal service and a charging service:
the user obtains the token stipulated by the system by charging.
and secondly, cash withdrawal service, namely if the token is virtual currency, the user realizes exchange between the virtual currency and real currency through cash withdrawal.
the charging service is a power for driving the whole system to operate, the Wi-Fi sharing platform stimulates private Wi-Fi sharing by paying a Wi-Fi sharing user token, the Wi-Fi using user obtains convenient Wi-Fi resources by spending part of the token, and the Wi-Fi sharing platform keeps profit by collecting part of the token of the user using Wi-Fi.
According to the WiFi sharing method based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
On the basis of the foregoing embodiments, further, the sending, to the WiFi user terminal, the resource information of the WiFi to be connected and the signature information specifically include:
encrypting the resource information of the WiFi to be connected and the signature information by using a first public key contained in the WiFi connection request information to obtain first encryption information;
and sending the first encryption information to the WiFi using terminal.
Specifically, the Wi-Fi using terminal is used as a party requesting Wi-Fi resources in the system, and the function modules of the terminal comprise an account management module, an optimal Wi-Fi module, a Wi-Fi resource requesting module, a Wi-Fi module connection module and the like.
(1) Account management module
When a user logs in the system for the first time, an account is registered for the user, the token in the primary account is 0, the user can directly log in the system without using the system for the first time, and account information comprises an account ID, an account key, an account balance and user preference. Wherein: and the account ID and the account key are set by the user, and the block chain server verifies the account ID and the account key when logging in. The user preference is signal strength best priority or free public Wi-Fi priority connection.
(2) Selecting the best Wi-Fi module includes two parts of functionality:
after a WiFi user logs in through a WiFi use terminal, the current available Wi-Fi is monitored in a circulating mode, and a Wi-Fi list is generated.
and selecting the best Wi-Fi as the Wi-Fi to be connected according to the preference (the best signal strength is preferred or the free public Wi-Fi is preferred) set by the WiFi using user.
(3) Requesting the Wi-Fi resource module comprises two parts of functionality:
after a WiFi user obtains the Wi-Fi with the best signal intensity by selecting the best Wi-Fi module, the WiFi user requests the Wi-Fi resource module to send WiFi connection request information to the block chain server, and the WiFi connection request information comprises an SSID of the Wi-Fi to be connected and a public key of the WiFi user terminal, so that the block chain server encrypts resource information of the WiFi to be connected and signature information by using the public key contained in the WiFi connection request information.
and secondly, after receiving the resource information of the WiFi to be connected encrypted by the user public key replied by the block chain server and the signature information, decrypting and checking by using a private key.
(4) Connecting Wi-Fi module
The Wi-Fi module is connected to realize seamless switching of Wi-Fi connection:
after acquiring resource information and signature information of WiFi to be connected fed back by a block chain server, a WiFi using terminal establishes P2P connection to a Wi-Fi sharing terminal through a connection Wi-Fi module, sends a key request and a public key of the WiFi using terminal, after the Wi-Fi sharing terminal verifies the WiFi using terminal, replies a key of the Wi-Fi to be connected encrypted by the public key, and the module decrypts the key and connects the Wi-Fi by using the key.
if the current Wi-Fi signal is weakened, the module seamlessly switches to other Wi-Fi for the user under the condition that the user does not need to select.
According to the WiFi sharing method based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
On the basis of the foregoing embodiments, further, after the sending, according to the WiFi connection request information, resource information and signature information of WiFi to be connected to the WiFi using terminal, the method further includes:
receiving connection confirmation information sent by the WiFi using terminal and/or the WiFi sharing terminal, wherein the connection confirmation information is used for indicating that the WiFi using terminal starts to use the WiFi to be connected generated by the WiFi sharing terminal;
and charging the WiFi using terminal according to the connection confirmation request information and a preset charging rule.
Specifically, the wallet management module in the blockchain server comprises a recharging service, a cash withdrawal service and a charging service.
Charging service: the charging service is a power for driving the whole system to operate, the Wi-Fi sharing platform stimulates private Wi-Fi sharing by paying a Wi-Fi sharing user token, the Wi-Fi using user obtains convenient Wi-Fi resources by spending part of the token, and the Wi-Fi sharing platform keeps profitable by collecting part of the token of the user using Wi-Fi. The charging service body pays partial tokens to the platform when the Wi-Fi sharing user registers for the first time, and the tokens are used as the reward for popularizing the Wi-Fi by the platform; and after the Wi-Fi user successfully connects with the Wi-Fi, the intelligent charging contract starts to be executed, the fee is charged to the Wi-Fi user according to the charging rule provided by the Wi-Fi sharing user, the Wi-Fi sharing platform charges a part of fee, and the rest tokens are paid to the corresponding Wi-Fi sharing user.
When the Wi-Fi sharing terminal and the Wi-Fi using terminal are connected and the WiFi using terminal starts to use WiFi generated by the WiFi sharing terminal, the WiFi using terminal and/or the WiFi sharing terminal sends connection confirmation information to the blockchain server, and the connection confirmation information is used for indicating that the WiFi using terminal starts to use WiFi generated by the WiFi sharing terminal.
After receiving the connection confirmation information sent by the WiFi using terminal and/or the WiFi sharing terminal, the block chain server charges the WiFi using terminal through the wallet management module according to a preset charging rule.
According to the WiFi sharing method based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
On the basis of the foregoing embodiments, further, after the charging the WiFi terminal according to the connection confirmation request information and according to the preset charging rule, the method further includes:
receiving disconnection confirmation information sent by the WiFi using terminal and/or the WiFi sharing terminal, wherein the disconnection confirmation information is used for indicating that the WiFi using terminal stops using the WiFi to be connected generated by the WiFi sharing terminal;
and according to the disconnection confirmation request information, settling the WiFi using terminal according to the preset charging rule, deducting corresponding use fees from the account of the user of the WiFi using terminal, transferring the use fees to the account of the user of the WiFi sharing terminal, and simultaneously deducting corresponding service fees from the account of the user of the WiFi sharing terminal according to the preset service rule.
Specifically, the wallet management module in the blockchain server comprises a recharging service, a cash withdrawal service and a charging service.
Charging service: the charging service is a power for driving the whole system to operate, the Wi-Fi sharing platform stimulates private Wi-Fi sharing by paying a Wi-Fi sharing user token, the Wi-Fi using user obtains convenient Wi-Fi resources by spending part of the token, and the Wi-Fi sharing platform keeps profitable by collecting part of the token of the user using Wi-Fi. The charging service body pays partial tokens to the platform when the Wi-Fi sharing user registers for the first time, and the tokens are used as the reward for popularizing the Wi-Fi by the platform; and after the Wi-Fi user successfully connects with the Wi-Fi, the intelligent charging contract starts to be executed, the fee is charged to the Wi-Fi user according to the charging rule provided by the Wi-Fi sharing user, the Wi-Fi sharing platform charges a part of fee, and the rest tokens are paid to the corresponding Wi-Fi sharing user.
When the Wi-Fi sharing terminal and the Wi-Fi using terminal are disconnected, namely the WiFi using terminal stops using WiFi generated by the WiFi sharing terminal, the WiFi using terminal and/or the WiFi sharing terminal sends disconnection confirmation information to the blockchain server, wherein the disconnection confirmation information is used for indicating that the WiFi using terminal stops using WiFi generated by the WiFi sharing terminal.
After receiving disconnection confirmation information sent by the WiFi using terminal and/or the WiFi sharing terminal, the blockchain server settles the WiFi using terminal according to a preset charging rule through the wallet management module, deducts corresponding use fees from an account of the WiFi using user, transfers the use fees to the account of the WiFi sharing user, and deducts corresponding service fees from the account of the WiFi sharing user according to a preset service rule.
According to the WiFi sharing method based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
On the basis of the above embodiments, further, the preset charging rule is:
charging according to the length of the service time or charging according to the size of the service data flow.
Specifically, the charging rule when the Wi-Fi using user uses Wi-Fi to share Wi-Fi shared by the user can be charging according to the length of the using time, for example, 5 tokens are paid for in one minute, or 8 tokens are paid for. Or by a charge using the amount of data traffic, e.g., 5 tokens paid for using a megaflow, or 8 tokens. The concrete can be determined according to actual conditions.
According to the WiFi sharing method based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
On the basis of the foregoing embodiments, further, the WiFi using terminal establishes a connection with a WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, so as to use the WiFi to be connected generated by the WiFi sharing terminal, specifically:
the WiFi using terminal sends the signature information to the WiFi sharing terminal according to the IP address of the WiFi sharing terminal in the resource information of the WiFi to be connected;
the WiFi sharing terminal verifies the signature information and feeds back a WiFi key to the WiFi using terminal;
and the WiFi using terminal uses the to-be-connected WiFi generated by the WiFi sharing terminal according to the WiFi key.
Specifically, the Wi-Fi sharing terminal serves as a party providing Wi-Fi resources in the system, and the function modules of the Wi-Fi sharing terminal comprise an account management module, a Wi-Fi registration module, a Wi-Fi updating module, a key providing module and the like.
(1) Account management module
This module registers the account for the user when the user logs in the system for the first time, and token in the primary account is 0, but not the first time use system direct login can, account information includes account ID, account key, account balance, wherein: and the server verifies the account ID and the account key during login. The account balance of the user is automatically increased after the Wi-Fi sharing user gains a profit by sharing Wi-Fi resources, and the user cannot change or set the account balance through operation of the block chain server. The user may realize a token cash-out by cash-out.
(2) The Wi-Fi registration module comprises two functions:
firstly, after a Wi-Fi sharing user logs in a client through a Wi-Fi sharing terminal, a Wi-Fi hotspot is started through a Wi-Fi registration module.
and secondly, sending a Wi-Fi registration request to the blockchain server, randomly generating a key pair by the server, sending a public key of the blockchain server to a Wi-Fi sharing terminal, and sending Wi-Fi resource information encrypted by the public key to the blockchain server by the Wi-Fi sharing terminal, wherein the resource information comprises Wi-Fi information (including information such as an IP address, a Mac address, an SSID (service set identifier) and an internet speed of the Wi-Fi), an account ID of the Wi-Fi, a Wi-Fi charging rule and the like.
It should be noted here that the public Wi-Fi is not to profit from the Wi-Fi resources themselves, so the charging rule is set to no charge at registration.
(3) Wi-Fi updates module
If the Wi-Fi information changes, such as the IP address changes after the user shifts and the SSID of the Wi-Fi is changed by the user, an updating request can be sent to the block link server, and the block link server modifies the Wi-Fi resource information through an intelligent contract.
(4) Key providing module
The Wi-Fi sharing user starts a hotspot after registering Wi-Fi resources on a blockchain, and connection request information of a Wi-Fi using terminal needs to be monitored in real time during the process of starting the hotspot. The WiFi using terminal sends connection request information to the WiFi sharing terminal according to the IP address of the WiFi sharing terminal in the resource information of the WiFi to be connected, which is provided by the blockchain server, wherein the connection request information comprises signature information of the blockchain server on the WiFi using terminal.
After the WiFi sharing terminal receives the connection request information of the Wi-Fi using terminal, whether the Wi-Fi using user is a user verified by the Wi-Fi sharing platform or not and whether signature information granted by the Wi-Fi sharing platform exists or not are verified, and after verification is passed, a secret key of the Wi-Fi to be connected is sent to the Wi-Fi using terminal.
And the WiFi using terminal uses the WiFi to share the WiFi to be connected generated by the terminal according to the WiFi secret key.
According to the WiFi sharing method based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
On the basis of the above embodiments, further, the WiFi user terminal sends the signature information to the WiFi sharing terminal, and also sends a first public key to the WiFi sharing terminal;
correspondingly, after the WiFi sharing terminal verifies the signature information, the WiFi key is encrypted by using the first public key, and the encrypted WiFi key is fed back to the WiFi using terminal;
and the WiFi using terminal decrypts the encrypted WiFi key according to a private key to obtain the WiFi key, and uses the WiFi to be connected generated by the WiFi sharing terminal according to the WiFi key.
Specifically, the WiFi user terminal sends connection request information to the WiFi sharing terminal according to an IP address of the WiFi sharing terminal in resource information of the WiFi to be connected, which is provided by the blockchain server, where the connection request information includes signature information of the blockchain server on the WiFi user terminal, and also includes a public key of the WiFi user terminal.
After the WiFi sharing terminal receives the connection request information of the Wi-Fi using terminal, the key providing module verifies whether the Wi-Fi using user is a user verified by the Wi-Fi sharing platform or not and whether signature information granted by the Wi-Fi sharing platform exists or not, after the verification is passed, the public key of the WiFi using terminal is used for encrypting the WiFi secret key, and the encrypted WiFi secret key is fed back to the WiFi using terminal.
And the WiFi using terminal decrypts the encrypted WiFi key according to a private key of the WiFi using terminal to obtain the WiFi key, and uses the WiFi to share the WiFi to be connected generated by the terminal according to the WiFi key.
According to the WiFi sharing method based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, and the WiFi user is charged, so that the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are realized, WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
Fig. 2 is a schematic diagram of a WiFi sharing server based on a block chain according to an embodiment of the present invention, as shown in fig. 2, an embodiment of the present invention provides a WiFi sharing server based on a block chain, which is used to complete the method described in the foregoing embodiments, and specifically includes an obtaining module 201 and a sending module 202, where,
the obtaining module 201 is configured to obtain WiFi connection request information sent by a WiFi using terminal;
the sending module 202 is configured to send resource information of WiFi to be connected and signature information to the WiFi user terminal according to the WiFi connection request information, so that the WiFi user terminal establishes connection with a WiFi sharing terminal according to the resource information of WiFi to be connected and the signature information, and uses the WiFi to be connected generated by the WiFi sharing terminal.
Embodiments of the present invention provide a WiFi shared server based on a block chain, which is used to complete the method described in the foregoing embodiments, and specific steps of completing the method described in the foregoing embodiments by using the server provided in this embodiment are the same as those in the foregoing embodiments, and are not described herein again.
According to the WiFi sharing server based on the block chain, the safety of the WiFi sharing network is improved by designing the decentralized WiFi sharing platform based on the block chain, the public WiFi and the private WiFi are compatible, the WiFi provider is authenticated, the WiFi user is charged, the WiFi provider is benefited, WiFi resources which stimulate WiFi sharing and provide convenience for the user are achieved, the WiFi information of the user is protected, privacy data of the user are protected, the utilization rate of Wi-Fi resources is improved, and the management and maintenance cost of Wi-Fi sharing is reduced.
Fig. 3 is a schematic structural diagram of an electronic device for WiFi sharing according to an embodiment of the present invention, and as shown in fig. 3, the device includes: a processor 301, a memory 302, and a bus 303;
the processor 301 and the memory 302 complete communication with each other through the bus 303;
processor 301 is configured to call program instructions in memory 302 to perform the methods provided by the various method embodiments described above, including, for example:
acquiring WiFi connection request information sent by a WiFi using terminal;
and sending resource information and signature information of WiFi to be connected to the WiFi using terminal according to the WiFi connection request information so that the WiFi using terminal can establish connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, and using the WiFi to be connected generated by the WiFi sharing terminal.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes:
acquiring WiFi connection request information sent by a WiFi using terminal;
and sending resource information and signature information of WiFi to be connected to the WiFi using terminal according to the WiFi connection request information so that the WiFi using terminal can establish connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, and using the WiFi to be connected generated by the WiFi sharing terminal.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include:
acquiring WiFi connection request information sent by a WiFi using terminal;
and sending resource information and signature information of WiFi to be connected to the WiFi using terminal according to the WiFi connection request information so that the WiFi using terminal can establish connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, and using the WiFi to be connected generated by the WiFi sharing terminal.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatuses and devices are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A WiFi sharing method based on a block chain is characterized by comprising the following steps:
acquiring WiFi connection request information sent by a WiFi using terminal;
according to the WiFi connection request information, sending resource information of WiFi to be connected and signature information to the WiFi using terminal, so that the WiFi using terminal can establish connection with a WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, and the WiFi to be connected generated by the WiFi sharing terminal is used;
the WiFi using terminal establishes connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, so that the WiFi to be connected generated by the WiFi sharing terminal is used, and the method specifically comprises the following steps:
the WiFi using terminal sends the signature information to the WiFi sharing terminal according to the IP address of the WiFi sharing terminal in the resource information of the WiFi to be connected;
the WiFi sharing terminal verifies the signature information and feeds back a WiFi key to the WiFi using terminal;
and the WiFi using terminal uses the to-be-connected WiFi generated by the WiFi sharing terminal according to the WiFi key.
2. The method according to claim 1, wherein the sending resource information and signature information of the WiFi to be connected to the WiFi user terminal according to the WiFi connection request information specifically includes:
calling an intelligent contract on a block chain to inquire the resource information of the WiFi to be connected according to the identity identification information of the WiFi to be connected, which is contained in the WiFi connection request information;
issuing signature information for the WiFi user terminal;
and sending the resource information of the WiFi to be connected and the signature information to the WiFi using terminal.
3. The method according to claim 2, wherein the sending the resource information of the WiFi to be connected and the signature information to the WiFi using terminal specifically includes:
encrypting the resource information of the WiFi to be connected and the signature information by using a first public key contained in the WiFi connection request information to obtain first encryption information;
and sending the first encryption information to the WiFi using terminal.
4. The method of claim 1, wherein after sending resource information and signature information of WiFi to be connected to the WiFi using terminal according to the WiFi connection request information, the method further comprises:
receiving connection confirmation information sent by the WiFi using terminal and/or the WiFi sharing terminal, wherein the connection confirmation information is used for indicating that the WiFi using terminal starts to use the WiFi to be connected generated by the WiFi sharing terminal;
and charging the WiFi using terminal according to the connection confirmation request information and a preset charging rule.
5. The method according to claim 4, wherein after charging the WiFi usage terminal according to the connection confirmation request message and a preset charging rule, the method further comprises:
receiving disconnection confirmation information sent by the WiFi using terminal and/or the WiFi sharing terminal, wherein the disconnection confirmation information is used for indicating that the WiFi using terminal stops using the WiFi to be connected generated by the WiFi sharing terminal;
and according to the disconnection confirmation request information, settling the WiFi using terminal according to the preset charging rule, deducting corresponding use fees from the account of the user of the WiFi using terminal, transferring the use fees to the account of the user of the WiFi sharing terminal, and simultaneously deducting corresponding service fees from the account of the user of the WiFi sharing terminal according to the preset service rule.
6. The method of claim 4, wherein the preset charging rule is:
charging according to the length of the service time or charging according to the size of the service data flow.
7. The method according to claim 1, wherein the WiFi user terminal sends the signature information to the WiFi sharing terminal, and simultaneously sends a first public key to the WiFi sharing terminal;
correspondingly, after the WiFi sharing terminal verifies the signature information, the WiFi key is encrypted by using the first public key, and the encrypted WiFi key is fed back to the WiFi using terminal;
and the WiFi using terminal decrypts the encrypted WiFi key according to a private key to obtain the WiFi key, and uses the WiFi to be connected generated by the WiFi sharing terminal according to the WiFi key.
8. A WiFi sharing server based on a block chain, comprising:
the acquisition module is used for acquiring WiFi connection request information sent by a WiFi using terminal;
a sending module, configured to send resource information of WiFi to be connected and signature information to the WiFi user terminal according to the WiFi connection request information, so that the WiFi user terminal establishes a connection with a WiFi sharing terminal according to the resource information of WiFi to be connected and the signature information, and thus uses the WiFi to be connected generated by the WiFi sharing terminal; the WiFi using terminal establishes connection with the WiFi sharing terminal according to the resource information of the WiFi to be connected and the signature information, so that the WiFi to be connected generated by the WiFi sharing terminal is used, and the method specifically comprises the following steps: the WiFi using terminal sends the signature information to the WiFi sharing terminal according to the IP address of the WiFi sharing terminal in the resource information of the WiFi to be connected; the WiFi sharing terminal verifies the signature information and feeds back a WiFi key to the WiFi using terminal; and the WiFi using terminal uses the to-be-connected WiFi generated by the WiFi sharing terminal according to the WiFi key.
9. An electronic device for WiFi sharing, comprising:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 7.
CN201810746090.7A 2018-07-09 2018-07-09 WiFi sharing method based on block chain and server Active CN109168139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810746090.7A CN109168139B (en) 2018-07-09 2018-07-09 WiFi sharing method based on block chain and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810746090.7A CN109168139B (en) 2018-07-09 2018-07-09 WiFi sharing method based on block chain and server

Publications (2)

Publication Number Publication Date
CN109168139A CN109168139A (en) 2019-01-08
CN109168139B true CN109168139B (en) 2020-06-02

Family

ID=64897494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810746090.7A Active CN109168139B (en) 2018-07-09 2018-07-09 WiFi sharing method based on block chain and server

Country Status (1)

Country Link
CN (1) CN109168139B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109873808A (en) * 2019-01-11 2019-06-11 平安科技(深圳)有限公司 Communication means and device, storage medium and electronic equipment between block chain node
CN110177119A (en) * 2019-06-13 2019-08-27 朱子腾 A kind of account and application method of binding IP address
CN111385755B (en) * 2020-03-18 2021-12-03 成都西加云杉科技有限公司 Bandwidth resource sharing method, device, equipment and readable storage medium
CN112235795B (en) * 2020-09-09 2023-08-01 广州安食通信息科技有限公司 Wireless network configuration method, system, device and medium based on Internet of things
CN112437434B (en) * 2020-12-02 2023-03-21 中国联合网络通信集团有限公司 Access method and device
CN112399416B (en) * 2020-12-02 2023-01-10 中国联合网络通信集团有限公司 Access method and device
CN115907750A (en) * 2020-12-12 2023-04-04 深圳市一聪微付科技有限公司 Method and device for payment based on short-distance communication
CN113316145B (en) * 2021-05-21 2022-12-16 中国联合网络通信集团有限公司 Wireless network access method, wireless access equipment and terminal equipment
CN113347628A (en) * 2021-05-21 2021-09-03 中国联合网络通信集团有限公司 Method, access point and terminal for providing network access service
CN114221966A (en) * 2021-12-14 2022-03-22 中国联合网络通信集团有限公司 Data flow sharing method, system, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040927A (en) * 2017-05-27 2017-08-11 珠海市魅族科技有限公司 Wireless network focus sharing method and device, computer installation and storage medium
CN107659937A (en) * 2016-08-02 2018-02-02 上海掌门科技有限公司 The method and apparatus shared for realizing WAP
CN108024308A (en) * 2016-11-03 2018-05-11 上海掌门科技有限公司 The method and apparatus that wireless access point is shared, connected

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105992205A (en) * 2015-02-02 2016-10-05 中兴通讯股份有限公司 Method for sharing WLAN ciphers and device for sharing WLAN ciphers
US10033702B2 (en) * 2015-08-05 2018-07-24 Intralinks, Inc. Systems and methods of secure data exchange
CN108064059A (en) * 2017-11-28 2018-05-22 上海连尚网络科技有限公司 A kind of method of resource allocation, medium and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659937A (en) * 2016-08-02 2018-02-02 上海掌门科技有限公司 The method and apparatus shared for realizing WAP
CN108024308A (en) * 2016-11-03 2018-05-11 上海掌门科技有限公司 The method and apparatus that wireless access point is shared, connected
CN107040927A (en) * 2017-05-27 2017-08-11 珠海市魅族科技有限公司 Wireless network focus sharing method and device, computer installation and storage medium

Also Published As

Publication number Publication date
CN109168139A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN109168139B (en) WiFi sharing method based on block chain and server
KR102089833B1 (en) Secure wireless charging
KR102158325B1 (en) Secure charging method for electric vehicles
US7761307B2 (en) Power transmission and power receiving apparatus and method
CN102724647B (en) Method and system for access capability authorization
CN109300038B (en) Resource flow transaction system
CN110599323B (en) Resource processing method and processing equipment
CN108668277B (en) Method and equipment for sharing and acquiring information
CN104936178A (en) Wireless power transmitting devices, methods for signaling access information for a wireless communication network and method for authorizing a wireless power receiving device
WO2018023936A1 (en) Method and device for implementing sharing of wireless access point
JP7226858B2 (en) Method and device for providing roaming service using blockchain
US20150294309A1 (en) Method, Device and Service Provision Unit for Authenticating a Customer for a Service to be Provided by the Service Provision Unit
CN110619222A (en) Authorization processing method, device, system and medium based on block chain
CN103179176A (en) Call method, device and system for web application in cloud/cluster environment
US20160078575A1 (en) Software resale method, apparatus, and system
WO2016068687A1 (en) Bonus accumulation system, bonus accumulation method, and nfc terminal device therefor
KR101120059B1 (en) Billing verifying apparatus, billing apparatus and method for cloud computing environment
JP2008167406A (en) Method and apparatus for selling digital resource
CN109410056A (en) A kind of method that charging system for electric automobile realizes decentralization Secure Transaction
JP2019012561A (en) Authentication system, authentication server, method for authentication, and authentication program
JP2006221462A (en) Device for service user, device for service provider, device for charging management, network connection service system, and charging method in network connection service
CN109272318B (en) Resource flow transaction method, device, equipment and medium applied to requester client
EP3188104A1 (en) Peer-to-peer transaction authorization
CN109345247B (en) Resource flow transaction method, device, equipment and medium applied to provider client
KR20210128276A (en) Authentification And Payment Method Of Electric Car Charging Through Social Payment

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