A secure blockchain-based method and system for trading surveillance video data.
By using encrypted storage and hash calculation on the blockchain platform, the problem of centralized storage in surveillance video data transactions is solved, enabling automated transactions and data security, improving the operational efficiency and security of IoT systems, and ensuring data privacy and uniqueness.
Patent Information
- Application Number
- CN202211335807.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-24
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2039-10-24
AI Technical Summary
In existing technologies, the trading of surveillance video data cannot achieve automatic transactions between users and intelligent monitoring equipment terminals, and there are issues with the centralized storage of video data, making it difficult to guarantee data privacy and security.
Through the blockchain platform, video data is encrypted and hashed to generate digital signature information, which is stored in a chain-structured database. Consensus algorithms ensure network-wide consistency. Users and monitoring equipment do not need to establish a trusted relationship. They can query tradable video data through index information, and the decryption key is used by the blockchain platform to confirm the transaction.
It enables video-sharing transactions, reduces centralized network operation and credit costs, improves the security and operational efficiency of IoT systems, ensures data privacy and unique authenticity, protects user rights, and makes the transaction process transparent and fair.
Smart Images

Figure CN115619403B_ABST
Abstract
Description
[0001] This case is a divisional application based on the invention patent filed on October 24, 2019, with application number 201911016040.4 and titled "A Method and System for Transaction of Surveillance Video Data Based on Blockchain". Background Technology
[0002] As blockchain technology matures through innovation and development, its practical effects in industrial applications are becoming increasingly apparent. Blockchain applications have expanded from the financial sector to the real economy. Simultaneously, with the gradual development of global IoT technology and strong policy support from various countries, advanced products such as IoT chips and information sensors are constantly being launched, effectively promoting the application and popularization of IoT, which is now widely used in transportation, logistics, environmental protection, healthcare, retail, and other fields. The combination of blockchain and IoT has played a significant role in improving efficiency and reducing costs.
[0003] Blockchain integrates technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. It features decentralization, trustlessness, data immutability, and traceability, and can provide trust, ownership records, transparency, and communication support for the Internet of Things (IoT). This provides a new approach to solving the challenges of IoT industry development and expanding the development space of the IoT industry.
[0004] In the existing Internet of Things (IoT) industry, in order to realize video distribution and transactions, the common approach is to centralize video data to a centralized data server, encrypt and store the original video, and send the encrypted video to the video applicant after receiving the transaction request, thus enabling automatic paid distribution of the video.
[0005] However, existing data exchange technologies cannot achieve automated transactions between users and intelligent monitoring equipment terminals. Other existing video sharing and trading technologies generally suffer from the problem of centralized video data storage, leading to data privacy and security risks, and making it difficult to guarantee data integrity and security. Summary of the Invention
[0006] The technical problem to be solved by this invention is to provide a secure blockchain-based method and system for trading surveillance video data, enabling video sharing and trading, solving the problem of data-driven data storage, and improving the security, integrity, and authenticity of the data.
[0007] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0008] A secure blockchain-based method for trading surveillance video data includes the following steps:
[0009] S1. The monitoring data terminal receives newly recorded video data from IoT devices, encrypts and stores it as encrypted video data;
[0010] S2. The monitoring data terminal obtains its own unique device ID, the recording location of the IoT device, and the recording time of the newly recorded video data. It then performs a hash calculation on the encrypted video data to obtain the hash value of the encrypted video data. By digitally signing the hash value of the encrypted video data, it obtains the digital signature information of the encrypted video data. Finally, it generates a video data package including its own unique device ID, the recording location of the IoT device, the recording time of the newly recorded video data, the hash value of the encrypted video data, the digital signature information of the encrypted video data, and the current timestamp. The video data package is then uploaded to the blockchain platform.
[0011] S3. The blockchain platform receives the video data package, stores the video data package in the chain structure database, broadcasts the video data package across the entire network, and achieves network-wide consistency through a consensus algorithm.
[0012] S4. The blockchain platform receives the video data transaction request and broadcasts the video data transaction request across the entire network.
[0013] Step S4 further includes the following steps:
[0014] S41. The user terminal obtains index information including the recording location and / or recording time, and sends the index information to the blockchain platform terminal;
[0015] S42. The blockchain platform searches for all tradable video data corresponding to the index information based on the index information, generates and sends a list of tradable video data to the user terminal.
[0016] S5. The monitoring data terminal receives the video data transaction request, sends the requested first encrypted video data to the requested user terminal, and sends the decryption key of the first encrypted video data to the blockchain platform. The monitoring data terminal is a distributed ledger node of the blockchain platform.
[0017] S6. The user terminal receives the first encrypted video data, verifies the digital signature information of the first encrypted video data using the public key, verifies the data integrity of the first encrypted video data using the hash value, and sends a confirmation transaction result to the blockchain platform after both the digital signature and data integrity are verified.
[0018] S7. The blockchain platform receives the decryption key of the first encrypted video data, and after receiving the confirmed transaction result, sends the decryption key of the first encrypted video data to the user terminal to complete the transaction of the first encrypted video data.
[0019] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows:
[0020] A secure blockchain-based surveillance video data transaction system includes a blockchain platform, a surveillance data terminal, and a user terminal. The blockchain platform includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor. The surveillance data terminal includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor. The user terminal includes a third memory, a third processor, and a third computer program stored in the third memory and executable on the third processor. When the first processor executes the first computer program, it performs the following steps:
[0021] S3. Receive the video data encapsulation packet, store the video data encapsulation packet in the chain structure database, broadcast the video data encapsulation packet across the entire network, and achieve network-wide consistency through a consensus algorithm;
[0022] S4. Obtain the video data transaction request and broadcast the video data transaction request across the entire network;
[0023] In step S4, when the first processor executes the first computer program, it also performs the following steps:
[0024] S42. Based on the index information, search to obtain all tradable video data corresponding to the index information, generate and send a list of tradable video data to the user terminal;
[0025] S7. Receive the decryption key of the first encrypted video data, and after receiving the confirmation transaction result, send the decryption key of the first encrypted video data to the user terminal to complete the transaction of the first encrypted video data;
[0026] When the second processor executes the second computer program, it performs the following steps:
[0027] S1. Receive newly recorded video data from IoT devices, encrypt and store it as encrypted video data;
[0028] S2. Obtain the device's unique device ID, the recording location of the IoT device, and the recording time of the newly recorded video data. Perform a hash calculation on the encrypted video data to obtain its hash value. Digitally sign the hash value of the encrypted video data to obtain its digital signature information. Generate a video data package including the device's unique device ID, the recording location of the IoT device, the recording time of the newly recorded video data, the hash value of the encrypted video data, the digital signature information of the encrypted video data, and the current timestamp. Upload the video data package to the blockchain platform.
[0029] S5. Receive the video data transaction request, send the requested first encrypted video data to the requested user terminal, and send the decryption key of the first encrypted video data to the blockchain platform. The monitoring data terminal is a distributed ledger node of the blockchain platform.
[0030] When the third processor executes the third computer program, it performs the following steps:
[0031] In step S4, when the third processor executes the third computer program, it also performs the following steps:
[0032] S41. Obtain index information including recording location and / or recording time, and send the index information to the blockchain platform.
[0033] S6. Receive the first encrypted video data, verify the digital signature information of the first encrypted video data using the public key, verify the data integrity of the first encrypted video data using the hash value, and send a confirmation transaction result to the blockchain platform after verifying both the digital signature and data integrity.
[0034] The beneficial effects of this invention are as follows: A secure blockchain-based method and system for trading surveillance video data. Each video data is stored on its own surveillance data terminal. Through the blockchain platform, the user terminal of the blockchain platform and the monitoring equipment can directly exchange data and information without establishing a trusted relationship, thereby realizing video sharing transactions. This reduces the operation and credit costs of centralized networks, solves the weaknesses of IoT security, and improves operational efficiency and industrial asset utilization, thus enhancing the value of the IoT system. It enables rapid indexing by location and time, allowing users to quickly obtain the desired video information. Furthermore, by sending encrypted video data and decryption keys separately, with the blockchain platform confirming the final result, it reduces transaction processes and increases transaction security. Digital fingerprint extraction is performed on the stored raw data, and digital signature is performed using the private key corresponding to the acquisition device ID, providing encryption and integrity protection to prevent data leakage, content theft, and tampering, ensuring the privacy, security, and unique authenticity of each piece of raw data. Simultaneously, by sending encrypted video data and decryption keys separately, the encrypted video data is sent to the user terminal to verify its data signature and integrity, allowing the user to confirm payment only after confirming that the received encrypted video data is correct, thus protecting user rights. Attached Figure Description
[0035] Figure 1 This is a flowchart illustrating a blockchain-based method for trading surveillance video data, according to an embodiment of the present invention.
[0036] Figure 2 This is a schematic diagram of the structure of a blockchain-based surveillance video data transaction system according to an embodiment of the present invention;
[0037] Label Explanation:
[0038] 1. A blockchain-based surveillance video data trading system; 2. Blockchain platform; 3. First processor; 4. First memory; 5. Surveillance data terminal; 6. Second processor; 7. Second memory; 8. User terminal; 9. Third processor; 10. Third memory. Detailed Implementation
[0039] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.
[0040] Please refer to Figure 1 A secure blockchain-based method for trading surveillance video data includes the following steps:
[0041] S1. The monitoring data terminal receives newly recorded video data from IoT devices, encrypts and stores it as encrypted video data;
[0042] S2. The monitoring data terminal obtains its own unique device ID, the recording location of the IoT device, and the recording time of the newly recorded video data. It then performs a hash calculation on the encrypted video data to obtain the hash value of the encrypted video data. By digitally signing the hash value of the encrypted video data, it obtains the digital signature information of the encrypted video data. Finally, it generates a video data package including its own unique device ID, the recording location of the IoT device, the recording time of the newly recorded video data, the hash value of the encrypted video data, the digital signature information of the encrypted video data, and the current timestamp. The video data package is then uploaded to the blockchain platform.
[0043] S3. The blockchain platform receives the video data package, stores the video data package in the chain structure database, broadcasts the video data package across the entire network, and achieves network-wide consistency through a consensus algorithm.
[0044] S4. The blockchain platform receives the video data transaction request and broadcasts the video data transaction request across the entire network.
[0045] Step S1 further includes the following step:
[0046] S41. The user terminal obtains index information including the recording location and / or recording time, and sends the index information to the blockchain platform terminal;
[0047] S42. The blockchain platform searches for all tradable video data corresponding to the index information based on the index information, generates and sends a list of tradable video data to the user terminal.
[0048] S5. The monitoring data terminal receives the video data transaction request, sends the requested first encrypted video data to the requested user terminal, and sends the decryption key of the first encrypted video data to the blockchain platform. The monitoring data terminal is a distributed ledger node of the blockchain platform.
[0049] S6. The user terminal receives the first encrypted video data, verifies the digital signature information of the first encrypted video data using the public key, verifies the data integrity of the first encrypted video data using the hash value, and sends a confirmation transaction result to the blockchain platform after both the digital signature and data integrity are verified.
[0050] S7. The blockchain platform receives the decryption key of the first encrypted video data, and after receiving the confirmed transaction result, sends the decryption key of the first encrypted video data to the user terminal to complete the transaction of the first encrypted video data.
[0051] As described above, the beneficial effects of this invention are as follows: Each video data is stored on its own monitoring data terminal. Through the blockchain platform, the user terminal of the blockchain platform and the monitoring equipment can directly exchange data and information without establishing a trusted relationship, thereby realizing video sharing transactions. This reduces the operation and credit costs of centralized networks, solves the weaknesses of IoT security, and improves operational efficiency and industrial asset utilization, thus enhancing the value of the IoT system. In addition, by sending encrypted video data and decryption keys separately, and having the blockchain platform confirm the final result, the transaction process is reduced while increasing transaction security. At the same time, digital fingerprint extraction is performed on the stored raw data, and digital signature is performed using the private key corresponding to the acquisition device ID, providing encryption and integrity protection to prevent data leakage, content theft, and tampering, ensuring the privacy, security, and unique authenticity of each piece of raw data. Furthermore, by sending encrypted video data and decryption keys separately, the encrypted video data is sent to the user terminal to verify its data signature and data integrity, allowing the user to confirm payment only after confirming that the received encrypted video data is correct, thus protecting user rights.
[0052] Furthermore, it also includes the following steps:
[0053] S0. After the blockchain platform starts, it initializes configuration information, creates local resource accounts and ledger status information, and synchronizes file state trees and transaction state trees.
[0054] As described above, the blockchain platform needs to be initialized after startup, including synchronizing the file state tree and transaction state tree to ensure the validity of the file state and transaction state information.
[0055] Furthermore, the synchronization of the file state tree specifically involves:
[0056] Synchronize the information of all tradable video files on all chains across the entire network to the file state tree, which contains all filenames, corresponding hash values, and transaction prices for file purchases.
[0057] As described above, the synchronization of the file state tree includes the file name, hash value, and transaction price of the file purchase, thereby ensuring the validity of the information required for the transaction.
[0058] Furthermore, in step S2, "uploading the video data package to the blockchain platform" specifically means: uploading the video data package and the transaction price to the blockchain platform.
[0059] Step S4 specifically involves:
[0060] The blockchain platform receives a video data transaction request, locks the payment fee of the currently logged-in account on the user's end, and broadcasts the video data transaction request across the entire network. The payment fee is equal to the transaction price of the first encrypted video data.
[0061] Step S7 specifically involves:
[0062] The blockchain platform receives the decryption key of the first encrypted video data, and after receiving the confirmed transaction result, sends the decryption key of the first encrypted video data to the user terminal. At the same time, it transfers the locked payment fee to the monitoring data terminal corresponding to the first encrypted video data, obtains transaction result information including transaction success and transaction details, and broadcasts the transaction result information to the entire network.
[0063] It is worth noting that if the encrypted video data obtained by the user is verified to be correct, the user will not be able to access the video content without making payment because they do not have the decryption key. The decryption key is stored on the blockchain platform and is sent automatically by the blockchain platform after the user confirms the payment. Therefore, there is no need to worry about the monitoring data terminal refusing to send the decryption key after confirming receipt of payment.
[0064] As described above, encrypted video data is sent to the user's end to verify its data signature and integrity. This allows the user to confirm the received encrypted video data is correct before confirming payment. The blockchain platform locks the fee in advance and completes the payment at the same time as sending the decryption key to the user's end. This simultaneously protects the rights and interests of both the user's end and the monitoring data end. Moreover, the entire transaction process is open and transparent on the blockchain platform, and both parties can trace the entire process history, ensuring the fairness of the transaction and eliminating the possibility of the platform stealing data.
[0065] Furthermore, in step S4, if the balance of the currently logged-in account on the user's terminal is less than the transaction price of the first encrypted video data, a recharge request is returned;
[0066] If, in step S7, a data reception failure or transaction cancellation is received from the user terminal, the locked payment fee is refunded to the currently logged-in account on the user terminal, and the decryption key of the first encrypted video data is destroyed, thus obtaining transaction result information including transaction failure and transaction process.
[0067] As can be seen from the above description, if the user does not receive the desired video data or any transaction is cancelled before the user pays the fee, the user cannot obtain the desired video content and the monitoring data terminal cannot receive the fee, thus protecting the rights and interests of both the user and the monitoring data terminal.
[0068] Please refer to Figure 2A secure blockchain-based surveillance video data transaction system includes a blockchain platform, a surveillance data terminal, and a user terminal. The blockchain platform includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor. The surveillance data terminal includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor. The user terminal includes a third memory, a third processor, and a third computer program stored in the third memory and executable on the third processor. When the first processor executes the first computer program, it performs the following steps:
[0069] S3. Receive the video data encapsulation packet, store the video data encapsulation packet in the chain structure database, broadcast the video data encapsulation packet across the entire network, and achieve network-wide consistency through a consensus algorithm;
[0070] S4. Obtain the video data transaction request and broadcast the video data transaction request across the entire network;
[0071] In step S4, when the first processor executes the first computer program, it also performs the following steps:
[0072] S42. Based on the index information, search to obtain all tradable video data corresponding to the index information, generate and send a list of tradable video data to the user terminal;
[0073] S7. Receive the decryption key of the first encrypted video data, and after receiving the confirmation transaction result, send the decryption key of the first encrypted video data to the user terminal to complete the transaction of the first encrypted video data;
[0074] When the second processor executes the second computer program, it performs the following steps:
[0075] S1. Receive newly recorded video data from IoT devices, encrypt and store it as encrypted video data;
[0076] S2. Obtain the device's unique device ID, the recording location of the IoT device, and the recording time of the newly recorded video data. Perform a hash calculation on the encrypted video data to obtain its hash value. Digitally sign the hash value of the encrypted video data to obtain its digital signature information. Generate a video data package including the device's unique device ID, the recording location of the IoT device, the recording time of the newly recorded video data, the hash value of the encrypted video data, the digital signature information of the encrypted video data, and the current timestamp. Upload the video data package to the blockchain platform.
[0077] S5. Receive the video data transaction request, send the requested first encrypted video data to the requested user terminal, and send the decryption key of the first encrypted video data to the blockchain platform. The monitoring data terminal is a distributed ledger node of the blockchain platform.
[0078] When the third processor executes the third computer program, it performs the following steps:
[0079] In step S4, when the third processor executes the third computer program, it also performs the following steps:
[0080] S41. Obtain index information including recording location and / or recording time, and send the index information to the blockchain platform.
[0081] S6. Receive the first encrypted video data, verify the digital signature information of the first encrypted video data using the public key, verify the data integrity of the first encrypted video data using the hash value, and send a confirmation transaction result to the blockchain platform after verifying both the digital signature and data integrity.
[0082] As described above, the beneficial effects of this invention are as follows: Each video data is stored on its own monitoring data terminal. Through the blockchain platform, the user terminal of the blockchain platform and the monitoring equipment can directly exchange data and information without establishing a trusted relationship, thereby realizing video sharing transactions. This reduces the operation and credit costs of centralized networks, solves the weaknesses of IoT security, and improves operational efficiency and industrial asset utilization, thus enhancing the value of the IoT system. In addition, by sending encrypted video data and decryption keys separately, and having the blockchain platform confirm the final result, the transaction process is reduced while increasing transaction security. At the same time, digital fingerprint extraction is performed on the stored raw data, and digital signature is performed using the private key corresponding to the acquisition device ID, providing encryption and integrity protection to prevent data leakage, content theft, and tampering, ensuring the privacy, security, and unique authenticity of each piece of raw data. Furthermore, by sending encrypted video data and decryption keys separately, the encrypted video data is sent to the user terminal to verify its data signature and data integrity, allowing the user to confirm payment only after confirming that the received encrypted video data is correct, thus protecting user rights.
[0083] Furthermore, when the first processor executes the first computer program, the method further includes the following steps:
[0084] S0. After startup, initialize configuration information, create local resource accounts and ledger status information, and synchronize file status tree and transaction status tree.
[0085] As described above, the blockchain platform needs to be initialized after startup, including synchronizing the file state tree and transaction state tree to ensure the validity of the file state and transaction state information.
[0086] Furthermore, when the first processor executes the first computer program, the synchronization of the file state tree specifically involves:
[0087] Synchronize the information of all tradable video files on all chains across the entire network to the file state tree, which contains all filenames, corresponding hash values, and transaction prices for file purchases.
[0088] As described above, the synchronization of the file state tree includes the file name, hash value, and transaction price of the file purchase, thereby ensuring the validity of the information required for the transaction.
[0089] Furthermore, in step S2, "uploading the video data package to the blockchain platform" specifically means: uploading the video data package and the transaction price to the blockchain platform.
[0090] In step S4, the first processor executes the first computer program by specifically implementing the following steps:
[0091] Obtain a video data transaction request, lock the payment fee of the currently logged-in account on the user's terminal, and broadcast the video data transaction request to the entire network. The payment fee is equal to the transaction price of the first encrypted video data.
[0092] In step S7, the first processor executes the first computer program by specifically implementing the following steps:
[0093] The system receives the decryption key of the first encrypted video data, and after receiving the confirmed transaction result, sends the decryption key of the first encrypted video data to the user terminal. At the same time, it transfers the locked payment fee to the monitoring data terminal corresponding to the first encrypted video data, obtains transaction result information including transaction success and transaction details, and broadcasts the transaction result information to the entire network.
[0094] As described above, encrypted video data is sent to the user's end to verify its data signature and integrity. This allows the user to confirm the received encrypted video data is correct before confirming payment. The blockchain platform locks the fee in advance and completes the payment at the same time as sending the decryption key to the user's end. This simultaneously protects the rights and interests of both the user's end and the monitoring data end. Moreover, the entire transaction process is open and transparent on the blockchain platform, and both parties can trace the entire process history, ensuring the fairness of the transaction and eliminating the possibility of the platform stealing data.
[0095] Furthermore, when the third processor executes the third computer program, if the balance of the currently logged-in account is less than the transaction price of the first encrypted video data in step S4, a recharge request is returned.
[0096] When the first processor executes the first computer program, if in step S7 a failure to receive data or a cancellation of the transaction is received from the user terminal, the locked payment fee is refunded to the currently logged-in account on the user terminal, and the decryption key of the first encrypted video data is destroyed, thus obtaining transaction result information including transaction failure and transaction process.
[0097] As can be seen from the above description, if the user does not receive the desired video data or any transaction is cancelled before the user pays the fee, the user cannot obtain the desired video content and the monitoring data terminal cannot receive the fee, thus protecting the rights and interests of both the user and the monitoring data terminal.
[0098] The present invention provides a secure blockchain-based method and system for trading surveillance video data, applicable to the trading of video data stored on a blockchain.
[0099] Please refer to Figure 1 Embodiment 1 of the present invention is as follows:
[0100] A blockchain-based method for trading surveillance video data includes the following steps:
[0101] Before video data transactions can be conducted, two steps are involved: initialization and user login and registration authentication. The initialization step is as follows:
[0102] After the blockchain platform is started, it initializes configuration information, creates local resource accounts and ledger status information, and synchronizes file state trees and transaction state trees.
[0103] The data transaction management module within the blockchain platform synchronizes all tradable video file information across the entire network to the file status tree. The file status tree contains all filenames and their corresponding hash values, as well as the transaction price for purchasing the files. In this embodiment, the transaction price corresponds to the payment points on the blockchain platform.
[0104] Once the monitoring data terminal is activated, it records network operation information and updates the regulatory information database to supervise on-chain information.
[0105] The user login and registration authentication steps are as follows: First-time users register through the platform, set an account and password, and obtain a certificate issued by the platform. Registered users log in to the platform using their account, password, and dynamic verification code. Data owners can register and authenticate to become a monitoring data endpoint or join and connect to a monitoring data endpoint, providing monitoring video data for trading services.
[0106] The subsequent video data transaction includes the following steps:
[0107] S4. The blockchain platform receives video data transaction requests and broadcasts the video data transaction requests across the entire network.
[0108] S5. The monitoring data terminal receives a video data transaction request, sends the requested first encrypted video data to the requested user terminal, and sends the decryption key of the first encrypted video data to the blockchain platform. The monitoring data terminal is a distributed ledger node on the blockchain platform.
[0109] S6. The user receives the first encrypted video data, confirms the first encrypted video data, and then sends a confirmation transaction result to the blockchain platform.
[0110] S7. The blockchain platform receives the decryption key of the first encrypted video data and, after receiving the confirmation of the transaction result, sends the decryption key of the first encrypted video data to the user terminal to complete the transaction of the first encrypted video data.
[0111] Please refer to Figure 1 Embodiment two of the present invention is as follows:
[0112] A blockchain-based method for trading surveillance video data. The first embodiment described above is a video data trading process. Given the real-time recording by the surveillance equipment, this second embodiment, based on the first embodiment, further includes the following steps for processing newly recorded video data:
[0113] S1. The monitoring data terminal receives newly recorded video data from IoT devices, encrypts and stores it as encrypted video data. In this embodiment, the IoT devices are monitoring devices, such as monitors or cameras. The monitoring devices record video in real time. The monitoring data terminal collects, converts and analyzes the original data recorded by each monitoring device. Through the terminal software, each piece of original data is created, reviewed and managed on the storage device.
[0114] S2. The monitoring data terminal obtains its own unique device ID, the recording location of the IoT device, and the recording time of the newly recorded video data. It then performs a hash calculation on the encrypted video data to obtain the hash value of the encrypted video data. By digitally signing the hash value of the encrypted video data, it obtains the digital signature information of the encrypted video data. It generates a video data package that includes its own unique device ID, the recording location of the IoT device, the recording time of the newly recorded video data, the hash value of the encrypted video data, the digital signature information of the encrypted video data, and the current timestamp. The video data package and the transaction price are then uploaded to the blockchain platform.
[0115] Specifically, it may send information about multiple newly recorded video data at once, such as:
[0116] <Unique device ID of the monitoring data terminal + Recording location i + Recording time i1 + Hash value of encrypted video data i1 + Digital signature of the hash value by the monitoring data terminal i1 + Timestamp i1> + Transaction price i1;
[0117] <Unique device ID of the monitoring data terminal + Recording location i + Recording time i2 + Hash value of encrypted video data i2 + Digital signature of the hash value by the monitoring data terminal i2 + Timestamp i2> + Transaction price i2;
[0118] ...
[0119] <Unique device ID of the monitoring data terminal + Recording location i + Recording time in + Hash value of encrypted video data in + Digital signature of the hash value by the monitoring data terminal in + Timestamp in> + Transaction price in;
[0120] Where i = 1, 2, ..., m.
[0121] S3: The blockchain platform receives video data packages, stores them in a chain-structured database, broadcasts them across the network, and achieves network-wide consistency through a consensus algorithm.
[0122] Step S4 is as follows:
[0123] S41. The user terminal obtains index information including the recording location and / or recording time, and sends the index information to the blockchain platform.
[0124] S42. The blockchain platform searches for all tradable video data corresponding to the index information based on the index information, generates and sends a list of tradable video data to the user terminal.
[0125] In other words, users can use the smart contract provided by the blockchain platform to call the data resource query function to query the list of available surveillance video data resources for trading. They can search by indexing the recording location and time. The user terminal receives the user's click information in the list of available video data, generates and sends a video data transaction request.
[0126] The blockchain platform receives video data transaction requests, locks the payment amount of the currently logged-in account on the user's end, broadcasts the video data transaction request across the entire network, and the payment amount is equal to the transaction price of the first encrypted video data. If the balance of the currently logged-in account on the user's end is less than the transaction price of the first encrypted video data, a recharge request is returned.
[0127] Step S6 is as follows:
[0128] The user receives the first encrypted video data, verifies the digital signature information of the first encrypted video data using the public key, verifies the data integrity of the first encrypted video data using the hash value, and sends a confirmation transaction result to the blockchain platform after both the digital signature and data integrity are verified.
[0129] Step S7 is as follows:
[0130] The blockchain platform receives the decryption key of the first encrypted video data and, upon receiving confirmation of the transaction result, sends the decryption key to the user terminal. Simultaneously, it transfers the locked payment fee to the monitoring data terminal corresponding to the first encrypted video data, obtaining transaction result information including transaction success and transaction details. This transaction result information is then broadcast across the entire network. If the platform receives a message from the user terminal indicating a failed acceptance or transaction cancellation, the locked payment fee is refunded to the currently logged-in account on the user terminal, and the decryption key of the first encrypted video data is destroyed. This process yields transaction result information including transaction failure and the transaction process.
[0131] Furthermore, in this embodiment, if a user finds that the data does not conform to the description defined in the package or contains other illegal content during the use of the data, the user can upload the complaint to the blockchain platform and report it to the regulatory authority. The regulatory node will then verify the illegal report and process it.
[0132] Please refer to Figure 2 Embodiment 3 of the present invention is as follows:
[0133] A blockchain-based surveillance video data trading system 1 includes a blockchain platform terminal 2, a surveillance data terminal 5, and a user terminal 8. The blockchain platform terminal 2 includes a first memory 4, a first processor 3, and a first computer program stored in the first memory 4 and executable on the first processor 3. The surveillance data terminal 5 includes a second memory 7, a second processor 6, and a second computer program stored in the second memory 7 and executable on the second processor 6. The user terminal 8 includes a third memory 10, a third memory 9, and a third computer program stored in the third memory 10 and executable on the third memory 9. When the first processor 3 executes the first computer program, it implements the corresponding steps in the above embodiment 1. When the second processor 6 executes the second computer program, it implements the corresponding steps in the above embodiment 1. When the third memory 9 executes the third computer program, it implements the corresponding steps in the above embodiment 1.
[0134] In this embodiment, a transaction monitoring terminal is also included, and the functions of each terminal are as follows:
[0135] (1) User Client 8: Programs and plugins that provide services to users. It mainly provides functions such as access system authentication, receiving video data and decryption keys, and playing videos according to the permissions obtained through transactions.
[0136] (2) Monitoring Data Terminal 5: Monitoring Data Terminal 5 is an intelligent monitoring device terminal that connects to one or more monitoring devices with IoT capabilities, such as monitors or cameras. Each monitoring device is configured with a unique identity ID. It aggregates and manages the data from the connected monitoring devices through IoT technology. It collects, converts, and analyzes the raw data recorded by each monitoring device. Through the terminal software, it creates, reviews, and manages each piece of raw data on the storage device.
[0137] Meanwhile, the monitoring equipment also serves as a distributed ledger node of blockchain platform 2, connecting to blockchain platform 2.
[0138] (3) Transaction Monitoring Terminal: This terminal monitors and manages the entire system's operation, supervises information on the blockchain, tracks and analyzes anomalies, and traces the entire process of on-chain behavior. It also serves as a management terminal for verifying, collecting evidence, and holding accountable those responsible for user complaints or reports.
[0139] (4) Blockchain Platform 2: Primarily provides basic technical support for the consortium blockchain and data transaction management functions. The platform uses smart contracts to complete node trust verification and configuration, register and authenticate terminal devices, users and administrators accessing the blockchain platform, set account passwords, issue certificates and keys, set different permission levels, and achieve comprehensive management of users, thereby preventing and eliminating fake nodes from accessing the network and ensuring the security of communication network nodes.
[0140] The data transaction management function includes user-initiated data resource queries, data resource transaction management, verification of smart contracts in the data transaction process, support for dynamic verification code authorization, and provision of points recharge and points payment functions to complete data transactions.
[0141] The original encrypted video data does not need to be uploaded to blockchain platform 2. The data uploaded to blockchain platform 2 is a video data package. After monitoring data terminal 5 uploads the packaged data to the blockchain, blockchain platform 2 broadcasts it to all users on the platform for querying.
[0142] Therefore, it can be seen that the distributed peer-to-peer structure and transparent algorithms of blockchain can establish mutual trust at low cost, break down information silos, promote horizontal information flow and multi-party collaboration, and thus facilitate cross-entity trust collaboration. In blockchain platform 2, any device can join or leave the network at any time. Based on the consensus mechanism, blockchain can connect different protocols and devices, providing the ability to manage, query, and analyze data in the peer-to-peer network. Users and devices on blockchain platform 2 can directly exchange data and information without establishing a trusted relationship.
[0143] Blockchain-based data ownership verification and transactions protect IoT data privacy while fully unlocking data value. Building blockchain applications for the IoT can reduce centralized network operation and credit costs, address IoT security weaknesses, improve operational efficiency and industrial asset utilization, and ultimately enhance the value of IoT systems.
[0144] The biggest advantage of using blockchain technology lies in its ability to enable direct transactions without trustworthy intermediaries. Execution terms are defined through smart contracts, and transactions are automatically executed when conditions are met. In other words, the combination of blockchain technology and the Internet of Things (IoT) can eliminate the verification process between nodes, directly bridging communication between the parties involved. This reduces transaction setup time from days to near instantaneous, thereby lowering operating costs, improving efficiency, and creating a new business model for instant resource sharing.
[0145] Please refer to Figure 2 Embodiment four of the present invention is as follows:
[0146] A blockchain-based surveillance video data trading system 1, based on the above embodiment 3, wherein when the first processor 3 executes the first computer program, it implements the corresponding steps in the above embodiment 2; when the second processor 6 executes the second computer program, it implements the corresponding steps in the above embodiment 2; and when the third memory 9 executes the third computer program, it implements the corresponding steps in the above embodiment 2.
[0147] In summary, this invention provides a blockchain-based method and system for trading surveillance video data. Each video data is stored on its own monitoring data terminal. Through the blockchain platform, the user terminal and monitoring equipment can directly exchange data and information without establishing a trusted relationship, thus enabling video sharing and trading. This reduces the operational and credit costs of centralized networks, addresses the weaknesses in IoT security, and improves operational efficiency and industrial asset utilization, thereby enhancing the value of the IoT system. Furthermore, by sending encrypted video data and decryption keys separately, with the blockchain platform confirming the final result, the transaction process is simplified while increasing security. This application extracts digital fingerprints from the stored raw data and uses the private key corresponding to the acquisition device ID for digital signature, providing encryption and integrity protection to prevent data leakage and content breaches. To prevent theft and tampering, the privacy, security, and unique authenticity of every piece of original data are ensured. Simultaneously, encrypted video data and decryption keys are sent separately. Encrypted video data is sent to the user's end to verify its data signature and integrity, allowing the user to confirm payment only after receiving the encrypted video data. The blockchain platform pre-locks the fee and completes payment simultaneously with sending the decryption key to the user's end. If the user does not receive the desired video data or any transaction is canceled before payment, the user cannot obtain the desired video content, and the monitoring data provider also cannot receive payment. This simultaneously protects the rights of both the user and the monitoring data provider. Furthermore, the entire transaction process is open and transparent on the blockchain platform, allowing both parties to trace the entire process history, ensuring fairness and eliminating the possibility of platform data theft.
[0148] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A secure blockchain-based method for trading surveillance video data, characterized in that, Including the following steps: S1. The monitoring data terminal receives newly recorded video data from IoT devices, encrypts and stores it as encrypted video data; S2. The monitoring data terminal obtains its own unique device ID, the recording location of the IoT device, and the recording time of the newly recorded video data. It then performs a hash calculation on the encrypted video data to obtain the hash value of the encrypted video data. By digitally signing the hash value of the encrypted video data, it obtains the digital signature information of the encrypted video data. Finally, it generates a video data package including its own unique device ID, the recording location of the IoT device, the recording time of the newly recorded video data, the hash value of the encrypted video data, the digital signature information of the encrypted video data, and the current timestamp. The video data package is then uploaded to the blockchain platform. S3. The blockchain platform receives the video data package, stores the video data package in the chain structure database, broadcasts the video data package across the entire network, and achieves network-wide consistency through a consensus algorithm. S4. The blockchain platform receives the video data transaction request and broadcasts the video data transaction request across the entire network. Step S4 further includes the following steps: S41. The user terminal obtains index information including the recording location and / or recording time, and sends the index information to the blockchain platform terminal; S42. The blockchain platform searches for all tradable video data corresponding to the index information based on the index information, generates and sends a list of tradable video data to the user terminal. S5. The monitoring data terminal receives the video data transaction request, sends the requested first encrypted video data to the requested user terminal, and sends the decryption key of the first encrypted video data to the blockchain platform. The monitoring data terminal is a distributed ledger node of the blockchain platform. S6. The user terminal receives the first encrypted video data, verifies the digital signature information of the first encrypted video data using the public key, verifies the data integrity of the first encrypted video data using the hash value, and sends a confirmation transaction result to the blockchain platform after both the digital signature and data integrity are verified. S7. The blockchain platform receives the decryption key of the first encrypted video data, and after receiving the confirmed transaction result, sends the decryption key of the first encrypted video data to the user terminal to complete the transaction of the first encrypted video data.
2. The secure blockchain-based method for trading surveillance video data according to claim 1, characterized in that, It also includes the following steps: S0. After the blockchain platform starts, it initializes configuration information, creates local resource accounts and ledger status information, and synchronizes file state trees and transaction state trees.
3. The secure blockchain-based method for trading surveillance video data according to claim 2, characterized in that, The synchronization of the file status tree specifically involves: Synchronize the information of all tradable video files on all chains across the entire network to the file state tree, which contains all filenames, corresponding hash values, and transaction prices for file purchases.
4. A secure blockchain-based surveillance video data transaction system, comprising a blockchain platform, a surveillance data terminal, and a user terminal, wherein the blockchain platform includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor; the surveillance data terminal includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor; and the user terminal includes a third memory, a third processor, and a third computer program stored in the third memory and executable on the third processor, characterized in that... When the first processor executes the first computer program, it performs the following steps: Receive video data encapsulation packets, store the video data encapsulation packets in a chain-structured database, broadcast the video data encapsulation packets across the entire network, and achieve network-wide consistency through a consensus algorithm; Obtain a video data transaction request and broadcast the video data transaction request across the entire network; Based on the index information, search to obtain all tradable video data corresponding to the index information, generate and send a list of tradable video data to the user terminal; The system receives the decryption key for the first encrypted video data and, after receiving confirmation of the transaction result, sends the decryption key for the first encrypted video data to the user terminal to complete the transaction of the first encrypted video data. When the second processor executes the second computer program, it performs the following steps: Receive newly recorded video data from IoT devices, encrypt and store it as encrypted video data; The system obtains its own unique device ID, the recording location of the IoT device, and the recording time of the newly recorded video data. It then performs a hash calculation on the encrypted video data to obtain the hash value of the encrypted video data. By digitally signing the hash value of the encrypted video data, it obtains the digital signature information of the encrypted video data. Finally, it generates a video data package that includes its own unique device ID, the recording location of the IoT device, the recording time of the newly recorded video data, the hash value of the encrypted video data, the digital signature information of the encrypted video data, and the current timestamp. The video data package is then uploaded to the blockchain platform. Upon receiving the video data transaction request, the system sends the requested first encrypted video data to the requesting user terminal and sends the decryption key of the first encrypted video data to the blockchain platform. The monitoring data terminal is a distributed ledger node of the blockchain platform. When the third processor executes the third computer program, it performs the following steps: Obtain index information including recording location and / or recording time, and send the index information to the blockchain platform. The system receives the first encrypted video data, verifies the digital signature information of the first encrypted video data using a public key, verifies the data integrity of the first encrypted video data using a hash value, and sends a confirmation transaction result to the blockchain platform after both the digital signature and data integrity verifications are successful.
5. A secure blockchain-based surveillance video data transaction system according to claim 4, characterized in that, The first processor, when executing the first computer program, further includes the following steps: After startup, initialize configuration information, create local resource accounts and ledger status information, and synchronize file status tree and transaction status tree.
6. A secure blockchain-based surveillance video data transaction system according to claim 5, characterized in that, When the first processor executes the first computer program, the synchronization of the file state tree specifically involves: Synchronize the information of all tradable video files on all chains across the entire network to the file state tree, which contains all filenames, corresponding hash values, and transaction prices for file purchases.
Citation Information
Patent Citations
Method and system for managing Internet of things terminals
CN108377272A
Network audio-visual management support system based on blockchain technology
CN108769752A