It authorizes the electronic lock right to use and obtains the method and device of the electronic lock right to use
Technical field
This application involves block chain fields, authorize the electronic lock right to use more particularly to one kind and obtain the electronic lock right to use
Method and device.
Background technique
There are various locksets in the prior art, wherein electronic lock is deeply loved by the public.Existing acquisition electricity
The mode of son lock is to pay the corresponding amount of money to businessman by the network platform, and then businessman gives electronic lock to buyer.Purchase
Person is after obtaining electronic lock, it is also necessary to apply for the right to use of the electronic lock to some Lock Factory or technology company.Therefore it buys
Person obtains the right to use that electronic lock also needs to obtain later electronic lock to a third-party platform.To increase the work of buyer
It measures, and then greatly reduces the experience effect of buyer.
After having bought electronic lock at businessman for above-mentioned existing buyer existing in the prior art, it is also necessary to
The technical issues of obtaining the right to use to the third-party platform for being stored with electronic lock data, not yet proposes effective solution side at present
Case.
Summary of the invention
Embodiment of the disclosure provide it is a kind of authorize the electronic lock right to use and obtain the electronic lock right to use method and
Device and storage medium, at least solve existing buyer existing in the prior art bought at businessman electronic lock it
Afterwards, it is also necessary to the technical issues of obtaining the right to use to the third-party platform for being stored with electronic lock data.
According to the one aspect of the embodiment of the present disclosure, a kind of method for authorizing the electronic lock right to use is provided, comprising: receive
The publication of the publication of input electronics lock information relevant to electronic lock instructs;It instructs in response to publication, is sent out in block catenary system
Cloth electronics lock information;And setting intelligent contract relevant to electronic lock, wherein intelligent contract is used for requesting from distributing electronic
The personnel that the user of lock information obtains the electronic lock right to use authorize the operation of the right to use.
According to the other side of the embodiment of the present disclosure, a kind of method for obtaining the electronic lock right to use is additionally provided, comprising:
Receive the acquisition instruction of the acquisition electronic lock right to use of input;In response to acquisition instruction, the acquisition of the electronic lock right to use will acquire
Request is sent to the terminal device of the user of distributing electronic lock information;And agree to authorize to make in the user of distributing electronic lock information
In the case where with power, according to pre-set intelligent contract, starts and carry out authorizing use to the personnel for obtaining the electronic lock right to use
The operation of power.
According to the other side of the embodiment of the present disclosure, a kind of storage medium is additionally provided, storage medium includes storage
Program, wherein the method as described in processor execution any of the above one in program operation.
According to the other side of the embodiment of the present disclosure, a kind of device for authorizing the electronic lock right to use is additionally provided, comprising:
First receiving module, the publication instruction for receiving input for issuing electronics lock information relevant to electronic lock;Release module is used
It is instructed in response to publication, the distributing electronic lock information in block catenary system;And setup module, for being arranged and electronics locking phase
The intelligent contract of pass, wherein intelligent contract is used to obtain request from the user of distributing electronic lock information the people of the electronic lock right to use
Member authorize the operation of the right to use.
According to the other side of the embodiment of the present disclosure, a kind of device for authorizing the electronic lock right to use is additionally provided, comprising:
Second receiving module, the acquisition instruction for receiving input for obtaining the electronic lock right to use;Second sending module, in response to
Acquisition instruction, will acquire the electronic lock right to use acquisition request be sent to distributing electronic lock information user terminal device;With
And first starting module, in the case where the user of distributing electronic lock information agrees to authorize the right to use, according to presetting
Intelligent contract, start to the personnel for obtaining the electronic lock right to use and authorize the operation of the right to use.
According to the other side of the embodiment of the present disclosure, a kind of device for obtaining the electronic lock right to use is additionally provided, comprising:
First processor;And first memory, it is connect with first processor, for providing processing following processing step for first processor
Rapid instruction: the publication instruction of the publication electronics lock information relevant to electronic lock of input is received;It is instructed in response to publication, in area
Distributing electronic lock information in block catenary system;And setting intelligent contract relevant to electronic lock, wherein intelligent contract is for asking
The personnel for obtaining the electronic lock right to use from the user of distributing electronic lock information are asked authorize the operation of the right to use.
According to the other side of the embodiment of the present disclosure, a kind of device for obtaining the electronic lock right to use is additionally provided, comprising:
Second processor;And second memory, it is connect with second processor, for providing processing following processing step for second processor
Rapid instruction: the acquisition instruction of the acquisition electronic lock right to use of input is received;In response to acquisition instruction, electronic lock use will acquire
The acquisition request of power is sent to the terminal device of the user of distributing electronic lock information;And it is same in the user of distributing electronic lock information
In the case that meaning authorizes the right to use, according to pre-set intelligent contract, starts and carried out to the personnel for obtaining the electronic lock right to use
Authorize the operation of the right to use.
The disclosure provide embodiment by the way that electronics lock information relevant to electronic lock is distributed in block catenary system, and
It is arranged and request is carried out authorizing the right to use from the personnel that the user for issuing the electronics lock information obtains the electronic lock right to use
Operation intelligent contract.So that obtain electronic lock user after the electronics lock information for learning publication by block catenary system,
The terminal device for the user that can be directly locked to distributing electronic by the terminal device of oneself, which is sent, obtains the electronic lock right to use
Request, to obtain the right to use of electronic lock.So that user after buying electronic lock, does not need to some Lock Factory or technology
The right to use of company's applying for electronic lock, but directly the electronic lock right to use is obtained to the user of distributing electronic lock information.Reach
User can directly obtain the right to use of electronic lock to the businessman of sale electronic lock, the workload of user be alleviated, to improve
The technical effect of the experience effect of user.And then solve after existing buyer bought electronic lock businessman at, and also
Need the technical issues of obtaining the right to use to the third-party platform for being stored with electronic lock data.
Detailed description of the invention
Attached drawing described herein is used to provide further understanding of the disclosure, constitutes part of this application, this public affairs
The illustrative embodiments and their description opened do not constitute the improper restriction to the disclosure for explaining the disclosure.In the accompanying drawings:
Fig. 1 is [terminal (or mobile device)] for realizing the method according to the embodiment of the present disclosure 1
Hardware block diagram;
Fig. 2 is the method authorized the electronic lock right to use according to the embodiment of the present disclosure 1 and obtain the electronic lock right to use
System schematic diagram;
Fig. 3 is the process that the method for the electronic lock right to use is authorized according to the first aspect of the embodiment of the present disclosure 1
Schematic diagram;
Fig. 4 is the process that the method for the electronic lock right to use is obtained according to the second aspect of the embodiment of the present disclosure 1
Schematic diagram;
Fig. 5 is the signal that the device of the electronic lock right to use is authorized according to the first aspect of the embodiment of the present disclosure 2
Figure;
Fig. 6 is the signal that the device of the electronic lock right to use is obtained according to the second aspect of the embodiment of the present disclosure 2
Figure;
Fig. 7 is the signal that the device of the electronic lock right to use is authorized according to the first aspect of the embodiment of the present disclosure 3
Figure;And
Fig. 8 is the signal that the device of the electronic lock right to use is obtained according to the second aspect of the embodiment of the present disclosure 3
Figure.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution of the disclosure, implement below in conjunction with the disclosure
Attached drawing in example, is clearly and completely described the technical solution in the embodiment of the present disclosure.Obviously, described embodiment
The only embodiment of disclosure a part, instead of all the embodiments.Based on the embodiment in the disclosure, this field is common
Disclosure protection all should belong in technical staff's every other embodiment obtained without making creative work
Range.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to the present embodiment, a kind of method implementation authorized the electronic lock right to use and obtain the electronic lock right to use is provided
Example, it should be noted that step shown in the flowchart of the accompanying drawings can be in the calculating of such as a group of computer-executable instructions
It is executed in machine system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from
Sequence herein executes shown or described step.
Embodiment of the method provided by the present embodiment can be in mobile terminal, terminal or similar arithmetic unit
Middle execution.Fig. 1 shows a kind of computer for realizing the method authorized the electronic lock right to use and obtain the electronic lock right to use
The hardware block diagram of terminal (or mobile device).As shown in Figure 1, terminal 10 (or mobile device 10) may include one
(processor 102 may include but unlimited for a or multiple (102a, 102b ... ... being used in figure, 102n is shown) processor 102
In the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), memory 104, Yi Jiyong for storing data
In the transmission module 106 of communication function.In addition to this, it can also include: display, input/output interface (I/O interface), lead to
With the port universal serial bus (USB) (can be used as a port in the port of I/O interface is included), network interface, power supply and/
Or camera.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, not to above-mentioned electronic device
Structure cause to limit.For example, terminal 10 may also include more perhaps less component or tool than shown in Fig. 1
There is the configuration different from shown in Fig. 1.
It is to be noted that said one or multiple processors 102 and/or other data processing circuits lead to herein
Can often " data processing circuit " be referred to as.The data processing circuit all or part of can be presented as software, hardware, firmware
Or any other combination.In addition, data processing circuit for single independent processing module or all or part of can be integrated to meter
In any one in other elements in calculation machine terminal 10 (or mobile device).As involved in the embodiment of the present disclosure,
The data processing circuit controls (such as the selection for the variable resistance end path connecting with interface) as a kind of processor.
Memory 104 can be used for storing the software program and module of application software, such as authorizing in the embodiment of the present disclosure
The electronic lock right to use and the corresponding program instruction/data storage device of method for obtaining the electronic lock right to use, processor 102 pass through
The software program and module being stored in memory 104 are run, thereby executing various function application and data processing, i.e., in fact
The method for authorizing the electronic lock right to use and obtain the electronic lock right to use of existing above-mentioned application program.Memory 104 may include height
Fast random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or other
Non-volatile solid state memory.In some instances, memory 104 can further comprise remotely located relative to processor 102
Memory, these remote memories can pass through network connection to terminal 10.The example of above-mentioned network includes but not
It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of terminal 10 provide.In an example, transmitting device 106 includes that a network is suitable
Orchestration (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to
Internet is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module,
For wirelessly being communicated with internet.
Display can such as touch-screen type liquid crystal display (LCD), the liquid crystal display aloow user with
The user interface of terminal 10 (or mobile device) interacts.
Herein it should be noted that in some optional embodiments, above-mentioned computer equipment shown in FIG. 1 (or movement is set
It is standby) it may include hardware element (including circuit), software element (including the computer generation that may be stored on the computer-readable medium
Code) or both hardware element and software element combination.It should be pointed out that Fig. 1 is only a reality of particular embodiment
Example, and it is intended to show that the type for the component that may be present in above-mentioned computer equipment (or mobile device).
Fig. 2 is the signal for the system authorized the electronic lock right to use according to the present embodiment and obtain the electronic lock right to use
Figure.Referring to shown in Fig. 2, which includes: terminal device 210, terminal device 220 and block catenary system 300.Wherein block chain
Operation has block chain in system 300.In the need that user 110 (such as: selling the businessman of electronic lock) is sold with electronic lock
In the case where asking, electronics lock information relevant to electronic lock can be distributed to block linkwork by terminal device 210 by user 110
In system 300, and intelligent contract relevant to electronic lock is set, wherein intelligent contract is used for requesting from distributing electronic lock information
The personnel (i.e. 120) that user (i.e. user 110) obtains the electronic lock right to use authorize the operation of the right to use.At this point, having purchase
The user (such as user 120) for buying electronic lock demand can see the electronics lock information after the publication in block catenary system 300.
Then user 120 inputs the acquisition instruction for obtaining the electronic lock right to use to the terminal device (such as terminal device 220) of oneself, so
The acquisition request that terminal device 220 will acquire the electronic lock right to use afterwards is sent to terminal device 210.Finally, terminal device 220 exists
The user 110 of terminal device 210 agrees in the case where authorizing 120 right to use of user, according to pre-set intelligent contract, starting
The operation of the right to use is authorized to user 120.This meaning user 120 can be by terminal device 220 directly to the publication of electronic lock
The terminal device 21 of person (i.e. user 110) is bought and obtains the electronic lock right to use.And it no longer needs to obtain to a third-party platform
Take the electronic lock right to use.It should be noted that terminal device 210, terminal device 220 and block catenary system 300 in system
Applicable hardware configuration recited above.
Under above-mentioned running environment, according to the first aspect of the present embodiment, provides one kind and authorize the electronic lock right to use
Method, this method realized by terminal device 210 shown in Fig. 2.Fig. 3 shows the flow diagram of this method, with reference to Fig. 3
It is shown, this method comprises:
S302: the publication instruction of the publication electronics lock information relevant to electronic lock of input is received;
S304: it is instructed in response to publication, the distributing electronic lock information in block catenary system;And
S306: setting intelligent contract relevant to electronic lock is believed wherein intelligent contract is used to lock request from distributing electronic
The personnel that the user of breath obtains the electronic lock right to use authorize the operation of the right to use.
As described in background, the existing mode for obtaining electronic lock is to be paid accordingly by the network platform
The amount of money is to businessman, and then electronic lock is given buyer by businessman.Buyer is after obtaining electronic lock, it is also necessary to lock to some
The right to use of factory or technology company's applying for electronic lock, so that buyer also needs after obtaining electronic lock to a third-party platform
Obtain the right to use of electronic lock.The workload of buyer thus is increased, and then greatly reduces the experience effect of buyer.
Therefore, after having bought electronic lock at businessman for above-mentioned existing buyer, it is also necessary to being stored with electricity
Son lock data third-party platform obtain the right to use the technical issues of, and refering to what is shown in Fig. 2, terminal device 210 user 110
In the case where the demand for issuing electronics lock information relevant to electronic lock, user 110 can input to terminal device 210 and send out
The instruction of cloth electronics lock information.At this point, terminal device 210 receives the publication instruction that user 110 inputs, then in response to the publication
Instruction, issues the electronics lock information in block catenary system 300.At this point, having user (such as the user of purchase electronic lock demand
120) the electronics lock information after the publication can be seen in block catenary system 300.
Further, the setting of terminal device 210 intelligent contract relevant to electronic lock.Wherein intelligent contract is used for request
The personnel (such as: user 120) for obtaining the electronic lock right to use from the user (i.e. user 110) of distributing electronic lock information authorize
The operation of the right to use.To which user 120 can be sent by the terminal device 220 of oneself to the terminal device 210 of user 110
Then the acquisition request of the request electronic lock right to use is agreed to authorize user's 120 for the right to use of electronic lock in user 110
In the case of, trigger the execution of intelligent contract.Start and is authorized to the personnel (i.e. user 120) for obtaining the electronic lock right to use
The operation of the right to use.I.e. user 120 obtains access right relevant to electronic lock, such as: the ability of unlocking, uncaging time with
And unlocking times.
To in this way, so that the user 120 for obtaining electronic lock learns user 110 by block catenary system 300
After the electronics lock information of publication, the terminal for the user 110 that can be directly locked to distributing electronic by the terminal device 220 of oneself is set
Standby 210 send the request for obtaining the electronic lock right to use, to obtain the right to use of electronic lock.So that user purchase electronic lock it
Afterwards, the right to use locked to some Lock Factory or technology company's applying for electronic is not needed, but directly to distributing electronic lock information
User obtains the electronic lock right to use.Reached user can directly to sale electronic lock businessman obtain electronic lock the right to use,
The workload of user is alleviated, to improve the technical effect of the experience effect of user.And then solves existing buyer
After having bought electronic lock at businessman, it is also necessary to obtain the technology of the right to use to the third-party platform for being stored with electronic lock data
Problem.
Optionally, the operation of intelligent contract relevant to electronic lock is set, comprising: determines the charge that personnel need to pay
Degree;And according to identified charge amount, intelligent contract is set.
Specifically, the operation of the setting of terminal device 210 intelligent contract relevant to electronic lock, comprising: terminal device 210 is true
Surely the charge amount that the personnel (such as user 120) of the electronic lock right to use need to pay is obtained.Such as: according to the meaning of user 110
It is willing to, charge amount is set 100 yuan by terminal device 210.Then, terminal device 210 according to identified charge amount (i.e.
100 yuan), intelligent contract is set.At this point, there is the user (i.e. user 120) of the acquisition electronic lock right to use to terminal device 210
User 110 pay obtain the electronic lock right to use operation it is 100 yuan relevant in the case where, user 120 complete payment behaviour
After work, operation that the right to use of electronic lock is authorized user 120 by the automatic trigger execution of intelligent contract, i.e. starting.Pass through
This mode allows user 120 directly to pay scheduled expense to the user 110 for possessing electronic lock and then obtains electronic lock
The right to use.And then the operating process for obtaining the user of the electronic lock right to use is simplified, improve the experience effect of user.
Optionally, in block catenary system distributing electronic lock information operation, comprising: using symmetric cryptographic key to electronics
Lock information is encrypted;And encrypted electronics lock information is issued in block catenary system.
Specifically, the operation of the distributing electronic lock information in block catenary system 300 of terminal device 210, comprising: terminal device
210 encrypt electronics lock information using symmetric cryptographic key.Then terminal device 210 is issued in block catenary system 300
Encrypted electronics lock information.At this point, the user (such as user 120) for obtaining electronics lock information can be in block catenary system 300
It is middle to obtain encrypted electronics lock information.Then user 120 can not be directly acquired in electronics lock information relevant to electronic lock
Content, such as: the number of electronic lock and password etc..In this way, so that electricity of the publication in block catenary system 300
Sub- lock information has can not tamper and confidentiality.
Optionally, after the operation that the right to use of electronic lock is authorized to personnel, comprising: symmetric cryptographic key is sent to people
The terminal device of member.
Specifically, the execution that intelligent contract is triggered in the user (such as user 120) for obtaining the electronic lock right to use, to obtain
After taking the electronic lock right to use, symmetric cryptographic key is sent to the terminal device 220 of user 120 by terminal device 210.To,
User 120, which can lead to, is decrypted encrypted electronics lock information using the symmetric cryptographic key, and then acquisition and electronic lock
Relevant information.
In addition, providing a kind of method for obtaining the electronic lock right to use, this method according to the second aspect of the present embodiment
It is realized by terminal device 220 shown in Fig. 2.Fig. 4 shows the flow diagram of this method, refering to what is shown in Fig. 4, this method packet
It includes:
S402: the acquisition instruction of the acquisition electronic lock right to use of input is received;
S404: in response to acquisition instruction, the acquisition request that will acquire the electronic lock right to use is sent to distributing electronic lock information
User terminal device;And
S406: in the case where the user of distributing electronic lock information agrees to authorize the right to use, according to pre-set intelligence
Contract starts the operation for authorize to the personnel for obtaining the electronic lock right to use right to use.
Specifically, in the case where user 120 has the demand for obtaining the electronic lock right to use, user 120 is to terminal device
220 input acquisition instructions.At this point, terminal device 220 receives the acquisition instruction for the acquisition electronic lock right to use that user 120 inputs.
Then for terminal device 220 in response to the acquisition instruction, the acquisition request that will acquire the electronic lock right to use is sent to distributing electronic lock
The terminal device 210 of the user (such as user 110) of information.
Further, agree to authorize the 120 electronic lock right to use of user in the user (i.e. user 110) of distributing electronic lock information
In the case where, terminal device 220 starts and (uses to the personnel for obtaining the electronic lock right to use according to pre-set intelligent contract
Family 120) authorize the operation of the right to use.Such as: user 120 is received by terminal device 210 in user 110 and passes through terminal
After the acquisition request that equipment 220 is sent, user 110 agrees to assign the right to use of electronic lock to user 120.In such case
Under, terminal device 220 starts the operation for authorize to user 120 right to use according to pre-set intelligent contract.
To in this way, so that the user 120 for obtaining electronic lock learns user 110 by block catenary system 300
After the electronics lock information of publication, the terminal for the user 110 that can be directly locked to distributing electronic by the terminal device 220 of oneself is set
Standby 210 send the request for obtaining the electronic lock right to use, to obtain the right to use of electronic lock.So that user 120 is in purchase electronics
After lock, do not need the right to use locked to some Lock Factory or technology company's applying for electronic, but directly to possess electronic lock with
And the user 110 of distributing electronic lock information obtains the electronic lock right to use.Having reached user can be directly to the quotient of sale electronic lock
Family obtains the right to use of electronic lock, the workload of user is alleviated, to improve the technical effect of the experience effect of user.Into
And solve after existing buyer bought electronic lock at businessman, it is also necessary to the third party for being stored with electronic lock data
Platform obtains the technical issues of right to use.
Optionally, start before the operation that the personnel for obtaining the electronic lock right to use authorize the right to use, comprising: receive
Payment notice, and show payment notice, wherein payment notice is used to indicate personnel Zhi Fuyu is needed to obtain electronic lock right to use phase
The predetermined payout of pass;The payment instruction of input is received, wherein payment instruction is used to indicate confirmation Zhi Fuyu and obtains electronic lock use
Weigh relevant predetermined payout;And according to pre-set intelligent contract, starts and carried out to the personnel for obtaining the electronic lock right to use
Collect the operation of predetermined payout.
Specifically, terminal device 220 starts carries out authorizing use to the personnel (i.e. user 120) for obtaining the electronic lock right to use
Before the operation of power, comprising: terminal device 220 receives payment notice, and shows payment notice.Wherein payment notice is used to indicate
User 120 needs Zhi Fuyu to obtain the relevant predetermined payout of the electronic lock right to use.Such as: terminal device 220 receives instruction user
120 need to pay 100 yuan just can obtain the payment notice of the electronic lock right to use from user 110, and show the payment notice.
Then user 120 browses to the payment notice, and pays 100 yuan with intention user 110.At this point, terminal device 220 receives user
The payment instruction of 120 inputs.Wherein it is relevant to be used to indicate the confirmation Zhi Fuyu acquisition electronic lock right to use of user 120 for payment instruction
100 yuan.Then terminal device 220 is according to pre-set intelligent contract, start to obtain the user 120 of the electronic lock right to use into
Row collects 100 yuan of operation.For example, the personnel (such as user 120) in the request electronic lock right to use have paid accordingly
In the case where 100 yuan, behaviour that the right to use of electronic lock is authorized user 120 by the automatic trigger execution of intelligent contract, i.e. starting
Make.To, in this way, allow user 120 directly to the user 110 for possessing electronic lock pay scheduled expense into
And obtain the electronic lock right to use.And then the operating process for obtaining the user of the electronic lock right to use is simplified, improve the body of user
Test effect.
Optionally, further includes: the symmetric cryptographic key that the terminal device of the user of distributing electronic lock information is sent is received,
Middle symmetric cryptographic key is used to that encrypted electronics lock information of the publication in block catenary system to be decrypted.
Specifically, in the case where user 120 obtains the electronic lock right to use, terminal device 220 receives distributing electronic lock letter
The symmetric cryptographic key that the terminal device 210 of the user 110 of breath is sent.Wherein symmetric cryptographic key is used for publication in block chain
Encrypted electronics lock information in system 300 is decrypted.At this point, that the symmetric cryptography received can be used is close by user 120
The encrypted electronics lock information obtained from block catenary system 300 is decrypted in key, and then obtains relevant to electronic lock
Electronics lock information.Wherein the electronics lock information can be the number of electronic lock and the password etc. for opening the electronic lock.Pass through this
Kind of mode, so that user is the case where obtaining the electronic lock right to use (such as: ability, uncaging time and the unlocking times of unlocking)
Under, while also obtaining electronics lock information relevant to electronic lock.
Optionally, further includes: receive the unlocking instruction of input, wherein unlocking instruction is used to indicate unlocking electronic lock;Response
In unlocking instruction, encrypted electronics lock information is obtained from block catenary system;Using symmetric cryptographic key to encrypted electricity
Sub- lock information is decrypted, and obtains electronics lock information;And the password of unlocking electronic lock is obtained from electronics lock information, and open
Electronic lock.
Specifically, after user 120 obtains the electronic lock right to use, it is desirable in the case where the electronic lock for opening acquisition, use
Family 120 inputs unlocking instruction to terminal device 220.At this point, terminal device 220 receives the unlocking instruction that user 120 inputs.Then
The unlocking instruction that terminal device 220 is inputted in response to user 120 obtains encrypted electronic lock letter from block catenary system 300
Breath.Then terminal device 220 is decrypted encrypted electronics lock information using symmetric cryptographic key, obtains electronic lock letter
Breath.Such as: it include the number of electronic lock and the password of unlocking electronic lock in electronics lock information.Finally, terminal device 220 from
The password of unlocking electronic lock, and unlocking electronic lock are obtained in electronics lock information.Thus by this mode, so that user 120
The electronic lock can also be opened in the case where not needing the password of input unlocking electronic lock.
In addition, refering to what is shown in Fig. 1, providing a kind of storage medium 104 in terms of according to the third of the present embodiment.Storage
Medium 104 includes the program of storage, wherein the method as described in processor execution any of the above one in program operation.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Fig. 5 shows the device 500 that the electronic lock right to use is authorized according to the first aspect of the present embodiment, the dress
It is corresponding with the method according to the first aspect of embodiment 1 to set 500.Refering to what is shown in Fig. 5, the device 500 includes: first
Receiving module 510, the publication instruction for receiving input for issuing electronics lock information relevant to electronic lock;Release module 520,
For being instructed in response to publication, the distributing electronic lock information in block catenary system;And setup module 530, for being arranged and electricity
The relevant intelligent contract of son lock, uses wherein intelligent contract is used to obtain electronic lock from the user of distributing electronic lock information to request
The personnel of power authorize the operation of the right to use.
Optionally, setup module 530, comprising: determine submodule, the charge amount for needing to pay for determining personnel;With
And setting submodule, for intelligent contract to be arranged according to identified charge amount.
Optionally, release module 520, comprising: encryption submodule, for using symmetric cryptographic key to electronics lock information into
Row encryption;And publication submodule, for issuing encrypted electronics lock information in block catenary system.
Optionally, further includes: the first sending module, in the behaviour for authorizing module for the right to use of electronic lock and authorizing personnel
After work, symmetric cryptographic key is sent to the terminal device of personnel.
In addition, Fig. 6 shows the device for obtaining the electronic lock right to use according to the second aspect of the present embodiment
600, the device 600 is corresponding with the method according to the second aspect of embodiment 1.Refering to what is shown in Fig. 6, the device 600
It include: the second receiving module 610, the acquisition instruction for receiving input for obtaining the electronic lock right to use;Second sending module
620, in response to acquisition instruction, the acquisition request that will acquire the electronic lock right to use to be sent to the user of distributing electronic lock information
Terminal device;And first starting module 630, the case where authorizing the right to use is agreed to for the user in distributing electronic lock information
Under, according to pre-set intelligent contract, start the operation for authorize to the personnel for obtaining the electronic lock right to use right to use.
Optionally, further includes: third receiving module, for starting in the first starting module to the acquisition electronic lock right to use
Before personnel authorize the operation of the right to use, payment notice is received, and show payment notice, wherein payment notice is used to indicate
Personnel need Zhi Fuyu to obtain the relevant predetermined payout of the electronic lock right to use;4th receiving module, payment for receiving input
Instruction, wherein payment instruction is used to indicate confirmation Zhi Fuyu and obtains the relevant predetermined payout of the electronic lock right to use;And second open
Dynamic model block, for starting and carrying out collecting subscription fee to the personnel for obtaining the electronic lock right to use according to pre-set intelligent contract
Operation.
Optionally, further includes: the 5th receiving module is sent for receiving the terminal device of user of distributing electronic lock information
Symmetric cryptographic key, wherein symmetric cryptographic key be used for encrypted electronics lock information of the publication in block catenary system into
Row decryption.
Optionally, further includes: the 6th receiving module, unlocking instruction for receiving input, wherein unlocking instruction is for referring to
Show unlocking electronic lock;Module is obtained, for obtaining encrypted electronic lock letter from block catenary system in response to unlocking instruction
Breath;Deciphering module obtains electronics lock information for encrypted electronics lock information to be decrypted using symmetric cryptographic key;
And opening module, for obtaining the password of unlocking electronic lock, and unlocking electronic lock from electronics lock information.
Thus according to the present embodiment, by the way that electronics lock information relevant to electronic lock is distributed in block catenary system, and
It is arranged and request is carried out authorizing the right to use from the personnel that the user for issuing the electronics lock information obtains the electronic lock right to use
Operation intelligent contract.So that obtain electronic lock user after the electronics lock information for learning publication by block catenary system,
The terminal device for the user that can be directly locked to distributing electronic by the terminal device of oneself, which is sent, obtains the electronic lock right to use
Request, to obtain the right to use of electronic lock.So that user after buying electronic lock, does not need to some Lock Factory or technology
The right to use of company's applying for electronic lock, but directly the electronic lock right to use is obtained to the user of distributing electronic lock information.Reach
User can directly obtain the right to use of electronic lock to the businessman of sale electronic lock, the workload of user be alleviated, to improve
The technical effect of the experience effect of user.And then solve after existing buyer bought electronic lock businessman at, and also
Need the technical issues of obtaining the right to use to the third-party platform for being stored with electronic lock data.
Embodiment 3
Fig. 7 shows the device 700 that the electronic lock right to use is authorized according to the first aspect of the present embodiment, the dress
It is corresponding with the method according to the first aspect of embodiment 1 to set 700.Refering to what is shown in Fig. 7, the device 700 includes: first
Processor 710;And first memory 720, connect with first processor 710, for for first processor 710 provide processing with
The instruction of lower processing step: the publication instruction of the publication electronics lock information relevant to electronic lock of input is received;In response to publication
Instruction, the distributing electronic lock information in block catenary system;And setting intelligent contract relevant to electronic lock, wherein intelligent contract
For authorize from the personnel that the user of distributing electronic lock information obtains the electronic lock right to use operation of the right to use to request.
Optionally, the operation of intelligent contract relevant to electronic lock is set, comprising: determines the charge that personnel need to pay
Degree;And according to identified charge amount, intelligent contract is set.
Optionally, in block catenary system distributing electronic lock information operation, comprising: using symmetric cryptographic key to electronics
Lock information is encrypted;And encrypted electronics lock information is issued in block catenary system.
Optionally, after the operation that the right to use of electronic lock is authorized to personnel, comprising: symmetric cryptographic key is sent to people
The terminal device of member.
In addition, Fig. 8 shows the device for obtaining the electronic lock right to use according to the second aspect of the present embodiment
800, the device 800 is corresponding with the method according to the second aspect of embodiment 1.Refering to what is shown in Fig. 8, the device 800
It include: second processor 810;And second memory 820, it is connect with second processor 810, for being second processor 810
The instruction for handling following processing step is provided: receiving the acquisition instruction of the acquisition electronic lock right to use of input;Refer in response to obtaining
Enable, will acquire the electronic lock right to use acquisition request be sent to distributing electronic lock information user terminal device;And it is sending out
The user of cloth electronics lock information agrees in the case where authorizing the right to use, according to pre-set intelligent contract, starts electric to obtaining
The personnel of the son lock right to use authorize the operation of the right to use.
Optionally, start before the operation that the personnel for obtaining the electronic lock right to use authorize the right to use, comprising: receive
Payment notice, and show payment notice, wherein payment notice is used to indicate personnel Zhi Fuyu is needed to obtain electronic lock right to use phase
The predetermined payout of pass;The payment instruction of input is received, wherein payment instruction is used to indicate confirmation Zhi Fuyu and obtains electronic lock use
Weigh relevant predetermined payout;And according to pre-set intelligent contract, starts and carried out to the personnel for obtaining the electronic lock right to use
Collect the operation of predetermined payout.
Optionally, second memory 820 is also used to provide the instruction for handling following processing step for second processor 810:
The symmetric cryptographic key that the terminal device of the user of distributing electronic lock information is sent is received, wherein symmetric cryptographic key is used for hair
Encrypted electronics lock information of the cloth in block catenary system is decrypted.
Optionally, second memory 820 is also used to provide the instruction for handling following processing step for second processor 810:
The unlocking instruction of input is received, wherein unlocking instruction is used to indicate unlocking electronic lock;In response to unlocking instruction, from block catenary system
It is middle to obtain encrypted electronics lock information;Encrypted electronics lock information is decrypted using symmetric cryptographic key, obtains electricity
Sub- lock information;And the password of unlocking electronic lock is obtained from electronics lock information, and unlocking electronic lock.
In addition, obtaining electricity from the personnel that the user for issuing the electronics lock information obtains the electronic lock right to use in request
In the case where the right to use of son lock, the terminal device for issuing the user of electronics lock information relevant to electronic lock can generate an area
Block, and be linked in entire block catenary system and go.
Thus according to the present embodiment, by the way that electronics lock information relevant to electronic lock is distributed in block catenary system, and
It is arranged and request is carried out authorizing the right to use from the personnel that the user for issuing the electronics lock information obtains the electronic lock right to use
Operation intelligent contract.So that obtain electronic lock user after the electronics lock information for learning publication by block catenary system,
The terminal device for the user that can be directly locked to distributing electronic by the terminal device of oneself, which is sent, obtains the electronic lock right to use
Request, to obtain the right to use of electronic lock.So that user after buying electronic lock, does not need to some Lock Factory or technology
The right to use of company's applying for electronic lock, but directly the electronic lock right to use is obtained to the user of distributing electronic lock information.Reach
User can directly obtain the right to use of electronic lock to the businessman of sale electronic lock, the workload of user be alleviated, to improve
The technical effect of the experience effect of user.And then solve after existing buyer bought electronic lock businessman at, and also
Need the technical issues of obtaining the right to use to the third-party platform for being stored with electronic lock data.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.