A data processing method, device and storage medium
By using residence smart contracts and access control smart contracts in the blockchain system, the problem of insufficient security of home equipment in the existing technology is solved, secure access control of home equipment is realized, and the overall security of the equipment is improved.
Patent Information
- Application Number
- CN202111042947.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2041-09-07
AI Technical Summary
Existing home equipment control methods cannot effectively ensure the safety of home equipment. Users can modify equipment permissions at any time, reducing the safety of equipment.
Secure access control of home devices through residence smart contracts and access control smart contracts in the blockchain system. Specific steps include identity information binding, smart contract entry into force, access control permission determination, smart contract activation and access control operations.
Improve the security of home equipment during use, prevent unauthorized access and operation, and enhance the overall security of the equipment.
Smart Images

Figure CN115776419B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things, and in particular to a data processing method and device, and a storage medium. Background Art
[0002] The existing home appliance control method is to bind the user and the house where the home appliance is located, and then send the home appliance permissions corresponding to the user in the house to the user so that the user can control the home appliance in the house. However, in actual applications, sending the permissions directly to the user cannot guarantee the security of the home appliance. The user can modify the permissions of the home appliance at any time, which reduces the security of the home appliance during the use of the home appliance. Summary of the invention
[0003] The embodiments of the present application provide a data processing method and device, and a storage medium, which can improve the safety of home appliances during use.
[0004] The technical solution of this application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a data processing method, the method comprising:
[0006] Upon receiving successful binding information of the first identity information to the first house information, controlling the residence smart contract corresponding to the first house information in the blockchain system to take effect;
[0007] After the residence smart contract takes effect, determining the access control authority of the first identity information to the first house information according to the binding success information;
[0008] activating an access control smart contract for the first house information in the blockchain system according to the access control authority; the access control smart contract is a household device in the first house information that is accessed by the access control authority;
[0009] When an access control request for a target home device using the first identity information is received, an access control operation for the target home device using the first identity information is implemented according to the access control smart contract.
[0010] In the above data processing method, when receiving the successful binding information of the first identity information to the first house information, before controlling the residential smart contract corresponding to the first house information in the blockchain system to take effect, the method further includes:
[0011] Upon receiving an identity registration request for the first identity information, parsing the identity registration request to obtain the first identity information, and generating a first identity public key, a first identity private key, and a first identity fingerprint identifier corresponding to the first identity information;
[0012] The first identity public key and the first identity fingerprint identifier are stored in the blockchain system, and the first identity private key and the first identity fingerprint identifier are returned to the first identity information.
[0013] In the above data processing method, when receiving the successful binding information of the first identity information to the first house information, before controlling the residential smart contract corresponding to the first house information in the blockchain system to take effect, the method further includes:
[0014] When receiving a device adding request of a first household device, obtaining the first household device and the first house information corresponding to the first household device after parsing the device adding request; and generating a first device public key, a first device private key and a first device fingerprint identifier according to the first household device;
[0015] The first device public key, the first device fingerprint identifier, the first home device and the first house information are stored correspondingly in the blockchain system, and the first device private key and the first device fingerprint identifier are returned to the first home device.
[0016] In the above data processing method, the request type of the access control request is access to the target home device, and the access control operation of the first identity information on the target home device is implemented according to the access control smart contract, including:
[0017] Parse the access control request to obtain first signature information of the first identity information and a first access control operation corresponding to the target home device; the first signature information is information generated by signing the first access control operation and the first identity fingerprint identifier stored in the first identity information using the first identity private key;
[0018] Searching the first identity public key corresponding to the first identity information in the blockchain system; and verifying the first signature information using the first identity public key and the first identity fingerprint identifier stored in the blockchain system;
[0019] If the signature verification is successful, obtaining the access control smart contract corresponding to the first identity information from the blockchain system;
[0020] Implement the first access control operation of the first identity information on the target home device according to the access control smart contract.
[0021] In the above data processing method, the request type of the access control request is to control the first home device to access the target home device, and the access control operation of the first identity information on the target home device is implemented according to the access control smart contract, including:
[0022] Parse the access control request to obtain second signature information of the first identity information, third signature information of the first home device, and a second access control operation corresponding to the target home device; the second signature information is information generated after the first identity information uses the first identity private key to sign the second access control operation and the first identity fingerprint identifier stored in the first identity information; the third signature information is information generated after the first home device uses the first device private key to sign the second access control operation and the first device fingerprint identifier stored in the first home device;
[0023] Searching the first identity public key corresponding to the first identity information in the blockchain system; and verifying the second signature information once using the first identity public key and the first identity fingerprint identifier stored in the blockchain system;
[0024] If the signature verification succeeds once, searching the blockchain system for the first device public key corresponding to the first household device; and performing a second signature verification on the third signature information using the first device public key and the first device fingerprint identifier stored in the blockchain system;
[0025] When the second signature verification is successful, obtaining the access control smart contract corresponding to the first identity information from the blockchain system;
[0026] The second access control operation on the target home device using the first home device using the first identity information is implemented according to the access control smart contract.
[0027] In the above data processing method, implementing the access control operation of the first identity information on the target home device according to the access control smart contract includes:
[0028] Searching the target home device and the target access control authority corresponding to the target home device from the access control smart contract;
[0029] If the target access control authority includes the access control operation, controlling the target home device to complete the access control operation;
[0030] If the target access control authority does not include the access control operation, the target home device is controlled not to respond to the access control operation.
[0031] In the above data processing method, the method further includes:
[0032] After receiving the loss information of the first home device, if it is detected that the first home device is connected to the network through the first terminal, obtaining the geographical location information and the connected network information of the first terminal;
[0033] Sending a monitoring instruction to the first home appliance, and using the first home appliance to obtain environmental information within a preset range of the first home appliance; the environmental information includes sound information and / or image information;
[0034] The current position of the first home device is located based on the geographic location information, the network information and the environmental information.
[0035] In the above data processing method, the method further includes:
[0036] After receiving the loss information of the first home appliance, a function shut down instruction is sent to the first home appliance, so that the first home appliance shuts down its own function according to the function shut down instruction.
[0037] In a second aspect, an embodiment of the present application provides a data processing device, the device comprising:
[0038] A data processing module, configured to control the smart contract for residence corresponding to the first house information in the blockchain system to take effect when receiving successful binding information of the first identity information to the first house information;
[0039] A determination module, configured to determine, after the residence smart contract takes effect, the access control authority of the first identity information to the first housing information according to the binding success information;
[0040] The data processing module is further used to activate the access control smart contract of the first house information in the blockchain system according to the access control authority; the access control smart contract is the home device in the first house information that is accessed by the access control authority;
[0041] A control module is used to implement the access control operation of the first identity information on the target home device according to the access control smart contract when receiving an access control request for the target home device using the first identity information.
[0042] In a third aspect, an embodiment of the present application provides a data processing device, comprising: a processor, a memory and a communication bus; when the processor executes an operating program stored in the memory, the data processing method as described in any one of the above items is implemented.
[0043] In a fourth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, it implements the data processing method as described in any one of the above items.
[0044] The embodiment of the present application provides a data processing method and device, and a storage medium, the method comprising: upon receiving successful binding information of the first identity information to the first house information, controlling the residence smart contract corresponding to the first house information in the blockchain system to take effect; after the residence smart contract takes effect, determining the access control authority of the first identity information to the first house information according to the successful binding information; activating the access control smart contract of the first house information in the blockchain system according to the access control authority; the access control smart contract is the home appliance in the first house information accessed corresponding to the access control authority; upon receiving an access control request of the first identity information to the target home appliance, implementing the access control operation of the first identity information to the target home appliance according to the access control smart contract; using the above implementation scheme, firstly, the access control smart contract of the first house information to the home appliance is stored in the blockchain system, and secondly, when the user wants to perform access control on the home appliance, the user's access control request is implemented according to the access control smart contract, which is different from the process of directly sending the authority of the home appliance to the user in the prior art. Each time the user makes an access control request to the home appliance, it is necessary to query the access control smart contract in the blockchain system once, and due to the security of the blockchain system storage, it can be ensured as much as possible that the access control smart contract will not be tampered with, thereby improving the security of the home appliance during the use of the home appliance. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flow chart of a data processing method provided in an embodiment of the present application;
[0046] Figure 2 An exemplary access control operation method process provided in the embodiment of the present application Figure 1 ;
[0047] Figure 3 An exemplary access control operation method process provided in the embodiment of the present application Figure 2 ;
[0048] Figure 4 A schematic diagram of the structure of a data processing device 1 provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of the structure of a data processing device 1 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] The present application provides a data processing method, which is applied to a data processing device. Figure 1 A flow chart of a data processing method provided in an embodiment of the present application is as follows: Figure 1 As shown, the data processing method may include:
[0052] S101. Upon receiving the successful binding information of the first identity information to the first house information, the residential smart contract corresponding to the first house information in the control blockchain system is made effective.
[0053] In an embodiment of the present application, upon receiving information on successful binding of the first identity information to the first house information, the data processing device controls the residential smart contract corresponding to the first house information in the blockchain system to take effect.
[0054] A data processing method provided in the present application can be applied in a scenario where access to home appliances in first house information is controlled using first identity information.
[0055] It should be noted that the data processing device can be a house rental platform. In this case, the first identity information can be the lessor, and the first house information can be the lessee; the specific data processing device can be determined according to actual conditions, and the embodiments of the present application are not limited here.
[0056] In the embodiment of the present application, the data processing device and the blockchain system are independent of each other, and the data processing device stores all data that need to be guaranteed to be secure in the blockchain system.
[0057] It should be noted that the residence smart contract is published in the blockchain system. The residence smart contract can be understood as the first identity information paying a certain room fee in exchange for the right to reside in the first house information for a period of time. After the first identity information pays successfully, it indicates that the first identity information is successfully bound to the first house information. At this time, the residence smart contract takes effect, and the first identity information has the right to reside in the first house information for a period of time; the residence smart contract can also be that the owner of the first house information directly transfers the right to reside in the first house information to the first identity information, and there is no need to pay the room fee, and the first identity information and the first house information are directly bound; the specific binding conditions can be determined according to actual conditions, and the embodiments of the present application are not limited here.
[0058] In the embodiment of the present application, before the first identity information is bound to the first house information, the first identity information needs to be registered on the data processing device.
[0059] Specifically, when the data processing device receives an identity registration request for the first identity information, it parses the identity registration request to obtain the first identity information, and generates a first identity public key, a first identity private key and a first identity fingerprint identifier corresponding to the first identity information; stores the first identity public key and the first identity fingerprint identifier in the blockchain system, and returns the first identity private key and the first identity fingerprint identifier to the first identity information.
[0060] It can be understood that by storing the first identity public key and the first identity fingerprint identifier in the blockchain system, the information is not easily tampered with, and the security of the identity information can be guaranteed.
[0061] It should be noted that when storing the first identity public key and the first identity fingerprint identifier in the blockchain system, consensus is required before they can be added to the blockchain system.
[0062] It should be noted that, when the first identity information receives the first identity private key and the first identity fingerprint identifier sent by the data processing device, it indicates that the first identity information is successfully registered on the data processing device.
[0063] In an embodiment of the present application, the first house information includes at least one household appliance. When a new household appliance is added to the first house information, the new household appliance needs to be added to the data processing device.
[0064] Specifically, when receiving a device adding request from a first home appliance, the data processing device parses the device adding request to obtain the first home appliance and the first house information corresponding to the first home appliance; generates a first device public key, a first device private key and a first device fingerprint identifier according to the first home appliance; stores the first device public key, the first device fingerprint identifier, the first home appliance and the first house information correspondingly in the blockchain system, and returns the first device private key and the first device fingerprint identifier to the first home appliance.
[0065] For example, assuming that a smart air conditioner (first home appliance) is added to Room A (first house information), it is necessary to add the smart air conditioner to the data processing device. At this time, a device addition request to add the smart air conditioner to Room A is sent to the data processing device. After the data processing device parses the device addition request, it obtains the smart air conditioner and Room A to which the smart air conditioner is added, and then generates the device public and private keys and device fingerprint identifier corresponding to the smart air conditioner, and then returns the device private key and device fingerprint identifier to the smart air conditioner. At this time, when the smart air conditioner receives the device private key and device fingerprint identifier, it stores the device private key and device fingerprint identifier in its own trusted platform module. Since the trusted platform module is an encryption module, it can prevent the device's own information from being tampered with.
[0066] It can be understood that by storing the first device public key and the first device fingerprint identifier in the blockchain system, the information is not easily tampered with, and the security of the device information can be guaranteed.
[0067] It should be noted that when the first device public key and the first device fingerprint identifier are stored in the blockchain system, they need to be added to the blockchain system after consensus.
[0068] It should be noted that, when the first home device receives the first device private key and the first device fingerprint identifier sent by the data processing device, it indicates that the first home device is successfully added to the data processing device.
[0069] S102. After the residence smart contract takes effect, the access control authority of the first identity information to the first house information is determined according to the binding success information.
[0070] In an embodiment of the present application, after the residence smart contract takes effect, the data processing device determines the access control authority of the first identity information to the first house information based on the binding success information.
[0071] It should be noted that the effectiveness of the residence smart contract indicates that the first identity information already has the residence right corresponding to the first house information. At this time, the access control authority of the first house information needs to be opened to the first identity information so that the first identity information can access and control the home appliances in the first house information.
[0072] It should be noted that different first identity information corresponds to different access control permissions, so the corresponding access control permissions can be determined through different binding success information; for example, assuming that user A is successfully bound to room B at this time, if user A is only bound to room B for one day, it means that user A only has the right to reside in room B for one day. At this time, user A may obtain access control permissions to a small number of home appliances in room B, for example, access control to the air conditioner, curtains and lights, but if he only lives there for one day, he cannot obtain access control to the password lock of room B; if user A is bound to room B for one year, it means that user A has the right to reside in room B for one year. At this time, user A may obtain access control permissions to most of the home appliances in room B, that is, he has access control to the password lock of room B and can change the password of room B; if user A is the owner of room B, it means that user A has the long-term right to reside in room B, that is, he obtains access control permissions to all home appliances in room B; the specific access control permissions are determined according to the actual situation, and the embodiments of the present application are not limited here.
[0073] It should be noted that access control permissions include viewing device information, access control operations on devices, etc. Specific access control permissions are formulated based on actual conditions and are not limited in this embodiment of the present application.
[0074] S103, activating the access control smart contract of the first house information in the blockchain system according to the access control authority; the access control smart contract is the home appliances in the first house information that are accessed by the access control authority.
[0075] In an embodiment of the present application, after the data processing device determines the access control authority of the first identity information to the first house information, it activates the access control smart contract of the first house information in the blockchain system according to the access control authority; the access control smart contract is the home equipment in the first house information that is accessed corresponding to the access control authority.
[0076] It should be noted that the access control smart contract is a contract corresponding to the first house information pre-stored in the blockchain system. The access control smart contract configures different access control permissions for home appliances in the first house information for different identity information. The first identity information needs to implement access control operations on home appliances based on this access control smart contract.
[0077] S104: upon receiving an access control request for a target home device using the first identity information, implement an access control operation for the target home device using the first identity information according to an access control smart contract.
[0078] In an embodiment of the present application, after activating the access control smart contract of the first house information, the data processing device, upon receiving an access control request for the target home device of the first identity information, implements the access control operation of the first identity information on the target home device according to the access control smart contract.
[0079] It should be noted that, since different identity information has different access control permissions for home appliances in the first house information, it is necessary to use an access control smart contract to determine whether the first identity information has the permission corresponding to this access control operation.
[0080] It should be noted that the access control request can be an access control operation of the first identity information directly on the home device, or it can be an access control operation of the first identity information on one home device to another home device; the specific access control request is determined based on the actual situation, and the embodiment of the present application is not limited here.
[0081] In an optional embodiment of the present application, a method for directly controlling access to a home device using first identity information is provided. Figure 2 An exemplary access control operation method process provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, the method is as follows:
[0082] S201. Parse the access control request to obtain first signature information of the first identity information and a first access control operation corresponding to the target home device.
[0083] In an embodiment of the present application, when a data processing device receives an access control request for a target home device from first identity information, it parses the access control request to obtain first signature information of the first identity information and a first access control operation corresponding to the target home device.
[0084] It should be noted that, in this embodiment, the request type of the access control request is access to the target home device.
[0085] In the embodiment of the present application, the first signature information is information generated after the first identity information uses the first identity private key to sign the first access control operation and the first identity fingerprint identifier stored in the first identity information.
[0086] It should be noted that when the first identity information requests a first access control operation on the target home device, it is necessary to use the first identity private key to sign the first access control operation and the first identity fingerprint identifier stored in the first identity information. After obtaining the first signature information, the first signature information and the first access control operation are sent together to the data processing device.
[0087] It should be noted that since the data processing device is not sure about the security of the access control request when it receives it, the first identity information is required to use the first identity private key to sign the first access control operation and the first identity fingerprint identifier stored in the first identity information, and then use the first identity public key stored in the blockchain system to verify the first signature information to further ensure security.
[0088] S202. Searching for a first identity public key corresponding to the first identity information in the blockchain system; and verifying the first signature information using the first identity public key and the first identity fingerprint identifier stored in the blockchain system.
[0089] In an embodiment of the present application, after obtaining the first signature information and the first access control operation, the data processing device searches for the first identity public key corresponding to the first identity information from the blockchain system; and uses the first identity public key and the first identity fingerprint identifier stored in the blockchain system to verify the first signature information.
[0090] It should be noted that since the first identity fingerprint identifier corresponding to the first identity information is also stored in the first identity information, the first identity fingerprint identifier in the first identity information may be modified and the security cannot be guaranteed to the maximum extent. Therefore, after receiving the first signature information, the data processing device not only needs to use the first identity public key stored in the blockchain system to verify the first identity private key corresponding to the first signature information, but also needs to use the first identity fingerprint identifier stored in the blockchain system to verify the first identity fingerprint identifier in the first signature information, which can further ensure security.
[0091] S203. When the signature verification is successful, obtain the access control smart contract corresponding to the first identity information from the blockchain system.
[0092] In an embodiment of the present application, when the signature verification is successful, the data processing device obtains the access control smart contract corresponding to the first identity information from the blockchain system.
[0093] It should be noted that, if the signature verification fails, the access control request is discarded and the next access control request is processed.
[0094] S204: Implement a first access control operation on the target home device using the first identity information according to the access control smart contract.
[0095] In an embodiment of the present application, after acquiring the access control smart contract, the data processing device implements a first access control operation on the target home device based on the first identity information according to the access control smart contract.
[0096] Specifically, the target home device and the target access control authority corresponding to the target home device are searched from the access control smart contract; if the target access control authority includes the first access control operation, the target home device is controlled to complete the first access control operation; if the target access control authority does not include the first access control operation, the target home device is controlled not to respond to the first access control operation.
[0097] For example, assuming that the first access control operation is to open the curtains, if in the access control smart contract, the target access control permission of the first identity information for the curtains is to allow the curtains to be opened or closed, and the target access control permission includes the first access control operation, the curtains are controlled to be opened; the specific access control permissions and access control requests are determined based on actual conditions, and the embodiments of the present application are not limited here.
[0098] In another optional embodiment of the present application, a method for controlling access of a home device to another home device using the first identity information is provided. Figure 3 An exemplary access control operation method process provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, the method is as follows:
[0099] S301, parsing the access control request to obtain the second signature information of the first identity information, the third signature information of the first home device, and the second access control operation corresponding to the target home device.
[0100] In an embodiment of the present application, when the data processing device receives an access control request for a target home device from the first identity information, it parses the access control request to obtain the second signature information of the first identity information, the third signature information of the first home device, and the second access control operation corresponding to the target home device.
[0101] It should be noted that, in this embodiment, the request type of the access control request is to control the first home device to access the target home device.
[0102] In an embodiment of the present application, the second signature information is information generated after the first identity information uses the first identity private key to sign the second access control operation and the first identity fingerprint identifier stored in the first identity information; the third signature information is information generated after the first home device uses the first device private key to sign the second access control operation and the first device fingerprint identifier stored in the first home device.
[0103] It should be noted that when the first identity information requests the use of the first home device to perform a second access control operation on the target home device, the first identity private key is required to sign the second access control operation and the first identity fingerprint identifier stored in the first identity information, and the first device private key is used to sign the second access control operation and the first device fingerprint identifier stored in the first home device. After obtaining the second signature information and the third signature information, the second signature information, the third signature information and the second access control operation are sent together to the data processing device.
[0104] It should be noted that, since the data processing device is not sure about the security of the access control request when it receives it, the first identity information is required to use the first identity private key to sign the second access control operation and the first identity fingerprint identifier stored in the first identity information, and the first home device is required to use the first device private key to sign the second access control operation and the first device fingerprint identifier stored in the first home device, and then use the first identity public key and the first device public key stored in the blockchain system to verify the second signature information and the third signature information twice to further ensure security.
[0105] S302. Search the blockchain system for the first identity public key corresponding to the first identity information; and use the first identity public key and the first identity fingerprint identifier stored in the blockchain system to verify the second signature information.
[0106] In an embodiment of the present application, after obtaining the second signature information, the third signature information and the second access control operation, the data processing device searches the blockchain system for the first identity public key corresponding to the first identity information; and uses the first identity public key and the first identity fingerprint identifier stored in the blockchain system to verify the second signature information.
[0107] It should be noted that since the first identity information and the first home device also store the first identity fingerprint identifier corresponding to the first identity information and the first device fingerprint identifier corresponding to the first home device, the first identity fingerprint identifier in the first identity information and the first device fingerprint identifier in the first home device may be modified, and the security cannot be guaranteed to the maximum extent. Therefore, after receiving the second signature information and the third signature information, the data processing device not only needs to use the first identity public key and the first device private key stored in the blockchain system to verify the first identity private key corresponding to the second signature information and the first device private key corresponding to the third signature information, but also needs to use the first identity fingerprint identifier and the first device fingerprint identifier stored in the blockchain system to verify the first identity fingerprint identifier in the second signature information and the first device fingerprint identifier in the third signature information, which can further ensure security.
[0108] S303: When the signature verification succeeds once, the first device public key corresponding to the first household device is searched in the blockchain system; and the third signature information is verified twice using the first device public key and the first device fingerprint identifier stored in the blockchain system.
[0109] In an embodiment of the present application, when the signature verification is successful once, the data processing device searches the blockchain system for the first device public key corresponding to the first home device; and uses the first device public key and the first device fingerprint identifier stored in the blockchain system to perform a second verification on the third signature information.
[0110] It should be noted that, if a signature verification fails, the access control request is discarded and the next access control request is processed.
[0111] S304: When the second signature verification is successful, obtain the access control smart contract corresponding to the first identity information from the blockchain system.
[0112] In an embodiment of the present application, when the secondary signature verification is successful, the data processing device obtains the access control smart contract corresponding to the first identity information from the blockchain system.
[0113] It should be noted that if the second signature verification fails, the access control request is discarded and the next access control request is processed.
[0114] S305: Implement a second access control operation on the target home device using the first home device using the first identity information according to the access control smart contract.
[0115] In an embodiment of the present application, after acquiring the access control smart contract, the data processing device implements a second access control operation on the target home device using the first home device using the first identity information according to the access control smart contract.
[0116] Specifically, the first home device and the first access control authority corresponding to the first home device are searched from the access control smart contract; if the first access control authority includes the authority for the first home device to control the target home device, the target home device and the target access control authority corresponding to the target home device are searched; if the first access control authority does not include the authority for the first home device to control the target home device, the first home device is controlled not to respond to the second access control operation; if the target access control authority includes the second access control operation, the first home device is used to control the target home device to complete the second access control operation; if the target access control authority does not include the second access control operation, the target home device is controlled not to respond to the second access control operation.
[0117] In the embodiment of the present application, after the first household appliance is found to be lost, the loss information of the first household appliance is sent to the data processing device so that the data processing device can locate the current position of the first household appliance.
[0118] Specifically, after receiving the loss information of the first home appliance, when it is detected that the first home appliance is connected to the network through the first terminal, the geographical location information and the connected network information of the first terminal are obtained; a monitoring instruction is sent to the first home appliance, and the first home appliance is used to obtain environmental information within a preset range of the first home appliance; the environmental information includes sound information and / or image information; and the current position of the first home appliance is located based on the geographical location information, the network information and the environmental information.
[0119] It should be noted that, assuming that the owner of the first house information finds that the first home appliance is lost when searching for the first home appliance in the room, the owner reports the loss of the first home appliance on the data processing device, that is, sends the loss information of the first home appliance.
[0120] It should be noted that, assuming that the first home appliance includes a camera module, the first home appliance can turn on the camera module to shoot the surrounding environment and upload it to the data processing device; assuming that the first home appliance includes a recording module, the first home appliance can turn on the recording module to record the surrounding sounds and upload it to the data processing device; finally, the data processing device uses the geographic location information, network information and environmental information to find the lost first home appliance.
[0121] In the embodiment of the present application, after the first household appliance is found to be lost, the loss information of the first household appliance is sent to the data processing device, and the data processing device can shut down all functions of the first household appliance to make it unable to work.
[0122] Specifically, after receiving the loss information of the first home appliance, a function shut down instruction is sent to the first home appliance, so that the first home appliance shuts down its own function according to the function shut down instruction.
[0123] It should be noted that the function shutdown instruction is sent to the device control module in the first home device. After the device control module receives the function shutdown instruction, all functions of the first home device are shut down, so that any terminal or device cannot access and control the first home device.
[0124] In an embodiment of the present application, after the residence smart contract expires, it indicates that the first identity information has been unbound from the first house information, and the first identity information loses all access control rights to home appliances in the first house information.
[0125] The embodiment of the present application provides a data processing method, which includes: in the case of receiving successful binding information of the first identity information to the first house information, controlling the residence smart contract corresponding to the first house information in the blockchain system to take effect; after the residence smart contract takes effect, determining the access control authority of the first identity information to the first house information according to the successful binding information; activating the access control smart contract of the first house information in the blockchain system according to the access control authority; the access control smart contract is the home appliance in the first house information accessed corresponding to the access control authority; in the case of receiving an access control request of the first identity information to the target home appliance, implementing the access control operation of the first identity information to the target home appliance according to the access control smart contract; using the above implementation scheme, firstly, the access control smart contract of the first house information to the home appliance is stored in the blockchain system, and secondly, when the user wants to perform access control on the home appliance, the user's access control request is implemented according to the access control smart contract, which is different from the process of directly sending the authority of the home appliance to the user in the prior art. Each time the user makes an access control request to the home appliance, it is necessary to query the access control smart contract in the blockchain system once, and due to the security of the blockchain system storage, it can be ensured as much as possible that the access control smart contract will not be tampered with, thereby improving the security of the home appliance during the use of the home appliance.
[0126] Based on the above embodiment, in another embodiment of the present application, a data processing device 1 is provided. Figure 4 A schematic diagram of the structure of a data processing device 1 provided in this application is shown in FIG. Figure 4 As shown, the data processing device 1 includes:
[0127] The data processing module 10 is used to control the smart contract for residence corresponding to the first house information in the blockchain system to take effect when receiving the successful binding information of the first identity information to the first house information;
[0128] A determination module 11, configured to determine, after the residence smart contract takes effect, the access control authority of the first identity information to the first housing information according to the binding success information;
[0129] The data processing module 10 is further used to activate the access control smart contract of the first house information in the blockchain system according to the access control authority; the access control smart contract is the home device in the first house information that is accessed by the access control authority;
[0130] The control module 12 is used to implement the access control operation of the first identity information on the target home device according to the access control smart contract when receiving the access control request of the first identity information on the target home device.
[0131] Optionally, the data processing device 1 further includes: a parsing module and a storage module;
[0132] The parsing module is used to, upon receiving an identity registration request for the first identity information, parse the identity registration request to obtain the first identity information, and generate a first identity public key, a first identity private key and a first identity fingerprint identifier corresponding to the first identity information;
[0133] The storage module is used to store the first identity public key and the first identity fingerprint identifier in the blockchain system, and return the first identity private key and the first identity fingerprint identifier to the first identity information.
[0134] Optionally, the parsing module is further configured to, upon receiving a device adding request from a first household device, parse the device adding request to obtain the first household device and the first house information corresponding to the first household device; and generate a first device public key, a first device private key and a first device fingerprint identifier according to the first household device;
[0135] The storage module is also used to store the first device public key, the first device fingerprint identifier, the first home device and the first house information correspondingly in the blockchain system, and return the first device private key and the first device fingerprint identifier to the first home device.
[0136] Optionally, the data processing device 1 further includes: a search module and an acquisition module;
[0137] The parsing module is further used to parse the access control request to obtain first signature information of the first identity information and a first access control operation corresponding to the target home device; the first signature information is information generated after the first identity information uses the first identity private key to sign the first access control operation and the first identity fingerprint identifier stored in the first identity information;
[0138] The search module is used to search the first identity public key corresponding to the first identity information in the blockchain system; and verify the first signature information using the first identity public key and the first identity fingerprint identifier stored in the blockchain system;
[0139] The acquisition module is used to obtain the access control smart contract corresponding to the first identity information from the blockchain system when the signature verification is successful;
[0140] The control module 12 is further used to implement the first access control operation of the first identity information on the target home device according to the access control smart contract.
[0141] Optionally, the parsing module is further used to parse the access control request to obtain the second signature information of the first identity information, the third signature information of the first home device, and the second access control operation corresponding to the target home device; the second signature information is information generated after the first identity information uses the first identity private key to sign the second access control operation and the first identity fingerprint identifier stored in the first identity information; the third signature information is information generated after the first home device uses the first device private key to sign the second access control operation and the first device fingerprint identifier stored in the first home device;
[0142] The search module is further used to search the first identity public key corresponding to the first identity information in the blockchain system; and use the first identity public key and the first identity fingerprint identifier stored in the blockchain system to verify the second signature information once;
[0143] The search module is further configured to search the first device public key corresponding to the first household device from the blockchain system when the signature verification succeeds once; and perform a second signature verification on the third signature information using the first device public key and the first device fingerprint identifier stored in the blockchain system;
[0144] The acquisition module is further configured to acquire, from the blockchain system, the access control smart contract corresponding to the first identity information when the second signature verification is successful;
[0145] The control module 12 is further configured to implement the second access control operation on the target home device using the first home device using the first identity information according to the access control smart contract.
[0146] Optionally, the search module is further used to search the target home device and the target access control authority corresponding to the target home device from the access control smart contract;
[0147] The control module 12 is further configured to control the target home device to complete the access control operation if the target access control authority includes the access control operation;
[0148] The control module 12 is further configured to control the target home device not to respond to the access control operation if the target access control authority does not include the access control operation.
[0149] Optionally, the data processing device 1 further includes: a detection module, a sending module and a positioning module;
[0150] The detection module is configured to obtain geographic location information and connected network information of the first terminal when detecting that the first home device is connected to a network through the first terminal after receiving the loss information of the first home device;
[0151] The sending module is used to send a monitoring instruction to the first home appliance, and use the first home appliance to obtain environmental information within a preset range of the first home appliance; the environmental information includes sound information and / or image information;
[0152] The positioning module is used to locate the current position of the first home device based on the geographical location information, the network information and the environmental information.
[0153] Optionally, the sending module is further configured to send a function shut down instruction to the first home appliance after receiving the loss information of the first home appliance, so that the first home appliance shuts down its own function according to the function shut down instruction.
[0154] The embodiment of the present application provides a data processing device, which includes: in the case of receiving successful binding information of the first identity information to the first house information, controlling the residence smart contract corresponding to the first house information in the blockchain system to take effect; after the residence smart contract takes effect, determining the access control authority of the first identity information to the first house information according to the successful binding information; activating the access control smart contract of the first house information in the blockchain system according to the access control authority; the access control smart contract is the home appliance in the first house information accessed corresponding to the access control authority; in the case of receiving an access control request of the first identity information to the target home appliance, implementing the access control operation of the first identity information to the target home appliance according to the access control smart contract; using the above implementation scheme, firstly, the access control smart contract of the first house information to the home appliance is stored in the blockchain system, and secondly, when the user wants to perform access control on the home appliance, the user's access control request is implemented according to the access control smart contract, which is different from the process of directly sending the authority of the home appliance to the user in the prior art. Each time the user makes an access control request to the home appliance, it is necessary to query the access control smart contract in the blockchain system once, and due to the security of the blockchain system storage, it can be ensured as much as possible that the access control smart contract will not be tampered with, thereby improving the security of the home appliance during the use of the home appliance.
[0155] Figure 5 This is a schematic diagram of the structure of a data processing device 1 provided in an embodiment of the present application. In practical applications, based on the same disclosed concept of the above embodiments, Figure 5 As shown, the data processing device 1 of this embodiment includes: a processor 13 , a transmitter 14 , a memory 15 and a communication bus 16 .
[0156] In the process of the specific embodiment, the data processing module 10, the determination module 11, the control module 12, the analysis module, the storage module, the search module, the acquisition module, the detection module and the positioning module can be implemented by a processor 13 located on the data processing device 1, and the sending module can be implemented by a transmitter 14 located on the data processing device 1. The processor 13 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing image processing device (DSPD), a programmable logic image processing device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It can be understood that for different data processing devices, the electronic device used to implement the above-mentioned processor function can also be other, and this embodiment does not specifically limit it.
[0157] In the embodiment of the present application, the communication bus 16 is used to realize the connection and communication between the processor 13, the transmitter 14 and the memory 15; when the processor 13 executes the running program stored in the memory 15, the following data processing method is implemented:
[0158] Upon receiving successful binding information of the first identity information to the first house information, controlling the residence smart contract corresponding to the first house information in the blockchain system to take effect;
[0159] After the residence smart contract takes effect, determining the access control authority of the first identity information to the first house information according to the binding success information;
[0160] activating an access control smart contract for the first house information in the blockchain system according to the access control authority; the access control smart contract is a household device in the first house information that is accessed by the access control authority;
[0161] When an access control request for a target home device using the first identity information is received, an access control operation for the target home device using the first identity information is implemented according to the access control smart contract.
[0162] Optionally, the processor 13 is also used to, upon receiving an identity registration request for the first identity information, parse the identity registration request to obtain the first identity information, and generate a first identity public key, a first identity private key and a first identity fingerprint identifier corresponding to the first identity information; store the first identity public key and the first identity fingerprint identifier in the blockchain system, and return the first identity private key and the first identity fingerprint identifier to the first identity information.
[0163] Optionally, the processor 13 is further used to, when receiving a device adding request from a first household device, parse the device adding request to obtain the first household device and the first house information corresponding to the first household device; and generate a first device public key, a first device private key and a first device fingerprint identifier according to the first household device; store the first device public key, the first device fingerprint identifier, the first household device and the first house information correspondingly in the blockchain system, and return the first device private key and the first device fingerprint identifier to the first household device.
[0164] Optionally, the processor 13 is also used to parse the access control request to obtain the first signature information of the first identity information and the first access control operation corresponding to the target home device; the first signature information is the information generated after the first identity information uses the first identity private key to sign the first access control operation and the first identity fingerprint identifier stored in the first identity information; search the first identity public key corresponding to the first identity information from the blockchain system; and use the first identity public key and the first identity fingerprint identifier stored in the blockchain system to verify the first signature information; if the verification is successful, obtain the access control smart contract corresponding to the first identity information from the blockchain system; and implement the first access control operation of the first identity information on the target home device according to the access control smart contract.
[0165] Optionally, the processor 13 is further used to parse the access control request to obtain the second signature information of the first identity information, the third signature information of the first home device, and the second access control operation corresponding to the target home device; the second signature information is the information generated after the first identity information uses the first identity private key to sign the second access control operation and the first identity fingerprint identifier stored in the first identity information; the third signature information is the information generated after the first home device uses the first device private key to sign the second access control operation and the first device fingerprint identifier stored in the first home device; search the first identity public key corresponding to the first identity information from the blockchain system; and use the first identity public key and the first identity fingerprint identifier stored in the blockchain system to perform a signature verification on the second signature information; if the signature verification is successful once, search the first device public key corresponding to the first home device from the blockchain system; and use the first device public key and the first device fingerprint identifier stored in the blockchain system to perform a second signature verification on the third signature information; if the second signature verification is successful, obtain the access control smart contract corresponding to the first identity information from the blockchain system; and implement the second access control operation of the first identity information on the target home device using the first home device according to the access control smart contract.
[0166] Optionally, the processor 13 is also used to search the target home device and the target access control authority corresponding to the target home device from the access control smart contract; if the target access control authority includes the access control operation, the target home device is controlled to complete the access control operation; if the target access control authority does not include the access control operation, the target home device is controlled not to respond to the access control operation.
[0167] Optionally, the processor 13 is further used to obtain geographic location information and connected network information of the first terminal when detecting that the first household device is connected to the network through the first terminal after receiving the loss information of the first household device; send a monitoring instruction to the first household device, and use the first household device to obtain environmental information within a preset range of the first household device; the environmental information includes sound information and / or image information; and locate the current position of the first household device based on the geographic location information, the network information and the environmental information.
[0168] Optionally, the processor 13 is further configured to send a function shut down instruction to the first home appliance after receiving the loss information of the first home appliance, so that the first home appliance shuts down its own function according to the function shut down instruction.
[0169] An embodiment of the present application provides a storage medium having a computer program stored thereon. The computer-readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors and applied in a device. The computer program implements the data processing method as described above.
[0170] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0171] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling an image display device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the data processing method described in each embodiment of the present disclosure.
[0172] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A data processing method, characterized in that, the method includes: when receiving the successful binding information of the first identity information to the first housing information, controlling the occupancy smart contract corresponding to the first housing information in the blockchain system to take effect; after the occupancy smart contract takes effect, determining the access control permission of the first identity information to the first housing information according to the successful binding information; activating the access control smart contract of the first housing information in the blockchain system according to the access control permission; the access control smart contract is the home appliances in the first housing information corresponding to the access of the access control permission; when receiving the access control request of the first identity information to the target home appliance, implementing the access control operation of the first identity information to the target home appliance according to the access control smart contract; wherein, the request type of the access control request is to control the first home appliance to access the target home appliance, and the implementing the access control operation of the first identity information to the target home appliance according to the access control smart contract includes: analyzing the access control request to obtain the second signature information of the first identity information, the third signature information of the first home appliance, and the second access control operation corresponding to the target home appliance; the first home appliance is a home appliance pre-added to the first housing information; performing signature verification on the second signature information and the third signature information respectively according to the first identity public key corresponding to the first identity information and the first device public key corresponding to the first home appliance in the blockchain system, and when the secondary signature verification is successful, implementing the second access control operation of the first identity information using the first home appliance to the target home appliance according to the access control smart contract.
2. The method according to claim 1, characterized in that, before controlling the occupancy smart contract corresponding to the first housing information in the blockchain system to take effect when receiving the successful binding information of the first identity information to the first housing information, the method further includes: when receiving the identity registration request of the first identity information, analyzing the identity registration request to obtain the first identity information, and generating the first identity public key, the first identity private key, and the first identity fingerprint identifier corresponding to the first identity information; storing the first identity public key and the first identity fingerprint identifier into the blockchain system, and returning the first identity private key and the first identity fingerprint identifier to the first identity information.
3. The method according to claim 2, characterized in that, before controlling the occupancy smart contract corresponding to the first housing information in the blockchain system to take effect when receiving the successful binding information of the first identity information to the first housing information, the method further includes: In the case of receiving a device addition request of a first home device, after parsing the device addition request, the first home device and the first house information corresponding to the first home device are obtained; and a first device public key, a first device private key, and a first device fingerprint identifier are generated according to the first home device. The first device public key, the first device fingerprint identifier, the first home device, and the first house information are correspondingly stored in the blockchain system, and the first device private key and the first device fingerprint identifier are returned to the first home device.
4. The method according to claim 2, wherein, the request type of the access control request is to access the target home device, and the access control operation of the first identity information on the target home device according to the access control smart contract includes: Parsing the access control request to obtain the first signature information of the first identity information and the first access control operation corresponding to the target home device; the first signature information is information generated after the first identity information uses the first identity private key to sign the first access control operation and the first identity fingerprint identifier stored in the first identity information. Search for the first identity public key corresponding to the first identity information in the blockchain system; and verify the signature of the first signature information using the first identity public key and the first identity fingerprint identifier stored in the blockchain system. In the case of successful signature verification, obtain the access control smart contract corresponding to the first identity information from the blockchain system. Implement the first access control operation of the first identity information on the target home device according to the access control smart contract.
5. The method according to claim 3, wherein, the request type of the access control request is to control the first home device to access the target home device, and the access control operation of the first identity information on the target home device according to the access control smart contract includes: Parsing the access control request to obtain the second signature information of the first identity information, the third signature information of the first home device, and the second access control operation corresponding to the target home device; the second signature information is information generated after the first identity information uses the first identity private key to sign the second access control operation and the first identity fingerprint identifier stored in the first identity information; the third signature information is information generated after the first home device uses the first device private key to sign the second access control operation and the first device fingerprint identifier stored in the first home device. Search for the first identity public key corresponding to the first identity information in the blockchain system; and perform a first signature verification on the second signature information using the first identity public key and the first identity fingerprint identifier stored in the blockchain system. In the case of successful signature verification once, find the first device public key corresponding to the first home device in the blockchain system; and use the first device public key and the first device fingerprint identifier stored in the blockchain system to perform secondary signature verification on the third signature information; In the case of successful secondary signature verification, obtain the access control smart contract corresponding to the first identity information from the blockchain system; Implement the second access control operation of the first identity information on the target home device using the first home device according to the access control smart contract.
6. The method according to claim 1, wherein, The implementing the access control operation of the first identity information on the target home device according to the access control smart contract includes: Find the target home device and the target access control permission corresponding to the target home device from the access control smart contract; If the target access control permission includes the access control operation, control the target home device to complete the access control operation; If the target access control permission does not include the access control operation, control the target home device not to respond to the access control operation.
7. The method according to claim 3, wherein, The method further includes: After receiving the loss information of the first home device and detecting that the first home device is connected to the network through the first terminal, obtain the geographical location information and the connected network information of the first terminal; Send a listening instruction to the first home device, and use the first home device to obtain the environmental information within the preset range of the first home device; the environmental information includes sound information and / or image information; Locate the current position where the first home device is located based on the geographical location information, the network information, and the environmental information.
8. The method according to claim 3, wherein, The method further includes: After receiving the loss information of the first home device, send a function closing instruction to the first home device for the first home device to close its own function according to the function closing instruction.
9. A data processing device, wherein, The device includes: A data processing module, configured to control the residence smart contract corresponding to the first house information in the blockchain system to take effect when receiving the successful binding information of the first identity information to the first house information; A determination module, configured to determine the access control permission of the first identity information to the first house information according to the successful binding information after the residence smart contract takes effect; The data processing module is further configured to activate the access control smart contract of the first house information in the blockchain system according to the access control permission; the access control smart contract is the home device in the first house information accessed corresponding to the access control permission; A control module, configured to implement the access control operation of the first identity information on the target home device according to the access control smart contract when receiving the access control request of the first identity information to the target home device; The request type of the access control request is to control the first home device to access the target home device, and the device further includes: a parsing module, configured to parse the access control request to obtain the second signature information of the first identity information, the third signature information of the first home device, and the second access control operation corresponding to the target home device; the first home device is a home device pre-added to the first house information; The control module is further used to verify the second signature information and the third signature information according to the first identity public key corresponding to the first identity information in the blockchain system and the first device public key corresponding to the first home device. When the second verification is successful, the second access control operation of the first identity information on the target home device using the first home device is implemented according to the access control smart contract.
10. A data processing device, It is characterized in that The device comprises: a processor, a memory and a communication bus; when the processor executes the running program stored in the memory, the method according to any one of claims 1 to 8 is implemented.
11. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Smart home equipment access control method based on block chain
CN111177695A