CN113158248B - Method for credible data acquisition and evidence coexistence of electronic equipment based on block chain technology - Google Patents
Method for credible data acquisition and evidence coexistence of electronic equipment based on block chain technology Download PDFInfo
- Publication number
- CN113158248B CN113158248B CN202110460463.6A CN202110460463A CN113158248B CN 113158248 B CN113158248 B CN 113158248B CN 202110460463 A CN202110460463 A CN 202110460463A CN 113158248 B CN113158248 B CN 113158248B
- Authority
- CN
- China
- Prior art keywords
- data
- electronic equipment
- server
- equipment
- block chain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method for credibly acquiring and verifying electronic equipment data based on a block chain technology, which comprises the following steps of firstly generating a unique public and private key pair for electronic equipment according to the name of an equipment manufacturer, the model of the equipment and the SN number of the equipment; by means of the private key signature and public key signature verification, when data collected by the device are sent to the server in real time, the server can confirm the identity of the device, and the data are guaranteed not to be tampered. By maintaining a strict increasing operation serial number for each device and synchronizing the timestamps, the data sequence uploaded by the devices is ensured to be consistent with the acquired sequence. By maintaining a strictly increasing operation sequence number for each device, the data uploaded by the device is guaranteed not to be lost or deleted during offline. The server stores the public key of the electronic equipment and binds with the electronic equipment information. The invention realizes the whole process of data acquisition to storage to be transparent, credible and untrustworthy through the block chain and the encryption technology.
Description
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a method for credibly acquiring and verifying electronic equipment data based on a block chain technology.
Background
The block chain technology, also called distributed ledger technology, is an emerging technology in which several computing devices participate in "accounting" together, and a complete distributed database is maintained together. The blockchain technology has been widely used in many fields due to its characteristics of decentralization, transparency, participation of each computing device in database records, and rapid data synchronization between computing devices.
Electronic equipment such as an electronic recorder and a monitoring camera integrates functions of video and audio shooting, recording and the like in real time, and the reliability of data must be ensured. In the existing acquisition and storage scheme, data are often acquired by equipment and uploaded to a server for storage in real time, and part of systems can perform block chaining evidence storage on the server data. However, such devices are often maintained by basic users, and run in a variable natural environment, and have the following problems: when the equipment is offline in a weak network environment, data cannot be uploaded to a server in real time, and the possibility of modifying the data exists before networking; the data acquisition sequence is disordered due to inaccurate equipment time, and the use value of the data is greatly reduced; the basic level personnel may also manually interrupt the recording of the device and manually delete the data stored locally before the intervention of the superior department. On the other hand, when data is incomplete due to problems such as abnormal shutdown of equipment, equipment maintenance personnel are often difficult to self-verify and clear, and a trust problem is caused.
Disclosure of Invention
The invention aims to provide a method for credibly acquiring and verifying electronic equipment data based on a block chain technology aiming at the defects of the prior art. The invention realizes the whole process of data acquisition to storage to be transparent, credible and untrustworthy through the block chain and the encryption technology.
The purpose of the invention is realized by the following technical scheme: a method for credibly acquiring and verifying electronic equipment data based on a block chain technology comprises the following steps:
(1) and generating a unique public and private key pair for the electronic equipment according to the equipment manufacturer name, the equipment model and the equipment SN number.
(2) The server stores the public key of the electronic device, binds with the electronic device information and synchronizes the electronic device information to the blockchain. (3) And after the electronic equipment is started, acquiring the latest timestamp and the operation serial number of the electronic equipment from the server.
(4) The electronic device stores a data record for each audio/video data, power on/off data, power quantity data and operation record generated during the use process of the electronic device, and generates a local timestamp for the data record. The data records are ordered starting with sequence number 1, and the sequence number is incremented, referred to as the operation sequence number.
(5) And the electronic equipment generates a data hash value by the data record, the timestamp and the operation serial number.
(6) The electronic device signs the data hash value with the private key.
(7) The electronic equipment sends the data hash value, the public key and the signature to a server, and the server verifies the public key, the signature and the operation serial number of the electronic equipment; and after the verification is passed, the server stores the data record, the operation serial number, the timestamp, the public key and the signature to the block chain, and the server updates the operation serial number of the equipment. If the network is interrupted to cause transmission failure, the electronic equipment locally stores the data record, the operation serial number, the timestamp, the public key and the signature, and retransmits the data record, the operation serial number, the timestamp, the public key and the signature to the server in sequence after the network is recovered.
(8) Before the electronic equipment is powered off, all the data records which are not successfully sent are generated into a data hash value, the data hash value is signed by using a private key, all the data and the signature are stored in a local storage area, and the data and the signature are sent to the server again according to the sequence of the operation serial numbers after the electronic equipment is powered on.
Furthermore, when the electronic equipment cannot directly upload data to the server due to reasons, all data, public keys and signatures are manually copied to a computer and uploaded to the server through the computer by supporting the storage area of the electronic equipment. The server verifies the public key and the signature, and after the verification is passed, the unsuccessfully sent data records are analyzed one by one. And the server stores the analyzed data records to the block chain according to the sequence number sequence, and updates the equipment data sequence number to be the latest operation sequence number plus one.
The invention has the beneficial effects that:
1. through the mode of private key signature public key signature, when data collected by the equipment are sent to the server in real time, the server can confirm the identity of the equipment, and the data are guaranteed not to be tampered.
2. The data operation sequence number is strictly increased for each device, and the timestamp synchronization mode ensures that the data sequence uploaded by the device is consistent with the acquisition sequence.
3. By maintaining a strictly increasing data operation sequence number for each device, the data uploaded by the device is guaranteed not to be lost or deleted during offline. By means of generating signatures for all offline data, when equipment is damaged or networking cannot be achieved, the data can be copied and uploaded manually, and the data are credible.
4. The credible behaviors of equipment users are ensured by recording the operation records, the startup and shutdown data and the electric quantity data of the equipment. Through the block chain storage mode, the device information, the device serial number and the collected data are guaranteed to be not falsifiable and not easy to lose when stored in the server.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a flow chart of data record server authentication generated by the device of the present invention.
Detailed Description
The invention discloses a block chain technology-based electronic equipment data credible acquisition and evidence-storing method, which comprises the following steps as shown in figure 1:
1. and generating a unique public and private key pair for the electronic equipment according to the equipment manufacturer name, the equipment model and the equipment SN number.
2. The server stores the public key of the electronic device, binds with the electronic device information, and synchronizes the electronic device information to the blockchain.
3. And after the electronic equipment is started, acquiring the latest timestamp and the operation serial number of the electronic equipment from the server.
4. The electronic device stores a data record for each audio/video data, power on/off data, power quantity data and operation record generated during the use process of the electronic device, and generates a local timestamp for the data record. The data records are sorted from operation sequence number 1, and the sequence number is incremented.
5. And the electronic equipment generates a data hash value by the data record, the timestamp and the operation serial number.
6. The electronic device signs the data hash value with the private key.
7. The electronic equipment sends the data hash value, the public key and the signature to a server, and the server verifies the public key, the signature and the serial number of the electronic equipment; the server verification process is as shown in fig. 2, after the verification is passed, the server stores the data record, the serial number, the timestamp, the public key and the signature in the block chain, and the server updates the operation serial number of the device. If the network is interrupted to cause transmission failure, the electronic equipment locally stores the data record, the sequence number, the timestamp, the public key and the signature, and retransmits the data record, the sequence number, the timestamp, the public key and the signature to the server in sequence after the network is recovered.
8. Before the electronic equipment is powered off, all the data records which are not successfully sent are generated into a data hash value, the data hash value is signed by using a private key, all the data and the signature are stored in a local storage area, and the data and the signature are sent to the server again according to the sequence of the operation serial numbers after the electronic equipment is powered on.
When the electronic equipment is damaged or cannot be started, all data, the public key and the signature are manually copied to a computer from a storage area of the electronic equipment and uploaded to a server through the computer. The server verifies the public key and the signature, and after the verification is passed, the unsuccessfully sent data records are analyzed one by one. And the server stores the analyzed data records to the block chain according to the sequence number sequence, and updates the equipment data sequence number to be the latest data sequence number plus one.
According to the invention, through a private key signature public key signature verification mode, the server can confirm the identity of the equipment when the data acquired by the equipment is sent to the server in real time, and the data is not tampered. By maintaining a strict increasing operation serial number for each device and synchronizing the timestamps, the data sequence uploaded by the devices is ensured to be consistent with the acquired sequence. By maintaining a strictly increasing data sequence number for each device, the data uploaded by the device is guaranteed not to be lost or deleted during offline. By means of generating signatures for all offline data, when equipment is damaged or networking cannot be performed, the data can be copied and uploaded manually, and the data are credible. The credible behaviors of equipment users are ensured by recording the operation records, the startup and shutdown data and the electric quantity data of the equipment. Through the block chain storage mode, the device information, the device serial number and the collected data are guaranteed to be not falsifiable and not easy to lose when stored in the server.
Claims (2)
1. A method for trustiness collection and evidence of electronic equipment data based on a block chain technology is characterized by comprising the following steps:
(1) generating a unique public and private key pair for the electronic equipment according to the name of an equipment manufacturer, the equipment model and the SN number of the equipment;
(2) the server stores the public key of the electronic equipment, binds with the electronic equipment information and synchronizes the electronic equipment information to the block chain;
(3) after the electronic equipment is started, acquiring a timestamp of a latest block on a block chain and an SN number of the electronic equipment from a server, and calibrating local time according to the timestamp;
(4) the electronic equipment stores a data record for each audio and video data, power on and off data, electric quantity data and operation record generated in the using process of the electronic equipment, and generates a local timestamp for the data record; the data records are marked from a sequence number 1, and the sequence number is increased progressively and is called as an operation sequence number;
(5) the electronic equipment generates a corresponding data hash value according to the data record, the timestamp and the operation serial number;
(6) the electronic equipment signs the data hash value by using a private key;
(7) the electronic equipment sends the data hash value, the public key and the signature to a server, and the server verifies the public key, the signature and the SN number of the electronic equipment; after the verification is passed, the server stores the data record, the operation serial number, the timestamp, the public key and the signature to the block chain, and records the operation serial number which is successfully uploaded by the equipment for the last time; if the network is interrupted to cause transmission failure, the electronic equipment locally stores the data record, the operation serial number, the timestamp, the public key and the signature, and retransmits the data record, the operation serial number, the timestamp, the public key and the signature to a server according to the sequence of the operation serial number after the network is recovered;
(8) before the electronic equipment is powered off, all the data records which are not successfully sent are generated into a data hash value, the data hash value is signed by using a private key, all the data and the signature are stored in a local storage area, and the data and the signature are sent to the server again according to the sequence of the operation serial numbers after the electronic equipment is powered on.
2. The method for trustiness collection and certification of data of electronic equipment based on a block chain technology as claimed in claim 1, wherein when the electronic equipment cannot directly upload data to the server due to some reasons, all data, public keys and signatures are manually copied to the computer by supporting the storage area of the electronic equipment, and uploaded to the server through the computer; the server verifies the public key and the signature, and after the verification is passed, the unsuccessfully sent data records are analyzed one by one; and the server stores the analyzed data records to the block chain according to the sequence of the operation serial numbers, and updates the equipment data serial number to be the latest operation serial number plus one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110460463.6A CN113158248B (en) | 2021-04-27 | 2021-04-27 | Method for credible data acquisition and evidence coexistence of electronic equipment based on block chain technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110460463.6A CN113158248B (en) | 2021-04-27 | 2021-04-27 | Method for credible data acquisition and evidence coexistence of electronic equipment based on block chain technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113158248A CN113158248A (en) | 2021-07-23 |
CN113158248B true CN113158248B (en) | 2022-09-23 |
Family
ID=76871552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110460463.6A Active CN113158248B (en) | 2021-04-27 | 2021-04-27 | Method for credible data acquisition and evidence coexistence of electronic equipment based on block chain technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113158248B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113781245B (en) * | 2021-09-10 | 2023-10-13 | 杭州宇链科技有限公司 | Privacy computing system and method for enabling safe production insurance |
CN113779631A (en) * | 2021-09-10 | 2021-12-10 | 杭州宇链科技有限公司 | Motor vehicle automatic driving operation data recording method based on block chain |
CN113852674A (en) * | 2021-09-10 | 2021-12-28 | 杭州宇链科技有限公司 | Safe production AI inspection method based on credible data |
EP4164173A1 (en) | 2021-10-07 | 2023-04-12 | Axis AB | Signed video data with salted hashes |
CN114564536A (en) | 2021-10-26 | 2022-05-31 | 杭州宇链科技有限公司 | Digital block chain supervision platform for hazardous chemical safety production |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10897877B2 (en) * | 2018-05-04 | 2021-01-26 | Herdx, Inc. | Food supply tracking, authentication, and feedback system |
CN109299196A (en) * | 2018-10-30 | 2019-02-01 | 山东众阳健康科技集团有限公司 | Data managing method, network and data acquisition storage application method and its system |
CN109887295A (en) * | 2019-04-15 | 2019-06-14 | 福建工程学院 | A kind of traffic monitoring method based on street lamp block chain technology |
CN110290157B (en) * | 2019-08-21 | 2019-12-13 | 广东电网有限责任公司 | Metering terminal trusted access device and method for power distribution and utilization scene |
CN111125737B (en) * | 2019-12-25 | 2022-07-19 | 河北先河环保科技股份有限公司 | Environmental monitoring system based on block chain |
CN111212276A (en) * | 2020-04-22 | 2020-05-29 | 杭州趣链科技有限公司 | Monitoring method, system, equipment and storage medium based on camera module |
CN112214780B (en) * | 2020-08-26 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Data processing method and device, intelligent equipment and storage medium |
-
2021
- 2021-04-27 CN CN202110460463.6A patent/CN113158248B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113158248A (en) | 2021-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113158248B (en) | Method for credible data acquisition and evidence coexistence of electronic equipment based on block chain technology | |
CN109543065B (en) | Video active identification method combined with block chain | |
US12061569B2 (en) | Blockchain data archiving method, apparatus, and computer-readable storage medium | |
CN109542888B (en) | Data modification and synchronization method, device, equipment and storage medium of block chain | |
CN110197285B (en) | Block chain-based safe cooperation deep learning method and device | |
CN110008757B (en) | Data protection method and system in updating of terminal firmware of Internet of things | |
CN112235323B (en) | Evidence obtaining method and device based on block chain, electronic equipment and readable storage medium | |
CN110309197B (en) | Project data verification method and device | |
CN103595802A (en) | Method for remotely and automatically updating family gateway software | |
CN110248130A (en) | Credible safeguards system, verification method and the storage medium of video data | |
CN111767583A (en) | Block chain-based enterprise internal information security guarantee method and system | |
CN114372296A (en) | Block chain-based user behavior data auditing method and system | |
CN110866004A (en) | Method for checking whether block chain filing data is tampered | |
WO2020216729A1 (en) | System for method for secured logging of events | |
CN112131041A (en) | Method, apparatus and computer program product for managing data placement | |
CN117395474B (en) | Locally stored tamper-resistant video evidence obtaining and storing method and system | |
CN112395620B (en) | Trusted time stamp implementation method based on trusted time | |
CN112329029A (en) | Block chain-based electronic archive file safe storage method and system | |
CN112699406A (en) | Block chain-based medical image data security management method and system | |
CN112055173A (en) | Method for preventing monitoring video from being tampered by using block chain | |
CN111682955A (en) | Tool arrangement device for criminal scene electronic data evidence obtaining | |
CN113609463B (en) | Internet of things system based on block chain identity management | |
CN116225923A (en) | Verification method and system for legitimacy of offline container environment software | |
CN113938491A (en) | Instruction data traceable tamper-proof method and system based on block chain technology | |
CN116132625A (en) | Supervision method and device for transaction flow |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |