Digital key sharing method, digital key verification method and computing equipment
By introducing restrictions in the effective space and time dimensions in digital key sharing, the problem of difficulty in balancing security and convenience in existing technology is solved, more efficient digital key management is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202310371145.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-15
AI Technical Summary
During the digital key sharing process, it is difficult for existing technology to ensure security and convenience at the same time, especially due to insufficient restrictions in the space and time dimensions, resulting in poor user experience and the need to share digital keys multiple times.
By introducing valid space information and valid usage period information into the data structure of the digital key, and combining space and time dimension restrictions in the sharing and verification process, it is ensured that the digital key is only valid within the specified space and time, and avoids unnecessary sharing. and use.
It improves the security and convenience of digital keys, reduces the frequency that users need to share digital keys multiple times, and improves user experience.
Smart Images

Figure CN118784256A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things, and more specifically, to a method for sharing a digital key, a method for verifying a shared digital key, and a computing device. Background Art
[0002] With the rapid development of network technology, digital keys have gradually become popular. For example, digital keys are widely used in cars, company access control, home door locks, safes, bicycles and other scenarios.
[0003] As an example application, the digital key is a new product of improved automotive technology, which allows car owners to use mobile terminals, electronic bracelets, electronic watches and other devices as car keys, thereby realizing operations such as unlocking the vehicle, starting the car, and controlling the temperature inside the car without a physical key.
[0004] In many scenarios, it may be necessary to share a digital key from a first device to a second device so that the second device can be authorized to use the digital key to control the vehicle. For example, when the vehicle needs to be repaired, the owner needs to share the digital key with the repair / maintenance personnel. At this time, the device owned by the owner (such as a mobile terminal) needs to share the digital key with the device owned by the repair / maintenance personnel, so that the repair / maintenance personnel can use the shared digital key to control the vehicle.
[0005] On the other hand, security and convenience are aspects that need to be taken seriously in the process of digital key sharing. Therefore, a digital key sharing solution and a digital key verification solution that can meet the requirements of security and convenience are needed. Summary of the invention
[0006] According to one aspect of the present application, a method for sharing a digital key is provided, which is executed by a first device, and the method includes: sending a digital key creation request including valid space information for a digital key to a second device, for generating the digital key at the second device; receiving a digital key signature request from the second device, wherein the digital key signature request includes data to be signed for the digital key, and the data to be signed includes the valid space information; and based on completing the signing of the digital key signature request, sending a digital key import request to the second device to instruct the second device to save the generated digital key.
[0007] According to another aspect of the present application, a method for sharing a digital key is provided, which is performed by a first device, and the method includes: receiving a digital key creation request from the first device, the digital key creation request including valid space information for the digital key, wherein the valid space information is included in the validity configuration information sent from the first device to the second device; generating a digital key based on the valid space information, wherein the digital key includes the valid space information; sending a digital key signature request including data to be signed of the digital key to the first device, wherein the data to be signed includes the valid space information; and saving the generated digital key based on the digital key import request received from the first device.
[0008] According to another aspect of the present application, a method for verifying a shared digital key is provided, which is performed by the target object, and the method includes: receiving a key authentication request from a device providing the digital key, the key authentication request including the certificate and valid space information of the digital key; authenticating the certificate of the digital key; and determining whether the space requirements corresponding to the valid space information are met based on the usage location of the digital key.
[0009] According to another aspect of the present application, a method for sharing a digital key from a first device to a second device is provided, which is executed by a server, and the method includes: receiving a digital key creation request from the first device, wherein the digital key creation request includes location information of the first device for determining valid spatial information of the digital key or includes the valid spatial information; based on the valid spatial information, generating configuration information for generating the digital key at the second device, and sending the configuration information to the second device for generating the digital key at the second device, wherein the digital key includes the valid spatial information.
[0010] According to another aspect of the present application, a computing device is provided, comprising: a processor; and a memory on which computer-readable instructions are stored, and when the instructions are executed, the processor is caused to perform the method as described above.
[0011] According to another aspect of the present application, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes each step of the method as described above.
[0012] According to another aspect of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, each step of the method described above is implemented.
[0013] In the embodiments of the present application, it is proposed for the first time that by limiting the scope of use of the digital key from the spatial dimension, the security of the digital key can be improved from the spatial aspect. In addition, the security can be further improved by combining with the time dimension. In addition, by setting different effective spaces and / or different durations of use, multiple sharing of the digital key can be avoided, which improves convenience and thus enhances user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments of the present application or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present application.
[0015] Figure 1 A schematic diagram of a system for sharing a digital key between a first device and a second device according to an embodiment of the present application is shown.
[0016] Figure 2 A schematic diagram showing the data structure of a digital key.
[0017] Figure 3 A schematic diagram of an interface of an application showing a process of sharing a digital key between a first device and a second device according to an embodiment of the present application is shown.
[0018] Figure 4 A schematic diagram of an application scenario is shown for determining whether a digital key can be used to control a vehicle based on the effective space.
[0019] Figure 5 A schematic flow chart of a method for sharing a digital key according to an embodiment of the present application is shown.
[0020] Figure 6A-6B A schematic flow chart of a method for sharing a digital key according to an embodiment of the present application is shown.
[0021] Figure 7A-7C Examples of the relationship between the usage time and usage space of the digital key and the valid space and valid usage period are respectively shown.
[0022] Figure 8 A schematic diagram of a process for verifying a shared digital key according to an embodiment of the present application is shown.
[0023] Fig. 9 A process diagram of a digital key sharing method is exemplarily described, which shows a schematic diagram of interaction between a first device, a second device, and a target object.
[0024] Fig.10 A structural block diagram of a digital key sharing device according to an embodiment of the present application is shown.
[0025] Fig.11 A structural block diagram of a digital key sharing device according to an embodiment of the present application is shown.
[0026] Fig.12 A structural block diagram of a vehicle according to an embodiment of the present application is shown.
[0027] Fig.13 A structural block diagram of a server according to an embodiment of the present application is shown.
[0028] Fig.14 A schematic block diagram of a computing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. Figure 1 A schematic diagram of a system for sharing a digital key between a first device and a second device according to an embodiment of the present application is shown.
[0030] like Figure 1 As shown, the system includes a first device 100, a second device 200, a vehicle (as a specific example of a target object to be controlled by a digital key) 300, a first server 400 for the first device 100, a second server 500 for the second device 200, and a vehicle server for the vehicle 300. The first device 100 and the second device 200 can communicate directly in point-to-point or via a server.
[0031] For example, Figure 1As shown, the communication between the first device and the second device can be carried out via the link 2 between the first device and the first server, the link (3, 5) between the first server and the second server, and the link (4) between the second server and the second device. For example, the digital key can be shared with the second device, and the configuration information that can be set at the first device (such as the validity configuration information described later) can be provided to the second device, etc. The first device communicates with the first server 400 via line 2, and the second device communicates with the second server via line 4. The first device / second device can also communicate directly with the vehicle server via line 6 / line 7, or can communicate indirectly with the vehicle server via line 2 / line 3, line 4 / line 5 of their respective servers. The first server 400 and the second server 500 are each responsible for managing the life cycle (data cycle) of the digital key, and update, delete, suspend, and restore the certificates in the first device / second device via line 2 / line 4 respectively. Servers 400 and 500 can provide and update necessary certificates, load and install digital key instances, and allow services to disable and delete digital keys. The vehicle server 600 can create pairing passwords, sign public keys, provide certificates to devices, manage keys, provide necessary authentication data to sharers, issue legal sharer digital key structures, etc. In other words, the first server, the second server, and the vehicle server work together to jointly implement the sharing operation of the digital key from the first device to the second device.
[0032] The first device 100 and the second device 200 can each be various types of mobile electronic devices capable of data processing and transmission and reception, such as mobile phones, tablet computers, smart watches, smart bracelets, smart glasses and other devices, on which applications can be installed, so that they can interact with the server through the applications.
[0033] The server 400, 500 or 600 includes but is not limited to network hosts, single network servers, multiple network server sets or computer sets based on cloud computing, etc. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, wherein cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.
[0034] In the present application, a server (one or more of the first server 400, the second server 500 or the vehicle server, collectively referred to herein as a server) can be used to generate configuration information of a digital key, and send the configuration information of the digital key to a corresponding device for generating a digital key. Alternatively, the server can generate configuration information in response to a digital key creation request sent by the device, generate a corresponding digital key based on the configuration information, and then send the generated digital key to the corresponding device.
[0035] Optionally, when the first device and the second device share the data key through the same application, the first server 400 and the second server 500 may be the same server, and when the first device and the second device share the data key through different applications, the first server 400 and the second server 500 may be different servers with a communication link.
[0036] For example, the first device may send a digital key creation request to the server through an application, and the digital key creation request may include the identification information of the first device and the identification information of the vehicle, so that after receiving the information, the server generates configuration information after identity authentication and other processing and sends it to the first device. The first device may generate a digital key for controlling (e.g., unlocking) the vehicle based on the configuration information, wherein the digital key may be composed of a data structure.
[0037] When the first device needs to unlock the vehicle (smart vehicle), the generated digital key information is sent to the vehicle. After receiving the digital key information from the first device, the vehicle verifies the digital key information and unlocks the vehicle after the verification is passed.
[0038] When the second device needs to obtain the digital key shared by the first device, the second device can receive configuration information (from the server or from the first device), so that a second digital key similar to the first digital key of the first device can be generated at the second device. The specific process will be described later.
[0039] Further, Figure 2 A schematic diagram of the data structure of a digital key is shown. Optionally, the digital key may be composed of a data structure, which includes various information related to the digital key, such as certificate information for authentication, digital key valid use period information, signature information, etc.
[0040] For example, the data structure of the digital key (eg, the owner's digital key) generated at the first device is Figure 2 The left half shown (generally considered to be the digital key certificate) does not include information such as the effective usage period, and the data structure of the digital key at the second device (for example, the friend's digital key) includes Figure 2 The left and right parts of the data structure shown are Figure 2 The data structure in the right half is an additional part unique to the digital key at the second device, and the FriendPublicKey field and the DevicePublicKey field contain the same content, which is used to associate the two data structures. The content of the ValidityStart / End field indicates the valid start time and end time (i.e., valid usage period) of the digital key generated at the second device.
[0041] That is to say, in the above-mentioned digital key sharing process, in order to improve security, the validity of the digital key can be considered from the time dimension, that is, the digital key at the second device is only allowed to control the target object (such as a vehicle) within the valid usage period. If it is determined at the target object that the usage time of the digital key is not within the valid usage period, the target object refuses to be controlled by the digital key at the second device.
[0042] Figure 3 A schematic diagram of an interface of an application showing a process of sharing a digital key between a first device and a second device according to an embodiment of the present application is shown.
[0043] like Figure 3 As shown, a schematic diagram of the interface for sharing a digital key using an application at a first device is shown. For example, the valid period of use, the vehicle, and the second device (using the user ID of the second device) of the digital key to be shared can be set in the application at the first device, and the server generates validity configuration information (including valid period information) after the interaction between the application and the server, and then forms a comprehensive configuration information together with other configuration information, and sends the configuration information to the second device, so that a digital key with a corresponding valid period can be generated at the second device. Alternatively, the validity configuration information can also be generated locally at the first device, and the validity configuration information (including valid period information) is sent to the second device through point-to-point communication or via a server, so that it can be used to generate a digital key at the second device together with other configuration information locally or obtained from the server (for example, other configuration information pre-stored or pulled from the server in response to the usage information sent by the first device).
[0044] In many scenarios, in order to further improve security, during the digital key sharing process, the validity of the digital key can also be considered from a spatial dimension, that is, the digital key at the second device is only allowed to control the target object within the valid spatial range. If it is determined at the target object that the use location of the digital key is not within the valid spatial range, the target object refuses to be controlled by the digital key at the second device.
[0045] For example, Figure 4 As shown, the car owner shares the digital key with the repair and maintenance personnel, hoping that the repair and maintenance personnel can use the digital key within the repair shop, and the repair and maintenance personnel cannot use the digital key outside the repair shop (for example, a shopping mall).
[0046] Therefore, an embodiment of the present application also provides a solution for sharing digital keys based on the spatial dimension.
[0047] Figure 5A schematic diagram of a method for sharing a digital key according to an embodiment of the present application is shown. The method may be Figure 1 The first device shown is executed or at least partially executed by Figure 1 The server shown executes, and a digital key has been generated at the first device, and the digital key is shared with the second device. For example, the first device may be a vehicle owner's device, and the second device may be a maintenance and repair personnel's device.
[0048] like Figure 5 As shown, in step S510, a digital key creation request including valid spatial information for the digital key is sent to the second device to generate a digital key at the second device.
[0049] Optionally, it is possible, for example, via Figure 1 Path 2 / 3 / 5 / 4 in the first device sends the valid space information to the second device or directly sends it to the second device through point-to-point communication. The valid space information is information used to indicate the valid space that allows the use of the digital key (second digital key) generated at the second device, while the digital key (first digital key) generated at the first device may not have the valid space information. Figure 2 As shown in the left half of the data structure shown, because the digital key at the first device is used by the owner of the target object (e.g., a vehicle), it can control the target object at any time and any location.
[0050] Optionally, the valid space information may be determined based on the location of the first device, and may be determined by the first device or by a first server of the first device. In addition, the valid space information may be included in the validity configuration information.
[0051] Optionally, the absolute position on the ground can be used to indicate the valid space where the digital key is allowed to be used. For example, the shape of the projection area of the space on the ground (rectangle, square, circle, etc.) can be set, and the valid space can be set by the longitude and latitude of each feature point. For example, when the shape of the projection area is a rectangle, the longitude and latitude of the upper left vertex and the longitude and latitude of the lower right vertex can be used to set the valid space (the default height of the space is infinite).
[0052] For another example, in some scenarios, when the car owner goes to a repair shop, the location of the car owner's first device is generally not a predetermined location (e.g., a workplace or home, etc.), and only then does it need to determine the effective space information. Therefore, in response to determining that the location of the first device is not a predetermined location and the location of the first device is within the perimeter of a certain place (e.g., a repair shop or a 4S store), the effective space can be determined based on the perimeter of the place, and then the effective space information about the effective space can be included in the effectiveness configuration information.
[0053] For example, the space corresponding to the perimeter of the place where the first device is located can be directly used as the effective space, or the effective space can be obtained by adjusting (expanding or reducing) the perimeter of the place. For example, when a car owner goes to a repair shop to repair his car, the effective space can be set to the space corresponding to the perimeter of the repair shop.
[0054] For another example, in some scenarios, the perimeter of the location of the car owner's first device is unclear. For example, the first device is located on the side of the road. In this case, the perimeter of the location of the first device is difficult to determine. Therefore, the projection position of the first device on the ground can be used as a symmetry point, and the same or different preset distances can be moved to the surrounding areas (the height of the default space is infinite). Based on the obtained perimeter range, the effective space of the digital key is obtained, and then the effective space information about the effective space is included in the validity configuration information.
[0055] Optionally, the space corresponding to the perimeter of the place where the first device is located can be processed to make the perimeter more regular. For example, if the perimeter of some places is an ellipse, the ellipse can be processed by moving the center of the ellipse in four directions by the same or different preset distances (the height of the default space is infinite), and the effective space of the digital key is obtained based on the obtained perimeter, and then the effective space information about the effective space is included in the validity configuration information.
[0056] Optionally, after the first device determines the valid spatial information of the digital key based on the position of the first device, the first device may create validity configuration information (e.g., endpoint configuration, where endpoint is a common interface method in the art and has a standard configuration method), wherein the validity configuration information includes the determined valid spatial information. Alternatively, the first device may also send the position of the first device to a server, which determines the valid spatial information based on the position of the first device and creates the validity configuration information accordingly.
[0057] Accordingly, the second device may obtain the validity configuration information, and then obtain more configuration information for generating the digital key (for example, stored locally or obtained from a server), and generate the digital key at the second device based on the configuration information. For example, the generated digital key may have the following Figure 2 The data structure shown, and additionally, since the digital key generated by the second device also includes valid space information, the right half of the data structure should also include a column of information (eg, location) to indicate the valid space information of the digital key.
[0058] In step S520, a digital key signature request is received from the second device, wherein the digital key signature request includes the data to be signed of the digital key, and the data to be signed includes the valid space information.
[0059] For example, it is possible to Figure 1 Path 4 / 5 / 3 / 2 in the example sends the digital key signature request from the second device to the first device or directly via point-to-point communication.
[0060] For example, after a digital key is generated at the second device, for greater security, the first device is also required to sign and confirm the second digital key before it can be used to control the target object (vehicle). For example, the data to be signed that the second device can send to the first device may include valid space information of the generated digital key, and optionally the certificate of the generated digital key, identification information of the second device, user identity information of the second device, and the like.
[0061] In step S530, based on completing the signing of the digital key signature request, a digital key import request (as a digital key signature response) is returned to the second device to instruct saving of the generated digital key.
[0062] For example, it is possible to Figure 1 The path 2 / 3 / 5 / 4 in the above example sends the digital key import request from the second device to the first device or directly sends it to the first device via point-to-point communication. For example, the digital key import request may include valid space information of the digital key confirmed by the signature, etc. After receiving the digital key signature response, the second device may save the generated digital key so that it can be used to control the target object later.
[0063] Therefore, through Figure 5 The method described considers the validity of the digital key from a spatial dimension and improves the security of the digital key sharing process in terms of space.
[0064] Optionally, in some scenarios, after the digital key sharing process is completed, that is, after the digital key has been generated, in actual use, it may happen that the expected spatial range of use of the digital key (indicated by the effective spatial information of the digital key) is smaller than the actual spatial range of use. For example, the vehicle needs to be transported to a repair shop outside the 4S shop for complex repairs, but the expected spatial range of use is only preset to the perimeter of the 4S shop. Therefore, when the digital key is used in the repair shop, its usage location exceeds the expected spatial range of use and therefore cannot control the vehicle. The owner is required to share the digital key again, affecting the user experience.
[0065] Therefore, in some other embodiments, the validity configuration information may further include extended valid space information for the digital key, and after the second device acquires such validity configuration information, the generated digital key also includes the extended valid space information. That is, the digital key may also be used in the extended valid space corresponding to the extended valid space information.
[0066] Optionally, the extended effective space may be determined in a manner similar to the above determination of the effective space, and the spatial range of the extended effective space is larger than the spatial range of the effective space. The spatial range of the extended effective space is also within the range acceptable or expected by the user (owner) of the first device. For example, the repair shop is within 1 km of the 4S shop, so the extended effective space can be extended to the space 1 km around the perimeter of the 4S shop (the space is expressed in ground longitude and latitude or coordinates).
[0067] In this way, the digital key generated at the second device can correspond to two different ranges of effective spaces. When the usage position of the digital key is not within the smaller effective space, it can be further determined whether it is within the extended effective space.
[0068] In addition, according to different actual situations, a larger number of extended effective spaces can be set, and this application does not impose any restrictions on this.
[0069] Therefore, as described above, by setting effective spaces in different ranges, it is possible to avoid the first device from sharing the digital key multiple times, thereby improving the user experience.
[0070] Optionally, the validity of the digital key can also be considered from both the time dimension and the space dimension. In this case, the validity configuration information can also include valid use period information for the digital key. That is, after being combined with the previous valid space or the extended valid space, the digital key can also be used in the previous valid space or the extended valid space and within the valid use period.
[0071] Similarly, after the digital key sharing process is completed, that is, after the digital key has been generated at the second device, in actual use, it may happen that the expected usage time range of the digital key (indicated by the digital key's valid usage period information) is less than the actual usage time range. For example, the vehicle's maintenance requires a longer time than the maximum time of the expected usage time range. Therefore, when the digital key is used in a repair shop, its usage time exceeds the preset range and therefore cannot control the vehicle. The owner is required to share the digital key again, affecting the user experience.
[0072] Therefore, in order to prevent the first device from sharing the digital key multiple times, the validity configuration information may further include valid usage period information and extended valid usage period information for the digital key.
[0073] In this way, the digital key can correspond to two valid use periods of different lengths. When the usage time of the digital key is not within the valid use period of the shorter length and the usage location is within the valid space, it can be further determined whether it is within the extended valid use period of the longer length. For example, the valid use period of the shorter length is 13:00-18:00, and the extended valid use period of the longer length is 12:00-21:00. Alternatively, in some cases, the start time of the valid use period remains unchanged, and only the end time is extended, for example, the extended valid use period is 13:00-18:00.
[0074] The process of the digital key generated at the second device controlling the target object based on these valid space information and valid usage period information will be described in detail later.
[0075] Optionally, the digital key generated at the second device may have a Figure 2 The data structure of the certificate shown in the left half, and in addition, since the digital key also includes one or more of valid space information, extended valid space information, valid usage period information and extended valid usage period information, the data structure shown in the right half should also include corresponding information (for example, location, dynamic location, validity start / end and / or dynamicvalidity start / end) to indicate these spatial information and time information.
[0076] Therefore, as described above, by limiting the scope of use of the digital key from both the time dimension and the space dimension, the security of the digital key can be improved, and further, by setting effective spaces of different ranges and / or usage periods of different durations, it is possible to avoid the first device from sharing the digital key multiple times, thereby improving convenience and thus enhancing the user experience.
[0077] Figure 6A-6B A schematic diagram of a method for sharing a digital key according to an embodiment of the present application is shown. The method may be Figure 1 The second device shown is executed or at least partially executed by Figure 1 The server shown executes, and a digital key has been generated at the first device, and the digital key is shared with the second device. For example, the first device may be a vehicle owner's device, and the second device may be a maintenance and repair personnel's device.
[0078] like Fig. 6A As shown, in step S610, a digital key creation request is received from the first device, the digital key creation request includes valid space information for the digital key, wherein the valid space information is included in the validity configuration information sent to the second device.
[0079] In step S620, a digital key is generated based on the valid space information, wherein the digital key includes the valid space information.
[0080] In step S630, a digital key signature request including the data to be signed of the digital key is sent to the first device, wherein the data to be signed includes the valid space information.
[0081] In step S640, based on the digital key import request (digital key signature response) received from the first device, the generated digital key is saved.
[0082] Steps S610-640 are similar to those in the previous reference. Figure 5 The steps S510-530 described above correspond to the steps described above, so for more details, please refer to Figure 5 , so it will not be repeated here.
[0083] The following mainly describes the process of the second device controlling the target object using the generated digital key. The following steps can be performed by Figure 1 The second device or at least a part of the Figure 1 The server execution shown is executed.
[0084] For example, in step S650, a key authentication request is sent to the target object, and the key authentication request includes the valid space information.
[0085] Optionally, the second device may be Figure 1 The path 4 / 5 / 1 shown sends a key authentication request to the target object (vehicle) via the server of the target object (eg, the vehicle server 600) or direct point-to-point communication for authentication.
[0086] For example, a second device (eg, a mobile terminal of a repair and maintenance personnel) may send an unlock request to the vehicle, and notify the vehicle via the request that the digital key can only be used within the spatial range corresponding to the valid spatial information.
[0087] In step S660, a key authentication response is received from the target object, wherein the key authentication response indicates whether the usage location of the digital key meets the space requirement corresponding to the valid space information.
[0088] Accordingly, optionally, the second device may be Figure 1The path 1 / 5 / 4 shown receives a key authentication response from a target object (e.g., a vehicle) via a server of the target object (e.g., a vehicle server 600) or direct point-to-point communication. For example, after receiving the valid space information, the vehicle can determine its corresponding spatial range, and since the use position of the digital key is close to the vehicle position when unlocking the vehicle, the vehicle can use its own position as the estimated use position of the digital key, and determine whether the estimated use position is within the valid space indicated by the valid space information, that is, whether the use position of the digital key meets the spatial requirements corresponding to the valid space information, and return a key authentication response to the second device.
[0089] In addition, as mentioned above, the validity configuration information may also include the extended valid space information of the digital key, and correspondingly the digital key also includes the extended valid space information.
[0090] Therefore, method 600 may further include step S670 and step S680.
[0091] In step S670, in response to receiving a key authentication response from the target object indicating that the usage position of the digital key does not meet the space requirement corresponding to the valid space information, a second key authentication request is sent to the target object, and the second key authentication request includes the extended valid space information.
[0092] In step S680, a second key authentication response is received from the target object, wherein the second key authentication response indicates whether the usage location of the digital key meets the space requirement corresponding to the extended effective space information.
[0093] That is to say, when the usage position of the digital key fails to meet the current space requirements for the first time and is unable to control the target object, the second device can update the effective space information (i.e., use the extended effective space information) and send a key authentication request again to notify the target object that its effective space has been updated and expanded, so that the target object can determine whether the usage position of the digital key meets the updated space requirements based on the updated extended effective space.
[0094] Optionally, after updating the effective space information, the second device may notify the first device that it has used the extended effective space information. For example, the second device may send a notification message to the first device through point-to-point communication; or send a notification message to the first device through a server, for example, the second server of the second device may send a notification message to the server of the target object, and then the server of the target object may send the notification message to the first server of the first device, and finally the first server may send the notification message to the first device, and so on.
[0095] In addition, the effective space information and the extended effective space information may be sent to the target object at one time, for example, through a key authentication request.
[0096] In this case, steps S650-680 may be replaced by the following steps.
[0097] In step S650', a key authentication request is sent to the target object, wherein the key authentication request includes the valid space information and the extended valid space information; and in step S660', a key authentication response is received from the target object, wherein the key authentication response indicates whether the usage location of the digital key meets the space requirement corresponding to the valid space information, or whether it meets the space requirement corresponding to the extended valid space information.
[0098] For example, after receiving the valid space information and the extended valid space information, the target object can determine their respective corresponding spatial ranges, and then the target object can first determine whether the estimated usage position of the digital key is within the valid space indicated by the valid space information, that is, whether the usage position of the digital key meets the spatial requirements corresponding to the valid space information. If so, a key authentication response indicating that the spatial requirements are met is returned to the second device; conversely, the target object can further determine whether the estimated usage position of the digital key is within the extended valid space indicated by the extended valid space information, that is, whether the usage position of the digital key meets the spatial requirements corresponding to the extended valid space information, and return a key authentication response indicating whether the spatial requirements are met. At this time, the key authentication response can also simultaneously indicate that the usage position of the digital key does not meet the spatial requirements corresponding to the valid space information.
[0099] Optionally, as described above, the validity configuration information may also include the valid period information of the digital key, or may also include both the valid period information and the extended valid period information. Accordingly, the digital key generated at the second device may also include the valid period information, or may also include both the valid period information and the extended valid period information.
[0100] In this case, in addition to the valid space information and the extended valid space information described above, at least one of valid use period information and an extended valid use period may be included in the validity configuration information.
[0101] For example, the following situations can be considered:
[0102] Case 1: the validity configuration information includes valid space information and valid usage period information;
[0103] Case 2: the validity configuration information includes valid space information, extended valid space information and valid use period information;
[0104] Case 3: the validity configuration information includes valid space information, valid use period information and extended valid use period information; and
[0105] Case 4: the validity configuration information includes valid space information, extended valid space information, valid use period information and extended valid use period information.
[0106] Correspondingly, the digital key generated at the second device also includes this information, so when the second device sends a key authentication request to the target object, different spatial information and / or different time information can be included in the key authentication request according to different situations.
[0107] For example, as shown in case 2, the second device may first send a first key authentication request to the target object, the first key authentication request including valid space information and valid usage period information; and in response to receiving a key authentication failure response from the target object indicating that the usage position of the digital key does not meet the space requirement corresponding to the valid space information (and the usage time of the digital key meets the time requirement corresponding to the valid usage period information), send a second key authentication request to the target object, the second key authentication request including extended valid space information (optionally also including the valid usage period information again, or not); and receive a second key authentication response from the target object, wherein the second key authentication response indicates whether the usage position of the second digital key meets the space requirement corresponding to the extended valid space information. If the space requirement corresponding to the extended valid space information is met and the time requirement is still met, the digital key of the second device is allowed to control the target object.
[0108] Alternatively, in response to receiving a key authentication failure response from the target object indicating that the usage time of the digital key does not satisfy the time requirement corresponding to the valid usage period information (regardless of whether the usage location of the digital key satisfies the valid space information or the space requirement corresponding to the extended valid space), since the digital key at the second device does not include the extended valid usage period information, the second device will no longer send a second key authentication request to the target object. At this time, the digital key of the second device is prohibited from controlling the target object.
[0109] Alternatively, in response to receiving a successful key authentication response from the target object indicating that the usage location of the digital key meets the spatial requirement corresponding to the valid spatial information and the usage time of the digital key meets the time requirement corresponding to the valid usage period information, that is, the digital key authentication of the second device is successful, and therefore the digital key of the second device is allowed to control the target object.
[0110] Of course, the second device can include all information (valid space information, extended valid space information and valid usage period information for situation 2) when sending a key authentication request to the target object for the first time. In this way, one or two judgments can be made on the destination object side without the need to send the key authentication request again subsequently, thereby reducing signaling overhead.
[0111] For example, for situation 2, after receiving the key authentication request, the target object can first determine whether the usage location of the digital key meets the spatial requirement corresponding to the valid spatial information and whether the usage time meets the time requirement corresponding to the valid usage period information. If both the spatial requirement and the time requirement are met, the digital key is allowed to control the target object; if the time requirement is not met (regardless of whether the spatial requirement is met), the digital key is prohibited from controlling the target object (since there is no extended valid usage period information); if the time requirement is met but the spatial requirement is not met, it is further determined whether the usage location of the digital key meets the updated spatial requirement corresponding to the extended valid spatial information, and if the updated spatial requirement is met and the time requirement is still met, the digital key is allowed to control the target object.
[0112] In other cases, the interaction process between the second device and the target object is similar. For example, if one of the two requirements mentioned above (i.e., the space requirement and the time requirement) cannot be updated (i.e., the digital key does not include the corresponding extended information), then when this requirement cannot be met, the digital key is prohibited from controlling the target object; if one of the requirements is not currently met but can be updated and the other requirement is met, it is further determined whether the updated requirement is met, and when the updated requirement is met and the other requirement is still met, the digital key is allowed to control the target object; if both requirements can be updated but are not currently met, it is further determined whether both updated requirements are met, and when both updated requirements are met, the digital key is allowed to control the target object.
[0113] For example, Figure 7A-7C Examples of the relationship between the usage time and usage space of the digital key and the valid space and valid usage period are respectively shown.
[0114] For example, in Fig. 7A In the example, the usage time of the digital key is within the first valid usage period, but the usage location is outside the first valid space. After the space requirements are updated based on the extended valid space information, the usage location is within the updated second valid space and the usage time is still within the first valid usage period, so the digital key can control the target object.
[0115] For example, in Figure 7BIn the embodiment, the usage time of the digital key is outside the first valid usage period, and the usage location is within the first valid space. After the time requirement is updated based on the extended valid usage period information, the usage time is within the updated second valid usage period and the usage location is still within the first valid space, so the digital key can control the target object.
[0116] For example, in Figure 7C In the embodiment, the usage time of the digital key is outside the first valid usage period, and the usage location is also outside the first valid space. After the space requirement is updated based on the extended valid space information and the time requirement is updated based on the extended valid usage period information, the usage time is within the updated second valid usage period and the usage location is within the updated second valid space, so the digital key can control the target object.
[0117] Therefore, as described above, by sending a key authentication request to the target object through the second device and passing the authentication at the target object, the digital key can achieve secure control of the target object.
[0118] Figure 8 The flowchart of a method for verifying a shared digital key according to an embodiment of the present application is shown. The method can be performed by the target object or the target object's server or both. For example, Figure 1 The process is executed by the vehicle shown (hereinafter taken as an example) or at least a part thereof is executed by a vehicle server.
[0119] like Figure 8 As shown, in step S810, a key authentication request is received from a device that provides the digital key, and the key authentication request includes the digital key certificate and valid space information.
[0120] For example, you can Figure 1 The illustrated path 4 / 5 / 1 or direct peer-to-peer communication receives the key authentication request from the second device providing the shared digital key.
[0121] In step S820, the certificate of the digital key is authenticated.
[0122] The data structure of the digital key certificate can be referred to as above Figure 2 As shown in the left half of , various relevant information of the digital key for verification or authentication is included. Optionally, the authentication process may include the target object performing an authentication operation or the target object's server performing an authentication operation.
[0123] In step S830, it is determined whether the space requirement corresponding to the valid space information is met based on the usage position of the digital key.
[0124] Optionally, when the space requirement is not met and the extended effective space information of the digital key has been obtained, it is determined whether the space requirement corresponding to the extended effective space information is met based on the use position of the digital key. In this way, when the space requirement corresponding to the extended effective space information is met, the digital key is allowed to control the target object, otherwise the digital key is prohibited from controlling the target object.
[0125] As previously referenced Figure 6A-6B The extended effective space information obtained from the device may be obtained from a key authentication request received from the device for the first time, or may be obtained from a key authentication request received from the device for the second time.
[0126] Optionally, as described above, the key authentication request may also include valid period information, so that the target object can determine whether the time requirement corresponding to the valid period information is met based on the usage time of the digital key. In this case, if at least one of the space requirement and the time requirement is not met, the digital key is prohibited from controlling the target object.
[0127] Generally, in order to ensure security, a general digital key needs to be used within the valid space and valid period of use. Therefore, the digital key generally generated will include relevant information about the valid space and relevant information about the valid period of use, and when requesting authentication of the target object, the key authentication request sent will also include relevant information about the valid space and relevant information about the valid period of use. Of course, in the case of less stringent security requirements, only one of the relevant information about the valid space and the relevant information about the valid period of use may be included.
[0128] The following description is based on the fact that the key authentication request includes relevant information about the effective space (effective space information and / or extended effective space information) and relevant information about the effective use period (effective use period information and / or extended effective use period information).
[0129] For example, the key authentication request also includes at least one of the extended valid space information and the extended valid use period information of the digital key, so the method 800 may also include step S840: when the space requirement (valid space information) is not met and the time requirement (valid use period information) is met, and the extended valid space information has been obtained (for example, from the device that sent the key authentication request), determine whether the space requirement corresponding to the extended valid space information is met based on the usage location of the digital key. In this way, when the space requirement corresponding to the extended valid space information is met and the time requirement is still met, the digital key is allowed to control the target object, otherwise the digital key is prohibited from controlling the target object.
[0130] Alternatively, the method 800 may further include step S850: when the space requirement is satisfied and the time requirement is not satisfied, and the extended effective use period information has been acquired, determining whether the time requirement corresponding to the extended effective use period information is satisfied based on the use time of the digital key. In this way, when the time requirement corresponding to the extended effective use period information is satisfied and the space requirement is still satisfied, the digital key is allowed to control the target object, otherwise the digital key is prohibited from controlling the target object.
[0131] Alternatively, the method 800 may further include step S860: when both the space requirement and the time requirement are not met and the extended effective space information and the extended effective use period information have been acquired, determining whether the space requirement corresponding to the extended effective space information and the time requirement corresponding to the extended effective use period information are both met based on the use location and use time of the digital key. Thus, when both the updated time requirement and the space requirement are met, the digital key is allowed to control the target object, otherwise the digital key is prohibited from controlling the target object.
[0132] Optionally, as referenced Figure 6A-6B As described above, the obtained extended valid space information or extended valid usage period information may be obtained from the key authentication request received from the device for the first time, or may be obtained from the key authentication request received from the device for the second time.
[0133] Therefore, through the above-mentioned method executed at the target object, the digital key can achieve secure control of the target object, and because the extended effective space information and / or effective usage period information is added, repeated sharing of the digital key can be avoided, which also improves convenience and thus enhances the user experience.
[0134] It should be noted that in the foregoing embodiments, in particular Figure 5 In the illustrated embodiment, the process of digital key sharing is schematically described with the first device and the second device as the execution entities, and involves point-to-point communication between the first device and the second device and communication via the server. However, at least a part of the digital key sharing process as described above performed at the first device and the second device can be implemented by a server. The server can be a single server, or it can include a first server for the first device, a second server for the second device, and a server for the target object. For convenience, the server is described as a single server. The following introduces some operations on the server side regarding digital key sharing.
[0135] First, the server may receive a digital key creation request from the first device (eg, via Figure 1The path 7 shown is either path 2 / 3 (vehicle server) or via path 2 (first server) or via path 2 / 3 / 5 / 4 (second server), wherein the digital key creation request includes location information of the first device for determining the valid spatial information of the digital key or includes the valid spatial information.
[0136] This process may correspond to the process of step S510 above. Therefore, the process of determining the effective spatial information based on the location of the first device may refer to the above description. Optionally, the effective spatial information may be determined by the server, and in this case, the digital key creation request may only include the location information of the first device, so that the effective spatial information is determined in the server based on the location information of the first device.
[0137] Optionally, the digital key creation request may also include identification information of the target object and identification information of the second device (e.g., identification information of the user of the second device). For example, the first device (e.g., the vehicle owner's device) may have generated a digital key (the first digital key, or the digital key to be shared) that can be used without restriction based on the first configuration information from the server, and then request the server to allow the second device to control the vehicle, so the server may be notified to share relevant information, such as the identification of the object to be shared, i.e., the second device, the identification of the object to be controlled (e.g., the vehicle), and information about the location where the digital key is allowed to be used.
[0138] Then, the server may generate configuration information for generating the digital key on the second device based on the valid space information.
[0139] Optionally, configuration information for generating a digital key at the device is generated at the server.
[0140] Optionally, since the digital key generation at the device needs to obtain configuration information from the server, the server can save the configuration information of the generated digital key. Figure 2 As shown, the data structures of the digital key at the second device and the digital key at the first device have the same part (left half), and the digital key generated at the second device has an additional part (right half), so second configuration information for the digital key at the second device can be generated based on at least part of the configuration information of the first digital key and the received information related to the sharing process.
[0141] Then, the server may send the second configuration information to the second device to generate a digital key at the second device. Alternatively, the server may generate a digital key based on the second configuration information, and then send the generated digital key to the second device, and save it after signing and confirming it at the server or the first device as described later. The digital key includes the valid space information, that is, the digital key at the second device can be used within the space range corresponding to the determined valid space information. For example, Figure 1 In the embodiment, if the second configuration information is generated at the vehicle server, it is sent to the second device via path 5 / 4 or path 6; if it is generated at the first server, it is sent to the second device via path 3 / 5 / 4 or path 3 / 6; and if it is generated at the second server, it is sent to the second device via path 4.
[0142] In addition, on the other hand, the server may also receive a digital key signature request from the second device, wherein the digital key signature request includes the data to be signed of the digital key generated at the second device, and the data to be signed includes the valid space information.
[0143] This process may correspond to the process of step S520 described above.
[0144] Then, the server can also sign and confirm the digital key signature request and send a digital key import request to the second device, or forward the digital signature request to the first device for signature confirmation by the first device and then receive the digital key import request from the first device, and send a digital key import request to the second device to instruct the second device to save the generated second digital key.
[0145] This process may correspond to the process of the above step S530.
[0146] Optionally, the digital key creation request may also include valid usage period information, so the server further generates the configuration information based on the valid usage period, and the digital key generated by the second device also includes the valid usage period.
[0147] Optionally, the digital key creation request may also include at least one of extended valid space information and extended valid usage period information, so the server further generates the configuration information based on the at least one of the extended valid space information and the extended valid usage period information, and the digital key at the second device also includes the at least one of the extended valid space information and the extended valid usage period information.
[0148] That is to say, the communication and interaction between the first device and the second device as described above can be completed through one or more servers, and at least part of the operations at the first device or the second device can be performed by the one or more servers, and this application does not impose any restrictions on this.
[0149] Fig. 9 A process diagram of a digital key sharing method is exemplarily described, which shows a schematic diagram of interaction between a first device, a second device, and a target object. Fig. 9 The example in which the validity configuration information includes the valid space information, the valid usage period information and the extended valid space information is used for explanation.
[0150] It should be noted that although Fig. 9 It is shown that there is direct communication between devices and between devices and between devices and vehicles, but it should be understood that this can also include communication via a server.
[0151] like Fig. 9 As shown, in process 1, the first device (eg, the vehicle owner's device) triggers the digital key sharing function, for example, in response to user input.
[0152] In process 2, the first device obtains the current position, and then in process 3, the first device determines whether the current position is a predetermined position (such as a permanent position). If it is not a predetermined position, the corresponding perimeter range is obtained in process 4 to determine the effective spatial information for the digital key and the extended effective spatial information.
[0153] In process 5, the first device creates validity configuration information (eg, endpoint configuration), the validity configuration information including valid space information and extended valid space information.
[0154] In process 6, the first device sends a digital key creation request to the second device, and the request may include validity configuration information.
[0155] In process 7, the second device obtains validity configuration information, thereby obtaining valid space information and extended valid space information, and then generates a digital key based on the valid space information. The data structure of the digital key includes the digital key certificate and the valid space information and extended valid space information.
[0156] In process 8, the second device sends a digital key signing request to the first device, where the request includes the digital key certificate and the valid space information and the extended valid space information.
[0157] In process 9, the first device performs signature confirmation on the certificate of the digital key received from the second device and the valid space information and the extended valid space information.
[0158] In process 10, the first device sends a digital key import request, which includes the certificate of the digital key received from the second device and the valid space information and extended valid space information. The request can be regarded as a response to a sharing confirmation indication or a signature request.
[0159] In process 11, the second device saves the certificate of the digital key generated at the second device and the valid space information and the extended valid space information.
[0160] In process 12, the second device sends a digital key authentication request to the vehicle, where the request includes valid usage period information and valid space information of the digital key generated at the second device.
[0161] In process 13, the vehicle determines whether the time requirements and space requirements corresponding to the valid usage period information and the valid space information are met. If not, it further determines in process 14 that the time requirement is met and the space requirement is not met. Then, in process 15, the vehicle returns a digital key authentication response to the second device, and the response indication includes that the space requirement is not met.
[0162] In process 16, the second device updates the valid space of the digital key according to the extended valid space information in the generated digital key.
[0163] Optionally, after updating the effective space of the digital key, the second device sends a notification message to the first device, notifying the first device that the effective space of the digital key at the second device has been dynamically expanded. For example, the second device can send the notification message to the first device through point-to-point communication, or send it to the vehicle server through the server of the second device, and then send it to the first device server by the vehicle server, and finally send it to the first device server by the first device server.
[0164] In process 17, the second device sends a digital key authentication request to the vehicle again, and the request includes valid usage period information (corresponding to the unupdated valid usage period) and extended valid space information (corresponding to the updated valid space).
[0165] In process 18, it is determined whether the time requirements and space requirements corresponding to the valid usage period information and the valid space information are met. If both are met, the digital key authentication is passed in process 19 and can be used to control the vehicle, and an authentication response is returned in process 20.
[0166] Of course, the above process 12-20 is based on sending digital key authentication requests multiple times to complete the digital key authentication including the extended valid space information, but it should be understood that, as mentioned earlier, the extended valid space information, the valid space information and the valid usage period information can be sent to the vehicle when the digital key authentication request is sent for the first time.
[0167] In addition, Fig. 9 In the figure, it is schematically shown that the first device, the second device and the vehicle are communicating and interacting directly, but it should be understood that the communication interaction between them can still be completed based on the communication interaction between their respective servers, and at least part of the operations of the first device, the second device and the vehicle can also be performed by their corresponding servers, and the present disclosure does not limit this.
[0168] Therefore, by limiting the scope of use of the digital key from both the time dimension and the space dimension, the security of the digital key can be improved. Furthermore, by setting effective spaces of different ranges and / or usage periods of different durations, it is possible to avoid the first device from sharing the digital key multiple times, thereby improving convenience and thus enhancing the user experience.
[0169] According to another aspect of the present application, an electronic device is also provided.
[0170] Fig.10 The structure block diagram of the digital key sharing device according to the embodiment of the present application is shown. The electronic device may be Figure 1 The first device or the first server in.
[0171] like Fig.10 As shown, the apparatus 1000 may include a sending module 1010, a receiving module 1020, and a processing module 1030. Optionally, the sending module 1010 and the receiving module 1020 may be implemented by one transceiver module.
[0172] The sending module 1010 may send a digital key creation request including valid spatial information for a digital key to the second device, for generating the digital key at the second device.
[0173] The receiving module 1020 may receive a digital key signature request from the second device, wherein the digital key signature request includes the data to be signed of the digital key, and the data to be signed includes the valid space information.
[0174] The processing module 1030 can perform signature confirmation on the received digital key signature request, and based on completing the signature on the digital key signature request, send a digital key import request to the second device through the sending module 1010 to instruct the second device to save the generated digital key.
[0175] Optionally, the processing module 1030 may further determine the valid space information based on the position of the first device, wherein the sending module 1010 may include the valid space information in the validity configuration information sent from the first device to the second device.
[0176] Optionally, the validity configuration information also includes extended valid space information for the digital key, so that the digital key generated at the second device includes the extended valid space information.
[0177] Optionally, the validity configuration information also includes valid period information for the digital key, so that the digital key generated at the second device also includes valid period information; or the validity configuration information also includes valid period information and extended valid period information for the digital key, and the digital key also includes the valid period information and the extended valid period information.
[0178] For more details on the operations performed by each module, please refer to the previous Figure 5 , so it will not be repeated here.
[0179] Fig.11 The structure block diagram of the digital key sharing device according to the embodiment of the present application is shown. The electronic device may be Figure 1 Optionally, the sending module 1110 and the receiving module 1120 may be implemented by a transceiver module.
[0180] like Fig.11 As shown, the apparatus 1100 may include a sending module 1110 , a receiving module 1120 , and a processing module 1130 .
[0181] The receiving module 1120 may receive a digital key creation request from the first device, wherein the digital key creation request includes valid space information for the digital key, wherein the valid space information is included in validity configuration information sent from the first device to the second device.
[0182] The processing module 1130 may generate a digital key based on the valid spatial information, wherein the digital key includes the valid spatial information.
[0183] The sending module 1110 may send a digital key signature request including the data to be signed of the digital key to the first device, wherein the second data to be signed includes valid space information.
[0184] The processing module 1130 may also save the generated second digital key based on the digital key import request (digital key signature response) received from the first device.
[0185] After the digital key sharing process is completed, the target object needs to authenticate the digital key so that the digital key can control the target object.
[0186] For example, the sending module 1110 may also send a key authentication request to the target object, wherein the key authentication request includes the valid space information. The receiving module 1120 may also receive a key authentication response from the target object, wherein the key authentication response indicates whether the usage location of the digital key meets the space requirement corresponding to the valid space information.
[0187] Optionally, in the case of some of the situations described above, when the space requirements and / or time requirements need to be updated at the second device, the processing module 1130 or the sending module 1110 can generate a second digital key authentication request, and include extended valid space information and / or extended valid usage period information in the request.
[0188] For more details on the operations performed by each module, please refer to the previous FIG. 6A to FIG. 7B , so it will not be repeated here.
[0189] Fig.12 A structural block diagram of a vehicle according to an embodiment of the present application is shown. The vehicle may be Figure 1 Vehicles in.
[0190] like Fig.12 As shown, the vehicle 1200 may include a vehicle body 1210 and a control system 1220, and the control system 1220 may include a sending module 1220-1, a receiving module 1220-2, and a processing module 1220-3. The control system of the vehicle 1200 may operate in coordination with a vehicle server.
[0191] For example, the receiving module 1220-2 may receive a key authentication request from a device that provides the digital key (eg, from the second device or from a server of the second device via a vehicle server), the key authentication request including a certificate and valid space information of the digital key.
[0192] The processing module 1220 - 3 may authenticate the certificate of the digital key, and determine whether the space requirement corresponding to the valid space information is met based on the usage location of the digital key.
[0193] Optionally, when the processing module 1220-3 or the vehicle server determines that the space requirement is not met, the sending module 1220-1 may send a key authentication response to the second device to indicate whether the usage location of the digital key meets the space requirement corresponding to the valid space information.
[0194] For more details on the operations performed by each module, please refer to the previous Figure 6A-Figure 8 , so it will not be repeated here.
[0195] Fig.13A structural block diagram of a server according to an embodiment of the present application is shown. The server may be Figure 1 Any server or servers collectively in a.
[0196] like Fig.13 As shown, each of the one or more servers 1300 may include a sending module 1310 , a receiving module 1320 , and a processing module 1330 .
[0197] The receiving module 1320 may receive a digital key creation request from a first device, wherein the digital key creation request includes location information of the first device used to determine valid spatial information of the digital key or includes the valid spatial information.
[0198] The processing module 1330 may generate configuration information for generating the digital key at the second device based on the effective space information.
[0199] The sending module 1330 may send the configuration information to the second device, so as to generate the digital key at the second device, wherein the digital key includes the valid space information.
[0200] Optionally, the receiving module 1320 may also receive a digital key signature request from the second device, wherein the digital key signature request includes the data to be signed of the digital key generated at the second device, and the data to be signed includes the valid space information. The processing module 1330 may also perform signature confirmation on the digital key signature request and send a digital key import request to the second device through the sending module 1310. Alternatively, the sending module 1310 may forward the digital signature request to the first device and after the receiving module 1320 receives the digital key import request from the first device, the sending module 1310 sends a digital key import request to the second device to instruct the second device to save the generated second digital key.
[0201] For more details on the operations performed by each module, please refer to the previous Figure 5-Figure 8 , so it will not be repeated here.
[0202] In addition, although Figures 10 to 13The above modules are shown in an exemplary manner, but it should be understood that each device can also be divided into more sub-modules according to different functions, or each module can be combined into a new module. In some example embodiments, a module or its sub-module can be implemented with electronic hardware (e.g., a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc.), computer software (e.g., can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable ROM (EPROM), etc.), or a combination of the two.
[0203] Fig.14 A schematic block diagram of a computing device according to an embodiment of the present application is shown. The computing device may be as follows Figure 1 The first device (or first server), the second device (or second server) or the vehicle is shown.
[0204] like Fig.14 As shown, the computing device 1400 includes one or more processors, one or more memories, a network interface, an input device, and a display screen connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the terminal stores an operating system, and may also store a computer executable program, which, when executed by the processor, enables the processor to implement various operations of the digital key sharing method or the method of controlling the target object using a digital key as described above. The internal memory may also store a computer executable program, which, when executed by the processor, enables the processor to perform various operations of the digital key sharing method or the method of controlling the target object using a digital key.
[0205] The processor can be an integrated circuit chip with signal processing capabilities. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can be an X84 architecture or an ARM architecture.
[0206] The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. It should be noted that the memory of the methods described herein is intended to include, but is not limited to, these and any other suitable categories of memory.
[0207] The display screen of the computing device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computing device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the terminal shell, or an external keyboard, touchpad or mouse.
[0208] The computing device may be a terminal or a server. The terminal may include but is not limited to: smart phones, tablet computers, laptops, desktop computers, smart TVs, etc.; various clients (applications, APPs) may run in the terminal, such as multimedia playback clients, social clients, browser clients, information flow clients, educational clients, etc. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0209] According to another aspect of the present application, a computer-readable storage medium is also provided, storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the digital key sharing method or the method of controlling a target object using a digital key as described above.
[0210] According to another aspect of the present application, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the steps of the digital key sharing method or the method of controlling a target object using a digital key as described above.
[0211] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the methods and devices according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of the code contains at least one executable instruction for realizing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0212] The exemplary embodiments of the present application described in detail above are merely illustrative and not restrictive. It should be understood by those skilled in the art that various modifications and combinations may be made to these embodiments or their features without departing from the principles and spirit of the present application, and such modifications should fall within the scope of the present application.
Claims
1. A method for sharing a digital key, performed by a first device, the method comprising: sending a digital key creation request including valid spatial information for a digital key to a second device for generating the digital key at the second device; receiving a digital key signature request from a second device, wherein the digital key signature request includes data to be signed of the digital key, and the data to be signed includes the valid space information; and Based on completing the signing of the digital key signature request, a digital key import request is sent to the second device to instruct the second device to save the generated digital key.
2. The method according to claim 1, further comprising: Before sending the digital key creation request, determining the valid space information based on the position of the first device, The valid space information is included in validity configuration information sent from the first device to the second device.
3. The method according to claim 2, wherein: Determining the valid spatial information based on the position of the first device includes: In response to determining that the location of the first device is not a predetermined location and the location of the first device is within a perimeter of a place, determining an effective space for the digital key based on the perimeter of the place; Valid space information about the valid space is included in the validity configuration information.
4. The method according to claim 2, wherein: Determining the valid spatial information based on the position of the first device includes: Taking the position of the first device as a symmetrical point, move the same or different preset distances to the surrounding areas, and the resulting perimeter range is the effective space for the digital key; Valid space information about the valid space is included in the validity configuration information.
5. The method according to claim 2, wherein: The validity configuration information also includes extended validity space information for the digital key, and The digital key includes the extended effective space information.
6. The method according to claim 1, wherein: The validity configuration information further includes valid usage period information for the digital key, and the digital key further includes the valid usage period information; or The validity configuration information further includes valid usage period information and extended valid usage period information for the digital key, and the digital key further includes the valid usage period information and the extended valid usage period information.
7. The method according to claim 5, wherein: When the usage position of the digital key does not meet the space requirement corresponding to the valid space information, the extended valid space information is used to determine whether the usage position of the digital key meets the space requirement corresponding to the extended valid space information.
8. The method according to claim 6, wherein: When the usage location of the digital key meets the space requirement corresponding to the valid space information, and the usage time of the digital key does not meet the time requirement corresponding to the valid usage period information, the extended valid usage period information is used to determine whether the usage time of the digital key meets the time requirement corresponding to the extended valid usage period information.
9. A method for verifying a shared digital key, performed by the target object, the method comprising: receiving a key authentication request from a device providing the digital key, the key authentication request including a certificate and valid space information of the digital key; authenticating the certificate of the digital key; Based on the usage position of the digital key, it is determined whether the space requirement corresponding to the valid space information is met.
10. The method according to claim 9, further comprising: In a case where the space requirement is not met and the extended valid space information of the digital key is acquired, it is determined whether the space requirement corresponding to the extended valid space information is met based on the use position of the digital key.
11. The method according to claim 9, wherein the key authentication request further includes valid period information. The method further comprises: Based on the usage time of the digital key, it is determined whether the time requirement corresponding to the valid usage period information is satisfied.
12. The method according to claim 11, further comprising: If at least one of the space requirement and the time requirement is not satisfied, the digital key is prohibited from controlling the target object.
13. The method according to claim 11, further comprising: When the space requirement is not met and the time requirement is met, and the extended valid space information is acquired, it is determined whether the space requirement corresponding to the extended valid space information is met based on the use position of the digital key.
14. The method according to claim 11, further comprising: In a case where the space requirement is satisfied and the time requirement is not satisfied, and the extended valid usage period information is acquired, it is determined whether the time requirement corresponding to the extended valid usage period information is satisfied based on the usage time of the digital key.
15. The method according to claim 11, further comprising: When both the space requirement and the time requirement are not met and the extended valid space information and the extended valid usage period information are obtained, it is determined based on the usage location and usage time of the digital key whether the space requirement corresponding to the extended valid space information and the time requirement corresponding to the extended valid usage period information are both met.
16. A method for sharing a digital key from a first device to a second device, performed by a server, the method comprising: receiving a digital key creation request from a first device, wherein the digital key creation request includes location information of the first device for determining valid spatial information of the digital key or includes the valid spatial information; generating configuration information for generating the digital key at the second device based on the effective space information, The configuration information is sent to the second device for generating the digital key at the second device, wherein the digital key includes the valid space information.
17. The method according to claim 16, further comprising: receiving a digital key signature request from the second device, wherein the digital key signature request includes data to be signed of the digital key generated at the second device, and the data to be signed includes the valid space information; and Sign and confirm the digital key signature request, and send a digital key import request to the second device, or after forwarding the digital signature request to the first device and receiving the digital key import request from the first device, send a digital key import request to the second device to instruct the second device to save the generated second digital key.
18. The method according to claim 16, wherein: The digital key creation request also includes valid usage period information, the server further generates the configuration information based on the valid usage period, and the digital key generated by the second device also includes the valid usage period information.
19. The method according to claim 16, wherein: The digital key creation request also includes at least one of extended valid space information and extended valid usage period information, wherein the server further generates the configuration information based on the at least one of the extended valid space information and the extended valid usage period information, and the digital key generated by the second device also includes the at least one of the extended valid space information and the extended valid usage period information.
20. The method according to claim 19, wherein: When the usage position of the digital key does not meet the space requirement corresponding to the valid space information, the extended valid space information is used to determine whether the usage position of the digital key meets the space requirement corresponding to the extended valid space information.
21. The method according to claim 19, wherein: When the usage location of the digital key meets the space requirement corresponding to the valid space information, and the usage time of the digital key does not meet the time requirement corresponding to the valid usage period information, the extended valid usage period information is used to determine whether the usage time of the digital key meets the time requirement corresponding to the extended valid usage period information.
22. A computing device comprising: processor; as well as A memory having computer-readable instructions stored thereon, wherein the instructions, when executed, cause the processor to perform the method according to any one of claims 1 to 21.
Citation Information
Cited By
Data copying methods, vehicle key, terminal device, vehicle and storage medium
WO2026184142A1
