CN116152968A - Control method and device of intelligent lock based on blockchain contract event mechanism - Google Patents

Control method and device of intelligent lock based on blockchain contract event mechanism Download PDF

Info

Publication number
CN116152968A
CN116152968A CN202310436356.9A CN202310436356A CN116152968A CN 116152968 A CN116152968 A CN 116152968A CN 202310436356 A CN202310436356 A CN 202310436356A CN 116152968 A CN116152968 A CN 116152968A
Authority
CN
China
Prior art keywords
blockchain
box
intelligent
safe deposit
control instruction
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
CN202310436356.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.)
Anhui Zhongke Lattice Technology Co ltd
Original Assignee
Anhui Zhongke Lattice 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 Anhui Zhongke Lattice Technology Co ltd filed Critical Anhui Zhongke Lattice Technology Co ltd
Priority to CN202310436356.9A priority Critical patent/CN116152968A/en
Publication of CN116152968A publication Critical patent/CN116152968A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • G07C2009/00412Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal being encrypted

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of blockchains, and discloses a control method and a device of an intelligent lock based on a blockchain contract event mechanism, wherein the method comprises the following steps: after the identity of the user passes the authentication, a click request of an intelligent lock for operating the safe deposit box, which is sent by the user, is received; determining the type of the click request, and determining an intelligent contract called on a blockchain according to the type of the click request; generating a target control instruction according to the intelligent contract called on the blockchain; controlling the intelligent lock of the safe deposit box according to the target control instruction; by the method, the type of the click request for operating the intelligent lock of the safe deposit box, which is sent by the user, is determined, the target control instruction is generated according to the intelligent contract determined by the type of the click request, and the intelligent lock of the safe deposit box is controlled through the target control instruction, so that the control over the intelligent lock is decentralised, and the traceability of the on/off deposit box record uplink can be realized.

Description

Control method and device of intelligent lock based on blockchain contract event mechanism
Technical Field
The invention relates to the technical field of blockchain, in particular to a control method and a control device of an intelligent lock based on a blockchain contract event mechanism.
Background
The intelligent lock can effectively guarantee the safety of the safe deposit box in the blockchain reasonably and accurately, the current mode of controlling the intelligent lock is to verify the unlocking/locking operation information by calling the intelligent contract, and only after the intelligent lock passes the verification, the control system of the intelligent lock issues a corresponding opening or closing operation instruction to realize the opening or closing of the intelligent lock, but the essence of controlling the intelligent lock is to store data information by the aid of the intelligent contract, the intelligent lock issues the instruction according to the verification result, namely the decentralization of the intelligent lock control cannot be realized, and the traceability of the opening/closing box record uplink.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a control method and a control device for an intelligent lock based on a blockchain contract event mechanism, and aims to solve the technical problems that the prior art cannot realize the decentralization of intelligent lock control and the traceability of on/off box record uplink.
In order to achieve the above object, the present invention provides a control method of an intelligent lock based on a blockchain intelligent contract event, the control method of the intelligent lock based on the blockchain intelligent contract event comprising the following steps:
after the identity of the user passes the authentication, a click request of an intelligent lock for operating the safe deposit box, which is sent by the user, is received;
determining the type of the click request, and determining an intelligent contract called on a blockchain according to the type of the click request;
generating a target control instruction according to the intelligent contract called on the blockchain;
and controlling the intelligent lock of the safe deposit box according to the target control instruction.
Optionally, after the authentication of the user passes, the receiving a click request sent by the user to operate the intelligent lock of the safe deposit box includes:
when an identity verification request of a user is received, obtaining identity information to be verified according to the identity verification request;
verifying the identity information to be verified through the identity information stored in the terminal equipment;
and after the authentication is passed, feeding back the notification information of the authentication to the user, and receiving a click request of the intelligent lock of the operation safe box, which is sent by the user according to the notification information.
Optionally, the determining the type of the click request and determining the intelligent contract invoked on the blockchain according to the type of the click request includes:
acquiring identification information of the click request;
determining the type of the click request according to the identification information;
determining an unpacking intelligent contract called on a blockchain when the type of the click request is the unpacking request type;
and when the type of the click request is the box closing request type, determining a box closing intelligent contract called on the blockchain.
Optionally, the target control instruction includes an out-of-box control instruction;
the generating a target control instruction according to the intelligent contract called on the blockchain comprises the following steps:
when the intelligent contract called on the blockchain is about an open-box intelligent contract, generating a corresponding open-box contract event by calling the open-box intelligent contract, and synchronizing first block data;
after synchronization is completed, judging whether the unpacking contract event is monitored through a node of the safe deposit box;
if yes, generating an unpacking control instruction according to the unpacking contract event.
Optionally, the target control instruction includes a box closing control instruction;
the generating a target control instruction according to the intelligent contract called on the blockchain comprises the following steps:
when the intelligent contract called on the block chain is about a box closing intelligent contract, generating a corresponding box closing contract event by calling the box closing intelligent contract, and synchronizing second block data;
after synchronization is completed, judging whether the box closing contract event is monitored or not through a node of the safe deposit box;
if yes, generating a box closing control instruction according to the box closing contract event.
Optionally, after the intelligent lock of the safe deposit box is controlled according to the target control instruction, the method further includes:
when the target control instruction is an unpacking control instruction, acquiring unpacking information of the safe deposit box;
sending the box opening information of the safe deposit box to a node of the safe deposit box;
and feeding back the unpacking information to a user by the node of the safe deposit box.
Optionally, after the intelligent lock of the safe deposit box is controlled according to the target control instruction, the method further includes:
acquiring box closing information of the safe deposit box when the target control instruction is a box closing control instruction;
transmitting the box closing information of the safe deposit box to a node of the safe deposit box;
and feeding back the box closing information to a user by the node of the safe deposit box.
In addition, in order to achieve the above object, the present invention also provides a control device for an intelligent lock based on a blockchain intelligent contract event, the control device for an intelligent lock based on a blockchain intelligent contract event comprising:
the verification module is used for receiving a click request of the intelligent lock for operating the safe deposit box, which is sent by the user, after the identity verification of the user is passed;
the determining module is used for determining the type of the click request and determining the intelligent contract called on the blockchain according to the type of the click request;
the generation module is used for generating a target control instruction according to the intelligent contract called on the blockchain;
and the control module is used for controlling the intelligent lock of the safe deposit box according to the target control instruction.
In addition, in order to achieve the above object, the present invention also provides a control device for a blockchain smart contract event-based smart lock, the control device for a blockchain smart contract event-based smart lock comprising: the system comprises a memory, a processor and a control program of the intelligent lock based on the blockchain intelligent contract event, wherein the control program of the intelligent lock based on the blockchain intelligent contract event is stored on the memory and can run on the processor, and the control program of the intelligent lock based on the blockchain intelligent contract event is configured to realize the control method of the intelligent lock based on the blockchain intelligent contract event.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a control program for a blockchain smart contract event-based smart lock, which when executed by a processor, implements the blockchain smart contract event-based smart lock control method as described above.
According to the control method of the intelligent lock based on the blockchain intelligent contract event, after the identity of the user passes, a click request of the intelligent lock for operating the safe deposit box, which is sent by the user, is received; determining the type of the click request, and determining an intelligent contract called on a blockchain according to the type of the click request; generating a target control instruction according to the intelligent contract called on the blockchain; controlling the intelligent lock of the safe deposit box according to the target control instruction; by the method, the type of the click request for operating the intelligent lock of the safe deposit box, which is sent by the user, is determined, the target control instruction is generated according to the intelligent contract determined by the type of the click request, and the intelligent lock of the safe deposit box is controlled through the target control instruction, so that the control over the intelligent lock is decentralised, and the traceability of the on/off deposit box record uplink can be realized.
Drawings
FIG. 1 is a schematic diagram of the architecture of a control device for a blockchain smart contract event based smart lock for a hardware operating environment in accordance with an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a method for controlling a blockchain smart contract event based smart lock of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for controlling a blockchain smart contract event based smart lock in accordance with the present invention;
FIG. 4 is a timing diagram of an out-of-box operation of an embodiment of a method for controlling a blockchain smart lock based on blockchain smart contract events in accordance with the present invention;
FIG. 5 is a timing diagram of the box closing operation of one embodiment of the method for controlling a blockchain smart contract event based smart lock of the present invention;
FIG. 6 is a functional block diagram of a first embodiment of a control device for a blockchain smart contract event based smart lock of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a control device structure of a smart lock based on a blockchain smart contract event in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the control device of the blockchain-based smart lock for smart contract events may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the architecture shown in fig. 1 does not constitute a limitation of the control devices of the blockchain smart contract event-based smart locks, and may include more or fewer components than illustrated, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include an operating system, a network communication module, a user interface module, and a control program of a smart lock based on a blockchain smart contract event.
In the control device of the blockchain smart contract event-based smart lock shown in fig. 1, the network interface 1004 is mainly used for data communication with a network integration platform workstation; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the control device of the intelligent lock based on the blockchain intelligent contract event can be arranged in the control device of the intelligent lock based on the blockchain intelligent contract event, and the control device of the intelligent lock based on the blockchain intelligent contract event invokes the control program of the intelligent lock based on the blockchain intelligent contract event stored in the memory 1005 through the processor 1001 and executes the control method of the intelligent lock based on the blockchain intelligent contract event.
Based on the hardware structure, the embodiment of the control method of the intelligent lock based on the blockchain intelligent contract event is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a control method of a smart lock based on a blockchain smart contract event according to the present invention.
In a first embodiment, the method for controlling a blockchain smart contract event-based smart lock includes the steps of:
and step S10, after the identity verification of the user is passed, a click request of the intelligent lock for operating the safe deposit box, which is sent by the user, is received.
It should be noted that, the execution body of the embodiment is a control device of an intelligent lock based on a blockchain intelligent contract event, and may also be other devices that can implement the same or similar functions, such as an intelligent lock control system, etc., which is not limited in this embodiment, and in this embodiment, an intelligent lock control system is taken as an example for explanation.
It should be understood that the click request refers to a request that a user clicks a safe deposit box button on an operation interface of a terminal device, and the user sends a click request of an intelligent lock for operating the safe deposit box to the terminal device through a series of identity verifications, wherein the terminal device includes, but is not limited to, a mobile terminal and a web terminal, and the intelligent lock control system includes the user, the terminal device, a blockchain, nodes of the safe deposit box and the intelligent lock.
Further, step S10 includes: when an identity verification request of a user is received, obtaining identity information to be verified according to the identity verification request; verifying the identity information to be verified through the identity information stored in the terminal equipment; and after the authentication is passed, feeding back the notification information of the authentication to the user, and receiving a click request of the intelligent lock of the operation safe box, which is sent by the user according to the notification information.
It can be understood that the identity information to be verified refers to identity information to be verified, the identity information to be verified is obtained by analyzing an identity verification request sent by a user, the identity information to be verified includes but is not limited to an account number, a password, a user name and the like, then the identity information to be verified is verified through the identity information stored in the terminal device, after verification is passed, notification information that the identity verification is passed is fed back to the user, and after the notification information is received, the user continues to send a click request for operating the intelligent lock of the safe deposit box to the mobile terminal.
Step S20, determining the type of the click request, and determining the intelligent contract called on the blockchain according to the type of the click request.
It will be appreciated that the types of click requests include an out-of-box request type and an off-box request type, and that the intelligent contract refers to a contract that needs to be invoked on the blockchain that corresponds to the type of click request, e.g., the intelligent contract is an out-of-box intelligent contract when the type of click request is an out-of-box request type, the intelligent contract is an off-box intelligent contract when the type of click request is an off-box request type, and the intelligent contract is running in the blockchain.
It should be noted that, taking the ethernet as an example, an event is a convenient interface provided by the ethernet virtual machine (Ethereum Virtual Machine, EVM) log infrastructure, when invoking a contract containing one or more events, it triggers the invoking event parameters to be stored in the transaction log, where these logs are associated with the address of the contract and recorded in the blockchain, and listens for the event, and when the event occurs, the next operation is performed by the event callback function.
And step S30, generating a target control instruction according to the intelligent contract called on the blockchain.
It should be understood that the target control instruction refers to an instruction for controlling the smart lock of the safe deposit box, i.e., the smart lock of the safe deposit box is controlled to be opened or closed by the target control instruction.
Further, step S30 includes: when the intelligent contract called on the blockchain is about an open-box intelligent contract, generating a corresponding open-box contract event by calling the open-box intelligent contract, and synchronizing first block data; after synchronization is completed, judging whether the unpacking contract event is monitored through a node of the safe deposit box; if yes, generating an unpacking control instruction according to the unpacking contract event.
It can be understood that after determining the intelligent contract invoked on the blockchain, judging whether the intelligent contract is an open-box intelligent contract, if yes, indicating that a user wants to open an intelligent lock of the safe deposit box, generating a corresponding open-box contract event by invoking the open-box intelligent contract, then synchronizing the first block data on the blockchain, and after the synchronization is completed, judging whether the open-box contract event is monitored by utilizing a node of the safe deposit box, if yes, generating an open-box control instruction.
Further, step S30 includes: when the intelligent contract called on the block chain is about a box closing intelligent contract, generating a corresponding box closing contract event by calling the box closing intelligent contract, and synchronizing second block data; after synchronization is completed, judging whether the box closing contract event is monitored or not through a node of the safe deposit box; if yes, generating a box closing control instruction according to the box closing contract event.
It should be understood that when the intelligent contract called on the blockchain is determined to be the case closing intelligent contract, a corresponding case closing contract event is generated by calling the case closing intelligent contract, then the second block data on the blockchain is synchronized, after synchronization is completed, the node of the safe deposit box is utilized to determine whether the case closing contract event is monitored, and if yes, a case closing control instruction is generated.
And step S40, controlling the intelligent lock of the safe deposit box according to the target control instruction.
It will be appreciated that after the target control command is generated, the intelligent lock of the safe box is controlled to be opened/closed according to the target control command.
Further, after step S40, the method further includes: when the target control instruction is an unpacking control instruction, acquiring unpacking information of the safe deposit box; sending the box opening information of the safe deposit box to a node of the safe deposit box; and feeding back the unpacking information to a user by the node of the safe deposit box.
It should be understood that when the target control instruction is an unpacking control instruction, the unpacking information of the safe deposit box is acquired at this time, the unpacking information refers to information that the safe deposit box is opened, after the unpacking information of the safe deposit box is obtained, the unpacking information of the safe deposit box is sent to a node of the safe deposit box, and after the unpacking information is received by the node of the safe deposit box, the unpacking information is fed back to a user to inform the user that the safe deposit box is opened.
Further, after step S40, the method further includes: acquiring box closing information of the safe deposit box when the target control instruction is a box closing control instruction; transmitting the box closing information of the safe deposit box to a node of the safe deposit box; and feeding back the box closing information to a user by the node of the safe deposit box.
It is understood that when the target control instruction is a box closing control instruction, box closing information of the safe deposit box is acquired at this time, the box closing information refers to information that the safe deposit box has been closed, after the closing information of the safe deposit box is obtained, the closing information of the safe deposit box is sent to a node of the safe deposit box, and after the node of the safe deposit box receives the box closing information, the box closing information is fed back to a user to inform the user that the safe deposit box has been closed.
After the identity verification of the user passes, the embodiment receives a click request of an intelligent lock for operating the safe deposit box, which is sent by the user; determining the type of the click request, and determining an intelligent contract called on a blockchain according to the type of the click request; generating a target control instruction according to the intelligent contract called on the blockchain; controlling the intelligent lock of the safe deposit box according to the target control instruction; by the method, the type of the click request for operating the intelligent lock of the safe deposit box, which is sent by the user, is determined, the target control instruction is generated according to the intelligent contract determined by the type of the click request, and the intelligent lock of the safe deposit box is controlled through the target control instruction, so that the control over the intelligent lock is decentralised, and the traceability of the on/off deposit box record uplink can be realized.
In an embodiment, as shown in fig. 3, a second embodiment of the control method of the blockchain smart contract event-based smart lock according to the present invention is proposed based on the first embodiment, and the step S20 includes:
step S201, acquiring identification information of the click request.
It should be understood that the identification information refers to information capable of uniquely identifying different click requests, and the identification information may be a header of the click request.
Step S202, determining the type of the click request according to the identification information.
It can be understood that after the identification information of the click request is obtained, the identification of the click request is identified, and the type of the click request is determined according to the identification result, for example, when the identification information is a, the type of the click request is a, and when the identification information is B, the type of the click request is B.
Step S203, when the type of the click request is the unpacking request type, the unpacking intelligent contract called on the blockchain is determined.
It should be appreciated that after the type of click request is obtained, it is determined whether the type of click request is an out-of-box request type, and if so, then the out-of-box intelligent contract on the blockchain needs to be invoked at this time.
Step S204, when the click request type is the box closing request type, determining a box closing intelligent contract called on the blockchain.
It will be appreciated that upon determining that the type of click request is a box-closing request type, this indicates that a box-closing intelligence contract on the blockchain needs to be invoked at this time.
It should be understood that, referring to fig. 4, fig. 4 is a timing chart of the unpacking operation, specifically: after passing a series of identity verification, the user clicks an unpacking button through an operation interface of the mobile terminal/web terminal to send a click request for unlocking an intelligent lock of the safe deposit box, the operation is equivalent to sending a unpacking contract transaction on a blockchain, then the mobile terminal/web terminal calls the unpacking intelligent contract on the blockchain and executes the unpacking intelligent contract on the blockchain to generate a corresponding unpacking contract event, when a node of the safe deposit box monitors the unpacking contract event, an unpacking control instruction is generated, then the intelligent lock of the safe deposit box is unlocked by the unpacking control instruction, unpacking information of the safe deposit box is sent to the node of the safe deposit box, and the unpacking information is fed back to the user by the node of the safe deposit box.
It will be appreciated that, referring to fig. 5, fig. 5 is a timing chart of the box closing operation, specifically: after passing a series of identity verification, the user clicks a box closing button through an operation interface of the mobile terminal/web terminal to send a click request for closing an intelligent lock of the safe deposit box, the operation is equivalent to sending a box closing contract transaction on a blockchain, then the mobile terminal/web terminal calls the box closing intelligent contract on the blockchain and executes the box closing intelligent contract on the blockchain to generate a corresponding box closing contract event, when a node of the safe deposit box monitors the box closing contract event, a box closing control instruction is generated, then the intelligent lock of the safe deposit box is closed by the box closing control instruction, box closing information of the safe deposit box is sent to the node of the safe deposit box, and the box closing information is fed back to the user by the node of the safe deposit box.
The embodiment obtains the identification information of the click request; determining the type of the click request according to the identification information; determining an unpacking intelligent contract called on a blockchain when the type of the click request is the unpacking request type; when the type of the click request is the box closing request type, determining a box closing intelligent contract called on a block chain; by the method, the corresponding type is determined according to the identification information of the click request, when the type of the click request is the type of the box opening request, the box opening intelligent contract is determined to be called, and when the type of the click request is the type of the box closing request, the box closing intelligent contract is determined to be called, so that the accuracy of calling the intelligent contract on the blockchain can be effectively improved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a control program of the intelligent lock based on the blockchain intelligent contract event, and the control program of the intelligent lock based on the blockchain intelligent contract event realizes the steps of the control method of the intelligent lock based on the blockchain intelligent contract event when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
In addition, referring to fig. 6, an embodiment of the present invention further provides a control device for a smart lock based on a blockchain smart contract event, where the control device for a smart lock based on a blockchain smart contract event includes:
and the verification module 10 is used for receiving a click request of the intelligent lock for operating the safe deposit box, which is sent by the user after the identity verification of the user is passed.
And the determining module 20 is used for determining the type of the click request and determining the intelligent contract called on the blockchain according to the type of the click request.
And the generation module 30 is used for generating a target control instruction according to the intelligent contract called on the blockchain.
And the control module 40 is used for controlling the intelligent lock of the safe deposit box according to the target control instruction.
After the identity verification of the user passes, the embodiment receives a click request of an intelligent lock for operating the safe deposit box, which is sent by the user; determining the type of the click request, and determining an intelligent contract called on a blockchain according to the type of the click request; generating a target control instruction according to the intelligent contract called on the blockchain; controlling the intelligent lock of the safe deposit box according to the target control instruction; by the method, the type of the click request for operating the intelligent lock of the safe deposit box, which is sent by the user, is determined, the target control instruction is generated according to the intelligent contract determined by the type of the click request, and the intelligent lock of the safe deposit box is controlled through the target control instruction, so that the control over the intelligent lock is decentralised, and the traceability of the on/off deposit box record uplink can be realized.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in the present embodiment may refer to the control method of the intelligent lock based on the blockchain intelligent contract event provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, an integrated platform workstation, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The control method of the intelligent lock based on the blockchain intelligent contract event is characterized by comprising the following steps of:
after the identity of the user passes the authentication, a click request of an intelligent lock for operating the safe deposit box, which is sent by the user, is received;
determining the type of the click request, and determining an intelligent contract called on a blockchain according to the type of the click request;
generating a target control instruction according to the intelligent contract called on the blockchain;
and controlling the intelligent lock of the safe deposit box according to the target control instruction.
2. The method for controlling a blockchain smart contract event-based smart lock according to claim 1, wherein the step of receiving a click request of the smart lock for operating a safe deposit box sent by the user after the authentication of the user is passed, comprises:
when an identity verification request of a user is received, obtaining identity information to be verified according to the identity verification request;
verifying the identity information to be verified through the identity information stored in the terminal equipment;
and after the authentication is passed, feeding back the notification information of the authentication to the user, and receiving a click request of the intelligent lock of the operation safe box, which is sent by the user according to the notification information.
3. The method for controlling a blockchain smart contract event-based smart lock of claim 1, wherein the determining the type of the click request and determining the smart contract invoked on the blockchain according to the type of the click request comprises:
acquiring identification information of the click request;
determining the type of the click request according to the identification information;
determining an unpacking intelligent contract called on a blockchain when the type of the click request is the unpacking request type;
and when the type of the click request is the box closing request type, determining a box closing intelligent contract called on the blockchain.
4. The method of claim 1, wherein the target control instruction comprises an out-of-box control instruction;
the generating a target control instruction according to the intelligent contract called on the blockchain comprises the following steps:
when the intelligent contract called on the blockchain is about an open-box intelligent contract, generating a corresponding open-box contract event by calling the open-box intelligent contract, and synchronizing first block data;
after synchronization is completed, judging whether the unpacking contract event is monitored through a node of the safe deposit box;
if yes, generating an unpacking control instruction according to the unpacking contract event.
5. The method of claim 1, wherein the target control instruction comprises a box-off control instruction;
the generating a target control instruction according to the intelligent contract called on the blockchain comprises the following steps:
when the intelligent contract called on the block chain is about a box closing intelligent contract, generating a corresponding box closing contract event by calling the box closing intelligent contract, and synchronizing second block data;
after synchronization is completed, judging whether the box closing contract event is monitored or not through a node of the safe deposit box;
if yes, generating a box closing control instruction according to the box closing contract event.
6. The method for controlling a blockchain smart contract event-based smart lock of claim 1, further comprising, after the controlling the smart lock of the safe deposit box according to the target control instruction:
when the target control instruction is an unpacking control instruction, acquiring unpacking information of the safe deposit box;
sending the box opening information of the safe deposit box to a node of the safe deposit box;
and feeding back the unpacking information to a user by the node of the safe deposit box.
7. The method for controlling a blockchain smart contract event-based smart lock of claim 1, further comprising, after the controlling the smart lock of the safe deposit box according to the target control instruction:
acquiring box closing information of the safe deposit box when the target control instruction is a box closing control instruction;
transmitting the box closing information of the safe deposit box to a node of the safe deposit box;
and feeding back the box closing information to a user by the node of the safe deposit box.
8. A control device of an intelligent lock based on a blockchain intelligent contract event, characterized in that the control device of the intelligent lock based on the blockchain intelligent contract event comprises:
the verification module is used for receiving a click request of the intelligent lock for operating the safe deposit box, which is sent by the user, after the identity verification of the user is passed;
the determining module is used for determining the type of the click request and determining the intelligent contract called on the blockchain according to the type of the click request;
the generation module is used for generating a target control instruction according to the intelligent contract called on the blockchain;
and the control module is used for controlling the intelligent lock of the safe deposit box according to the target control instruction.
9. A control device of a blockchain smart contract event-based smart lock, the control device of the blockchain smart contract event-based smart lock comprising: memory, a processor and a control program of a blockchain smart contract event based smart lock stored on the memory and executable on the processor, the control program of the blockchain smart contract event based smart lock configured with a control method implementing the blockchain smart contract event based smart lock of any of claims 1 to 7.
10. A storage medium, wherein a control program of a blockchain smart contract event-based smart lock is stored on the storage medium, and when the control program of the blockchain smart contract event-based smart lock is executed by a processor, the control method of the blockchain smart contract event-based smart lock according to any one of claims 1 to 7 is implemented.
CN202310436356.9A 2023-04-23 2023-04-23 Control method and device of intelligent lock based on blockchain contract event mechanism Withdrawn CN116152968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310436356.9A CN116152968A (en) 2023-04-23 2023-04-23 Control method and device of intelligent lock based on blockchain contract event mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310436356.9A CN116152968A (en) 2023-04-23 2023-04-23 Control method and device of intelligent lock based on blockchain contract event mechanism

Publications (1)

Publication Number Publication Date
CN116152968A true CN116152968A (en) 2023-05-23

Family

ID=86341091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310436356.9A Withdrawn CN116152968A (en) 2023-04-23 2023-04-23 Control method and device of intelligent lock based on blockchain contract event mechanism

Country Status (1)

Country Link
CN (1) CN116152968A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108597128A (en) * 2018-05-04 2018-09-28 济南浪潮高新科技投资发展有限公司 Urban network joins Car sharing system and method
CN109150943A (en) * 2017-06-27 2019-01-04 华为技术有限公司 The transmission method of information, device and system
CN110852520A (en) * 2019-11-18 2020-02-28 中国联合网络通信集团有限公司 Block chain based nursing method and device
CN112529721A (en) * 2020-12-30 2021-03-19 河南中盾云安信息科技有限公司 Grain supervision method based on block chain and Internet of things
CN112785432A (en) * 2021-01-22 2021-05-11 支付宝(杭州)信息技术有限公司 Block chain-based device control method, apparatus, device and storage medium
CN113297433A (en) * 2020-07-17 2021-08-24 支付宝(杭州)信息技术有限公司 Method and system for accessing graph database
CN113963464A (en) * 2021-10-11 2022-01-21 安徽中科晶格技术有限公司 Bank safe deposit box unlocking system and method based on block chain
CN114298711A (en) * 2021-12-21 2022-04-08 蚂蚁区块链科技(上海)有限公司 Industrial control equipment control method, device and system based on block chain
CN115909554A (en) * 2022-10-28 2023-04-04 杭州溪塔科技有限公司 Remote unlocking method and system based on block chain and electronic lock
CN115983850A (en) * 2021-10-15 2023-04-18 腾讯科技(深圳)有限公司 Block chain-based device control method and related device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150943A (en) * 2017-06-27 2019-01-04 华为技术有限公司 The transmission method of information, device and system
CN108597128A (en) * 2018-05-04 2018-09-28 济南浪潮高新科技投资发展有限公司 Urban network joins Car sharing system and method
CN110852520A (en) * 2019-11-18 2020-02-28 中国联合网络通信集团有限公司 Block chain based nursing method and device
CN113297433A (en) * 2020-07-17 2021-08-24 支付宝(杭州)信息技术有限公司 Method and system for accessing graph database
CN112529721A (en) * 2020-12-30 2021-03-19 河南中盾云安信息科技有限公司 Grain supervision method based on block chain and Internet of things
CN112785432A (en) * 2021-01-22 2021-05-11 支付宝(杭州)信息技术有限公司 Block chain-based device control method, apparatus, device and storage medium
CN113963464A (en) * 2021-10-11 2022-01-21 安徽中科晶格技术有限公司 Bank safe deposit box unlocking system and method based on block chain
CN115983850A (en) * 2021-10-15 2023-04-18 腾讯科技(深圳)有限公司 Block chain-based device control method and related device
CN114298711A (en) * 2021-12-21 2022-04-08 蚂蚁区块链科技(上海)有限公司 Industrial control equipment control method, device and system based on block chain
CN115909554A (en) * 2022-10-28 2023-04-04 杭州溪塔科技有限公司 Remote unlocking method and system based on block chain and electronic lock

Similar Documents

Publication Publication Date Title
CN109683988B (en) Micro services start method, apparatus, computer equipment and storage medium
CN110363026B (en) File operation method, device, equipment, system and computer readable storage medium
CN110245505A (en) Tables of data access method, device, computer equipment and storage medium
CN109711846A (en) Payment request processing method, device, computer equipment and storage medium
CN109656778A (en) Data capture method, device, computer equipment and storage medium
CN111090581A (en) Intelligent contract testing method and device, computer equipment and storage medium
CN109502435A (en) Send terraced method, apparatus, computer equipment and storage medium
CN110750766B (en) Authority verification method, device, computer equipment and storage medium
CN109829640A (en) Recognition methods, device, computer equipment and the storage medium of enterprise's default risk
CN108282484B (en) Password acquisition method and device, computer equipment and storage medium
CN112165448A (en) Service processing method, device, system, computer equipment and storage medium
CN108985040B (en) Method and apparatus, storage medium and the processor logged in using cipher key
CN110162310B (en) Plug-in interface test method and device, computer equipment and storage medium
CN114006815B (en) Automatic deployment method and device for cloud platform nodes, nodes and storage medium
CN116152968A (en) Control method and device of intelligent lock based on blockchain contract event mechanism
CN108881320B (en) Authentication processing method for user login, server and client
CN111752838A (en) Question checking method and device, server and storage medium
CN110390008A (en) Report method for pushing, device, computer equipment and storage medium
CN112527536B (en) MES data interaction control method and device, electronic equipment and storage medium
CN112732676B (en) Block chain-based data migration method, device, equipment and storage medium
CN109408197A (en) A kind of implementation method and device of edge calculations engine
CN111552949B (en) Encryption method and device for Internet of things equipment and electronic equipment
CN116628696A (en) Vulnerability detection method based on proxy client and related equipment
CN116070191A (en) Information processing method and device, storage medium, and program product
CN112612555A (en) Method, device, equipment and storage medium for acquiring call chain of third-party library

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230523