CN109767530A - Smart lock control method, apparatus and system based on block chain - Google Patents

Smart lock control method, apparatus and system based on block chain Download PDF

Info

Publication number
CN109767530A
CN109767530A CN201811632129.9A CN201811632129A CN109767530A CN 109767530 A CN109767530 A CN 109767530A CN 201811632129 A CN201811632129 A CN 201811632129A CN 109767530 A CN109767530 A CN 109767530A
Authority
CN
China
Prior art keywords
smart lock
unlocking
block chain
token
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.)
Withdrawn
Application number
CN201811632129.9A
Other languages
Chinese (zh)
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.)
Suzhou Lang run innovation intellectual property operation Co.,Ltd.
Original Assignee
Chain 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 Chain Technology Co Ltd filed Critical Chain Technology Co Ltd
Priority to CN201811632129.9A priority Critical patent/CN109767530A/en
Publication of CN109767530A publication Critical patent/CN109767530A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a kind of, and the smart lock based on block chain controls method, apparatus, system and readable storage medium storing program for executing, wherein this method comprises: obtaining subscriber identity information, unlocking authority information and the unlocking solicited message of the first key end;It is according to unlocking solicited message that the generic token issued in block chain network is associated with subscriber identity information and unlocking authority information, generate the particular token of the smart lock for controlling corresponding first key end;Particular token is sent to smart lock.The generic token issued in block chain network generation associated with subscriber identity information and unlocking authority information is used for the particular token of the unlocking control of smart lock by this method, the particular token is sent to smart lock later, so that smart lock realizes control of unlocking according to particular token, the unlocking control authority of smart lock is combined with block chain, unlocking control information is forwarded to lock end without central server, the safety of smart lock control is improved by the control mode of block chain.

Description

Smart lock control method, apparatus and system based on block chain
Technical field
The present invention relates to block chain technical fields, and in particular to it is a kind of based on block chain smart lock control method, apparatus, System and computer readable storage medium.
Background technique
With the development of Internet of Things, more and more equipment are connected into network.For example, smart lock is that a kind of typically network sets It is standby, currently, the control to smart lock mainly uses centralized server to realize, center is sent control information to by key end Server, central server are forwarded to lock end for information is controlled, and lock end receives that carry out control information after control information corresponding There is unlocking control information security since the control mode of above-mentioned smart lock is realized based on centralized server in operation Low problem.
Summary of the invention
In view of this, the smart lock control method, apparatus that the embodiment of the invention provides a kind of based on block chain, system and Computer readable storage medium, to solve to realize that the control of smart lock leads to safety using centralized server in the prior art Low problem.
According in a first aspect, the embodiment of the invention provides a kind of smart lock control methods based on block chain, comprising: obtain Take subscriber identity information, unlocking solicited message and the unlocking solicited message of the first key end;It will according to the unlocking solicited message The generic token issued in block chain network is associated with the subscriber identity information and the unlocking authority information, generates and uses In the particular token of the smart lock of corresponding first key end of control;The particular token is sent to smart lock.
Optionally, after the described the step of particular token is sent to intelligent lock end, the method also includes: verifying Generic token in the particular token;After being verified, by the particular token the subscriber identity information and institute It states unlocking authority information and is compared with the information for being pre-stored in intelligent lock end;When comparison result is consistent, the smart lock is controlled It opens.
Optionally, the subscriber identity information by the particular token and the unlocking authority information with prestore In the step of information of intelligent lock end is compared, comprising: by the particular token user identity public key with deposit in advance The user identity private key stored up in intelligent lock end is compared, and by the unlocking authority public key in the particular token and in advance The unlocking authority private key for being first stored in intelligent lock end compares.
Optionally, before the generic token step in the verifying particular token, further includes: to the particular token It is decrypted.
Optionally, described when comparison result is consistent, control the smart lock open the step of after, further includes: to institute Particular token is stated to be destroyed.
Optionally, the signing messages for increasing smart lock lock end on comparison result is generated for recording opening for the smart lock The unlocking of lock process records token.
Optionally, the signing messages for increasing intelligent lock end on comparison result is generated for recording the smart lock The unlocking of unlocking process recorded after the step of token, further includes: unlocking record token is sent to the first key end, with So that first key end is recorded token according to the unlocking and carries out unlocking statistics.
Optionally, the method also includes: according to the transaction request of the first key end received, by the particular token It is sent to the second key end, so that second key end controls the smart lock.
According to second aspect, the embodiment of the invention provides a kind of smart lock control devices based on block chain, comprising: the One obtains module, for obtaining the subscriber identity information and unlocking solicited message of the first key end;First processing module is used for root According to the unlocking solicited message by the generic token issued in block chain network, unlocking authority information and the subscriber identity information It is associated, generate the particular token of the smart lock for controlling corresponding first key end;Second processing module is used for institute It states particular token and is sent to smart lock.
Optionally, further includes: the first authentication module, for verifying the generic token in the particular token;First compares Module, for after being verified, by the particular token the subscriber identity information and the unlocking authority information with The information for being pre-stored in intelligent lock end is compared;Third processing module, for controlling the smart lock when comparison result is consistent It opens.
Optionally, further includes: fourth processing module, for the particular token to be decrypted.
Optionally, further includes: the 5th processing module, for being destroyed to the particular token.
Optionally, further includes: the 6th processing module, the signing messages for increasing smart lock lock end on comparison result are raw Token is recorded at the unlocking of the unlocking process for recording the smart lock.
Optionally, further includes: the 7th processing module, for unlocking record token to be sent to the first key end, with So that first key end is recorded token according to the unlocking and carries out unlocking statistics.
Optionally, further includes: the 8th processing module, for the transaction request according to the first key end received, by institute It states particular token and is sent to the second key end, so that second key end controls the smart lock.
According to the third aspect, the embodiment of the invention provides a kind of smart lock control systems based on block chain, comprising: the One key end;Smart lock;Memory and processor communicate with each other connection between the memory and the processor, described to deposit Computer instruction is stored in reservoir, the processor is by executing the computer instruction, thereby executing first party of the present invention Any smart lock control method based on block chain in face.
It is described computer-readable the embodiment of the invention provides a kind of computer readable storage medium according to fourth aspect Storage medium is stored with computer instruction, and the computer instruction is appointed for executing the computer in first aspect present invention Based on the smart lock control method of block chain described in one.
Technical solution of the present invention has the advantages that
Smart lock control method provided by the invention based on block chain, comprising: obtain the user identity of the first key end Information, unlocking solicited message and unlocking solicited message;It is general by what is issued in block chain network according to the unlocking solicited message Token is associated with the subscriber identity information and the unlocking authority information, generates for controlling corresponding first key The particular token of the smart lock at end;The particular token is sent to smart lock.The smart lock control method is according to the first key The unlocking solicited message at end is by the generic token issued in block chain network and subscriber identity information and unlocking authority information phase Association generates the particular token of the unlocking control for smart lock, and the particular token is sent to smart lock later, so that intelligence Lock realizes control of unlocking according to particular token, and the unlocking control authority of smart lock is combined with block chain, is not necessarily to center service Unlocking control information is forwarded to lock end by device, and the safety of smart lock control is improved by the control mode of block chain.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic diagram of an application scenarios of the smart lock control method based on block chain of the embodiment of the present invention;
Fig. 2 is the flow chart of a specific example of the smart lock control method based on block chain of the embodiment of the present invention;
Fig. 3 is the process of another specific example of the smart lock control method based on block chain of the embodiment of the present invention Figure;
Fig. 4 is the process of another specific example of the smart lock control method based on block chain of the embodiment of the present invention Figure;
Fig. 5 is the process of another specific example of the smart lock control method based on block chain of the embodiment of the present invention Figure;
Fig. 6 is the process of another specific example of the smart lock control method based on block chain of the embodiment of the present invention Figure;
Fig. 7 is the process of another specific example of the smart lock control method based on block chain of the embodiment of the present invention Figure;
Fig. 8 is the process of another specific example of the smart lock control method based on block chain of the embodiment of the present invention Figure;
Fig. 9 is the process of another specific example of the smart lock control method based on block chain of the embodiment of the present invention Figure;
Figure 10 is the block diagram of a specific example of the smart lock control device based on block chain of the embodiment of the present invention;
Figure 11 is the structural schematic diagram of the smart lock control system based on block chain of the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also indirectly connected through an intermediary, it can be with It is the connection inside two elements, can be wireless connection, be also possible to wired connection.For those of ordinary skill in the art For, the concrete meaning of above-mentioned term in the present invention can be understood with concrete condition.
As long as in addition, the non-structure each other of technical characteristic involved in invention described below different embodiments It can be combined with each other at conflict.
Fig. 1 is the application scenarios schematic diagram of the embodiment of the present invention, as shown in Figure 1, by block chain assets publishing system node, Service operation side's node, the first key end node and smart lock node pass through one alliance's chain of block chain building, each node Between the processing data information that carries out carried out in alliance's chain.By by the token of the control authority of smart lock and block chain It combines, realizes the decentralization of smart lock unlocking;Without being forwarded to lock end for information is controlled by central server, thus Avoid the defect for causing safety low using the control of centralized server realization smart lock.
It should be noted that the quantity of user node is unlimited, in Fig. 1 of the present embodiment node in alliance's chain Expression is only schematically illustrated, is not limited thereto.Also, the user of the user node in alliance's chain is either personal use Family is also possible to company or mechanism etc., and the present embodiment is not intended to be limited in any this.Other than several nodes shown in FIG. 1, Other nodes can also be introduced in alliance's chain, as needed rationally setting.
The present embodiment provides a kind of smart lock control methods based on block chain, carry out unlocking identity using block chain and award Power, solves the mechanism of traditional locks opened different locks with different keys, and is forwarded to lock end for information is controlled without centralized server, So as to avoid the problem for using centralized server to realize that the control of smart lock causes safety low in the prior art.
Fig. 2 is the flow chart of a specific example of the smart lock control method based on block chain in the present embodiment, such as Fig. 2 It is shown, the method comprising the steps of S1-S3.
Step S1: subscriber identity information, unlocking authority information and the unlocking solicited message of the first key end are obtained.Specifically Ground obtains subscriber identity information, unlocking solicited message and the unlocking of the first key end by the service operation node in block chain Solicited message, so that smart lock carries out unlocking operation according to subscriber identity information and unlocking solicited message.
In one embodiment, subscriber identity information may include User ID (CID), client public key etc.;Certainly, in other implementations In example, subscriber identity information can be also set as needed, such as subscriber identity information may also include the unidirectional of user privacy information Encryption information or user account key information etc., the present embodiment to this with no restriction.
In one embodiment, unlocking authority information may include client public key information;Certainly, in other embodiments, unlock Authority information can also be set as needed, such as unlocking authority information may also include block chain distribution generates or user password This is not limited Deng account informations, the present embodiment such as only user known information, such as user account name, User ID System.
In one embodiment, unlocking solicited message may include the unlocking requirement of the first key end, and specific unlocking requirement can root It is determined according to the practical application of smart lock.Specifically, the case where the first key end is to the status information of smart lock and is unaware of Under, such as when smart lock is applied to the application scenarios such as hotel, hotel, house property medium, above-mentioned unlocking solicited message can be only one The request of unlocking, the first key end do not specify the smart lock to be opened, and service operation node knows the state of all smart locks, Service operation node distributes smart lock to the first key end according to the actual use situation of smart lock.In the first key end to intelligence It is above-mentioned to open in the case that the status information of lock knows, such as when smart lock is applied to the application scenarios such as shared bicycle, shared automobile May specify the smart lock to be opened in lock solicited message, service operation node according to the unlocking solicited message of the first key end by its The unlocking authority of specified smart lock distributes to the first key end, so that the first key end opens specified smart lock.
Step S2: according to unlocking solicited message by the generic token issued in block chain network and subscriber identity information and Unlocking authority information is associated, generates the particular token of the smart lock for controlling corresponding first key end.Using block chain into The association of row subscriber identity information and unlocking authority information is protected individual subscriber privacy while authorization, is improved The safety of smart lock control method.
In one embodiment, generic token can be the indifference token issued by block chain assets publishing system node and right The token that above-mentioned indifference token is formed after being encrypted;Service operation node is by user's body of generic token and the first key end Particular token is generated after part information and unlocking authority information are associated.Encryption in the prior art can be used in specific cipher mode Method is such as encrypted using SHA256 Hash Encryption Algorithm, and the present embodiment is not limited thereto.Certainly, in other embodiments In, generic token can also be obtained by other way in the prior art, can be rationally arranged as needed.
In one embodiment, be associated concretely by the encryption string of user information and generic token (encryption token) into Row binding, will be synchronized to all endorsement nodes and be carried on the back to crypto-binding corresponding relationship by being broadcast among block chain later Book.
Step S3: particular token is sent to smart lock.In practical applications, after which is sent to smart lock, Smart lock can execute corresponding unlocking operation according to particular token.
In one embodiment, the first key end to service operation node send unlock request, service operation node according to Agreement between first key end receives above-mentioned unlocking request, later, the particular token of generation is sent to the smart lock, so that First key end carries out unlocking operation to smart lock according to particular token.
The above-mentioned smart lock control method based on block chain, will be in block chain network according to the unlocking of the first key end request Generate associated with the subscriber identity information of the first key end and unlocking authority information of the generic token of distribution is used for smart lock Unlocking control particular token, the particular token is sent to smart lock later, so that smart lock is realized according to particular token It unlocks and controls, the unlocking control authority of smart lock is combined with block chain, turn unlocking control information without central server It is sent to lock end, the safety of smart lock control is improved by the control mode of block chain.
On the basis of the above-mentioned smart lock control method based on block chain, as shown in figure 3, this method further includes step S4-S6.
Step S4: the generic token in verifying particular token.Specifically, particular token is sent to intelligence by the first key end Lock, lock end first verify the generic token in particular token, the indifference that lock end will be issued from block chain assets publishing system Verifying is compared with generic token for other token information, verifies the legitimacy of generic token, generates time, generating mechanism and place Address (it is all whom generic token returns).When being verified, step S5 is executed;It is obstructed out-of-date to verify, and tests to the transmission of the first key end Demonstrate,prove unacceptable prompt information.
In a preferred embodiment, point-to-point interaction is carried out between the first key end and smart lock, can pass through block Chain network carries out data transmission, and switch lock control can also be carried out by way of the wireless near field communications such as bluetooth, NFC, increases The flexibility of control is added.Setting does not depend on central database and central server in this way, realizes point-to-point carry out data biography It is defeated, concurrency is big.
Step S5: after being verified, by particular token subscriber identity information and unlocking authority information be pre-stored in The information of intelligent lock end is compared.Specifically, after being verified to generic token, by the subscriber identity information in particular token It is compared with unlocking authority information with the information for being pre-stored in intelligent lock end, when comparison result is consistent, executes step S6;When than When inconsistent to result, smart lock will not be opened, and sent to the first key end and verified unacceptable prompt information.
In one embodiment, by particular token user identity public key be stored in advance in the user identity of intelligent lock end Private key is compared, and by particular token unlocking authority public key be stored in advance in the unlocking authority private key of intelligent lock end It compares.Operation node broadcasts encryption information the whole network, with the private key in the public key and lock of the first key end, goes to decrypt these Information simultaneously judges whether the information after decryption is legal, achievees the purpose that verifying.If verifying does not pass through, lock will not be opened, while the One key end has the unacceptable prompt of verifying.
Step S6: when comparison result is consistent, control smart lock is opened.Specifically, when comparison result is consistent, according to pre- It first stores to the permissions list of lock end local and executes the respective operations of control information, control smart lock is opened.Permissions list is to sentence Fixed first key end whether be node in block chain network permissions list, i.e., it is all in block chain smart lock to be carried out The list of the key end of control.Specifically, the operation executed according to local authority list can be to pass through the first key of permission list deciding End whether be node in block chain network permissions list.
Specifically, control whether smart lock is opened according to comparison result.When comparison result is consistent, smart lock is opened;It compares As a result when inconsistent, smart lock does not execute any operation, cannot open.It should be noted that lock end can also detect smart lock Working condition no longer receives any unlocking operation when smart lock is in the open state, i.e., smart lock open state cannot be again Execute unlocking operation;It is in close state in smart lock, can receive unlocking instruction, is i.e. permission smart lock is unlocked.
The above-mentioned smart lock control method based on block chain, by being verified to information entrained by particular token, entirely Portion just can control smart lock and realize unlocking operation after being verified, further improve the safety of control.
On the basis of the above-mentioned smart lock control method based on block chain, as shown in figure 4, further including before step S 4 Step S7.
Step S7: particular token is decrypted.
In a preferred embodiment, particular token is the user identification authorization information of encryption, carries out identity using block chain Authorization protects individual privacy while authorization, specifically, decryption method in the prior art can be used, such as uses The decryption of RSA decipherment algorithm, the present embodiment are not limited thereto.
The above-mentioned smart lock control method based on block chain is opened using the key that block chain network solves traditional locks One lock mechanism, using block chain carry out identification authorization, to identification authorization information carry out encrypted transmission, authorization while pair Individual privacy is protected, and the safety and reliability of smart lock is improved.
On the basis of the above-mentioned smart lock control method based on block chain, as shown in figure 5, also being wrapped after step S6 Include step S8.
Step S8: particular token is destroyed.The destruction of token is that used token is transferred to one " to cannot function as Produce in the address of source address ", a transaction is usually the process from A-B, but the destruction address is cannot to use A in A-B Role, the function being only transferred into, the function of not producing.Simply understand that the address is a black hole, all tokens are only When a token enters in this address, that is, it can be considered as destroyed into cannot go out.
In a preferred embodiment, particular token can be destroyed by data combustion method, after particular token is destroyed Labeled as after-flame data;Certainly, in other embodiments, other methods in the prior art also can be used to be destroyed, according to It needs rationally to be arranged.
The above-mentioned smart lock control method based on block chain, destroys particular token, guarantees a particular token only A unlocking operation is executed, multiple users are avoided while operating conflict caused by unlocking, the management of unlocking operation is also convenient for, mentions The high safety of smart lock.
On the basis of the above-mentioned smart lock control method based on block chain, as shown in fig. 6, after step s 5, also wrapping Include step S9.
Step S9: the signing messages for increasing smart lock lock end on comparison result generates the unlocking for recording smart lock The unlocking of journey records token.
In a preferred embodiment, signing messages can be the signature of smart lock, and above-mentioned signature specifically may include CA signature;When So, in other embodiments, signing messages may also include any kind of digital signature and rationally be arranged as needed.
The above-mentioned smart lock control method based on block chain, on comparing result increase lock end signature, dual lock process into Row record, carries out the unlocking operation to deposit card so as to subsequent.
On the basis of the above-mentioned smart lock control method based on block chain, as shown in fig. 7, also being wrapped after step S9 Include step S10.
Step S10: the record token that will unlock is sent to the first key end, so that the first key end records token according to unlocking Carry out unlocking statistics.Lock end this partial information of signing included in record token of unlocking is to do Data Analysis Data audit It is used, data analysis can allow using and system operator it is significantly more efficient control and deployment block chain node resource, it is more excellent Change the quality of block chain network service.Block chain user can also be allowed more to believe the Information Security of block chain.Lock end label Name can also do data reserve to trace entire operation flow, and the evidence for forming non-repudiation is that the police solve a case and provide data base Plinth.
The above-mentioned smart lock control method based on block chain, utilizes the characteristic that can not be distorted of block chain account book, dual lock Movement carry out trace, and if being supported to solving a case in order to pair lose recourse when finance.
On the basis of the above-mentioned smart lock control method based on block chain, this method further includes step S11.
Specifically, as shown in figure 8, step S11 can be upon step s 2.
Step S11: according to the transaction request of the first key end received, being sent to the second key end for particular token, So that the second key end controls smart lock.Particular token is sent to the second key end, realizes the circulation of unlocking authority, is completed After the circulation of particular token, the second key end can be equivalent to the first key end, and the second key end can be according to particular token reality The control of existing smart lock, specific control are detailed in the control of the first key end, and details are not described herein.
The above-mentioned smart lock control method based on block chain, the unlocking authority of particular token is circulated to the second key end, The transfer for realizing unlocking authority, ensure that the safety of unlocking, while also add the flexibility for control of unlocking.
Fig. 9 is the flow chart of another specific example of the smart lock control method based on block chain in the present embodiment.Such as Shown in Fig. 9, the interactive process of each node in block chain specifically:
Step S61: block chain assets publishing system generates indifference currency, reaches the whole network and knows together and carry out the whole network broadcast; Step S62: currency is associated by service operation node with the first key end unlocking information, generates particular token, reaches common understanding simultaneously Carry out the whole network broadcast;The coin for carrying control information is sent to lock by block chain network system by the S63: the first key end of step In equipment, which is point-to-point interaction, which can be carried out data transmission or be passed through by block chain network The mode of the wireless near field communications such as bluetooth, NFC carries out switch lock control;Step S64: lock end first verifies coin, tests Card verifies the control information on coin after passing through, and executes pair of control information after all passing through according to local permissions list It should operate.
Specifically, control information is after current money (indifference currency) is plus this type of information current money to be become The currency for the special-purpose that can be identified by key end.Such control information includes but is not limited to the identity ID of user, permission Often, to information such as the ID for the lock that should be able to be opened.
Coin is issued by block chain assets publishing system first, which is alliance's chain, the only coin of the system distribution It can circulate in systems;Secondly operator generates particular token by the way that coin and unlocking information are carried out binding, is further ensured that The transmission securities of data.
The above-mentioned smart lock control method based on block chain will carry the data of control information with the net based on block chain Indifference currency in network system is associated, and control information is the information controlled lock end;Unlocking is carried by transaction The permission unlocked to user of coin of information control, when by controlling the permission of coin to realize dual lock number and unlock Between section control, the identity information and uncaging time of specially dual lock user record.Using point-to-point decentralization Block chain technology, avoid centralization service it is at high cost and buy to centralization service lack trust defect; Due to the characteristic that can not be distorted of block, it can also be ensured that the integrality of the reception information of lock end;By token come control authority Further ensure the safety and reliability of information transmission.
The coin for carrying control information can be sent to the second key by way of transaction by the S65: the first key end of step Spoon end;The coin for carrying control information is sent in lock device by the S66: the second key end of step by block chain network system, The interaction is that the point-to-point interaction control information can be carried out data transmission by block chain network or by bluetooth, NFC The mode of equal wireless near field communications carries out switch lock control;Step S67: lock end first verifies coin, after being verified Control information on coin is verified, executes the respective operations of control information after all passing through according to local permissions list.
The above-mentioned smart lock control method based on block chain, by combining the control information of lock with token, easily Control, the circulation for realizing permission, improve the flexibility of control.
A kind of smart lock control device based on block chain is additionally provided in the present embodiment, and the device is for realizing above-mentioned Embodiment and preferred embodiment, the descriptions that have already been made will not be repeated.As used below, term " module " can be real The combination of the software and/or hardware of existing predetermined function.Although device described in following embodiment is preferably realized with software, But the realization of the combination of hardware or software and hardware is also that may and be contemplated.
Correspondingly, referring to FIG. 10, the embodiment of the present invention provides a kind of smart lock control device based on block chain, packet Include: first obtains module 1, first processing module 2 and Second processing module 3.
First obtains module 1, for subscriber identity information, unlocking authority information and the unlocking for obtaining the first key end Solicited message;Detailed content is with reference to described in step S1.
First processing module 2, the generic token and user identity that will be issued in block chain network according to unlocking solicited message Information and unlocking authority information are associated, generate the particular token of the smart lock for controlling corresponding first key end;In detail Content is with reference to described in step S2.
Second processing module 3, for particular token to be sent to smart lock;Detailed content is with reference to described in step S3.
The above-mentioned smart lock control device based on block chain, further includes: the first authentication module, for verifying in particular token Generic token, detailed content is with reference to described in step S4;First comparison module will be in particular token for after being verified Subscriber identity information be compared with unlocking authority information with the information for being pre-stored in intelligent lock end, detailed content refer to step S5 It is described;Third processing module, for when comparison result is consistent, control smart lock to be opened, and detailed content is with reference to described in step S6.
The above-mentioned smart lock control device based on block chain, further includes: fourth processing module, for being carried out to particular token Decryption, detailed content is with reference to described in step S7.
The above-mentioned smart lock control device based on block chain, further includes: the 5th processing module, for being carried out to particular token It destroys, detailed content is with reference to described in step S8.
The above-mentioned smart lock control device based on block chain, further includes: the 6th processing module, for increasing on comparison result The unlocking for adding the signing messages of smart lock lock end to generate the unlocking process for recording smart lock records token, detailed content reference Described in step S9.
The above-mentioned smart lock control device based on block chain, further includes: the 7th processing module, for the record token that will unlock It is sent to the first key end, so that the first key end carries out unlocking statistics according to record token of unlocking, detailed content refers to step Described in S10.
The above-mentioned smart lock control device based on block chain, further includes: the 8th processing module, for according to the received Particular token is sent to the second key end by the transaction request of one key end, interior in detail so that the second key end controls smart lock Hold with reference to described in step S11.
The further function description of above-mentioned modules is identical as above method embodiment, and details are not described herein.
The embodiment of the invention also provides a kind of smart lock control systems based on block chain, as shown in figure 11, comprising: the One key end;Smart lock;Processor 101 and memory 102;Wherein, processor 101 and memory 102 can by bus or Person's other modes connect, in Figure 11 for being connected by bus.
Processor 101 can be central processing unit (Central Processing Unit, CPU).Processor 101 may be used also Think other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 102 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non- Transient computer executable program and module, as the smart lock control method based on block chain in the embodiment of the present invention is corresponding Program instruction/module (for example, shown in Fig. 10 first obtains module 1, first processing module 2 and Second processing module 3).Place Non-transient software program, instruction and the module of device 101 in the memory 102 by operation storage are managed, thereby executing processor Various function application and data processing, i.e., realization above method embodiment in the smart lock controlling party based on block chain Method.
Memory 102 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;It storage data area can the data etc. that are created of storage processor 101.In addition, Memory 102 may include high-speed random access memory, can also include non-transient memory, and a for example, at least disk is deposited Memory device, flush memory device or other non-transient solid-state memories.In some embodiments, it includes opposite that memory 102 is optional In the remotely located memory of processor 101, these remote memories can pass through network connection to processor 101.Above-mentioned net The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 102, when being executed by the processor 101, are held The smart lock control method based on block chain in row embodiment as shown in Fig. 2 to Fig. 9.
Above-mentioned server detail can correspond to refering to Fig. 2 into embodiment shown in Fig. 9 corresponding associated description and Effect is understood that details are not described herein again.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can for magnetic disk, CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute Within the scope of restriction.

Claims (11)

1. a kind of smart lock control method based on block chain, which is characterized in that the described method includes:
Obtain subscriber identity information, unlocking authority information and the unlocking solicited message of the first key end;
According to the unlocking solicited message by the generic token issued in block chain network and the subscriber identity information and institute Stating unlocking authority information is associated, and generates the particular token of the smart lock for controlling corresponding first key end;
The particular token is sent to smart lock.
2. the smart lock control method according to claim 1 based on block chain, which is characterized in that it is described will be described specific Token was sent to after the step of intelligent lock end, the method also includes:
Verify the generic token in the particular token;
After being verified, by the particular token the subscriber identity information and the unlocking authority information be pre-stored in The information of intelligent lock end is compared;
When comparison result is consistent, controls the smart lock and open.
3. the smart lock control method according to claim 1 based on block chain, which is characterized in that it is described will be described specific The step that the subscriber identity information and the unlocking authority information in token are compared with the information for being pre-stored in intelligent lock end In rapid, comprising:
User identity public key in the particular token is compared with the user identity private key for being stored in advance in intelligent lock end, And the unlocking authority public key in the particular token is carried out with the unlocking authority private key for being stored in advance in intelligent lock end Comparison.
4. the smart lock control method according to claim 2 based on block chain, which is characterized in that the verifying spy Before determining the generic token step in token, further includes: the particular token is decrypted.
5. the smart lock control method according to claim 2 based on block chain, which is characterized in that described to work as comparison result When consistent, control the smart lock open the step of after, further includes:
The particular token is destroyed.
6. according to any smart lock control method based on block chain of claim 2-5, which is characterized in that described to incite somebody to action The subscriber identity information and the unlocking authority information in the particular token are carried out with the information for being pre-stored in intelligent lock end After the step of comparison, further includes:
Increase opening for unlocking process of the signing messages generation of smart lock lock end for recording the smart lock on comparison result Lock record token.
7. the smart lock control method according to claim 6 based on block chain, which is characterized in that described in comparison result The step of unlocking that the upper signing messages for increasing intelligent lock end generates the unlocking process for recording the smart lock records token Later, further includes:
Unlocking record token is sent to the first key end, so that first key end records token according to the unlocking Carry out unlocking statistics.
8. the smart lock control method according to claim 1 based on block chain, which is characterized in that the method is also wrapped It includes:
According to the transaction request of the first key end received, the particular token is sent to the second key end, for described Second key end controls the smart lock.
9. a kind of smart lock control device based on block chain characterized by comprising
First obtains module, for obtaining subscriber identity information, unlocking authority information and the unlocking solicited message of the first key end;
First processing module, for according to the unlocking solicited message by the generic token issued in block chain network and the use Family identity information and the unlocking authority information are associated, generate the smart lock for controlling corresponding first key end Particular token;
Second processing module, for the particular token to be sent to smart lock.
10. a kind of smart lock control system based on block chain characterized by comprising
First key end;
Smart lock;
Memory and processor communicate with each other connection, are stored in the memory between the memory and the processor Computer instruction, the processor is by executing the computer instruction, thereby executing described in any one of claims 1-8 Smart lock control method based on block chain.
11. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to It enables, the computer instruction is used to that the computer perform claim to be made to require any intelligence based on block chain in 1-8 Lock control method.
CN201811632129.9A 2018-12-28 2018-12-28 Smart lock control method, apparatus and system based on block chain Withdrawn CN109767530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811632129.9A CN109767530A (en) 2018-12-28 2018-12-28 Smart lock control method, apparatus and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811632129.9A CN109767530A (en) 2018-12-28 2018-12-28 Smart lock control method, apparatus and system based on block chain

Publications (1)

Publication Number Publication Date
CN109767530A true CN109767530A (en) 2019-05-17

Family

ID=66452667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811632129.9A Withdrawn CN109767530A (en) 2018-12-28 2018-12-28 Smart lock control method, apparatus and system based on block chain

Country Status (1)

Country Link
CN (1) CN109767530A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706379A (en) * 2019-09-20 2020-01-17 广州广电运通金融电子股份有限公司 Access control method and device based on block chain
CN111028398A (en) * 2020-01-12 2020-04-17 杭州复杂美科技有限公司 Configuration method and control method of intelligent lock, equipment and storage medium
CN111355786A (en) * 2020-02-20 2020-06-30 中科全维科技(苏州)有限公司 Internet of things equipment control method based on alliance block chain
CN114783089A (en) * 2022-04-27 2022-07-22 江苏无限感知科技有限公司 Intelligent lock management system
CN117858079A (en) * 2024-03-07 2024-04-09 四川众璟建设工程有限公司 Safety control method of building intercom system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049653A (en) * 2015-05-29 2015-11-11 深圳光启智能光子技术有限公司 Method and system for controlling unlocking authority of locks based on network
KR101875725B1 (en) * 2017-04-12 2018-07-06 서강대학교산학협력단 Smart door lock system, smart door lock and terminal for controlling the smart door lock
CN108830994A (en) * 2018-06-23 2018-11-16 辽宁工程技术大学 A kind of high security hotel check-in system based on cloud commercial affairs block chain
CN108898749A (en) * 2018-07-09 2018-11-27 李云 Shared bicycle based on block chain
CN109034802A (en) * 2018-08-03 2018-12-18 克洛斯比尔有限公司 Equity for block chain proves creation method, equipment and readable storage medium storing program for executing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049653A (en) * 2015-05-29 2015-11-11 深圳光启智能光子技术有限公司 Method and system for controlling unlocking authority of locks based on network
KR101875725B1 (en) * 2017-04-12 2018-07-06 서강대학교산학협력단 Smart door lock system, smart door lock and terminal for controlling the smart door lock
CN108830994A (en) * 2018-06-23 2018-11-16 辽宁工程技术大学 A kind of high security hotel check-in system based on cloud commercial affairs block chain
CN108898749A (en) * 2018-07-09 2018-11-27 李云 Shared bicycle based on block chain
CN109034802A (en) * 2018-08-03 2018-12-18 克洛斯比尔有限公司 Equity for block chain proves creation method, equipment and readable storage medium storing program for executing

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706379A (en) * 2019-09-20 2020-01-17 广州广电运通金融电子股份有限公司 Access control method and device based on block chain
CN110706379B (en) * 2019-09-20 2022-03-11 广州广电运通金融电子股份有限公司 Access control method and device based on block chain
CN111028398A (en) * 2020-01-12 2020-04-17 杭州复杂美科技有限公司 Configuration method and control method of intelligent lock, equipment and storage medium
CN111028398B (en) * 2020-01-12 2021-08-06 杭州复杂美科技有限公司 Configuration method and control method of intelligent lock, equipment and storage medium
CN111355786A (en) * 2020-02-20 2020-06-30 中科全维科技(苏州)有限公司 Internet of things equipment control method based on alliance block chain
CN114783089A (en) * 2022-04-27 2022-07-22 江苏无限感知科技有限公司 Intelligent lock management system
CN117858079A (en) * 2024-03-07 2024-04-09 四川众璟建设工程有限公司 Safety control method of building intercom system
CN117858079B (en) * 2024-03-07 2024-05-31 四川众璟建设工程有限公司 Safety control method of building intercom system

Similar Documents

Publication Publication Date Title
US20220245724A1 (en) Securing distributed electronic wallet shares
US11386420B2 (en) Contextual authentication of an electronic wallet
TWI761357B (en) Blockchain-implemented method and system
CN111275857B (en) Control method of intelligent lock and intelligent lock
CN109767530A (en) Smart lock control method, apparatus and system based on block chain
US20190034919A1 (en) Securing Electronic Wallet Transactions
US20190305964A1 (en) Digital credentials for user device authentication
US9384613B2 (en) Near field communication based key sharing techniques
JP5944501B2 (en) Facilitating group access control for data objects in peer-to-peer overlay networks
US8410898B1 (en) Near field communication based key sharing techniques
CN109895734B (en) Authorized Bluetooth key activation method and system, storage medium and T-BOX
CN108881167A (en) A kind of intelligent contract of finite field block catenary system
CN110535833A (en) A kind of data sharing control method based on block chain
CN106027552A (en) Method and system for accessing cloud storage data by user
KR20190094164A (en) Providing Access to Service Provider Locks
CN105516110A (en) Mobile equipment secure data transmission method
CN109728903B (en) Block chain weak center password authorization method using attribute password
WO2019191213A1 (en) Digital credential authentication
JP2006211343A (en) Authentication method and its system
CN105450750A (en) Secure interaction method for intelligent terminal
CN114239046A (en) Data sharing method
US10776474B2 (en) Token execution system for access control
WO2020213125A1 (en) Entry/exit management system, entry/exit management system authentication device, entry/exit management system management device, entry/exit management system portable terminal, data structure of entry/exit management data, entry/exit management program, and entry/exit management system building method
CN100514333C (en) Data base safety access method and system
CN107135205A (en) A kind of method for network access and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210120

Address after: 215163 No. 9 Xuesen Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province

Applicant after: Suzhou Lang run innovation intellectual property operation Co.,Ltd.

Address before: 100034 4008, 4 floor, 9 building, 56 half moon street, Xicheng District, Beijing.

Applicant before: SINOCHAIN TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
WW01 Invention patent application withdrawn after publication

Application publication date: 20190517

WW01 Invention patent application withdrawn after publication