Data storage method and device based on blockchain, and electronic device
By mounting a secure computing environment and private key on a pluggable device, using hardware docking to store evidence in blockchain, the legality of streaming data storage on blockchain is solved, and data security is achieved Convenience of evidence storage and legality verification.
Patent Information
- Application Number
- CN202111243033.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2038-11-28
AI Technical Summary
The existing technology is difficult to effectively store evidence stream data on the blockchain, such as video streams, audio streams and other data collected by law enforcement recorders or dash recorders, resulting in doubting its legality. Due to the large storage space, it cannot be directly stored in Blockchain.
By mounting a secure computing environment and private key on a pluggable device, using hardware docking to provide a secure computing environment. The terminal device collects data summary and signs it on the pluggable device and publishes it to the blockchain for proof storage to avoid data spreading Illegal tampered with during the process.
It realizes the security and evidence storage of streaming data, improves the convenience and availability of data legality verification, and enables the data collected by terminal devices to be effectively submitted to third parties as evidence.
Smart Images

Figure CN113793151B_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of blockchain technology, and in particular, to a blockchain-based data storage method and device, and electronic device. Background Art
[0002] Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computing devices jointly participate in "bookkeeping" and jointly maintain a complete distributed database. Blockchain technology has been widely used in many fields because of its decentralized, open and transparent characteristics, each computing device can participate in database records, and data can be quickly synchronized between computing devices. Summary of the invention
[0003] This specification proposes a data evidence storage method based on blockchain, which is applied to a pluggable device connected to a terminal device; wherein the pluggable device is equipped with a secure computing environment; the secure computing environment stores a private key corresponding to the pluggable device; the method includes:
[0004] Obtaining a data summary of the target data collected by the terminal device;
[0005] signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment;
[0006] The signed data summary is published to the blockchain, so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
[0007] Optionally, obtaining a data summary of the target data collected by the terminal device includes:
[0008] Receive a data summary of the target data collected by the terminal device and sent by the terminal device; or receive the target data collected by the terminal device and sent by the terminal device, and locally calculate the data summary of the target data.
[0009] Optionally, signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment includes:
[0010] Obtaining identity information input by a user of the pluggable device;
[0011] Performing identity authentication on the user based on the acquired identity information;
[0012] If the identity authentication of the user passes, the data digest is signed in the secure computing environment based on a private key corresponding to the pluggable device.
[0013] Optionally, a key generation algorithm is stored in the secure computing environment;
[0014] The method further comprises:
[0015] Acquire identity information input by a user of the pluggable device when using the pluggable device for the first time;
[0016] Performing identity authentication on the user based on the acquired identity information;
[0017] If the identity authentication of the user passes, calling the key generation algorithm in the secure computing environment to generate the private key and the public key; and
[0018] The generated private key is bound to the identity information of the user, and the binding relationship is stored in the secure computing environment.
[0019] Optionally, signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment includes:
[0020] Obtaining identity information input by a user of the pluggable device;
[0021] Determining whether a private key bound to the identity information is stored in the secure computing environment;
[0022] If yes, the data summary is signed in the secure computing environment based on a private key bound to the identity information.
[0023] Optionally, publishing the signed data summary to the blockchain includes:
[0024] The signed data summary is published to the blockchain; or, the signed data summary is sent to the terminal device, so that the terminal device publishes the data summary to the blockchain.
[0025] Optionally, the terminal device includes a law enforcement recorder or a driving recorder; the target data includes one or a combination of video data, audio data, and image data.
[0026] Optionally, the pluggable device is equipped with a USB interface; the pluggable device achieves hardware docking with the terminal device via the USB interface.
[0027] Optionally, the pluggable device is equipped with a SE secure computing chip; the secure computing environment is a secure computing environment built based on the SE secure computing chip.
[0028] Optionally, the pluggable device is equipped with an LED indicator light; the method further includes:
[0029] The LED indicator light is controlled to prompt the user of the working status of the pluggable device; wherein the working status includes the working status of executing calculations in the safe computing environment; and the working status of completing calculations in the safe computing environment.
[0030] This specification also proposes a data evidence storage device based on blockchain, which is applied to a pluggable device connected to a terminal device; wherein the pluggable device is equipped with a secure computing environment; the secure computing environment stores a private key corresponding to the pluggable device; the device includes:
[0031] An acquisition module, for acquiring a data summary of the target data collected by the terminal device;
[0032] a signing module, for signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment;
[0033] The publishing module publishes the signed data summary to the blockchain so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
[0034] Optionally, the acquisition module:
[0035] Receive a data summary of the target data collected by the terminal device and sent by the terminal device; or receive the target data collected by the terminal device and sent by the terminal device, and locally calculate the data summary of the target data.
[0036] Optionally, the signature module:
[0037] Obtaining identity information input by a user of the pluggable device;
[0038] Performing identity authentication on the user based on the acquired identity information;
[0039] If the identity authentication of the user passes, the data digest is signed in the secure computing environment based on a private key corresponding to the pluggable device.
[0040] Optionally, a key generation algorithm is stored in the secure computing environment;
[0041] The device also includes:
[0042] an authentication module, which obtains identity information input by a user of the pluggable device when the user uses the pluggable device for the first time; and performs identity authentication on the user based on the obtained identity information;
[0043] The generation module calls the key generation algorithm in the secure computing environment to generate the private key and the public key if the identity authentication of the user is passed; and binds the generated private key to the identity information of the user and stores the binding relationship in the secure computing environment.
[0044] Optionally, the signature module:
[0045] Obtaining identity information input by a user of the pluggable device;
[0046] Determining whether a private key bound to the identity information is stored in the secure computing environment;
[0047] If yes, the data summary is signed in the secure computing environment based on a private key bound to the identity information.
[0048] Optionally, the publishing module:
[0049] The signed data summary is published to the blockchain; or, the signed data summary is sent to the terminal device, so that the terminal device publishes the data summary to the blockchain.
[0050] Optionally, the terminal device includes a law enforcement recorder or a driving recorder; the target data includes one or a combination of video data, audio data, and image data.
[0051] Optionally, the pluggable device is equipped with a USB interface; the pluggable device achieves hardware docking with the terminal device via the USB interface.
[0052] Optionally, the pluggable device is equipped with a SE secure computing chip; the secure computing environment is a secure computing environment built based on the SE secure computing chip.
[0053] Optionally, the pluggable device is equipped with an LED indicator light; the device further comprises:
[0054] A control module controls the LED indicator to prompt the user of the working status of the pluggable device; wherein the working status includes the working status of executing calculations in the safe computing environment; and the working status of completing calculations in the safe computing environment.
[0055] This specification also proposes a pluggable device, comprising:
[0056] processor;
[0057] memory for storing machine-executable instructions;
[0058] Wherein, by reading and executing the machine executable instructions corresponding to the control logic of the blockchain-based data evidence stored in the memory, the processor is prompted to:
[0059] Obtaining a data summary of the target data collected by the terminal device; wherein the pluggable device is connected to the terminal device; the pluggable device is equipped with a secure computing environment; the secure computing environment stores a private key corresponding to the pluggable device;
[0060] signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment;
[0061] The signed data summary is published to the blockchain, so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
[0062] In the above technical scheme, on the one hand, since the pluggable device is equipped with a secure computing environment, and the private key corresponding to the pluggable device is stored in the secure computing environment; therefore, by hardware docking the pluggable device with the terminal device, a secure computing environment can be conveniently provided for the terminal device; so that the pluggable device can be used as a universal security hardware, and hardware docking with different terminal devices can be performed to provide a secure computing environment for different terminal devices; and, when the terminal device needs to store the collected data on the blockchain, the data collected by the terminal device can be signed using the stored private key in the secure computing environment carried by the pluggable device, and the signed data can be published to the blockchain for data storage, thereby preventing the data stored on the blockchain from being illegally tampered with during the transmission process, and ensuring the data security when storing the data on the blockchain;
[0063] On the other hand, by improving the process of data storage on the blockchain, the terminal device no longer needs to store the original content of the collected data on the blockchain, but instead stores the data summary of the original content of the collected data on the blockchain, so that the terminal device can serve as a hub between the physical world and the on-chain world, and can more conveniently store the collected data on the blockchain; moreover, for a third party that obtains the data collected by the terminal device, by matching the data summary of the obtained data with the data summary of the data stored on the blockchain, the legitimacy of the obtained data can be conveniently verified; therefore, the terminal device can submit the collected data as evidence to a third party, which can significantly improve the availability of the data collected by the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 This is a flowchart of a data evidence storage method based on blockchain provided by an exemplary embodiment;
[0065] Figure 2 is a hardware structure diagram of a pluggable device provided by an exemplary embodiment;
[0066] Figure 3 It is a schematic diagram of a pluggable device and a terminal device connected to each other provided by an exemplary embodiment;
[0067] Figure 4 It is a schematic diagram of another pluggable device docking with a terminal device provided by an exemplary embodiment;
[0068] Figure 5 is a schematic structural diagram of an electronic device provided by an exemplary embodiment;
[0069] Figure 6 It is a block diagram of a data storage device based on blockchain provided by an exemplary embodiment. DETAILED DESCRIPTION
[0070] Since the data stored in the blockchain is tamper-proof, storing data on the blockchain for data preservation is the current mainstream trend in the industry.
[0071] However, in practical applications, some streaming data, such as video streams and audio streams collected by law enforcement recorders or driving recorders, usually cannot be directly stored on the blockchain for evidence preservation because they require a large amount of storage space.
[0072] However, in some scenarios, there is a strong need to preserve this type of streaming data; for example, in the scenario of judicial evidence preservation, the video streams captured by law enforcement recorders or driving recorders may be submitted to the judicial authorities as evidence.
[0073] Due to the lack of data authentication methods, the legitimacy of this type of streaming data as evidence is often widely questioned. Therefore, the best way to handle this type of streaming data is to store it on the blockchain for data storage; at the same time, it is also necessary to be able to more conveniently verify the legitimacy of these stored data as judicial evidence.
[0074] Based on the above requirements, this specification proposes a technical solution that uses pluggable devices to build a secure computing environment for terminal devices to conveniently store the data collected by the terminal devices on the blockchain.
[0075] During implementation, a secure computing environment may be pre-built on the pluggable device, a private key corresponding to the pluggable device may be stored in the secure computing environment, and the pluggable device may be connected to the terminal device by hardware to provide the built secure computing environment to the terminal device;
[0076] For example, a SE (Secure Element) secure computing chip can be installed on the pluggable device to build a secure budget environment for the pluggable device, and store the private key corresponding to the pluggable device in the secure computing environment. At the same time, universal interfaces such as USB can be reserved on the terminal device, so that the pluggable device can be connected to the terminal device through these universal interfaces, realize hardware docking with the terminal device, and provide the built secure computing environment to the terminal device.
[0077] Furthermore, after the terminal device collects the data that needs to be stored on the blockchain, the pluggable device can obtain the data summary of the target data collected by the terminal device;
[0078] For example, the terminal device can calculate the data summary of the collected target data and then send the calculated data summary to the pluggable device; or, the terminal device can send the collected target data directly to the pluggable device, and the pluggable device can perform summary calculation locally to obtain the data summary of the target data.
[0079] After obtaining the data summary of the target data collected by the terminal device, the pluggable device can sign the data summary of the target data based on the stored private key in the secure computing environment carried by the pluggable device, and then publish the signed data summary to the blockchain.
[0080] For example, the pluggable device may directly publish the signed data summary to the blockchain; or, the pluggable device may send the signed data summary to the terminal device, and the terminal device may publish the signed data summary to the blockchain.
[0081] After receiving the published signed data summary, the node device in the blockchain can obtain the public key corresponding to the private key of the pluggable device, and then verify the signature of the data summary based on the public key; if the signature verification passes, the data summary can be stored in the blockchain for data notarization.
[0082] In the above technical scheme, on the one hand, since the pluggable device is equipped with a secure computing environment, and the private key corresponding to the pluggable device is stored in the secure computing environment; therefore, by hardware docking the pluggable device with the terminal device, a secure computing environment can be conveniently provided for the terminal device; so that the pluggable device can be used as a universal security hardware, and hardware docking with different terminal devices can be performed to provide a secure computing environment for different terminal devices; and, when the terminal device needs to store the collected data on the blockchain, the data collected by the terminal device can be signed using the stored private key in the secure computing environment carried by the pluggable device, and the signed data can be published to the blockchain for data storage, thereby preventing the data stored on the blockchain from being illegally tampered with during the transmission process, and ensuring the data security when storing the data on the blockchain;
[0083] On the other hand, by improving the process of data storage on the blockchain, the terminal device no longer needs to store the original content of the collected data on the blockchain, but instead stores the data summary of the original content of the collected data on the blockchain, so that the terminal device can serve as a hub between the physical world and the on-chain world, and can more conveniently store the collected data on the blockchain; moreover, for a third party that obtains the data collected by the terminal device, by matching the data summary of the obtained data with the data summary of the data stored on the blockchain, the legitimacy of the obtained data can be conveniently verified; therefore, the terminal device can submit the collected data as evidence to a third party, which can significantly improve the availability of the data collected by the terminal device.
[0084] The present specification is described below through specific embodiments and in combination with specific application scenarios.
[0085] Please refer to Figure 1 , Figure 1 A data storage method based on blockchain is provided in an embodiment of this specification, which is applied to a pluggable device connected to a terminal device; wherein the pluggable device is equipped with a secure computing environment; the secure computing environment stores a private key corresponding to the pluggable device; the method performs the following steps:
[0086] Step 102, obtaining a data summary of the target data collected by the terminal device;
[0087] Step 104, signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment;
[0088] Step 106, publishing the signed data summary to the blockchain, so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
[0089] The blockchain described in this specification may specifically include private chains, public chains, and alliance chains, etc., which are not particularly limited in this specification.
[0090] For example, in one scenario, the blockchain can be a consortium chain consisting of a third-party payment platform server, a domestic bank server, a foreign bank server, and several user node devices as member devices. The operator of the consortium chain can rely on the consortium chain to deploy online services such as cross-border transfers and asset transfers based on the consortium chain.
[0091] The above-mentioned terminal device may include any form of terminal device that can join the blockchain as a node device and store the collected data on the blockchain;
[0092] For example, in practical applications, the above-mentioned terminal devices may specifically include law enforcement recorders or driving recorders, etc. Law enforcement recorders or driving recorders can be added to the blockchain as nodes, and the collected streaming data such as video data and audio data can be stored on the blockchain.
[0093] Among them, storing data on the blockchain means storing the data persistently as evidence in the blockchain.
[0094] The above target data includes any type of data collected by the terminal device that needs to be stored in the distributed database of the blockchain;
[0095] For example, the target data may specifically be streaming data such as video data, audio data, image data, etc. collected by terminal devices such as law enforcement recorders or driving recorders.
[0096] In this specification, a secure computing environment can be built for the terminal device, and the built secure computing environment can be used to store and maintain the private key used to sign the data that the terminal device needs to store on the blockchain.
[0097] During implementation, a secure computing environment can be pre-built on the pluggable device, in which a private key corresponding to the pluggable device is stored. By connecting the pluggable device to the terminal device, the secure computing environment built on the pluggable device can be provided to the terminal device.
[0098] In this way, there is no need to modify the hardware environment of the terminal device and introduce new hardware into the hardware environment of the terminal device to build a secure computing environment for the terminal device. Instead, a secure computing environment can be conveniently provided for the terminal device by simply connecting and docking the pluggable device with the terminal device. This allows the pluggable device to be used as universal hardware to dock with different terminal devices, thereby providing a secure computing environment for different terminal devices.
[0099] The specific method for connecting the terminal device to the pluggable device is not particularly limited in this specification, and those skilled in the art can make flexible choices when implementing the technical solution of this specification.
[0100] In one implementation shown, the pluggable device can specifically achieve hardware docking with the terminal device through a hardware interface provided on the terminal device.
[0101] Of course, in actual applications, in addition to the above-mentioned pluggable device being connected to the terminal device through the hardware interface provided by the terminal device, in actual applications, the connection can also be achieved through a software interface;
[0102] For example, in one implementation, a Bluetooth interface may also be provided on the terminal device, and the pluggable device may establish a Bluetooth connection with the terminal device through the Bluetooth interface on the terminal device to perform wireless data communication to achieve docking.
[0103] The specific method of establishing a secure computing environment in the hardware environment of the terminal device is not particularly limited in this specification.
[0104] In one embodiment shown, a solution based on SE (Secure Element) may be used to build a secure computing environment for the pluggable device.
[0105] Under this solution, SE secure computing chips can be introduced into the hardware environment of pluggable devices, and the SE secure computing chips can be used to store and maintain the private keys of pluggable devices to build a secure computing environment.
[0106] See also Figure 2 , Figure 2 This is a hardware structure diagram of a pluggable device shown in this specification.
[0107] like Figure 2 As shown, the above-mentioned pluggable device may specifically include a shell, a PCB circuit board arranged inside the shell, a USB interface installed on the PCB circuit board, a SE security computing chip, and an LED indicator light.
[0108] Among them, the above-mentioned SE secure computing chip is electrically connected to the USB interface, and is used to provide a secure computing environment for pluggable devices, and store and maintain private keys corresponding to the pluggable devices.
[0109] The USB interface is electrically connected to the SE secure computing chip and is used for hardware connection with the terminal device;
[0110] For example, see Figure 3 and Figure 4 Taking the terminal device as a portable recording device as an example, a USB socket can be provided on the portable recording device, and a USB interface can be provided on the pluggable device. The user can insert the USB interface on the pluggable device into the USB socket of the portable recording device to achieve hardware docking with the portable recording device.
[0111] It should be noted that the USB interface described in this specification refers to the end of a USB device that serves as a USB Slave; and the USB socket described in this specification refers to the end of a USB device that serves as a USB host.
[0112] The LED indicator light is electrically connected to the SE secure computing chip and is used to prompt the user of the current working status of the pluggable device;
[0113] For example, during implementation, the processing power of the SE secure computing chip itself can be utilized to implant some control logic in the SE secure computing chip to control LED indicator lights to prompt the working status of the pluggable device. These control logics are executed by the SE secure computing chip to prompt the user of the working status of the pluggable device.
[0114] Among them, in this specification, the working state of the pluggable device may specifically include a working state in which a calculation is being executed in the above-mentioned secure computing environment; and a working state in which a calculation is completed in the above-mentioned secure computing environment.
[0115] For example, in the above-mentioned secure computing environment, the process of signing the target data collected by the terminal device based on the private key stored in the secure computing environment can be referred to as the working state of the above-mentioned pluggable device performing operations in the above-mentioned secure computing environment; and in the above-mentioned secure computing environment, after the signature processing of the target data collected by the terminal device based on the private key stored in the security budget environment is completed, it can be referred to as the working state of the above-mentioned pluggable device completing the operation in the above-mentioned secure computing environment.
[0116] It should be noted that the specific control logic of prompting the user of the working status of the pluggable device through the LED indicator light can be defined by those skilled in the art based on actual needs when implementing the technical solution of this specification, and is not particularly limited in this specification;
[0117] For example, in one implementation method shown, the above-mentioned control logic can specifically be that when the pluggable device is performing calculations in the secure computing environment provided by the SE secure computing chip, the LED indicator light can be controlled to be in a normally lighted state to indicate that the pluggable device is in the "calculating" working state; and when the pluggable device completes the calculation in the secure computing environment provided by the SE secure computing chip, the LED indicator light can be controlled to be off to indicate that the pluggable device is in the "calculation completed" working state.
[0118] In another implementation shown, the above control logic may specifically be that, while the pluggable device is executing calculations in the secure computing environment provided by the SE secure computing chip, the LED indicator light may be controlled to remain off to indicate that the pluggable device is in the "calculation in progress" working state; and after the pluggable device completes the calculation in the secure computing environment provided by the SE secure computing chip, the LED indicator light may be controlled to flash multiple times at a preset frequency to indicate that the pluggable device is in the "calculation completed" working state.
[0119] Of course, in this specification, in addition to introducing the SE secure computing chip in the hardware environment of the pluggable device to build a secure computing environment for the pluggable device, in actual applications, it is obvious that other methods can also be used to equip the pluggable device with a secure computing environment;
[0120] For example, in one embodiment shown, a solution based on TEE (Trusted Execution Environment) can be used to build a secure computing environment for the terminal device. Under this solution, the software environment of the existing hardware (such as the existing main processing chip) in the hardware environment of the pluggable device can be modified (without introducing an additional secure computing chip), and a trusted execution environment can be built in the software environment. The trusted execution environment is used to store and maintain the private key of the pluggable device to build a secure computing environment.
[0121] For example, in another embodiment shown, a solution based on SE+TEE can be used to build a secure computing environment for terminal devices. In this solution, the SE secure computing chip can be used to store and maintain the private key of the pluggable device, and the TEE can be used to provide a secure computing environment for the pluggable device.
[0122] In this specification, the above-mentioned pluggable device can be added to the blockchain as a node device (also referred to as device on-chain), and the private key corresponding to the pluggable device can be stored and maintained in a secure computing environment built for the pluggable device.
[0123] The private key corresponding to the pluggable device may specifically be a private key held by the pluggable device, or may be a private key held by a user of the pluggable device.
[0124] That is, the "private key corresponding to the pluggable device" described in this specification can specifically be a private key generated for the pluggable device by the device manufacturer of the pluggable device during the device production stage and held by the pluggable device; it can also be a private key generated by the pluggable device autonomously for the user when the user uses the pluggable device and held by the user personally.
[0125] In one embodiment shown, the private key and public key held by the pluggable device can be generated by the device manufacturer for the pluggable device during the device production stage, and the device manufacturer can pre-write the private key into the secure computing environment of the pluggable device for storage and maintenance.
[0126] In this case, the private key and public key held by the pluggable device are not associated with the identity of the user of the pluggable device. Different users of the pluggable device can share the same private key written into the secure computing environment of the pluggable device by the device manufacturer by default.
[0127] In one embodiment shown, the private key and the public key held by the pluggable device may also be autonomously generated by the pluggable device for the user of the pluggable device, and the pluggable device writes the private key into the secure computing environment of the pluggable device.
[0128] In this case, the private key and public key generated autonomously by the pluggable device can be associated with the identity of the user using the pluggable device. The pluggable device can generate a pair of private keys and public keys for different users based on the identity information of different users, and bind the generated private key to the identity information of each user, and then store and maintain the binding relationship in a secure computing environment.
[0129] For example, during implementation, the manufacturer of the pluggable device may pre-write the key generation algorithm into the secure computing environment of the pluggable device. When the user of the pluggable device is using the pluggable device, the pluggable device may prompt the user to input identity information for identity authentication; the data type of the identity information input by the user and the identity authentication method adopted by the pluggable device are not specifically limited in this specification; for example, a traditional authentication method such as inputting a password or a passcode may be adopted, or an authentication method based on physiological features such as fingerprints or faces may be adopted.
[0130] When the pluggable device obtains the identity information input by the user, it can determine whether the private key bound to the identity information is stored in the secure computing environment; if the private key bound to the identity information is not stored in the secure computing environment, it indicates that the user is a new user who uses the pluggable device for the first time. At this time, the terminal device can authenticate the user based on the obtained identity information; if the user identity authentication is passed, the pluggable device can call the above-mentioned key generation algorithm in the above-mentioned secure computing environment to generate a pair of private keys and public keys, and bind the generated private key to the identity information of the user, and then store and maintain the binding relationship in the above-mentioned secure computing environment. In this specification, the user can use the terminal device to collect data, and in the secure computing environment of the pluggable device, sign the collected data based on the private key of the pluggable device, and publish it to the blockchain for data storage.
[0131] Among them, in this specification, when the terminal device stores the collected target data on the blockchain, it only needs to store the collected data locally and store the data summary of the collected data on the blockchain. It is no longer necessary to store the original content of the collected data on the blockchain.
[0132] It should be noted that in actual applications, if the target data collected by the terminal device is streaming data such as video data, audio data, etc., when such streaming data is stored on the blockchain, the terminal device can also store the streaming data in shards according to a preset time period;
[0133] For example, taking video data as an example, the terminal device can treat every N minutes of video data as a shard, calculate the data summary of the shard, and then store the data summary of the shard in the blockchain, and strictly ensure the time order of the data summaries of each shard stored on the blockchain to facilitate backtracking.
[0134] In this specification, when the terminal device stores the collected target data on the blockchain, the pluggable device can obtain the data summary of the target data collected by the terminal device, and sign the data summary of the target data based on the private key held by the pluggable device in a secure computing environment.
[0135] The data summary of the target data collected by the terminal device may be calculated locally by the terminal device or may be calculated locally by the pluggable device.
[0136] In one embodiment shown, when the terminal device stores the collected target data on the blockchain, it can calculate the data summary of the target data locally; for example, the data summary can specifically be a hash value of the target data calculated based on a specific hash algorithm; then, the terminal device can send the calculated data summary of the target data to the connected pluggable device; and the pluggable device can receive the data summary of the target data sent by the terminal device, and sign the received data summary of the target data in a secure computing environment based on the private key held by the pluggable device.
[0137] In one embodiment shown, when the terminal device stores the collected target data on the blockchain, it can also send the original content of the collected target data to the pluggable device; the pluggable device can receive the target data sent by the terminal device, and locally calculate the data summary of the received target data, and then sign the calculated data summary of the target data based on the private key held by the pluggable device in a secure computing environment.
[0138] Among them, in one scenario, if the private key stored and maintained in the secure computing environment of the pluggable device is a private key generated by the device manufacturer for the pluggable device during the device production stage and held by the pluggable device; in this case, an identity authentication mechanism for the user of the pluggable device can be introduced to prompt the user to enter identity information for identity authentication; when the pluggable device obtains the identity information input by the user, it can authenticate the user based on the obtained identity information; if the identity authentication for the user is passed, the pluggable device can sign the data summary in the secure computing environment based on the private key held by the pluggable device and stored and maintained in the secure computing environment. In another scenario, if the private key stored and maintained in the secure computing environment of the pluggable device is a private key generated by the terminal device for the user autonomously and held by the user; at this time, the binding relationship between the user's identity information and the private key is pre-stored and maintained in the secure computing environment.
[0139] In this case, after the pluggable device obtains the identity information input by the user, it can query the binding relationship maintained in the secure computing environment to determine whether the private key bound to the identity information is stored in the secure computing environment; if the private key bound to the identity information is stored in the secure computing environment, the pluggable device can sign the data summary in the secure computing environment based on the queried private key.
[0140] Of course, if the private key bound to the identity information is not stored in the secure computing environment, it indicates that the user is a new user who uses the pluggable device for the first time. At this time, the pluggable device can authenticate the user based on the acquired identity information, and after the authentication is passed, call the key generation algorithm stored in the secure computing environment to generate a private key and a public key for the user, and use the generated private key to sign the data summary; and bind the generated private key to the identity information of the user, and then store and maintain the binding relationship in the secure computing environment.
[0141] In this specification, when the pluggable device is in a secure computing environment, based on the private key stored in the secure computing environment, after signing the data summary of the target data collected by the terminal device, the signed data summary can be published in the blockchain;
[0142] For example, a blockchain transaction can be constructed based on the signed data summary and broadcast to other node devices.
[0143] Among them, the signed data summary can be published directly in the blockchain by the pluggable device, or the pluggable device can send the signed data summary to the terminal device, and then the terminal device can publish it in the blockchain.
[0144] After receiving the published signed data summary, the node device in the blockchain can obtain the public key corresponding to the private key stored in the secure computing environment, and then verify the signature of the data summary based on the obtained public key; if the signature verification of the data summary passes, the node device can initiate a consensus process for the data summary in the blockchain, and after the consensus process of the data summary passes, the data summary can be packaged into a block and stored in the blockchain to complete the data storage for the data summary.
[0145] It should be noted that the consensus mechanism adopted by the blockchain described in this specification is not specifically limited in this specification. In actual applications, the operator of the blockchain can flexibly choose based on actual needs.
[0146] In another embodiment shown, when the terminal device stores the collected target data on the blockchain, it can also store the description data of the target data and the data summary of the target data on the blockchain together.
[0147] In this case, in the secure computing environment of the pluggable device, based on the private key stored in the secure computing environment, when the data summary of the target data is signed, the data summary and the description information of the target data can be signed as a whole; that is, the data summary and the description information of the target data are packaged and signed as a whole; then, the signed data summary and the description data of the above target data are published to the blockchain for data storage.
[0148] For example, a blockchain transaction can be constructed based on the signed data summary and the description data of the above target data, and the transaction can be broadcast to other node devices.
[0149] Alternatively, in another case, in the secure computing environment of the pluggable device, when the data summary of the target data is signed based on the private key stored in the secure computing environment, only the data summary may be signed; then, the description data of the above target data and the signed data summary are published to the blockchain for data storage.
[0150] For example, a blockchain transaction can be constructed based on the description data of the above target data and the signed data summary, and the transaction can be broadcast to other node devices.
[0151] The specific content of the description information of the target data is not particularly limited in this specification, and in practical applications, it can include any content related to the target data.
[0152] In one embodiment shown, the data collection time, collection location and data-related objects are usually extremely important attributes of data as evidence documents; therefore, in this specification, the descriptive information of the above-mentioned target data may specifically include the collection time, collection location and one or more combinations of the above-mentioned target data collection time, collection location and the above-mentioned target data-related objects.
[0153] Among them, in one embodiment shown, the target data collection time can be specifically the authenticated authoritative time (timestamp) obtained from the time authentication center by the terminal device interacting with the time authentication center when the target data is collected. The target data collection location can be the precise collection location obtained by calling the positioning module (such as GPS module) carried by the terminal device in real time when the terminal device collects the target data. The objects related to the above target data can be the related objects manually input by the legitimate user of the terminal device after the terminal device collects the target data.
[0154] For example, taking the forensic video data of a car accident collected by a law enforcement recorder as an example, the descriptive information of the video data may specifically include the authenticated authoritative time when the video data was collected obtained from the time authentication center, the precise collection location obtained by the law enforcement recorder in real time calling the positioning module when the video data was collected, and the vehicle information and driver information related to the video data input by the law enforcement officer.
[0155] In the above technical solution, on the one hand, since the pluggable device is equipped with a secure computing environment, and the private key corresponding to the pluggable device is stored in the secure computing environment; therefore, by hardware docking the pluggable device with the terminal device, a secure computing environment can be conveniently provided for the terminal device; so that the pluggable device can be used as a universal security hardware, and hardware docking with different terminal devices can be performed to provide a secure computing environment for different terminal devices;
[0156] Moreover, when the terminal device needs to store the collected data on the blockchain, it can use the stored private key in the secure computing environment on the pluggable device to sign the data collected by the terminal device, and publish the signed data to the blockchain for data storage, thereby preventing the data stored on the blockchain from being illegally tampered with during the transmission process, and ensuring the data security when storing data on the blockchain;
[0157] For example, a pluggable device can complete the device chain in advance, obtain the public and private key pair as the identity on the blockchain, and maintain and store the private key in a secure computing environment. When a user needs to store data collected by a device that is not on the chain on the blockchain, the user can quickly transform the terminal device into a device that has been on the chain by inserting the USB interface on the pluggable device into the USB port of the terminal device, and providing the secure computing environment of the pluggable device to the terminal device to complete the data storage on the blockchain. Furthermore, after the terminal device completes the data storage, when the user needs to store the data collected by other terminal devices on the blockchain, the same operation can be performed to perform hardware docking with the above-mentioned pluggable device to quickly transform the terminal device into a device that has been on the chain.
[0158] On the other hand, by improving the process of data storage on the blockchain, the terminal device no longer needs to store the original content of the collected data on the blockchain, but instead stores the data summary of the original content of the collected data on the blockchain, so that the terminal device can serve as a hub between the physical world and the on-chain world, and can more conveniently store the collected data on the blockchain; moreover, for a third party that obtains the data collected by the terminal device, by matching the data summary of the obtained data with the data summary of the data stored on the blockchain, the legitimacy of the obtained data can be conveniently verified; therefore, the terminal device can submit the collected data as evidence to a third party, which can significantly improve the availability of the data collected by the terminal device.
[0159] For example, for terminal devices such as law enforcement recorders or driving recorders, it is only necessary to store the original content of the collected video data, audio data and other streaming data locally, and store the data summary of the original content of these streaming data on the blockchain. It is no longer necessary to store the original content of these streaming data on the blockchain.
[0160] Moreover, when users submit the streaming data collected by law enforcement recorders or driving recorders as evidence to a third-party agency (such as a judicial agency or an insurance company), the third-party agency only needs to recalculate the data summary of the obtained data and match the data summary of the data with the data summary of the data stored on the blockchain, so as to conveniently verify the legitimacy of the obtained data. In this way, the high availability of data collected by law enforcement recorders or driving recorders as legal evidence files can be significantly improved.
[0161] Corresponding to the above method embodiments, this specification also provides an embodiment of a data storage device based on blockchain. The embodiment of the data storage device based on blockchain of this specification can be applied to electronic devices. Among them, the electronic device can be a pluggable device that is connected to a terminal device; the electronic device is equipped with a secure computing environment, and the private key corresponding to the electronic device is stored in the secure computing environment. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the electronic device in which it is located reading the corresponding computer program instructions in the non-volatile memory into the internal memory for execution. From a hardware perspective, such as Figure 5 The following is a hardware structure diagram of the electronic device where the blockchain-based data storage device of this specification is located, except Figure 5 In addition to the processor, memory, network interface, and non-volatile memory shown, the electronic device in which the device in the embodiment is located may also include other hardware according to the actual function of the electronic device, which will not be described in detail.
[0162] Figure 6 It is a block diagram of a data storage device based on blockchain shown in an exemplary embodiment of this specification.
[0163] Please refer to Figure 6 The blockchain-based data storage device 60 can be applied to the aforementioned Figure 5 The electronic device shown includes: an acquisition module 601, a signature module 602 and a publishing module 603.
[0164] An acquisition module 601 is used to acquire a data summary of the target data collected by the terminal device;
[0165] A signing module 602, signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment;
[0166] The publishing module 603 publishes the signed data summary to the blockchain so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
[0167] In this embodiment, the acquisition module 601:
[0168] Receive a data summary of the target data collected by the terminal device and sent by the terminal device; or receive the target data collected by the terminal device and sent by the terminal device, and locally calculate the data summary of the target data.
[0169] In this embodiment, the signature module 602:
[0170] Obtaining identity information input by a user of the pluggable device;
[0171] Performing identity authentication on the user based on the acquired identity information;
[0172] If the identity authentication of the user passes, the data digest is signed in the secure computing environment based on a private key corresponding to the pluggable device.
[0173] In this embodiment, the secure computing environment stores a key generation algorithm;
[0174] The device 60 further comprises:
[0175] The authentication module 604 acquires the identity information input by the user of the pluggable device when the user uses the pluggable device for the first time; and performs identity authentication on the user based on the acquired identity information;
[0176] Generation module 605, if the identity authentication of the user is passed, calls the key generation algorithm in the secure computing environment to generate the private key and the public key; and binds the generated private key to the identity information of the user, and stores the binding relationship in the secure computing environment.
[0177] In this embodiment, the signature module 602:
[0178] Obtaining identity information input by a user of the pluggable device;
[0179] Determining whether a private key bound to the identity information is stored in the secure computing environment;
[0180] If yes, the data summary is signed in the secure computing environment based on a private key bound to the identity information.
[0181] In this embodiment, the publishing module 603:
[0182] The signed data summary is published to the blockchain; or, the signed data summary is sent to the terminal device, so that the terminal device publishes the data summary to the blockchain.
[0183] In this embodiment, the terminal device includes a law enforcement recorder or a driving recorder; the target data includes one or a combination of video data, audio data, and image data.
[0184] In this embodiment, the pluggable device is equipped with a USB interface; the pluggable device achieves hardware docking with the terminal device through the USB interface.
[0185] In this embodiment, the pluggable device is equipped with an SE secure computing chip; the secure computing environment is a secure computing environment built based on the SE secure computing chip.
[0186] In this embodiment, the pluggable device is equipped with an LED indicator light; the device 60 further includes:
[0187] The control module 606 controls the LED indicator to prompt the user of the working status of the pluggable device; wherein the working status includes the working status of executing calculations in the safe computing environment; and the working status of completing calculations in the safe computing environment.
[0188] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0189] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0190] The systems, devices, modules or modules described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0191] Corresponding to the above method embodiment, this specification also provides an embodiment of a pluggable device. The pluggable device includes: a processor and a memory for storing machine executable instructions; wherein the processor and the memory are usually interconnected through an internal bus. In other possible implementations, the device may also include an external interface to enable communication with other devices or components.
[0192] In this embodiment, by reading and executing the machine executable instructions corresponding to the control logic of blockchain-based data evidence stored in the memory, the processor is prompted to:
[0193] Obtaining a data summary of the target data collected by the terminal device; wherein the pluggable device is connected to the terminal device; the pluggable device is equipped with a secure computing environment; the secure computing environment stores a private key corresponding to the pluggable device;
[0194] signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment;
[0195] The signed data summary is published to the blockchain, so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
[0196] In this embodiment, by reading and executing the machine executable instructions corresponding to the control logic of blockchain-based data evidence stored in the memory, the processor is prompted to:
[0197] Receive a data summary of the target data collected by the terminal device and sent by the terminal device; or receive the target data collected by the terminal device and sent by the terminal device, and locally calculate the data summary of the target data.
[0198] In this embodiment, by reading and executing the machine executable instructions corresponding to the control logic of blockchain-based data evidence stored in the memory, the processor is prompted to:
[0199] Obtaining identity information input by a user of the pluggable device;
[0200] Performing identity authentication on the user based on the acquired identity information;
[0201] If the identity authentication of the user passes, the data digest is signed in the secure computing environment based on a private key corresponding to the pluggable device.
[0202] In this embodiment, the secure computing environment stores a key generation algorithm;
[0203] By reading and executing the machine executable instructions corresponding to the control logic of blockchain-based data storage stored in the memory, the processor is prompted to:
[0204] Acquire identity information input by a user of the pluggable device when using the pluggable device for the first time;
[0205] Performing identity authentication on the user based on the acquired identity information;
[0206] If the identity authentication of the user passes, calling the key generation algorithm in the secure computing environment to generate the private key and the public key; and
[0207] The generated private key is bound to the identity information of the user, and the binding relationship is stored in the secure computing environment.
[0208] In this embodiment, by reading and executing the machine executable instructions corresponding to the control logic of blockchain-based data evidence stored in the memory, the processor is prompted to:
[0209] Obtaining identity information input by a user of the pluggable device;
[0210] Determining whether a private key bound to the identity information is stored in the secure computing environment;
[0211] If yes, the data summary is signed in the secure computing environment based on a private key bound to the identity information.
[0212] In this embodiment, by reading and executing the machine executable instructions corresponding to the control logic of blockchain-based data evidence stored in the memory, the processor is prompted to:
[0213] The signed data summary is published to the blockchain; or, the signed data summary is sent to the terminal device, so that the terminal device publishes the data summary to the blockchain.
[0214] In this embodiment, the pluggable device is equipped with an LED indicator light;
[0215] By reading and executing the machine executable instructions corresponding to the control logic of blockchain-based data storage stored in the memory, the processor is prompted to:
[0216] The LED indicator light is controlled to prompt the user of the working status of the pluggable device; wherein the working status includes the working status of executing calculations in the safe computing environment; and the working status of completing calculations in the safe computing environment.
[0217] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention disclosed herein. The specification is intended to cover any variations, uses, or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not disclosed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.
[0218] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
[0219] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A data storage method based on blockchain, applied to a pluggable device connected to a terminal device; wherein: The pluggable device is equipped with a secure computing environment; the secure computing environment stores a private key corresponding to the identity of the pluggable device on the blockchain; The pluggable device is connected to the hardware of the terminal device so that the terminal device completes the device on-line, and the method includes: Obtaining a data summary of the target data collected by the terminal device; signing the data digest in the secure computing environment based on a private key corresponding to an identity of the pluggable device on the blockchain; The signed data summary is published to the blockchain so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
2. According to the method of claim 1, obtaining a data summary of the target data collected by the terminal device comprises: Receiving a data summary of target data collected by the terminal device and sent by the terminal device; Alternatively, the target data collected by the terminal device and sent by the terminal device is received, and a data summary of the target data is calculated locally.
3. The method according to claim 1, signing the data digest based on a private key corresponding to the identity of the pluggable device on the blockchain in the secure computing environment, comprising: Obtaining identity information input by a user of the pluggable device; Performing identity authentication on the user based on the acquired identity information; If the identity authentication of the user is successful, the data summary is signed in the secure computing environment based on a private key corresponding to the identity of the pluggable device on the blockchain.
4. The method according to claim 1, wherein the secure computing environment stores a key generation algorithm; The method further comprises: Acquire identity information input by a user of the pluggable device when using the pluggable device for the first time; Performing identity authentication on the user based on the acquired identity information; If the identity authentication of the user passes, calling the key generation algorithm in the secure computing environment to generate the private key and the public key; as well as, The generated private key is bound to the identity information of the user, and the binding relationship is stored in the secure computing environment.
5. The method according to claim 4, signing the data digest based on a private key corresponding to the pluggable device in the secure computing environment, comprising: Obtaining identity information input by a user of the pluggable device; Determining whether a private key bound to the identity information is stored in the secure computing environment; If yes, the data summary is signed in the secure computing environment based on a private key bound to the identity information.
6. The method according to claim 1, publishing the signed data digest to the blockchain, comprising: Publishing the signed data summary to the blockchain; Alternatively, the signed data summary is sent to the terminal device, so that the terminal device publishes the data summary to the blockchain.
7. According to the method of claim 1, the terminal device includes a law enforcement recorder or a driving recorder; the target data includes one or a combination of video data, audio data, and image data.
8. The method according to claim 1, wherein the pluggable device is equipped with a USB interface; The pluggable device is connected to the terminal device hardware, including: The pluggable device achieves hardware docking with the terminal device through the USB interface.
9. According to the method of claim 1, the pluggable device is equipped with an SE secure computing chip; and the secure computing environment is a secure computing environment built based on the SE secure computing chip.
10. The method according to claim 1, wherein the pluggable device is equipped with an LED indicator light; the method further comprises: The LED indicator light is controlled to prompt the user of the working status of the pluggable device; wherein the working status includes the working status of executing calculations in the safe computing environment; and the working status of completing calculations in the safe computing environment.
11. A data storage device based on blockchain, applied to a pluggable device connected to a terminal device; wherein: The pluggable device is equipped with a secure computing environment; the secure computing environment stores a private key corresponding to the identity of the pluggable device on the blockchain; The pluggable device is connected to the hardware of the terminal device so that the terminal device completes the device chain, and the device includes: An acquisition module, for acquiring a data summary of the target data collected by the terminal device; a signing module, which signs the data digest in the secure computing environment based on a private key corresponding to the identity of the pluggable device on the blockchain; The publishing module publishes the signed data summary to the blockchain so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
12. The device according to claim 11, wherein the acquisition module: Receive a data summary of the target data collected by the terminal device and sent by the terminal device; or receive the target data collected by the terminal device and sent by the terminal device, and locally calculate the data summary of the target data.
13. The device according to claim 11, wherein the signature module: Obtaining identity information input by a user of the pluggable device; Performing identity authentication on the user based on the acquired identity information; If the identity authentication of the user is successful, the data summary is signed in the secure computing environment based on a private key corresponding to the identity of the pluggable device on the blockchain.
14. The device according to claim 11, wherein the secure computing environment stores a key generation algorithm; The device also includes: An authentication module, which obtains identity information input by a user of the pluggable device when using the pluggable device for the first time; Performing identity authentication on the user based on the acquired identity information; The generation module calls the key generation algorithm in the secure computing environment to generate the private key and the public key if the identity authentication of the user is passed; and binds the generated private key to the identity information of the user and stores the binding relationship in the secure computing environment.
15. The apparatus according to claim 14, wherein the signature module: Obtaining identity information input by a user of the pluggable device; Determining whether a private key bound to the identity information is stored in the secure computing environment; If yes, the data summary is signed in the secure computing environment based on a private key bound to the identity information.
16. The device according to claim 11, wherein the publishing module: The signed data summary is published to the blockchain; or, the signed data summary is sent to the terminal device, so that the terminal device publishes the data summary to the blockchain.
17. According to the apparatus of claim 11, the terminal device comprises a law enforcement recorder or a driving recorder; the target data comprises one or a combination of video data, audio data, and image data.
18. The apparatus according to claim 11, wherein the pluggable device is equipped with a USB interface; The pluggable device is connected to the terminal device hardware, including: The pluggable device achieves hardware docking with the terminal device through the USB interface.
19. According to the apparatus of claim 11, the pluggable device is equipped with an SE secure computing chip; and the secure computing environment is a secure computing environment built based on the SE secure computing chip.
20. The apparatus according to claim 11, wherein the pluggable device is equipped with an LED indicator light; the apparatus further comprising: A control module controls the LED indicator to prompt the user of the working status of the pluggable device; wherein the working status includes the working status of executing calculations in the safe computing environment; and the working status of completing calculations in the safe computing environment.
21. A pluggable device, comprising: processor; memory for storing machine-executable instructions; Wherein, by reading and executing the machine executable instructions corresponding to the control logic of blockchain-based data evidence stored in the memory, the processor is prompted to: The pluggable device obtains a data summary of the target data collected by the terminal device connected to the pluggable device; wherein the pluggable device is equipped with a secure computing environment; the secure computing environment stores a private key corresponding to the identity of the pluggable device on the blockchain; the pluggable device is connected to the hardware of the terminal device so that the terminal device completes the device chain; the data summary is signed in the secure computing environment based on the private key corresponding to the identity of the pluggable device on the blockchain; The signed data summary is published to the blockchain so that the node device in the blockchain can verify the signature of the data summary based on the public key corresponding to the private key, and after the signature verification is passed, the data summary is stored in the blockchain for data notarization.
