Disclosure of Invention
One or more embodiments of the present specification describe a storage method, a verification method, and an apparatus for environment data in a specific scene, which can ensure the reliability of the scene.
In a first aspect, a method for storing environmental data in a specific scenario is provided, where the method includes:
when the acquisition equipment is in a specific scene, acquiring environmental data through at least one preset type of sensor in the acquisition equipment;
the acquisition equipment stores the environmental data through a first carrier;
the collecting equipment calculates a summary value at least according to the environment data;
the collection device uploads the digest value to a second carrier, and the second carrier belongs to a trusted network, so that the trusted network stores the digest value in a distributed ledger.
In one possible embodiment, the specific scene is a video capture scene;
when the acquisition equipment is in a specific scene, the environmental data are acquired through at least one preset type of sensor in the acquisition equipment, and the method comprises the following steps:
the acquisition equipment shoots a video through a camera and stores the video; and
and acquiring environmental data through at least one preset type of sensor in the acquisition equipment while shooting the video.
In one possible embodiment, the environmental data includes at least one of the following sensing data:
light intensity, temperature, humidity, wireless fidelity (WiFi) signal strength, base station information, acceleration information.
Further, the acquiring device calculates a summary value according to at least the environment data, including:
and the acquisition equipment calculates a summary value according to the video and the environment data.
Further, the acquiring device calculates a summary value according to at least the environment data, including:
and when the time for shooting the video reaches a preset time threshold value, the acquisition equipment calculates a summary value at least according to the acquired environmental data.
Further, the uploading, by the acquisition device, the digest value to a second carrier includes:
when the acquisition equipment determines that the network signal intensity is smaller than a preset intensity threshold value, storing the abstract value into a Secure Element (SE);
when the acquisition equipment determines that the network signal intensity is greater than or equal to the preset intensity threshold value, the acquisition equipment acquires the abstract value from the SE and uploads the abstract value to a second carrier.
Further, the method further comprises:
the SE encrypts and decrypts the digest value by a Physical Unclonable Function (PUF).
In one possible embodiment, the specific scenario includes at least one of:
video capture scenes, audio capture scenes, image capture scenes, scenes with preset environmental requirements.
In a second aspect, a method for verifying environmental data in a specific scene is provided, the method comprising:
the verification equipment acquires environment data corresponding to a specific scene through a first carrier;
the truth checking equipment acquires an abstract value corresponding to the environment data through a second carrier, the second carrier belongs to a trusted network, and the abstract value is stored in a distributed account book;
the verification equipment calculates an abstract value at least according to the environment data, and compares the calculated abstract value with the obtained abstract value to determine whether the calculated abstract value is the same;
and when the comparison result is that the calculated abstract value is the same as the obtained abstract value, determining that the environment data is true.
In one possible embodiment, the specific scene is a video capture scene;
the truth verification equipment acquires environment data corresponding to a specific scene through a first carrier, and the method comprises the following steps:
the verification equipment acquires a video acquired by a video acquisition scene and acquires environment data corresponding to the video through a first carrier;
the verification equipment calculates an abstract value according to the video and the environment data, and compares the calculated abstract value with the obtained abstract value to determine whether the calculated abstract value is the same;
and when the comparison result is that the calculated abstract value is the same as the obtained abstract value, determining that the video and the environment data are true.
In one possible implementation, after determining that the environmental data is true, the method further includes:
comparing a recorded value of at least one item of sensing data contained in the environment data with an expected value of at least one item of sensing data corresponding to the specific scene;
and when the comparison result meets a preset condition, determining that the environment corresponding to the environment data meets the specific environment.
In one possible embodiment, the sensing data includes at least one of:
light intensity, temperature, humidity, WiFi signal strength, base station information and acceleration information.
In a third aspect, there is provided an acquisition apparatus, the apparatus comprising:
the acquisition unit is used for acquiring environmental data through at least one preset type of sensor in the acquisition equipment when the acquisition equipment is in a specific scene;
the storage unit is used for storing the environmental data acquired by the acquisition unit through a first carrier;
the calculating unit is used for calculating a summary value at least according to the environment data collected by the collecting unit;
and the uploading unit is used for uploading the abstract value obtained by the calculating unit to a second carrier, and the second carrier belongs to a trusted network so that the trusted network stores the abstract value in a distributed account book.
In a fourth aspect, there is provided a true verification device, the device comprising:
the first acquisition unit is used for acquiring environment data corresponding to a specific scene through a first carrier;
a second obtaining unit, configured to obtain, by using a second carrier, an abstract value corresponding to the environment data, where the second carrier belongs to a trusted network, and the abstract value is stored in a distributed ledger;
the comparison unit is used for calculating an abstract value at least according to the environment data acquired by the first acquisition unit and comparing whether the calculated abstract value is the same as the abstract value acquired by the second acquisition unit;
and the determining unit is used for determining that the environmental data acquired by the first acquiring unit is true when the comparison result of the comparing unit is that the calculated abstract value is the same as the abstract value acquired by the second acquiring unit.
In a fifth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of the first or second aspect.
In a sixth aspect, there is provided a computing device comprising a memory having stored therein executable code, and a processor that when executing the executable code, implements the method of the first or second aspect.
According to the method and the device provided by the embodiment of the specification, on one hand, a method for storing environmental data in a specific scene is provided, and when an acquisition device is in the specific scene, the environmental data is acquired through at least one preset type of sensor in the acquisition device, and the environmental data is stored through a first carrier; then the collecting equipment calculates a summary value at least according to the environment data; the collection device then uploads the digest value to a second carrier, where the second carrier belongs to a trusted network, so that the trusted network stores the digest value in a distributed ledger. In the embodiment of the specification, the environment data is collected and stored, so that whether the environment data conforms to a specific scene or not can be judged conveniently by analyzing the environment data; and the abstract value of the environment data is stored in the distributed account book, so that the abstract value cannot be tampered, whether the environment data is tampered or not can be verified through the abstract value conveniently, and the storage mode can guarantee the credibility of the scene.
On the other hand, a method for verifying the environmental data in the specific scene is provided, wherein firstly, the verification equipment acquires the environmental data corresponding to the specific scene through a first carrier; the truth checking equipment acquires an abstract value corresponding to the environment data through a second carrier, the second carrier belongs to a trusted network, and the abstract value is stored in a distributed account book; then the verification equipment calculates an abstract value at least according to the environment data, and compares the calculated abstract value with the obtained abstract value to determine whether the calculated abstract value is the same; and finally, when the comparison result is that the calculated abstract value is the same as the obtained abstract value, determining that the environment data is true. In the embodiment of the description, whether the environment data is tampered or not is verified through the digest value, and the reliability of the scene can be guaranteed. Further, it may be subsequently determined whether a particular scene is consistent by analyzing the environmental data.
Detailed Description
The scheme provided by the specification is described below with reference to the accompanying drawings.
Fig. 1 is a schematic view of an implementation scenario of an embodiment disclosed in this specification. The implementation scenario involves storage and verification of environmental data under a particular scenario. In the embodiments of the present specification, a specific scene may be a scene associated with a geographic location and/or time, for example, a video capture scene, an audio capture scene, an image capture scene, etc., and at a specific geographic location and/or time, there is often environmental data such as a corresponding temperature, humidity, etc.; alternatively, the specific scenario may be a scenario with preset environmental requirements, which may be embodied as specific requirements for temperature and/or humidity, etc., for example, a refrigerated transport scenario. In the embodiment of the description, the environment data (i.e., the sensing data) is collected, and the abstract value of the environment data is stored in the distributed book, so that the credibility of the environment data is ensured, and subsequently, the result of whether the environment data is a specific scene is obtained by performing offline data analysis on the environment data. Wherein, distributed account book: is a database that is shared, replicated, and synchronized among network members. The distributed ledger records transactions between network participants, such as the exchange of assets or data.
It is understood that the method provided by the embodiments of the present disclosure may be applied to various specific scenarios, and for convenience of description, the following description will only take a video capture scenario as an example.
Referring to fig. 1, the overall system is made up of three parts: collection equipment 11, distributed account book 12, true examination equipment 13. Wherein, the acquisition device 11 (for example, a law enforcement recorder) includes a video recorder and a sensor, and the software in the acquisition device 11 obtains real-time sensing data by calling the sensor; law enforcement record appearance: the law enforcement recorder is also called police law enforcement recorder or field law enforcement recorder, integrates the functions of digital camera shooting, digital camera shooting and interphone transmitter, can carry out dynamic and static field digital recording in the law enforcement process, and is convenient for police officers to use in various environments for law enforcement. The distributed account book 12 stores abstract values of the environment files and the video files for the detection of the truth checking equipment 13; the authentication device 13 analyzes the video file and the environment file to determine whether the video file and the environment file are forged. Environment file: the sensing data collected by all the sensors on the equipment are collectively recorded in a file, and the information of the surrounding environment of the equipment at the time is described.
The primary scene verification process comprises the following steps:
the user starts recording (starts to shoot video) by using the collection device 11, and simultaneously the sensor on the collection device 11 starts to collect surrounding environment data (such as light intensity, temperature and humidity, surrounding WiFi signal intensity, base station and other information) and some sensing information (such as acceleration and other information) of the collection device 11;
after shooting by the acquisition equipment 11 is finished, the equipment end of the acquisition equipment 11 calculates the abstract values of the video and the sensing data, and uploads the abstract values to the distributed account book 12 in the block chain for storage;
when the video information needs to be verified for availability (not in real time, possibly at any time after shooting), the verification device 13 will extract the video file and the environment file from the acquisition device 11;
the truth checking device 13 firstly goes through a block chain to find whether the abstract values of the video file and the environment file are consistent with the service end (namely the acquisition device 11); if the file is inconsistent with the file, the file is indicated to be tampered, and the file has no credibility; if so, starting to analyze whether the content of the environment file is consistent with a specific environment (e.g., a real environment or an expected environment);
the final truing device 13 generates a truing report.
The rough method for verifying the truth of the truth verifying device 13 in the embodiment of the specification can comprise the following steps: whether each type of sensing data included in the reading environment file accords with the current scene, for example, the temperature and the humidity accord with the condition of the local day, the altitude information also accords with the requirement, and the WiFi fingerprints at the periphery also accord with the expectation. Wherein, WiFi fingerprint: refers to a description relating the location in real space to the WiFi information scanned by the location (and the signal strength information of each WiFi), whose principle is similar to triangulation.
In addition, verification can be performed through consistency of the video and the accelerometer of the equipment, namely whether the time point of movement in the video is consistent with accumulated movement of the accelerometer in the current sub-time period or not is analyzed. Such as: if the video does not move, but the accelerometer calculates that the device has moved 1 meter, it indicates that the video file is at risk of counterfeiting.
It should be noted that, in the embodiment of the present specification, the scene verification is referred to, and the type of the scene is not specifically limited, and the scene may be, but is not limited to, a video capture scene, and therefore, a video file is not necessary. Taking the quality guarantee of the refrigerated goods in the transportation process as an example, even if no video file is verified, whether the equipment is always in the safe environment can be judged through the time sequence of the temperatures collected by the sensors deployed in the equipment.
Fig. 2 shows a flowchart of a method for storing environmental data in a specific scenario according to an embodiment, and an execution subject of the method may be the acquisition device 11 shown in fig. 1. As shown in fig. 2, the method for storing environment data in a specific scenario in this embodiment includes the following steps: step 21, when the acquisition equipment is in a specific scene, acquiring environmental data through at least one preset type of sensor in the acquisition equipment; step 22, the acquisition device stores the environmental data through a first carrier; step 23, the collecting device calculates a summary value at least according to the environment data; and 24, uploading the abstract value to a second carrier by the acquisition equipment, wherein the second carrier belongs to a trusted network, so that the trusted network stores the abstract value in a distributed ledger. Specific execution modes of the above steps are described below.
First, in step 21, environmental data is acquired by at least one sensor of a preset type in an acquisition device when the acquisition device is in a specific scene. Wherein, the specific scene can be, but is not limited to, any one of the following: video capture scenes, audio capture scenes, image capture scenes, scenes with preset environmental requirements. The environmental data may include, but is not limited to, at least one of the following sensing data: light intensity, temperature, humidity, WiFi signal strength, base station information and acceleration information.
In one example, the particular scene is a video capture scene; the acquisition equipment shoots a video through a camera and stores the video; and acquiring environmental data through at least one preset type of sensor in the acquisition equipment while shooting the video.
Next, in step 22, the acquisition device stores the environmental data via a first carrier. It can be understood that the first carrier may be a memory inside the acquisition device, or a carrier of a conventional storage manner such as a mobile hard disk, and the storage manner cannot guarantee that the storage content is not tampered and does not have credibility.
Wherein the video and the environmental data may be stored on the same carrier or on different carriers.
The collection device then calculates a digest value based at least on the environmental data, step 23. Wherein, the digest value may be calculated by, but not limited to, a hash algorithm.
In one example, the particular scene is a video capture scene; in the foregoing step 22, the capture device captures a video through a camera and stores the video; and acquiring environmental data through at least one preset type of sensor in the acquisition equipment while shooting the video. In step 23, the capture device may calculate corresponding digest values according to the video and the environment data, that is, the video corresponds to one digest value, and the environment data corresponds to another digest value; alternatively, the capture device may calculate a summary value from the video and the environmental data together, that is, the video and the environmental data correspond to a summary value.
In order to cope with a long recording time, a time threshold may be set in advance. And when the time for shooting the video reaches a preset time threshold value, the acquisition equipment calculates a summary value at least according to the acquired environmental data. According to the implementation mode, when long-time recording is needed, the abstract value of the block chain platform is uploaded for calculation in a stage (each sub-piece is calculated once instead of being calculated once after the recording is finished), so that the operation delay of the last finishing can be improved, and the condition that the network does not well cause that all sensing data are not uplinked in time when the recording is finished is also prevented.
Finally, in step 24, the collecting device uploads the digest value to a second carrier, where the second carrier belongs to a trusted network, so that the trusted network stores the digest value in a distributed ledger. It will be appreciated that when the digest value is embodied as a digest value calculated in stages, the digest value may be uploaded to the second carrier immediately after each digest value is calculated.
In one example, when the acquisition device determines that the network signal strength is less than a preset strength threshold, the digest value is stored in a Secure Element (SE); when the acquisition equipment determines that the network signal intensity is greater than or equal to the preset intensity threshold value, the acquisition equipment acquires the abstract value from the SE and uploads the abstract value to a second carrier. In this embodiment, when the network is not good, the uploading may be performed until the next boot, but the uploading time and the log time of the sensing data have a deviation, which may also consider the risk of delayed reporting in the verification link. All local critical information needs to be uplinked in real time. In an off-line environment, it is possible that a program is killed and then a piece is replaced, and there are 2 solutions: after shooting is finished, storing the calculated abstract in a local SE, and then uploading by reading the abstract value of the SE, instead of reading the video file and/or the environment file again after starting up every time, and uploading after calculating the abstract value every time; or by other hardware schemes to prevent the disk from being modified by other applications.
And SE: typically provided in chip form. In order to prevent external malicious analysis attack and protect data security, an encryption/decryption logic circuit is arranged in a chip.
Wherein the SE may encrypt and decrypt the digest value by a physically unclonable function PUF.
A PUF: is a "digital fingerprint" that is used as a unique identity for a semiconductor device, such as a microprocessor.
According to the method provided by the embodiment of the specification, firstly, when the acquisition equipment is in a specific scene, the environmental data is acquired through at least one preset type of sensor in the acquisition equipment, and the environmental data is stored through a first carrier; then the collecting equipment calculates a summary value at least according to the environment data; the collection device then uploads the digest value to a second carrier, where the second carrier belongs to a trusted network, so that the trusted network stores the digest value in a distributed ledger. In the embodiment of the specification, the environment data is collected and stored, so that whether the environment data conforms to a specific scene or not can be judged conveniently by analyzing the environment data; and the abstract value of the environment data is stored in the distributed account book, so that the abstract value cannot be tampered, whether the environment data is tampered or not can be verified through the abstract value conveniently, and the storage mode can guarantee the credibility of the scene.
Fig. 3 shows a flowchart of a method for verifying environmental data in a specific scenario according to an embodiment, where an execution subject of the method may be the verification device 13 shown in fig. 1. As shown in fig. 3, the method for verifying the environment data in the specific scenario in this embodiment includes the following steps: step 31, acquiring environment data corresponding to a specific scene by the verification equipment through a first carrier; step 32, the truth checking device obtains an abstract value corresponding to the environment data through a second carrier, the second carrier belongs to a trusted network, and the abstract value is stored in a distributed account book; step 33, the verification equipment calculates an abstract value at least according to the environment data, and compares the calculated abstract value with the obtained abstract value to determine whether the calculated abstract value is the same; and step 34, when the comparison result is that the calculated abstract value is the same as the obtained abstract value, determining that the environment data is true. Specific execution modes of the above steps are described below.
First, in step 31, the verification device obtains environment data corresponding to a specific scene through a first carrier. It can be understood that the specific storage form of the environment data may be an environment file, and the corresponding environment file may be obtained by a file name.
In one example, the particular scene is a video capture scene; the verification equipment acquires videos acquired by video acquisition scenes and acquires environment data corresponding to the videos through a first carrier. Next, in step 32, the plausibility checking device obtains a digest value corresponding to the environment data through a second carrier, where the second carrier belongs to a trusted network, and the digest value is stored in a distributed ledger. It will be appreciated that the digest value is authentic and has not been tampered with.
Then, in step 33, the verification device calculates a digest value at least according to the environment data, and compares the calculated digest value with the obtained digest value to determine whether the calculated digest value is the same as the obtained digest value. It will be appreciated that this step is used to verify that the environment data corresponds to the stored digest value.
In one example, the particular scene is a video capture scene; in step 31, the verification device acquires a video acquired by a video acquisition scene and acquires environment data corresponding to the video through a first carrier. In step 33, the verification device calculates an abstract value according to the video and the environment data, and compares the calculated abstract value with the obtained abstract value to determine whether the calculated abstract value is the same; and when the comparison result is that the calculated abstract value is the same as the obtained abstract value, determining that the video and the environment data are true.
Finally, in step 34, when the comparison result is that the calculated abstract value is the same as the obtained abstract value, it is determined that the environment data is true. That is, it is determined that the environment data has not been tampered with.
In one example, after the environment data is determined to be true, a recorded value of at least one item of sensing data contained in the environment data is compared with an expected value of at least one item of sensing data corresponding to the specific scene; and when the comparison result meets a preset condition, determining that the environment corresponding to the environment data meets the specific environment.
Wherein the sensing data comprises at least one of: light intensity, temperature, humidity, WiFi signal strength, base station information and acceleration information.
It can be understood that which sensing data is specifically included and related to a specific scene is not described herein.
According to the method provided by the embodiment of the specification, firstly, the verification equipment acquires environment data corresponding to a specific scene through a first carrier; the truth checking equipment acquires an abstract value corresponding to the environment data through a second carrier, the second carrier belongs to a trusted network, and the abstract value is stored in a distributed account book; then the verification equipment calculates an abstract value at least according to the environment data, and compares the calculated abstract value with the obtained abstract value to determine whether the calculated abstract value is the same; and finally, when the comparison result is that the calculated abstract value is the same as the obtained abstract value, determining that the environment data is true. In the embodiment of the description, whether the environment data is tampered or not is verified through the digest value, and the reliability of the scene can be guaranteed. Further, it may be subsequently determined whether a particular scene is consistent by analyzing the environmental data.
According to an embodiment of another aspect, an acquisition device is also provided. Fig. 4 shows a schematic block diagram of an acquisition device according to an embodiment. As shown in fig. 4, the apparatus 400 includes:
the acquisition unit 41 is configured to acquire environmental data through at least one preset type of sensor in the acquisition device when the acquisition device is in a specific scene;
a storage unit 42 for storing the environmental data acquired by the acquisition unit 41 through a first carrier;
a calculating unit 43, configured to calculate a digest value at least according to the environment data acquired by the acquiring unit 41;
an uploading unit 44, configured to upload the digest value obtained by the calculating unit 43 to a second carrier, where the second carrier belongs to a trusted network, so that the trusted network stores the digest value in a distributed ledger.
Optionally, as an embodiment, the specific scene is a video capture scene;
the apparatus further comprises:
the shooting unit is used for shooting videos through a camera;
the storage unit 42 is further configured to store the video when the shooting unit shoots the video through the camera;
the acquisition unit 41 is specifically configured to acquire environmental data through at least one preset type of sensor in the acquisition device while the shooting unit shoots the video.
Optionally, as an embodiment, the environmental data collected by the collecting unit 41 includes at least one of the following sensing data:
light intensity, temperature, humidity, WiFi signal strength, base station information and acceleration information.
Further, the calculating unit 43 is specifically configured to calculate a summary value according to the video captured by the capturing unit and the environment data collected by the collecting unit 41.
Further, the calculating unit 43 is specifically configured to calculate a summary value according to at least the environmental data acquired by the acquiring unit 41 when the time for the shooting unit to shoot the video reaches a preset time threshold.
Further, the uploading unit 44 is specifically configured to:
when the network signal strength is determined to be smaller than a preset strength threshold value, storing the abstract value into a Secure Element (SE);
and when the network signal intensity is determined to be greater than or equal to the preset intensity threshold value, the acquisition equipment acquires the abstract value from the SE and uploads the abstract value to a second carrier.
Further, the apparatus further comprises:
and the encryption and decryption unit is used for enabling the SE to encrypt and decrypt the digest value through a physical unclonable function PUF.
Optionally, as an embodiment, the specific scenario includes at least one of:
video capture scenes, audio capture scenes, image capture scenes, scenes with preset environmental requirements.
With the device provided in the embodiments of the present specification, first, when the collection device is in a specific scene, the collection unit 41 collects environmental data through at least one preset type of sensor in the collection device, and the storage unit 42 stores the environmental data through a first carrier; then calculating a digest value by the calculating unit 43 at least based on the environment data; the digest value is then uploaded by the upload unit 44 to a second carrier, which belongs to the trusted network, so that the trusted network stores the digest value in the distributed ledger. In the embodiment of the specification, the environment data is collected and stored, so that whether the environment data conforms to a specific scene or not can be judged conveniently by analyzing the environment data; and the abstract value of the environment data is stored in the distributed account book, so that the abstract value cannot be tampered, whether the environment data is tampered or not can be verified through the abstract value conveniently, and the storage mode can guarantee the credibility of the scene.
According to an embodiment of another aspect, an authentication device is also provided. FIG. 5 shows a schematic block diagram of a plausibility device according to one embodiment. As shown in fig. 5, the apparatus 500 includes:
a first obtaining unit 51, configured to obtain environment data corresponding to a specific scene through a first carrier;
a second obtaining unit 52, configured to obtain, by a second carrier, a digest value corresponding to the environment data, where the second carrier belongs to a trusted network, and the digest value is stored in a distributed ledger;
a comparing unit 53, configured to calculate an abstract value at least according to the environment data acquired by the first acquiring unit 51, and compare whether the calculated abstract value is the same as the abstract value acquired by the second acquiring unit 52;
a determining unit 54, configured to determine that the environmental data acquired by the first acquiring unit 51 is true when the comparison result of the comparing unit 53 is that the calculated digest value is the same as the digest value acquired by the second acquiring unit 52.
Optionally, as an embodiment, the specific scene is a video capture scene;
the first obtaining unit 51 is specifically configured to obtain a video collected in a video collection scene and obtain environment data corresponding to the video through a first carrier;
the comparing unit 53 is specifically configured to calculate an abstract value according to the video and the environment data acquired by the first acquiring unit 51, and compare whether the calculated abstract value is the same as the abstract value acquired by the second acquiring unit 52;
the determining unit 54 is specifically configured to determine that the video and the environmental data acquired by the first acquiring unit 51 are true when the comparison result of the comparing unit 53 is that the calculated digest value is the same as the digest value acquired by the second acquiring unit 52.
Optionally, as an embodiment, the comparing unit 53 is further configured to compare a recorded value of at least one sensing data included in the environment data with an expected value of at least one sensing data corresponding to the specific scene after the determining unit 54 determines that the environment data is true;
the determining unit 54 is further configured to determine that the environment corresponding to the environment data meets the specific environment when the comparison result of the comparing unit 53 meets a preset condition.
Optionally, as an embodiment, the sensing data includes at least one of:
light intensity, temperature, humidity, WiFi signal strength, base station information and acceleration information.
With the device provided in the embodiment of the present specification, first, the first obtaining unit 51 obtains environment data corresponding to a specific scene through the first carrier; acquiring, by a second acquiring unit 52, a digest value corresponding to the environment data through a second carrier, where the second carrier belongs to a trusted network, and the digest value is stored in a distributed ledger; then, the comparison unit 53 calculates the abstract value at least according to the environment data, and compares whether the calculated abstract value is the same as the obtained abstract value; finally, the determining unit 54 determines that the environmental data is true when the comparison result is that the calculated digest value is the same as the obtained digest value. In the embodiment of the description, whether the environment data is tampered or not is verified through the digest value, and the reliability of the scene can be guaranteed. Further, it may be subsequently determined whether a particular scene is consistent by analyzing the environmental data.
According to an embodiment of another aspect, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method described in connection with fig. 2 or fig. 3.
According to an embodiment of yet another aspect, there is also provided a computing device comprising a memory having stored therein executable code, and a processor that, when executing the executable code, implements the method described in connection with fig. 2 or fig. 3.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.