CN109447645B - Equipment linkage method, block chain network and storage medium - Google Patents

Equipment linkage method, block chain network and storage medium Download PDF

Info

Publication number
CN109447645B
CN109447645B CN201811337865.1A CN201811337865A CN109447645B CN 109447645 B CN109447645 B CN 109447645B CN 201811337865 A CN201811337865 A CN 201811337865A CN 109447645 B CN109447645 B CN 109447645B
Authority
CN
China
Prior art keywords
node
equipment
information
linkage
request
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
CN201811337865.1A
Other languages
Chinese (zh)
Other versions
CN109447645A (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.)
Sichuan Hongwei Technology Co Ltd
Original Assignee
Sichuan Hongwei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Hongwei Technology Co Ltd filed Critical Sichuan Hongwei Technology Co Ltd
Priority to CN201811337865.1A priority Critical patent/CN109447645B/en
Publication of CN109447645A publication Critical patent/CN109447645A/en
Application granted granted Critical
Publication of CN109447645B publication Critical patent/CN109447645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention relates to an equipment linkage method, a block chain network and a storage medium. The method is applied to a block chain network, and the block chain network comprises a first node and a second node. The method comprises the following steps: the method comprises the following steps that a first node sends a linkage request of first equipment bound with a user from the first node to a second node, wherein the linkage request comprises: the equipment information of second equipment, the user identity identification of the user and the identity information of the first node which need to be linked and are positioned under the second node; the second node judges whether the equipment information and the identity information are written into an intelligent contract of the block chain network; if so, the second node judges whether the equipment information and the user identity are in a binding relationship; if yes, the second node sends the linkage request to the second equipment so that the second equipment executes the operation corresponding to the linkage request. The intelligent contract in the block chain network realizes the linkage of equipment under different Internet of things platforms, and improves the intelligent experience of users.

Description

Equipment linkage method, block chain network and storage medium
Technical Field
The invention belongs to the technical field of Internet of things, and particularly relates to an equipment linkage method, a block chain network and a storage medium.
Background
The technology of the internet of things is rapidly developed, and all manufacturers establish own internet of things platforms. The equipment between each networking platform has certain independence for it is difficult to link to make between the equipment of different brands. For consumers to experience a real-intelligent life, only devices of the same platform are selected for achieving interconnection experience. For intelligent application developers, support for multiple platforms has to be added to a product for better product experience. Because the mutual independence of thing networking platform, the product is strong to single intelligent platform's dependence, and the whole experience of wisdom family promotes slowly.
Disclosure of Invention
In view of the above, the present invention provides a device linkage method, a blockchain network and a storage medium, so as to effectively improve the above problems.
The embodiment of the invention is realized by the following steps:
in a first aspect, an embodiment of the present invention provides an apparatus linkage method, which is applied to a blockchain network, where the blockchain network includes a first node and a second node, and the method includes: the first node sends a linkage request from a first device bound with a user under the first node to the second node, wherein the linkage request comprises: the device information of second equipment needing linkage and located under the second node, the user identity of the user and the identity information of the first node; the second node judges whether the equipment information and the identity information are written into an intelligent contract of the block chain network; if so, the second node judges whether the equipment information and the user identity are in a binding relationship; if yes, the second node sends the linkage request to the second equipment so that the second equipment can execute the operation corresponding to the linkage request. In the embodiment of the application, when the second node receives the linkage request from the first node, it is determined that the device information of the second device needing linkage and the identity information of the first node are written into the intelligent contract of the block chain network, and when it is determined that the second device and the user identity identifier bound with the first device are in a binding relationship, the linkage request is sent to the second device, so that the second device executes the operation corresponding to the linkage request, the linkage of devices under different internet of things platforms is realized through the intelligent contract in the block chain network, the intelligent experience of a user is improved, and the problem that the devices cannot be intercommunicated and interconnected after the user purchases the devices of different manufacturers is solved.
With reference to one possible implementation manner of the first aspect, before the second node sends the linkage request to the second device, the method further includes: the second node confirms that the first node has obtained a private key corresponding to the first node's public key. In the embodiment of the application, the linkage request is sent to the second device after the second node confirms that the first node obtains the private key corresponding to the public key of the first node, so that the linkage safety and reliability are improved.
With reference to one possible implementation manner of the first aspect, the confirming, by the second node, that the first node has obtained a private key corresponding to a public key of the first node includes: the second node sends verification information to the first node; the second node receives a first digital signature obtained by the first node after the first node digitally signs the verification information according to the private key of the first node; the second node verifies the first digital signature according to the public key of the first node, wherein the public key of the first node is obtained from the identity information of the first node; when the first digital signature is verified, the first node is represented to obtain a private key corresponding to the first node public key. In the embodiment of the present application,
with reference to a possible implementation manner of the first aspect, the sending, by the first node, to the second node, a linkage request from a first device bound to a user under the first node includes: the first node receiving device parameters from the first device; when the equipment parameters are determined to meet the triggering conditions for linking the second equipment, determining the node corresponding to the second equipment as the second node from the intelligent contract; and sending the linkage request to the second node. In the embodiment of the application, the first node receives the equipment parameters from the first equipment in real time, determines the node corresponding to the second equipment from the intelligent contract when determining that the equipment parameters meet the triggering condition of the linkage second equipment, and sends the linkage request to the node, so that the timeliness and the authenticity of the linkage are ensured.
In combination with one possible implementation manner of the first aspect, the method includes: the first node sends a modification request aiming at the intelligent contract to all other nodes except the self node in the block chain network, wherein all other nodes comprise the second node; the first node receives feedback information of each node in all the other nodes based on the modification request; the first node determining, based on the feedback information, that each of the remaining all nodes approves the modification request; the first node updates the intelligent contract. In the embodiment of the application, when the first node wants to change the intelligent contract, the change is effective only after the agreement of all the other nodes except the self node in the block chain network, so that each node complies with the agreement of the intelligent contract, and the linkage problem among devices under each node is further solved.
In a second aspect, an embodiment of the present application further provides a blockchain network, where the blockchain network includes a first node and a second node; the first node is configured to send, to the second node, a linkage request from a first device bound to a user under the first node, where the linkage request includes: the device information of second equipment needing linkage and located under the second node, the user identity of the user and the identity information of the first node; the second node is configured to determine whether the device information and the identity information have been written into an intelligent contract of the block chain network; the second node is further configured to, if yes, determine whether the device information and the user identity are in a binding relationship; and the second node is further used for sending the linkage request to the second equipment when the linkage request is yes, so that the second equipment executes the operation corresponding to the linkage request.
With reference to a possible implementation manner of the second aspect, the second node is further configured to confirm that the first node has obtained a private key corresponding to the public key of the first node.
With reference to a possible implementation manner of the second aspect, the second node is further configured to send authentication information to the first node; the first node is also used for receiving a first digital signature obtained by the first node after the first node carries out digital signature on the verification information according to the private key of the first node; the first digital signature is verified according to the public key of the first node, wherein the public key of the first node is obtained from the identity information of the first node; and the first node is also used for representing that the first node obtains a private key corresponding to the first node public key when the first digital signature is verified.
With reference to the second aspect, in a possible implementation manner, the first node is further configured to receive a device parameter from the first device; the intelligent contract is also used for determining that the node corresponding to the second equipment is the second node from the intelligent contract when the equipment parameter is determined to meet the triggering condition of linking the second equipment; and further for sending the linkage request to the second node.
With reference to the second aspect, in a possible implementation manner, the first node is further configured to send a modification request for the intelligent contract to all nodes except its own node in the blockchain network, where the all nodes include the second node; and further configured to receive feedback information of each of the other nodes based on the modification request; and further for determining that each of the remaining all nodes approves the modification request based on the feedback information; and further for updating the smart contract.
In a third aspect, this application further provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method of the first aspect and/or the method provided in connection with one possible implementation manner of the first aspect.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments 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 it is obvious for those skilled in the art to obtain other drawings without creative efforts. The above and other objects, features and advantages of the present invention will become more apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention.
Fig. 1 shows a schematic structural diagram of a block chain network according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart illustrating a method for linking devices according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart illustrating another method for linking devices according to an embodiment of the present invention.
Fig. 4 shows a flowchart of step S204 in fig. 3 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. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "first", "second", "third", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance. Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
Before formally introducing the device linkage method and the blockchain network provided by the embodiment of the present application, the operation environment of the embodiment of the present application is simply introduced, where a blockchain is a decentralized distributed database system where all nodes in the blockchain network participate in maintenance together, and is composed of a series of data blocks generated based on a cryptography method, and each data block is a block in the blockchain. The blocks are linked together in order according to the chronological order of the generation times, forming a chain of data, which is referred to visually as a chain of blocks. The blockchain has the security characteristics of being unchangeable, unforgeable and completely traceable due to the special blockchain and the transaction generation and verification protocol. Some concepts of blockchain networks are presented below.
Nodes in the blockchain network may be referred to as blockchain nodes, wherein the blockchain network is based on a P2P (Peer-to-Peer) network, and each P2P network node participating in transaction and storing, verifying and forwarding the blockchain is a node in the blockchain network. Each node participating in the blockchain network can synchronize all data on the current blockchain, so that a plurality of copies of the blockchain data are stored to a plurality of nodes on the blockchain
The user identity in the blockchain can be represented by using a public key or an account address generated according to the public key, and the public key and the private key appear in pairs, wherein the private key is held by the user and is not published in the blockchain network, and the public key or the account address can be freely published in the blockchain network. The public key may be an account address through a specific hash and encoding. It is worth mentioning that the user identity and the block link point do not have a one-to-one correspondence, and the user can use the private key of the user on any block link node.
Data writing to a blockchain is achieved by a blockchain link point issuing a "Transaction" to the blockchain network. The transaction comprises the signature of the user on the transaction by using the private key of the user so as to prove the identity of the user. Transactions are recorded into the generated new blockchain by miners (blockchain nodes performing blockchain consensus competition mechanisms), then are issued to the blockchain network, and are verified by other blockchain nodes and accepted, and then transaction data are written into the blockchain.
In the embodiment of the present disclosure, in order to protect data in a blockchain network, role differentiation and permission setting are performed on different nodes, so that permissions of the different nodes in the aspects of accessing a blockchain, data on a synchronization blockchain, accessing data in the blockchain, and the like are different.
Referring to fig. 1, a block chain network according to an embodiment of the present disclosure is shown. Each node in the block chain network is configured with an account, and different accounts have different roles and permissions, so that the nodes of the block chain network have the roles and permissions corresponding to the accounts. Through a block chain network, a credible equipment intercommunication and interconnection platform with multiple Internet of things platforms is established, all the Internet of things platforms exchange user, equipment information and communication protocols, and simultaneously user data and private protocols of all manufacturers are not required to be disclosed, so that the problem of Internet of things equipment intercommunication and interconnection among all the Internet of things platforms is solved. The platform credit endorsement based on the block chain is characterized in that each Internet of things platform participates as a consensus node, the intercommunication interconnection protocol achievement of the sharing platforms can be fair, the positions among the Internet of things platforms are equivalent, the intercommunication interconnection of different Internet of things platform devices is realized through the mode, and the intelligent life is better experienced through linkage of the devices of the different Internet of things platforms. If the air conditioner of the first Internet of things platform, the purifier of the second Internet of things platform and the humidifier of the third Internet of things platform are purchased at home, when the air quality is poor, the air conditioner of the first Internet of things platform can be linked with the humidifier of the second Internet of things platform and the humidifier of the third Internet of things platform.
In connection with fig. 1, for example, a first node in a blockchain network sends to a second node a linkage request from a first device under the first node that is bound to a user, the linkage request including: the device information of the second device, the user identity of the user and the identity information of the first node which need to be linked and are located under the second node. Vividly, this first node can regard as thing networking platform one, and correspondingly, this first equipment can be the air conditioner, and the second node can regard as thing networking platform two, and correspondingly, this second equipment can be the clarifier. It can be understood that the second node may be regarded as the internet of things platform three, and correspondingly, the second device may be a humidifier. As an implementation manner, when a trigger condition for linking a second device is satisfied, a first device sends a linkage request to a first node, the first node determines a node corresponding to the second device, such as a second node, from an intelligent contract written in a block chain network, and then sends the linkage request to the second node. As another optional implementation, the first node may receive the device parameter from the first device, determine whether the triggering condition of the linkage second device is satisfied according to the device parameter, determine, when it is determined that the device parameter satisfies the triggering condition of the linkage second device, that the node corresponding to the second device is the second node from the intelligent contract, and send the linkage request to the second node.
When receiving the linkage request sent by the first node, the second node judges whether the equipment information and the identity information are written into an intelligent contract of the block chain network, and when the equipment information and the identity information are written into the intelligent contract of the block chain network, the second node judges whether the equipment information and the user identity are in a binding relationship; and when the device information and the user identity are determined to be in a binding relationship, sending the linkage request to the second device so that the second device executes the operation corresponding to the linkage request.
As an optional implementation manner, when determining that the device information and the identity information are written in an intelligent contract of the blockchain network and that the device information and the user identity are in a binding relationship, the second node further determines whether the first node has obtained a private key corresponding to the public key of the first node, and when determining that the first node has obtained the private key corresponding to the public key of the first node, sends the linkage request to the second device, so that the second device executes an operation corresponding to the linkage request. As an optional implementation manner, when confirming whether the first node has obtained the private key corresponding to the public key of the first node, the second node may send verification information to the first node; receiving a first digital signature obtained by the first node after the first node digitally signs the verification information according to the private key of the first node; verifying the first digital signature according to the public key of the first node, wherein the public key of the first node is obtained from the identity information of the first node; and when the first digital signature is verified, the first node is represented to obtain a private key corresponding to the first node public key.
As another implementation, when the second node determines whether the first node has obtained the private key corresponding to the public key of the first node, the second node may also send verification information to the first node; receiving a second digital signature obtained by a first node performing digital signature on generated information to be verified according to a private key of the first node, wherein the information to be verified is generated by the first node according to a preset information generation rule, and the information generation rule is preset in the first node and the second node; verifying whether the information to be verified is generated according to the information generation rule; when the verification information is generated according to the information generation rule, verifying the second digital signature according to the public key of the first node; and when the second digital signature is verified, confirming that the first node obtains a private key corresponding to the public key of the first node.
It should be noted that each node shown in fig. 1 may include a plurality of devices from the same vendor.
It should be noted that, in the embodiment of the present application, the making of the intelligent contract is made jointly through a plurality of internet of things platforms, so that the fairness of the protocol is ensured. That is, the update and the revocation of the intelligent contract are initiated by one party, the other parties participate in consensus as voting parties, if all the parties agree, the modification and the revocation are effective, and if the parties are different, the failure is caused. Taking the first node as an example, the first node sends a modification request for the intelligent contract to all nodes except the self node in the block chain network, and all the other nodes include the second node; then receiving feedback information of each node in all the other nodes based on the modification request; then determining that each of the remaining all nodes approves the modification request based on the feedback information; and when each node in all the other nodes agrees with the modification request, updating the intelligent contract.
It should be noted that the user registers on the platform, and then the user identity is mapped to the blockchain registered user through the intelligent contract. The method and the system ensure the one-to-one correspondence between the original Internet of things user identity and the block chain registration user identity, protect sensitive information of the user from being leaked, and find the corresponding relation on the chain through the user identity. If the user registers on a plurality of Internet of things platforms, only one registered user on the block chain can be ensured. The user identification can be identification card information or a telephone number.
The equipment is registered on an original internet of things platform, and then the equipment information is mapped into block chain registration equipment through an intelligent contract. The method and the system ensure the one-to-one correspondence between the original Internet of things equipment information and the block chain registration equipment information, protect sensitive information of the equipment from being leaked, and find the corresponding relation on the chain through the equipment information. If the equipment is registered on a plurality of Internet of things platforms, only one registered equipment on the block chain can be ensured. The device information may be a MAC Address (Media Access Control Address) or an SN code (Serial Number).
It should be noted that the user and the device are bound by performing relationship with the original internet of things platform, and the internet of things platform synchronizes the device information and the user information to the block chain through an intelligent contract while binding. For example, if li four purchases equipment under different internet of things platforms, for example, an air conditioner of the first internet of things platform, a purifier of the second internet of things platform, and a humidifier of the third internet of things platform are purchased at home, li four can apply for the binding relationship between itself and the air conditioner to the first internet of things platform, also can apply for the binding relationship between itself and the purifier to the second internet of things platform, and also can apply for the binding relationship between itself and the humidifier to the third internet of things platform. During linkage, only equipment bound by the same user can be linked, and equipment bound by other people cannot be linked, namely the Lifours can only be linked among a plurality of pieces of equipment bound with the Lifours, but cannot be linked with the Zhang-Sanjian equipment.
Referring to fig. 2, steps included in a method for linking devices in the blockchain network shown in fig. 1 according to an embodiment of the present invention will be described with reference to fig. 2.
Step S101: the first node sends a linkage request from a first device bound with a user under the first node to the second node.
A first node in the blockchain network sends a linkage request from a first device bound with a user under the first node to a second node in the blockchain network, for example, the first node sends a linkage request from an air conditioner bound with liqi under the first node to the second node. Wherein the linkage request comprises: the device information of the second device (such as the device information of the humidifier) which needs to be linked and is located below the second node, the user identity (such as the user identity of lee, which may be a mobile phone number, an identity card, etc.) of the user, and the identity information of the first node. As an implementation manner, when a trigger condition (for example, when the air conditioner temperature is higher than 30 degrees, which is a trigger condition) for linking the second device is satisfied, the first device may send a linking request to the first node, the first node determines a node, such as the second node, corresponding to the second device from the intelligent contract written in the blockchain network, and then sends the linking request to the second node. As another optional implementation, the first node may receive the device parameter from the first device, determine whether the triggering condition of the linkage second device is satisfied according to the device parameter, and when it is determined that the device parameter satisfies the triggering condition of the linkage second device, determine, from the intelligent contract, that the node corresponding to the second device is the second node, and send the linkage request to the second node.
Step S102: and the second node judges whether the equipment information and the identity information are written into an intelligent contract of the block chain network.
After receiving the linkage request sent by the first node, the second node first determines whether the device information and the identity information carried in the linkage request are written into the intelligent contract of the block chain network, if so, step S103 is executed, and if not, the process is not performed or ended.
Step S103: if so, the second node judges whether the equipment information and the user identity are in a binding relationship.
When it is determined that the device information and the identity information are written in the intelligent contract of the block chain network, the second node further determines whether the device information and the user identity are in a binding relationship, if so, step S104 is executed, and if not, the processing is not performed or ended. It should be noted that, during linkage, only the devices bound by the same user can be linked, and the devices bound by other users cannot be linked, that is, lie iv can only be linked with a plurality of devices bound with itself, but cannot be linked with the devices bound by zhang san.
Step S104: if yes, the second node sends the linkage request to the second equipment so that the second equipment can execute the operation corresponding to the linkage request.
And when the equipment information and the user identity are determined to be in a binding relationship, the second node sends the linkage request to the second equipment so that the second equipment executes the operation corresponding to the linkage request. For example, the second node sends the linkage request to the humidifier, so that the humidifier performs an operation corresponding to the linkage request, such as turning on the humidifier.
As another alternative implementation, as shown in fig. 3, for a device linkage method applied to the blockchain network shown in fig. 1 according to an embodiment of the present invention, steps included in the method will be described below with reference to fig. 3.
Step S201: the first node sends a linkage request from a first device bound with a user under the first node to the second node.
This step is the same as step S101 described above, and may be referred to each other.
Step S202: and the second node judges whether the equipment information and the identity information are written into an intelligent contract of the block chain network.
This step is the same as step S102 described above, and may be referred to each other.
Step S203: if so, the second node judges whether the equipment information and the user identity are in a binding relationship.
This step is the same as step S103 described above, and may be referred to each other.
Step S204: if so, the second node confirms that the first node has obtained a private key corresponding to the first node's public key.
And when the device information and the user identity are determined to be in a binding relationship, the second node confirms that the first node obtains a private key corresponding to the public key of the first node.
As another embodiment, when the second node confirms whether the first node has obtained the private key corresponding to the public key of the first node, the process may be described with reference to the steps described in fig. 4.
Step S301: the second node sends authentication information to the first node.
And when the second node determines that the equipment information and the user identity are in a binding relationship, the second node sends verification information to the first node, so that when the first node receives the verification information sent by the second node, the first node carries out digital signature on the verification information according to a private key of the first node to obtain a first digital signature, and sends the first digital signature to the second node.
Step S302: and the second node receives a first digital signature obtained by the first node after the first node carries out digital signature on the verification information according to the private key of the first node.
Step S303: and the second node verifies the first digital signature according to the public key of the first node.
After receiving a first digital signature sent by a first node, a second node verifies the first digital signature according to a public key of the first node. When the first digital signature is verified, the first node is represented to obtain a private key corresponding to the first node public key. Wherein the public key of the first node is obtained from the identity information of the first node.
As another optional implementation, when determining whether the first node has obtained the private key corresponding to the public key of the first node, the second node may also send verification information to the first node, so that when receiving the verification information, the first node generates information to be verified according to a preset information generation rule, performs a digital signature on the generated information to be verified according to the private key of the first node to obtain a second digital signature, and sends the second digital signature to the second node. When receiving a second digital signature obtained by a first node performing digital signature on generated information to be verified according to a private key of the first node, a second node verifies whether the information to be verified is generated according to the information generation rule, and when the verification information is generated according to the information generation rule, the second node verifies the second digital signature according to the public key of the first node; and when the second digital signature is verified, confirming that the first node obtains a private key corresponding to the public key of the first node. The information to be verified is generated by the first node according to a preset information generation rule, and the information generation rule is preset in the first node and the second node.
Step S205: and the second node sends the linkage request to the second equipment so that the second equipment executes the operation corresponding to the linkage request.
This step is the same as step S104 described above, and may be referred to as follows.
Further, the method comprises: the first node sends a modification request aiming at the intelligent contract to all other nodes except the self node in the block chain network, wherein all other nodes comprise the second node; the first node receives feedback information of each node in all the other nodes based on the modification request; the first node determining, based on the feedback information, that each of the remaining all nodes approves the modification request; the first node updates the intelligent contract. The process represents an updating process of the intelligent contract, and it should be noted that the updating and the revocation of the intelligent contract are initiated by one party, the other parties participate in consensus as voting parties, if all the parties agree, the modification and the revocation are effective, and if the parties are different, the modification and the revocation are failed.
In the embodiment of the application, the equipment intercommunication interconnection protocol is realized through the intelligent contract disclosed on the chain, and the safety of the intelligent contract can be ensured. The intelligent contract is established through a plurality of internet of things platforms, and fairness of the protocol is guaranteed.
The updating and the abolishing of the intelligent contract are initiated by one party, the other parties participate in consensus as voting parties, if all the parties agree, the modification and the abolishing are effective, and if the parties are different, the failure is caused.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
The implementation principle and the generated technical effect of the device linkage method provided by the embodiment of the invention are the same as those of the block chain network embodiment, and for brief description, the parts which are the same and similar are only described once, and the parts which are not mentioned are referred to each other.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium, which includes a computer program, and when the computer program is executed by a processor, the computer program performs the device linkage method in this document.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the flowcharts in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. The equipment linkage method is applied to a block chain network, wherein the block chain network comprises a first node and a second node, the first node and the second node correspond to different Internet of things platforms, and each node comprises a plurality of pieces of equipment from the same manufacturer; the method comprises the following steps:
the first node sends a linkage request from a first device bound with a user under the first node to the second node, wherein the linkage request comprises: the device information of second equipment needing linkage and located under the second node, the user identity of the user and the identity information of the first node;
the second node judges whether the equipment information and the identity information are written into an intelligent contract of the block chain network;
if so, the second node judges whether the equipment information and the user identity are in a binding relationship;
if yes, the second node sends the linkage request to the second equipment so that the second equipment can execute the operation corresponding to the linkage request.
2. The method of claim 1, wherein prior to the second node sending the linkage request to the second device, the method further comprises:
the second node confirms that the first node has obtained a private key corresponding to the first node's public key.
3. The method of claim 2, wherein the second node confirming that the first node has obtained a private key corresponding to the first node's public key comprises:
the second node sends verification information to the first node;
the second node receives a first digital signature obtained by the first node after the first node digitally signs the verification information according to the private key of the first node;
the second node verifies the first digital signature according to the public key of the first node, wherein the public key of the first node is obtained from the identity information of the first node; when the first digital signature is verified, the first node is represented to obtain a private key corresponding to the first node public key.
4. The method of claim 1, wherein the first node sending to the second node a linkage request from a first device under the first node bound to a user, comprising:
the first node receiving device parameters from the first device;
when the equipment parameters are determined to meet the triggering conditions for linking the second equipment, determining the node corresponding to the second equipment as the second node from the intelligent contract;
and sending the linkage request to the second node.
5. The method according to claim 1, characterized in that it comprises:
the first node sends a modification request aiming at the intelligent contract to all other nodes except the self node in the block chain network, wherein all other nodes comprise the second node;
the first node receives feedback information of each node in all the other nodes based on the modification request;
the first node determining, based on the feedback information, that each of the remaining all nodes approves the modification request;
the first node updates the intelligent contract.
6. A blockchain network is characterized by comprising a first node and a second node, wherein the first node and the second node correspond to different Internet of things platforms, and each node comprises a plurality of devices from the same manufacturer;
the first node is configured to send, to the second node, a linkage request from a first device bound to a user under the first node, where the linkage request includes: the device information of second equipment needing linkage and located under the second node, the user identity of the user and the identity information of the first node;
the second node is configured to determine whether the device information and the identity information have been written into an intelligent contract of the block chain network;
the second node is further configured to, if yes, determine whether the device information and the user identity are in a binding relationship;
and the second node is further used for sending the linkage request to the second equipment when the linkage request is yes, so that the second equipment executes the operation corresponding to the linkage request.
7. A blockchain network as in claim 6 wherein the second node is further configured to confirm that the first node has obtained a private key corresponding to the first node's public key.
8. The blockchain network of claim 7,
the second node is further configured to send verification information to the first node; the first node is also used for receiving a first digital signature obtained by the first node after the first node carries out digital signature on the verification information according to the private key of the first node; the first digital signature is verified according to the public key of the first node, wherein the public key of the first node is obtained from the identity information of the first node; and the first node is also used for representing that the first node obtains a private key corresponding to the first node public key when the first digital signature is verified.
9. The blockchain network of claim 6, wherein the first node is further configured to receive device parameters from the first device; the intelligent contract is also used for determining that the node corresponding to the second equipment is the second node from the intelligent contract when the equipment parameter is determined to meet the triggering condition of linking the second equipment; and further for sending the linkage request to the second node.
10. A blockchain network according to claim 6, wherein the first node is further configured to send a modification request for the intelligent contract to all nodes except its own node in the blockchain network, the all nodes including the second node; and further configured to receive feedback information of each of the other nodes based on the modification request; and further for determining that each of the remaining all nodes approves the modification request based on the feedback information; and further for updating the smart contract.
11. A storage medium having stored thereon a computer program which, when executed by a processor, performs the method according to any one of claims 1-5.
CN201811337865.1A 2018-11-09 2018-11-09 Equipment linkage method, block chain network and storage medium Active CN109447645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811337865.1A CN109447645B (en) 2018-11-09 2018-11-09 Equipment linkage method, block chain network and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811337865.1A CN109447645B (en) 2018-11-09 2018-11-09 Equipment linkage method, block chain network and storage medium

Publications (2)

Publication Number Publication Date
CN109447645A CN109447645A (en) 2019-03-08
CN109447645B true CN109447645B (en) 2020-06-26

Family

ID=65551846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811337865.1A Active CN109447645B (en) 2018-11-09 2018-11-09 Equipment linkage method, block chain network and storage medium

Country Status (1)

Country Link
CN (1) CN109447645B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191188B (en) * 2019-06-02 2021-09-14 四川虹微技术有限公司 Data processing method, block chain network and storage medium
CN110177107B (en) * 2019-06-02 2021-09-24 四川虹微技术有限公司 Internet of things system, device cooperation method, corresponding device, platform, block link point and storage medium
CN112981853B (en) * 2019-12-13 2024-01-16 青岛海尔洗衣机有限公司 Washing control method and device
CN111401900A (en) * 2020-03-20 2020-07-10 深圳市网心科技有限公司 Block chain verifier updating method, device, equipment and readable storage medium
CN111953677B (en) * 2020-08-11 2022-10-18 广东好太太智能家居有限公司 System, method, equipment and storage medium for cross-platform linkage of intelligent equipment
CN112269979A (en) * 2020-10-22 2021-01-26 杭州甘道智能科技有限公司 Washing machine management system and method based on block chain
CN112600710A (en) * 2020-12-18 2021-04-02 四川虹微技术有限公司 Block chain-based terminal linkage method and device and electronic equipment
CN112689006B (en) * 2020-12-22 2023-06-13 青岛海尔科技有限公司 Internet of things equipment control method and device, storage medium and electronic device
CN112671787B (en) * 2020-12-29 2022-03-22 四川虹微技术有限公司 Rule execution verification method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566381A (en) * 2017-09-12 2018-01-09 中国联合网络通信集团有限公司 Equipment safety control method, apparatus and system
CN108023794A (en) * 2017-12-04 2018-05-11 四川长虹电器股份有限公司 A kind of equipment access control method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170302663A1 (en) * 2016-04-14 2017-10-19 Cisco Technology, Inc. BLOCK CHAIN BASED IoT DEVICE IDENTITY VERIFICATION AND ANOMALY DETECTION
CN108009878A (en) * 2017-11-24 2018-05-08 深圳市轱辘车联数据技术有限公司 A kind of information processing method and its device
CN108023883B (en) * 2017-12-04 2020-09-29 四川长虹电器股份有限公司 Equipment authorization management method and device
CN110795433B (en) * 2018-04-25 2021-04-13 腾讯科技(深圳)有限公司 Prescription information storage method, equipment, system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566381A (en) * 2017-09-12 2018-01-09 中国联合网络通信集团有限公司 Equipment safety control method, apparatus and system
CN108023794A (en) * 2017-12-04 2018-05-11 四川长虹电器股份有限公司 A kind of equipment access control method and device

Also Published As

Publication number Publication date
CN109447645A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109447645B (en) Equipment linkage method, block chain network and storage medium
CN110443704B (en) Method and device for sending resources in cross-link mode
TWI679874B (en) Cross-blockchain authentication method and device, and electronic equipment
EP3522088B1 (en) Securing blockchain access through a gateway
CN108632268B (en) Authentication method and device for block chain access, storage medium and electronic device
CN111970129B (en) Data processing method and device based on block chain and readable storage medium
CN111191283B (en) Beidou positioning information security encryption method and device based on alliance block chain
JP6652767B2 (en) Methods for managing the status of connected devices
CN111010372A (en) Block chain network identity authentication system, data processing method and gateway equipment
CN111144881A (en) Selective access to asset transfer data
EP4216077A1 (en) Blockchain network-based method and apparatus for data processing, and computer device
CN110958110A (en) Block chain private data management method and system based on zero knowledge proof
CN112311735A (en) Credible authentication method, network equipment, system and storage medium
CN104363207A (en) Multi-factor security enhancement authorization and authentication method
CN113261253B (en) Method and system for controlling release of resources
EP4002786B1 (en) Distributed ledger system
CN110930153B (en) Block chain privacy data management method and system based on hidden third party account
CN113472807B (en) Private communication method and device between users
CN109299333B (en) Block chain network account book member management method, device, equipment and storage medium
CN106664308A (en) Device verification prior to registration
CN114240433A (en) Data processing method and system based on block chain
CN110855688B (en) Block chain information processing method and related equipment
CN113645257B (en) Identity authentication method and device, electronic equipment and storage medium
CN108768650A (en) A kind of short-message verification system based on biological characteristic
CN117056981A (en) Digital identity management method and device

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