CN111355754B - Block chain-based business purchasing method and equipment - Google Patents
Block chain-based business purchasing method and equipment Download PDFInfo
- Publication number
- CN111355754B CN111355754B CN201811569639.6A CN201811569639A CN111355754B CN 111355754 B CN111355754 B CN 111355754B CN 201811569639 A CN201811569639 A CN 201811569639A CN 111355754 B CN111355754 B CN 111355754B
- Authority
- CN
- China
- Prior art keywords
- terminal
- blockchain
- processor
- network device
- interaction information
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1403—Architecture for metering, charging or billing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/24—Accounting or billing
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Finance (AREA)
- Technology Law (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention provides a method and equipment for buying business based on a block chain, wherein the method comprises the following steps: sending an access request message to a network device; receiving a plurality of intelligent contracts sent by network equipment; signing a plurality of intelligent contracts with the network equipment, and adding interaction information between the terminal and the network equipment to the blockchain; determining a target intelligent contract from a plurality of intelligent contracts according to the service used by the terminal; and paying according to the target intelligent contract. In the embodiment of the invention, the terminal receives a plurality of intelligent contracts sent by the network equipment, signs the intelligent contracts with the network equipment, and enables a payment mode of a user to an operator to be more flexible by signing the intelligent contracts; and adding the interaction information between the terminal and the network equipment to the blockchain to enable the transaction to be decentralised and improve the transaction reliability.
Description
Technical Field
The embodiment of the invention belongs to the technical field of communication, and particularly relates to a method and equipment for purchasing business based on a block chain.
Background
The base stations in existing communications are provided by operators who need to select and negotiate a purchase or lease site. However, when the fifth generation mobile communication technology (5G) comes, since the 5G uses high frequency, the coverage of the network device is reduced, and thus more sites are required to deploy the network device.
Based on the 5G scenario, deployment of network devices may be done by merchants or users and then leased to or interoperated with the operators. In this scenario, because the resources provided by each network device are different, the used rates are different, which increases the complexity of statistics and charging of the operator, and further results in a troublesome manner of paying to the operator for the user, which is inconvenient.
Disclosure of Invention
The embodiment of the invention provides a method and equipment for buying business based on a blockchain, which solve the problems that the existing method for paying fees to operators by users is troublesome and inconvenient.
According to a first aspect of an embodiment of the present invention, there is provided a method for purchasing a service based on a blockchain, applied to a terminal, the method including: sending an access request message to a network device; receiving a plurality of intelligent contracts sent by the network equipment; signing the plurality of smart contracts with the network device; determining a target intelligent contract from the plurality of intelligent contracts according to the service used by the terminal; paying according to the target intelligent contract; interaction information between the terminal and the network device is added to a blockchain.
Optionally, the plurality of smart contracts includes: access to a smart contract and a plurality of business smart contracts.
Optionally, before the adding of the interaction information between the terminal and the network device to the blockchain, the method further comprises: establishing a plurality of status channels with the network device, wherein the status channels correspond to a plurality of signed intelligent contracts; accordingly, the adding the interaction information between the terminal and the network device to the blockchain includes: and adding the interaction information between the terminal and the network equipment to a blockchain according to a preset rule.
Optionally, the preset rule includes one or more of the following: after keeping the state channel until the terminal leaves, adding the interaction information to a blockchain; after maintaining the state channel for a preset duration, adding the interaction information to a blockchain; and the state channel is always kept, and the interaction information is added to the blockchain according to a preset period.
According to a second aspect of an embodiment of the present invention, there is provided a method for purchasing services based on blockchain, applied to a network device, the method including: receiving an access request message sent by a terminal; sending a plurality of intelligent contracts to the terminal; signing the plurality of smart contracts with the terminal; charging according to a target smart contract, wherein the target smart contract is about a smart contract determined by the terminal from the plurality of smart contracts according to the service used; interaction information between the terminal and the network device is added to a blockchain.
Optionally, the plurality of smart contracts includes: access to a smart contract and a plurality of business smart contracts.
Optionally, before the adding of the interaction information between the terminal and the network device to the blockchain, the method further comprises: establishing a multi-state channel with the terminal, wherein the multi-state channel corresponds to a plurality of signed intelligent contracts; and adding the interaction information between the terminal and the network equipment to a blockchain according to a preset rule.
Optionally, the preset rule includes one or more of the following: after keeping the state channel until the terminal leaves, adding the interaction information to a blockchain; after maintaining the state channel for a preset duration, adding the interaction information to a blockchain; and the state channel is always kept, and the interaction information is added to the blockchain according to a preset period.
According to a third aspect of an embodiment of the present invention, there is provided a terminal including: a first transceiver and a first processor, wherein the first transceiver is configured to send an access request message to a network device; the first transceiver is further configured to receive a plurality of intelligent contracts sent by the network device; the first processor is configured to sign the plurality of smart contracts with the network device; the first processor is further configured to determine a target intelligent contract from the plurality of intelligent contracts according to a service used by the terminal; the first processor is further used for paying according to the target intelligent contract; the first processor is further configured to add interaction information between the terminal and the network device to a blockchain.
Optionally, the plurality of smart contracts includes: access to a smart contract and a plurality of business smart contracts.
Optionally, the first processor is further configured to establish a multi-state channel with the network device, where the multi-state channel corresponds to a plurality of signed intelligent contracts; the first processor is further configured to add interaction information between the terminal and the network device to a blockchain according to a preset rule.
Optionally, the preset rule includes one or more of the following: after keeping the state channel until the terminal leaves, adding the interaction information to a blockchain; after maintaining the state channel for a preset duration, adding the interaction information to a blockchain; and the state channel is always kept, and the interaction information is added to the blockchain according to a preset period.
According to a fourth aspect of an embodiment of the present invention, there is provided a network device, including: the system comprises a second transceiver and a second processor, wherein the second transceiver is used for receiving an access request message sent by a terminal; the second transceiver is further configured to send a plurality of smart contracts to the terminal; the second processor is configured to sign the plurality of intelligent contracts with the terminal; the second processor is further configured to charge according to a target smart contract, where the target smart contract is about a smart contract determined by the terminal from the plurality of smart contracts according to the service used; the second processor is further configured to add interaction information between the terminal and the network device to a blockchain.
Optionally, the plurality of smart contracts includes: access to a smart contract and a plurality of business smart contracts.
Optionally, the second processor is further configured to establish a multi-strip status channel with the terminal, where the multi-strip status channel corresponds to a plurality of signed intelligent contracts; the second processor is further configured to add interaction information between the terminal and the network device to a blockchain according to a preset rule.
Optionally, the preset rule includes one or more of the following: after keeping the state channel until the terminal leaves, adding the interaction information to a blockchain; after maintaining the state channel for a preset duration, adding the interaction information to a blockchain; and the state channel is always kept, and the interaction information is added to the blockchain according to a preset period.
According to a fifth aspect of an embodiment of the present invention, there is provided a terminal, including a processor, a memory, and a program stored on the memory and executable on the processor, the program implementing the steps of the method for block chain based purchase service according to the first aspect when executed by the processor.
According to a sixth aspect of an embodiment of the present invention, there is provided a network device, including a processor, a memory, and a program stored on the memory and executable on the processor, the program implementing the steps of the blockchain-based purchase service method according to the second aspect when executed by the processor.
According to a seventh aspect of an embodiment of the present invention, there is provided a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program when executed by a processor implementing the steps of the method for purchasing services based on a blockchain as described in the first aspect, or the steps of the method for purchasing services based on a blockchain as described in the second aspect.
In the embodiment of the invention, the terminal receives a plurality of intelligent contracts sent by the network equipment, signs the intelligent contracts with the network equipment, and enables a payment mode of a user to an operator to be more flexible by signing the intelligent contracts; and adding the interaction information between the terminal and the network equipment to the blockchain to enable the transaction to be decentralised and improve the transaction reliability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a wireless communication system architecture according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for providing a block chain based purchase service according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a method for providing a blockchain-based purchase service according to an embodiment of the present invention;
FIG. 4 is a third flowchart of a method for providing a blockchain-based purchase service according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for providing a blockchain-based purchase service according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for providing a blockchain-based purchase service according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a network device according to an embodiment of the present invention;
FIG. 9 is a second schematic diagram of a terminal according to an embodiment of the present invention;
fig. 10 is a second schematic structural diagram of a network device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, an embodiment of the present invention provides a wireless communication system. As shown in fig. 1, the wireless communication system may include: a network device 11 and a terminal 12. In practical application, the connection between the devices may be wireless connection, and for convenience and intuitionistic representation of the connection relationship between the devices, a solid line is used for illustration in fig. 1.
It should be noted that the communication system may include a plurality of terminals, and the network device may communicate (transmit signaling or transmit data) with the plurality of terminals.
The network device may be a network device in a 5G system, such as a next generation base station (next generation node base station, gNB) or a transmission and reception point (transmission and reception point, TRP).
The terminal provided by the embodiment of the invention can be a mobile phone, a tablet personal computer, a notebook computer, an Ultra-Mobile Personal Computer (UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA) and the like.
Referring to fig. 2, an embodiment of the present invention provides a method for purchasing services based on blockchain, where an execution body of the method is a terminal, and the specific steps are as follows:
step 201: sending an access request message to a network device;
step 202: receiving a plurality of intelligent contracts sent by network equipment;
in the embodiment of the invention, a terminal receives a plurality of intelligent contracts sent by network equipment, wherein the plurality of intelligent contracts comprise: an access intelligence contract and a plurality of business intelligence contracts, wherein the plurality of business intelligence contracts correspond to a plurality of businesses that a network device is capable of providing to a terminal, such as: call traffic, data traffic, high bandwidth or low latency traffic, etc.
Step 203: signing the plurality of smart contracts with the network device;
in the embodiment of the invention, the terminal signs all intelligent contracts sent by the network equipment.
Step 204: determining a target intelligent contract from the plurality of intelligent contracts according to the service used by the terminal;
in the embodiment of the invention, the terminal determines a target intelligent contract from a plurality of signed intelligent contracts according to the service used by the terminal.
Step 205: paying according to the target intelligent contract;
in the embodiment of the invention, according to different target intelligent contracts, the payment mode of the terminal can be real-time payment or delayed payment, and the embodiment of the invention does not specifically limit the payment mode of the terminal.
It will be appreciated that when the terminal needs to modify the service used, since the terminal has signed all the intelligent contracts with the network device, the terminal need only determine a new target intelligent contract among the signed plurality of intelligent contracts and pay according to the new target intelligent contract.
Step 206: interaction information between the terminal and the network device is added to the blockchain.
In the embodiment of the invention, the interactive information generated between the terminal and the network equipment is added to the blockchain, so that the transaction is decentralised, and the transaction reliability is improved. Wherein, the interaction information may include: business information purchased, intelligent contract information signed, transaction records made, and the like.
In the embodiment of the invention, the terminal receives a plurality of intelligent contracts sent by the network equipment, signs the intelligent contracts with the network equipment, and enables a payment mode of a user to an operator to be more flexible by signing the intelligent contracts; and adding the interaction information between the terminal and the network equipment to the blockchain to enable the transaction to be decentralised and improve the transaction reliability.
Referring to fig. 3, an embodiment of the present invention provides a method for purchasing services based on blockchain, where an execution body of the method is a network device, and the specific steps are as follows:
step 301: receiving an access request message sent by a terminal;
in the embodiment of the invention, the network equipment can perform validity authentication on the terminal after receiving the access request message sent by the terminal.
Step 302: sending a plurality of intelligent contracts to a terminal;
in an embodiment of the present invention, a network device sends a plurality of smart contracts to a terminal, the plurality of smart contracts including: an access intelligence contract and a plurality of business intelligence contracts, wherein the plurality of business intelligence contracts correspond to a plurality of businesses that a network device is capable of providing to a terminal, such as: call traffic, data traffic, high bandwidth or low latency traffic, etc.
Step 303: signing the plurality of smart contracts with the terminal;
in the embodiment of the invention, the terminal signs all intelligent contracts sent by the network equipment.
Step 304: charging according to the target intelligent contract;
in the embodiment of the invention, according to different target intelligent contracts, the charging mode of the network equipment can be real-time charging, and the charging mode of the network equipment can also be delayed charging.
It will be appreciated that when the terminal needs to modify the service used, since the terminal has signed all the intelligent contracts with the network device, the network device only needs to determine a new target intelligent contract from the signed plurality of intelligent contracts, and the network device pays according to the new target intelligent contract.
Step 305: interaction information between the terminal and the network device is added to the blockchain.
In the embodiment of the invention, the interactive information generated between the terminal and the network equipment is added to the blockchain, so that the transaction is decentralised, and the transaction reliability is improved. Wherein, the interaction information may include: business information for purchase, intelligent contract information for signing, transaction record made and the like
In the embodiment of the invention, the network equipment sends a plurality of intelligent contracts to the terminal, and the intelligent contracts are signed with the terminal, so that the payment mode of the user to the operator is more flexible by signing the intelligent contracts; and adding the interaction information between the terminal and the network equipment to the blockchain to enable the transaction to be decentralised and improve the transaction reliability.
Referring to fig. 4, an embodiment of the present invention provides a method for purchasing services based on blockchain, where an execution body of the method is a terminal, and the specific steps are as follows:
step 401: sending an access request message to a network device;
step 402: receiving a plurality of intelligent contracts sent by network equipment;
step 403: signing the plurality of smart contracts with the network device;
the descriptions of the steps 401 to 403 may refer to the descriptions of the steps 201 to 203 in fig. 2, and are not repeated here.
Step 404: establishing a multi-strip status channel with a network device;
in the embodiment of the invention, the State Channel (State Channel) is a bidirectional Channel between the points and is used for realizing the point-to-point transaction, and the problems of large transaction delay, high transaction cost and low throughput can be solved by using the State Channel for the transaction. The multi-state channel corresponds to a plurality of intelligent contracts signed, so that when the terminal uses the business corresponding to any one of the intelligent contracts, the terminal can conduct transactions through the state channel.
Step 405: determining a target intelligent contract from the plurality of intelligent contracts according to the service used by the terminal;
in the embodiment of the invention, the terminal determines a target intelligent contract from a plurality of signed intelligent contracts according to the service used by the terminal.
Step 406: paying according to the target intelligent contract;
it will be appreciated that when the terminal needs to modify the service used, since the terminal has signed all the intelligent contracts with the network device, the terminal need only determine a new target intelligent contract among the signed plurality of intelligent contracts and pay according to the new target intelligent contract.
Step 407: adding interaction information between the terminal and the network equipment to a blockchain according to a preset rule;
in the embodiment of the invention, in order to save network resources, the interaction information is not required to be added to the blockchain after each transaction, and a rule can be preset and is added to the blockchain according to the preset rule.
Optionally, the preset rules include one or more of the following:
(1) After the state channel is kept and the terminal is disconnected, adding interaction information to the blockchain;
and closing the state channel after the terminal disconnects the network, and adding all generated interaction information to the blockchain.
(2) After maintaining the state channel for a preset duration, adding the interaction information to the blockchain;
and closing the state channel after the preset time period, and adding all generated interaction information to the blockchain. The preset time length can be uniformly set (for example, 10 s), or different preset time lengths can be set according to different types of services, and the preset time length is not particularly limited in the embodiment of the invention.
(3) The state channel is always kept, and the interactive information is added to the block chain according to a preset period;
the state channel is maintained at all times and the generated interaction information is periodically added to the blockchain. The preset period may be uniformly set (for example, 10 s), or may be different preset periods set according to different types of services, and the preset period is not specifically limited in the embodiment of the present invention.
In the embodiment of the invention, the state channel is established between the terminal and the network equipment, so that the transaction efficiency is improved, the efficiency of adding the interaction information to the blockchain is further improved, and meanwhile, the interaction information is added to the blockchain according to the preset rule, so that the network resources are saved. When the business used by the terminal needs to be changed, a new target intelligent contract is determined and signed in the signed intelligent contracts, and then the transaction is carried out through the corresponding state channel, so that the transaction flexibility is improved, and the transaction steps are simplified.
Referring to fig. 5, an embodiment of the present invention provides a method for purchasing services based on blockchain, where an execution body of the method is a network device, and the specific steps are as follows:
step 501: receiving an access request message sent by a terminal;
step 502: sending a plurality of intelligent contracts to a terminal;
step 503: signing the plurality of smart contracts with the terminal;
the descriptions of the above steps 501 to 503 may refer to the descriptions of the steps 301 to 303 in fig. 3, and are not repeated here.
Step 504: establishing a multi-strip status channel with a terminal;
in the embodiment of the invention, the state channel is a bidirectional channel between the points and is used for realizing the point-to-point transaction, and the problems of large transaction delay, high transaction cost and low throughput can be solved by using the state channel for the transaction. The multi-state channel corresponds to a plurality of intelligent contracts signed, so that when the terminal uses the business corresponding to any one of the intelligent contracts, the terminal can conduct transactions through the state channel.
Step 505: charging according to the target intelligent contract;
in the embodiment of the invention, the target intelligent contract is an intelligent contract determined by the terminal from a plurality of signed intelligent contracts according to the service used.
It will be appreciated that when the terminal needs to modify the service used, since the terminal has signed all the intelligent contracts with the network device, the network device only needs to determine a new target intelligent contract from the signed plurality of intelligent contracts, and the network device pays according to the new target intelligent contract.
Step 506: adding interaction information between the terminal and the network equipment to a blockchain according to a preset rule;
in the embodiment of the invention, in order to save network resources, the interaction information is not required to be added to the blockchain after each transaction, and a rule can be preset and is added to the blockchain according to the preset rule.
Optionally, the preset rules include one or more of the following:
(1) After the state channel is kept and the terminal is disconnected, adding interaction information to the blockchain;
and closing the state channel after the terminal disconnects the network, and adding all generated interaction information to the blockchain.
(2) After maintaining the state channel for a preset duration, adding the interaction information to the blockchain;
and closing the state channel after the preset time period, and adding all generated interaction information to the blockchain. The preset time length can be uniformly set (for example, 10 s), or different preset time lengths can be set according to different types of services, and the preset time length is not particularly limited in the embodiment of the invention.
(3) The state channel is always kept, and the interactive information is added to the block chain according to a preset period;
the state channel is maintained at all times and the generated interaction information is periodically added to the blockchain. The preset period may be uniformly set (for example, 10 s), or may be different preset periods set according to different types of services, and the preset period is not specifically limited in the embodiment of the present invention.
In the embodiment of the invention, the state channel is established between the terminal and the network equipment, so that the transaction efficiency is improved, the efficiency of adding the interaction information to the blockchain is further improved, and meanwhile, the interaction information is added to the blockchain according to the preset rule, so that the network resources are saved. When the business used by the terminal needs to be changed, the terminal only needs to determine and sign a new target intelligent contract in the signed multiple intelligent contracts, and then carries out transaction through the corresponding state channel, so that the transaction flexibility is improved, and the transaction steps are simplified.
Referring to fig. 6, an embodiment of the present invention provides a method for purchasing services based on blockchain, which specifically includes the following steps:
step 601: the terminal sends an access request message to the network equipment;
in the embodiment of the invention, the network equipment can perform validity authentication on the terminal after receiving the access request message sent by the terminal.
Step 602: the network equipment sends a plurality of intelligent contracts to the terminal;
in an embodiment of the present invention, the plurality of smart contracts includes: an access intelligence contract and a plurality of business intelligence contracts, wherein the plurality of business intelligence contracts correspond to a plurality of businesses that a network device is capable of providing to a terminal, such as: call traffic, data traffic, high bandwidth or low latency traffic, etc.
Step 603: the terminal and the network equipment sign the plurality of intelligent contracts;
in the embodiment of the invention, the terminal signs all intelligent contracts sent by the network equipment.
Step 604: the method comprises the steps that a terminal and network equipment establish a multi-state channel;
in the embodiment of the invention, the multiple-state channel corresponds to the signed multiple intelligent contracts, so that when the terminal uses the business corresponding to any intelligent contract in the multiple intelligent contracts, the terminal can conduct transaction through the state channel.
Step 605: the terminal determines a target intelligent contract from a plurality of intelligent contracts according to the service used by the terminal;
in the embodiment of the invention, the terminal determines a target intelligent contract from a plurality of signed intelligent contracts according to the service used by the terminal.
Step 606: charging is performed according to the target smart contract.
It will be appreciated that when the terminal needs to modify the service used, since the terminal has signed all the intelligent contracts with the network device, the terminal need only determine a new target intelligent contract among the signed plurality of intelligent contracts and pay according to the new target intelligent contract.
Step 607: and adding interaction information between the terminal and the network equipment to the blockchain according to preset rules.
In the embodiment of the invention, the preset rule comprises one or more of the following:
(1) After the state channel is kept and the terminal is disconnected, adding interaction information to the blockchain;
and closing the state channel after the terminal disconnects the network, and adding all generated interaction information to the blockchain.
(2) After maintaining the state channel for a preset duration, adding the interaction information to the blockchain;
and closing the state channel after the preset time period, and adding all generated interaction information to the blockchain. The preset time length can be uniformly set (for example, 10 s), or different preset time lengths can be set according to different types of services, and the preset time length is not particularly limited in the embodiment of the invention.
(3) The state channel is always kept, and the interactive information is added to the block chain according to a preset period;
the state channel is maintained at all times and the generated interaction information is periodically added to the blockchain. The preset period may be uniformly set (for example, 10 s), or may be different preset periods set according to different types of services, and the preset period is not specifically limited in the embodiment of the present invention.
In the embodiment of the invention, the state channel is established between the terminal and the network equipment, so that the transaction efficiency is improved, the efficiency of adding the interaction information to the blockchain is further improved, and meanwhile, the interaction information is added to the blockchain according to the preset rule, so that the network resources are saved. When the business used by the terminal needs to be changed, a new target intelligent contract is determined and signed in the signed intelligent contracts, and then the transaction is carried out through the corresponding state channel, so that the transaction flexibility is improved, and the transaction steps are simplified.
Referring to fig. 7, an embodiment of the present invention provides a terminal 700, including: a first transceiver 701 and a first processor 702;
wherein, the first transceiver 701 is configured to send an access request message to a network device;
the first transceiver 701 is further configured to receive a plurality of smart contracts sent by the network device;
the first processor 702 is configured to sign the plurality of smart contracts with the network device;
the first processor 702 is further configured to determine a target smart contract from the plurality of smart contracts according to a service used by the terminal;
the first processor 702 is further configured to pay according to the target smart contract;
the first processor 702 is further configured to add interaction information between the terminal and the network device to a blockchain.
Optionally, the plurality of smart contracts includes: access to a smart contract and a plurality of business smart contracts.
Optionally, the first processor 702 is further configured to establish a multi-strip-like channel with the network device, where the multi-strip-like channel corresponds to a plurality of signed intelligent contracts;
the first processor 702 is further configured to add interaction information between the terminal and the network device to a blockchain according to a preset rule.
Optionally, the preset rule includes one or more of the following:
after keeping the state channel until the terminal leaves, adding the interaction information to a blockchain;
after maintaining the state channel for a preset duration, adding the interaction information to a blockchain;
and the state channel is always kept, and the interaction information is added to the blockchain according to a preset period.
In the embodiment of the invention, the terminal receives a plurality of intelligent contracts sent by the network equipment, signs the intelligent contracts with the network equipment, and enables a payment mode of a user to an operator to be more flexible by signing the intelligent contracts; and adding the interaction information between the terminal and the network equipment to the blockchain to enable the transaction to be decentralised and improve the transaction reliability.
Referring to fig. 8, an embodiment of the present invention provides a network device 800, including: a second transceiver 801 and a second processor 802;
wherein, the second transceiver 801 is configured to receive an access request message sent by a terminal;
the second transceiver 801 is further configured to send a plurality of smart contracts to the terminal;
the second processor 802 is configured to sign the plurality of smart contracts with the terminal;
the second processor 802 is further configured to charge according to a target smart contract, where the target smart contract is a smart contract determined by the terminal from the plurality of smart contracts according to the service used;
the second processor 802 is further configured to add interaction information between the terminal and the network device to a blockchain.
Optionally, the plurality of smart contracts includes: access to a smart contract and a plurality of business smart contracts.
Optionally, the second processor 802 is further configured to establish a multi-state channel with the terminal, where the multi-state channel corresponds to a plurality of signed intelligent contracts;
the second processor 802 is further configured to add interaction information between the terminal and the network device to a blockchain according to a preset rule.
Optionally, the preset rule includes one or more of the following:
after keeping the state channel until the terminal leaves, adding the interaction information to a blockchain;
after maintaining the state channel for a preset duration, adding the interaction information to a blockchain;
and the state channel is always kept, and the interaction information is added to the blockchain according to a preset period.
In the embodiment of the invention, the network equipment sends a plurality of intelligent contracts to the terminal, and the intelligent contracts are signed with the terminal, so that the payment mode of the user to the operator is more flexible by signing the intelligent contracts; and adding the interaction information between the terminal and the network equipment to the blockchain to enable the transaction to be decentralised and improve the transaction reliability.
Referring to fig. 9, an embodiment of the present invention provides another terminal 900, including: at least one processor 901, memory 902, a user interface 903, and at least one network interface 904. The various components in terminal 900 are coupled together by a bus system 905.
It is appreciated that the bus system 905 is used to enable connected communications between these components. The bus system 905 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 905 in fig. 9.
The user interface 903 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, a trackball, a touch pad, or a touch screen, etc.).
It will be appreciated that the memory 902 in embodiments of the invention can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DRRAM). The memory 902 described by embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some implementations, the memory 902 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 9021 and application programs 9022.
The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 9022 includes various application programs such as a media player, a browser, and the like for implementing various application services. A program for implementing the method of the embodiment of the present invention may be included in the application 9022.
In an embodiment of the present invention, the terminal 900 may further include: a program stored on the memory 902 and executable on the processor 901, which when executed by the processor 901, implements the steps of the method provided by the embodiments of the present invention.
The method disclosed in the above embodiment of the present invention may be applied to the processor 901 or implemented by the processor 901. Processor 901 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 901 or instructions in the form of software. The processor 901 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a computer readable storage medium well known in the art such as random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, and the like. The computer readable storage medium is located in a memory 902, and a processor 901 reads information in the memory 902 and performs the steps of the above method in combination with its hardware. In particular, the computer readable storage medium has a computer program stored thereon.
It is to be understood that the embodiments of the invention described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more ASICs, DSPs, digital signal processing Devices (DSPs), programmable logic devices (Programmable Logic Device, PLDs), FPGAs, general purpose processors, controllers, microcontrollers, microprocessors, other electronic units used to perform the functions described herein, or a combination thereof.
Referring to fig. 10, an embodiment of the present invention provides another network device 1000, including: a processor 1001, a transceiver 1002, a memory 1003, and a bus interface.
Among other things, the processor 1001 may be responsible for managing the bus architecture and general processing. The memory 1003 may store data used by the processor 1001 in performing operations.
In an embodiment of the present invention, the network device 1000 may further include: a program stored on the memory 1003 and executable on the processor 1001, which when executed by the processor 1001 implements the steps of the method provided by the embodiment of the invention.
In fig. 10, a bus architecture may be comprised of any number of interconnected buses and bridges, and in particular, one or more processors represented by the processor 1001 and various circuits of the memory represented by the memory 1003. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., all as are well known in the art and, therefore, further description of embodiments of the present invention will not be provided. The bus interface provides an interface. The transceiver 1002 may be a number of elements, i.e. comprising a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above network access method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Claims (10)
1. A method for buying services based on a blockchain, applied to a terminal, characterized in that the method comprises the following steps:
sending an access request message to a network device;
receiving a plurality of intelligent contracts sent by the network equipment;
signing the plurality of smart contracts with the network device;
determining a target intelligent contract from the plurality of intelligent contracts according to the service used by the terminal;
paying according to the target intelligent contract;
interaction information between the terminal and the network device is added to a blockchain.
2. The method of claim 1, wherein after signing the plurality of smart contracts with the network device, the method further comprises:
establishing a plurality of status channels with the network device, wherein the status channels correspond to a plurality of signed intelligent contracts;
accordingly, the adding the interaction information between the terminal and the network device to the blockchain includes:
and adding the interaction information between the terminal and the network equipment to a blockchain according to a preset rule.
3. The method of claim 2, wherein the preset rules include one or more of:
after keeping the state channel until the terminal leaves, adding the interaction information to a blockchain;
after maintaining the state channel for a preset duration, adding the interaction information to a blockchain;
and the state channel is always kept, and the interaction information is added to the blockchain according to a preset period.
4. A method for buying services based on blockchain, applied to a network device, the method comprising:
receiving an access request message sent by a terminal;
sending a plurality of intelligent contracts to the terminal;
signing the plurality of smart contracts with the terminal;
charging according to a target smart contract, wherein the target smart contract is about a smart contract determined by the terminal from the plurality of smart contracts according to the service used;
interaction information between the terminal and the network device is added to a blockchain.
5. The method of claim 4, wherein after signing the plurality of smart contracts with the terminal, the method further comprises:
establishing a multi-state channel with the terminal, wherein the multi-state channel corresponds to a plurality of signed intelligent contracts;
and adding the interaction information between the terminal and the network equipment to a blockchain according to a preset rule.
6. The method of claim 5, wherein the preset rules include one or more of:
after keeping the state channel until the terminal leaves, adding the interaction information to a blockchain;
after maintaining the state channel for a preset duration, adding the interaction information to a blockchain;
and the state channel is always kept, and the interaction information is added to the blockchain according to a preset period.
7. A terminal, comprising: a first transceiver and a first processor, wherein,
the first transceiver is configured to send an access request message to a network device;
the first transceiver is further configured to receive a plurality of intelligent contracts sent by the network device;
the first processor is configured to sign the plurality of smart contracts with the network device;
the first processor is further configured to determine a target intelligent contract from the plurality of intelligent contracts according to a service used by the terminal;
the first processor is further used for paying according to the target intelligent contract;
the first processor is further configured to add interaction information between the terminal and the network device to a blockchain.
8. A network device, comprising: a second transceiver and a second processor, wherein,
the second transceiver is configured to receive an access request message sent by the terminal;
the second transceiver is further configured to send a plurality of smart contracts to the terminal;
the second processor is configured to sign the plurality of intelligent contracts with the terminal;
the second processor is further configured to charge according to a target smart contract, where the target smart contract is about a smart contract determined by the terminal from the plurality of smart contracts according to the service used;
the second processor is further configured to add interaction information between the terminal and the network device to a blockchain.
9. A terminal comprising a processor, a memory, and a program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the blockchain-based purchase service method of any of claims 1 to 3.
10. A network device comprising a processor, a memory, and a program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the blockchain-based purchase service method of any of claims 4 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811569639.6A CN111355754B (en) | 2018-12-21 | 2018-12-21 | Block chain-based business purchasing method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811569639.6A CN111355754B (en) | 2018-12-21 | 2018-12-21 | Block chain-based business purchasing method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111355754A CN111355754A (en) | 2020-06-30 |
CN111355754B true CN111355754B (en) | 2023-06-27 |
Family
ID=71196918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811569639.6A Active CN111355754B (en) | 2018-12-21 | 2018-12-21 | Block chain-based business purchasing method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111355754B (en) |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106204287A (en) * | 2016-07-18 | 2016-12-07 | 上海仲托网络科技有限公司 | Mutual insurance based on block chain and help each other guarantee operation method and system |
CN106911483A (en) * | 2017-03-13 | 2017-06-30 | 广东网金控股股份有限公司 | A kind of charging method based on block chain and cloud computing platform |
CN107111810A (en) * | 2014-10-13 | 2017-08-29 | 万事达卡国际股份有限公司 | Method and system for direct operator's charging |
FR3049137A1 (en) * | 2016-03-21 | 2017-09-22 | Sebastien Dupont | METHOD FOR MANAGING INTELLIGENT CONTRACTS WITH AND WITHOUT DIGITAL IDENTITY THROUGH A DECENTRALIZED COMPUTER NETWORK |
CN107578243A (en) * | 2017-07-27 | 2018-01-12 | 远光软件股份有限公司 | Electricity transaction method and device based on block chain technology |
CN107798532A (en) * | 2017-09-29 | 2018-03-13 | 深圳市轱辘车联数据技术有限公司 | A kind of car-mounted terminal method of payment, terminal and computer-readable medium |
CN107819829A (en) * | 2017-10-17 | 2018-03-20 | 上海点融信息科技有限责任公司 | Access method, system, block chain node device and the user terminal of block chain |
CN108389325A (en) * | 2018-02-11 | 2018-08-10 | 深圳市图灵奇点智能科技有限公司 | Settlement method and system, automobile, charging pile, server-side, program and medium |
CN108430061A (en) * | 2018-02-11 | 2018-08-21 | 深圳市图灵奇点智能科技有限公司 | The method and apparatus that block chain contract is signed by the auxiliary that intelligent mobile phone is realized |
CN108596365A (en) * | 2018-03-29 | 2018-09-28 | 云南电网有限责任公司信息中心 | Distributed power energy trade network system |
CN108632480A (en) * | 2018-04-19 | 2018-10-09 | 北京阿尔山金融科技有限公司 | Charging method based on block chain and device |
CN108650647A (en) * | 2018-04-27 | 2018-10-12 | 深圳市元征科技股份有限公司 | A kind of wireless network resource sharing method and wireless network resource sharing means |
CN108701324A (en) * | 2018-05-31 | 2018-10-23 | 深圳市元征科技股份有限公司 | A kind of management method and server of shared vehicle |
CN108805550A (en) * | 2018-04-27 | 2018-11-13 | 深圳市元征科技股份有限公司 | A kind of pre-payment exchange management method and pre-payment trade management device |
CN108846651A (en) * | 2018-05-28 | 2018-11-20 | 数字乾元科技有限公司 | Virtual credit card method of commerce and system based on digital cash |
CN108876610A (en) * | 2018-05-31 | 2018-11-23 | 深圳市零度智控科技有限公司 | Intelligent contract implementation method, user equipment, storage medium and device |
CN108989061A (en) * | 2018-09-14 | 2018-12-11 | 腾讯科技(深圳)有限公司 | Communication system, method, server and storage medium |
CN109005220A (en) * | 2018-07-17 | 2018-12-14 | 中国联合网络通信集团有限公司 | The service implementation method and access gateway of internet of things of internet-of-things terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180285979A1 (en) * | 2017-04-04 | 2018-10-04 | International Business Machines Corporation | Creating service agreements via blockchain smart contracts |
-
2018
- 2018-12-21 CN CN201811569639.6A patent/CN111355754B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107111810A (en) * | 2014-10-13 | 2017-08-29 | 万事达卡国际股份有限公司 | Method and system for direct operator's charging |
FR3049137A1 (en) * | 2016-03-21 | 2017-09-22 | Sebastien Dupont | METHOD FOR MANAGING INTELLIGENT CONTRACTS WITH AND WITHOUT DIGITAL IDENTITY THROUGH A DECENTRALIZED COMPUTER NETWORK |
CN106204287A (en) * | 2016-07-18 | 2016-12-07 | 上海仲托网络科技有限公司 | Mutual insurance based on block chain and help each other guarantee operation method and system |
CN106911483A (en) * | 2017-03-13 | 2017-06-30 | 广东网金控股股份有限公司 | A kind of charging method based on block chain and cloud computing platform |
CN107578243A (en) * | 2017-07-27 | 2018-01-12 | 远光软件股份有限公司 | Electricity transaction method and device based on block chain technology |
CN107798532A (en) * | 2017-09-29 | 2018-03-13 | 深圳市轱辘车联数据技术有限公司 | A kind of car-mounted terminal method of payment, terminal and computer-readable medium |
CN107819829A (en) * | 2017-10-17 | 2018-03-20 | 上海点融信息科技有限责任公司 | Access method, system, block chain node device and the user terminal of block chain |
CN108430061A (en) * | 2018-02-11 | 2018-08-21 | 深圳市图灵奇点智能科技有限公司 | The method and apparatus that block chain contract is signed by the auxiliary that intelligent mobile phone is realized |
CN108389325A (en) * | 2018-02-11 | 2018-08-10 | 深圳市图灵奇点智能科技有限公司 | Settlement method and system, automobile, charging pile, server-side, program and medium |
CN108596365A (en) * | 2018-03-29 | 2018-09-28 | 云南电网有限责任公司信息中心 | Distributed power energy trade network system |
CN108632480A (en) * | 2018-04-19 | 2018-10-09 | 北京阿尔山金融科技有限公司 | Charging method based on block chain and device |
CN108650647A (en) * | 2018-04-27 | 2018-10-12 | 深圳市元征科技股份有限公司 | A kind of wireless network resource sharing method and wireless network resource sharing means |
CN108805550A (en) * | 2018-04-27 | 2018-11-13 | 深圳市元征科技股份有限公司 | A kind of pre-payment exchange management method and pre-payment trade management device |
CN108846651A (en) * | 2018-05-28 | 2018-11-20 | 数字乾元科技有限公司 | Virtual credit card method of commerce and system based on digital cash |
CN108701324A (en) * | 2018-05-31 | 2018-10-23 | 深圳市元征科技股份有限公司 | A kind of management method and server of shared vehicle |
CN108876610A (en) * | 2018-05-31 | 2018-11-23 | 深圳市零度智控科技有限公司 | Intelligent contract implementation method, user equipment, storage medium and device |
CN109005220A (en) * | 2018-07-17 | 2018-12-14 | 中国联合网络通信集团有限公司 | The service implementation method and access gateway of internet of things of internet-of-things terminal |
CN108989061A (en) * | 2018-09-14 | 2018-12-11 | 腾讯科技(深圳)有限公司 | Communication system, method, server and storage medium |
Non-Patent Citations (1)
Title |
---|
区块链技术在分布式发电市场化交易中的应用分析;高赐威;童格格;;电力需求侧管理(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111355754A (en) | 2020-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9571991B1 (en) | Opt-in tracking across messaging application platforms | |
CN111353783A (en) | Block chain based signing method and equipment | |
US7797248B1 (en) | Automated confirmation of transit card fund replenishment | |
WO2018133271A1 (en) | Esim card activation method, wireless router and user terminal | |
CN104751266A (en) | Data processing method, value-added server and system | |
CN111356102B (en) | Method and equipment for purchasing service based on block chain | |
WO2021022916A1 (en) | Charging method, device, and system | |
KR102198950B1 (en) | Blockchain based spectrum sharing method and apparatus | |
CN111355754B (en) | Block chain-based business purchasing method and equipment | |
CN111355755A (en) | Method and equipment for purchasing service based on block chain | |
CN112399388B (en) | Method, device and system for realizing edge calculation | |
CN110545579B (en) | Processing method, network side equipment and user equipment | |
CN111356121B (en) | Method and equipment for binding subscription data based on blockchain | |
KR101767187B1 (en) | System for providing car washing information and method for providing car washing information using the same and computer readable recording medium for method providing car washing information | |
KR20110125757A (en) | Method and apparatus for providing divisible payment service, client device for divisible payment service and smart card | |
CN115706975A (en) | Session policy control method, network element, storage medium and electronic device | |
CN106559411A (en) | Information processing method and device | |
CN102065375A (en) | Broadcast server realization method and system and broadcast system | |
CN106067007A (en) | The credit statistical method of network courses and system | |
CN105704703A (en) | System, method and device for business ordering | |
KR101331555B1 (en) | apparatus, system and method for relay of message service | |
KR101813609B1 (en) | Portable payment terminal apparatus based on beacon and method for servcing payment using the same | |
CN111082947A (en) | Method and device for charging consumption of resources | |
WO2024008157A1 (en) | Information transmission method and apparatus, network device, and communication system | |
CN111355761A (en) | Directional flow resource acquisition system, method, device, electronic equipment and medium |
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 |