Video verification method, device and system based on block chain and cryptographic algorithm
By combining blockchain and national cryptographic algorithms, a video verification method is developed to generate and store proofs and encrypt video frame data. This solves the problems of low efficiency and poor security in the process of video data verification and traceability, and realizes the security and traceability of video data. It is applicable to fields such as judicial evidence preservation and security monitoring.
Patent Information
- Application Number
- CN202510923725.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-10-28
AI Technical Summary
Existing technologies suffer from low efficiency, poor security, and insufficient privacy protection in the process of video data verification and tracing. In particular, they are difficult to effectively resist tampering and attacks when transmitting and storing high-definition, large-capacity video data.
A video verification method based on blockchain and national cryptographic algorithms is adopted. Storage proof is generated through storage proof technology, and the video frame data is encrypted using the national cryptographic algorithm SM3. Combined with timestamp feature extraction technology, the integrity and security of video data are ensured.
It ensures the security, integrity, and traceability of video data during transmission and storage, provides reliable protection in complex network environments, guarantees the tamper resistance and privacy protection of video data, and supports highly reliable applications in fields such as judicial evidence preservation and security monitoring.
Smart Images

Figure CN120856907A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video data security, and more specifically, to a video verification method and system based on blockchain and Chinese cryptographic algorithms. Addressing the challenges of easily tampered video data, difficulties in verification and tracing, and the need for data privacy protection, this invention designs a fast and reliable video verification and tracing scheme that combines blockchain, Chinese cryptographic algorithms, and Proof-of-Storage (PoS) technology. Background Technology
[0002] With the development of the digital age, video data is increasingly used in various fields. By integrating multimedia and information technologies, it has become an important carrier for modern information dissemination and recording. Many scenarios, such as judicial trials, security monitoring, and content creation, heavily rely on the authenticity and security of video data. However, the verification of video data authenticity still faces numerous problems, posing a serious threat to its application and user rights.
[0003] In the management and use architecture of video data, videos are typically captured by camera equipment and then transmitted over a network to storage servers or related platforms. If multiple parties are involved, the data needs to be forwarded multiple times. For example, in the judicial field, surveillance videos captured by cameras need to be transmitted to the public security bureau's server for storage before being provided to all parties during court proceedings. This process exposes video data to numerous risks. On the one hand, transmission efficiency is low, especially for high-definition, large-capacity videos. When network bandwidth is limited, transmission takes a long time, affecting the timeliness of information acquisition. On the other hand, data security is difficult to guarantee. Once the server is attacked by hackers, the data is tampered with, or there is unauthorized operation by internal personnel, the authenticity and integrity of the video will be compromised, rendering it unusable as valid evidence or a source of genuine information.
[0004] Currently, researchers have proposed several technical solutions to address these issues, such as digital watermarking and blockchain technology. Digital watermarking embeds specific information into video data for copyright identification or data tracking; blockchain, through hash calculations and a chained storage structure, records relevant information from video data to ensure its immutability and traceability. However, these technologies also have drawbacks. Digital watermarking has a high verification threshold; ordinary users lack the necessary tools and knowledge to independently verify the authenticity of video data, and watermark embedding may affect video quality, reducing its quality as evidence or information carrier. While ordinary blockchain technology can guarantee data immutability, its frequent file downloads and hash value calculations are inefficient and time-consuming when dealing with large-scale video data. Furthermore, blockchain storage is overburdened, easily leading to performance bottlenecks. None of these technologies can effectively defend against complex attacks; for example, attackers can bypass digital watermark detection or exploit blockchain vulnerabilities to tamper with data, severely challenging the security and credibility of video data. Summary of the Invention
[0005] In the current field of video verification and tracing, existing technical solutions still fall short in terms of efficient verification, reliable tracing, and privacy protection of video data, making it difficult to meet the growing demands for video data security. To address these issues, this invention provides a video verification method and system based on blockchain and national cryptographic algorithms.
[0006] To achieve the above objectives, the first aspect of this invention provides a video verification method based on blockchain and national cryptographic algorithms, comprising: Receive video data uploaded by the client; A storage proof is generated using storage proof technology and sent to the client; Video frame data is extracted based on timestamp feature extraction technology; The extracted video frame data is encrypted using the national cryptographic algorithm SM3 to generate encrypted video data, which is then sent to the client so that the client can verify the storage certificate and the encrypted video data based on whether it is the first upload.
[0007] In one implementation, generating a storage proof using a storage proof technique includes: The system receives an encoded file, status information, and challenge vector sent by the client. The encoded file and status information are generated by the client after obtaining an HLA key pair through a key generation algorithm, and then encoding the file using an encryption encoding algorithm based on the HLA key pair. The challenge vector is generated by the client selecting a random key and then using a pseudo-random function. Based on the encoded file, state information, and challenge vector, a tag authentication algorithm is used to calculate the combined tag and linear combination value, and a storage proof is generated based on the combined tag and linear combination value.
[0008] In one implementation, the generation methods for the encoded file, status information, and challenge vector include: The client runs a key generation algorithm to obtain the HLA key pair (pk, sk), and uses the Encode algorithm to encode the file f. The Encode algorithm calls the HLA Tag algorithm to generate the file tag t, and outputs the encoded file f′=(f, t) and the status information st. The client selects a random key K∈{0,1} k The challenge vector c is generated by a pseudo-random function F, where k represents the number of bits in the random key K.
[0009] In one implementation, based on the encoded file, state information, and challenge vector, a tag authentication algorithm is used to calculate a combined tag and a linear combination value, and a storage proof is generated based on the combined tag and the linear combination value, including: The server invokes the HLA tag authentication algorithm (Auth algorithm) based on the encoded file, status information, and challenge vector. The algorithm calculates the combined tag τ = Auth. pk (f,t, c), where pk is the public key, f is the file, t is the file tag, and c is the challenge vector; Calculate the linear combination value μ=∑ i c i f i c i For the i-th challenge element, c i = F K (i), f i This refers to the content of the i-th block in file f; The storage proof π=(μ,τ) is generated based on the combination of labels and linear combination values.
[0010] In one implementation, the extracted video frame data is encrypted using the national cryptographic algorithm SM3 to generate encrypted video data, including: The SM3 hash value of the frequency frame is calculated using the national cryptographic algorithm SM3; The calculated SM3 hash values of the video frames are concatenated to obtain the encrypted video data.
[0011] Based on the same inventive concept, a second aspect of this invention provides a video verification method based on blockchain and national cryptographic algorithms, comprising: Video data is uploaded to the server, which then generates a storage certificate using storage proof technology and sends it to the client. The server extracts video frame data using timestamp feature extraction technology. The extracted video frame data is then encrypted using the national cryptographic algorithm SM3 to generate encrypted video data, which is then sent to the client. Verification is performed on the storage certificate and encrypted video data based on whether it is the first upload.
[0012] In one implementation, verification of the storage certificate and encrypted video data based on whether it is the first upload includes: If it is the first upload, the encrypted video data, the first upload verification, and the current timestamp will be stored in the blockchain structure to which the video belongs; If this is not the first upload, the encrypted video data is compared with the pre-recorded hash value. The received storage proof is verified using a verification algorithm. If the hash values are the same and the storage proof verification passes, it indicates that the video content has not been tampered with and is stored completely in the specified location. If the hash values are different, it indicates that the video content has been changed during storage. If the storage proof verification fails, it means that the video may be incomplete during storage.
[0013] Based on the same inventive concept, a third aspect of the present invention provides a video verification device based on blockchain and national cryptographic algorithms, wherein the device is a server, comprising: The receiving module is used to receive video data uploaded by the client; The proof generation module is used to generate storage proofs using storage proof technology and send them to the client; The video frame extraction module is used to extract video frame data based on timestamp feature extraction technology. The data conversion and encryption module is used to encrypt the extracted video frame data using the national cryptographic algorithm SM3, generate encrypted video data, and send it to the client so that the client can verify the storage certificate and the encrypted video data based on whether it is the first upload.
[0014] Based on the same inventive concept, a fourth aspect of the present invention provides a video verification device based on blockchain and national cryptographic algorithms, wherein the device is a client and includes: The video upload module is used to upload video data to the server, so that the server can generate a storage certificate through storage proof technology and send it to the client. The server extracts video frame data based on timestamp feature extraction technology; then, it uses the national cryptographic algorithm SM3 to encrypt the extracted video frame data, generate encrypted video data, and send it to the client. The verification module is used to verify the storage certificate and encrypted video data based on whether it is the first upload.
[0015] Based on the same inventive concept, the fifth aspect of the present invention provides a video verification system based on blockchain and national cryptographic algorithms, including the video verification devices based on blockchain and national cryptographic algorithms of the third and fourth aspects.
[0016] Compared with the prior art, the advantages and beneficial technical effects of the present invention are as follows: This invention ensures the security, integrity, and traceability of video data during transmission, storage, and use, providing reliable protection for users in complex network environments and various potential risks, and has significant application value. When video data enters the system, it undergoes multiple protection processes: first, keyframes are extracted using frame extraction technology; then, the keyframes are encrypted using national cryptographic algorithms; finally, leveraging blockchain's distributed storage and storage proof technology, the integrity and correctness of the video file's storage are recorded on the blockchain, achieving tamper-resistant and reliable storage, thereby addressing risks such as malicious data alteration and loss.
[0017] During the data processing flow, the system rigorously verifies the received video data to ensure its legitimacy and tamper-proof nature. Upon successful verification, encrypted data is stored on the blockchain, and the blockchain's immutability and smart contracts automatically execute the verification logic, periodically checking data integrity. When verification and tracing are required, the system quickly determines whether the video has been tampered with by comparing the encrypted hash value stored on the blockchain. If no anomalies are found, complete tracing information is provided according to established rules, presenting a complete record of the video from its generation to its current state, without disclosing any privacy information beyond the authorized scope.
[0018] Throughout the process, data is encrypted during transmission and storage, and decryption is only performed to a limited extent under authorized conditions. Therefore, this technology effectively ensures the security of video data, providing highly reliable technical support for numerous fields such as judicial evidence preservation, security monitoring, and copyright protection, and powerfully promoting the digital development of related industries. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart of a video verification method based on blockchain and national cryptographic algorithms in an embodiment of the present invention; Figure 2 This is a flowchart of another video verification method based on blockchain and national cryptographic algorithms in an embodiment of the present invention; Figure 3 This is a detailed flowchart of the video verification method based on blockchain and national cryptographic algorithms in an embodiment of the present invention; Figure 4 This is a block diagram of a video verification device based on blockchain and national cryptographic algorithms in an embodiment of the present invention; Figure 5 This is a module diagram of another video verification device based on blockchain and national cryptographic algorithms in an embodiment of the present invention. Detailed Implementation
[0021] Example 1 This embodiment provides a video verification method based on blockchain and national cryptographic algorithms. Please refer to [link to relevant documentation]. Figure 1 ,include: S101: Receive video data uploaded by the client; S102: Generate a storage proof using storage proof technology and send it to the client; S103: Extract video frame data based on timestamp feature extraction technology; S104: The extracted video frame data is encrypted using the national cryptographic algorithm SM3 to generate encrypted video data, which is then sent to the client so that the client can verify the storage certificate and the encrypted video data based on whether it is the first upload.
[0022] Specifically, the subject of the method of the present invention is a cloud server.
[0023] The S101 client continuously uploads video data to the cloud server via the network, ensuring the real-time nature and integrity of the video data.
[0024] S102 can be implemented in the following way: The system receives an encoded file, status information, and challenge vector sent by the client. The encoded file and status information are generated by the client after obtaining an HLA key pair through a key generation algorithm, and then encoding the file using an encryption encoding algorithm based on the HLA key pair. The challenge vector is generated by the client selecting a random key and then using a pseudo-random function. Based on the encoded file, state information, and challenge vector, a tag authentication algorithm is used to calculate the combined tag and linear combination value, and a storage proof is generated based on the combined tag and linear combination value.
[0025] In the specific implementation process, the client first runs the Gen algorithm (key generation algorithm) to obtain the HLA key pair (pk, sk), and then uses the Encode algorithm to encode the file f. The Encode algorithm calls the HLA Tag algorithm to generate the file tag t, and outputs the encoded file f′=(f,t) and the status information st; then, a random key K∈{0,1} is selected. k The challenge vector elements c are generated using a pseudo-random function F. i =F K (i) The challenge vector is composed of all elements; then the encoded file, status information and challenge vector are sent to the server.
[0026] The server then calls the HLA's authentication algorithm (verification algorithm) to calculate the tag combination τ = Auth pk (f,t,c), and calculate the linear μ=∑ i c i f i Finally, the output proves that π = (μ, τ).
[0027] The relevant parameters mentioned in the above steps are explained and described as follows: i is an integer index representing the i-th file block; K∈{0,1} k In this context, k represents the number of bits in the key K; Tag vector The client uses the private key sk to access each block of the file. The generated authentication label (signature or proof); τ is the combined tag, which is the authentication response calculated by the server based on the challenge vector c and all tags t. Essentially, τ is the sum of all tags. The weighted combination result is used to authenticate the combination value μ=∑ i c i f i ; It represents the content of the i-th block in the original file, is an integer, and belongs to [B], which is a value in a finite field.
[0028] μ is a linear combination value calculated by the server based on the challenge vector c and the file f. It is part of the authentication data returned to the client, which uses it and the combination tag τ for verification.
[0029] The table below shows the correspondence between the parameters in Authpk(f,t,c) and the parameters mentioned above:
[0030] Based on the video's frame rate information, S103 captures frames from the video stream at a certain frequency in a regular manner.
[0031] In practice, the server extracts frame images from the video files uploaded by the client, and at the same time checks and creates an output folder to save the frame images. It reads frames from the video at a certain extraction frequency and saves these frames as JPEG files with the file name in the format frame_<number>.jpg.
[0032] S104: The extracted video frame data is encrypted using the national cryptographic algorithm SM3, which can be achieved in the following way: The SM3 hash value of the frequency frame is calculated using the national cryptographic algorithm SM3; The calculated SM3 hash values of the video frames are concatenated to obtain the encrypted video data.
[0033] Please see Figure 3 The following is a detailed flowchart of the video verification method based on blockchain and national cryptographic algorithms in an embodiment of the present invention. In specific implementation, the SM3 national cryptographic algorithm is used to encrypt video frame data. Figure 3 Step 4 in the process.
[0034] Step 4.1: Calculate the SM3 hash value of the video frame. The SM3 algorithm is suitable for frames shorter than 2 bytes. 64 The message m is processed to generate a hash value of 256 bits.
[0035] Step 4.1.1: Pad the original message. Add a "1" bit to the end of the original message m. Then, calculate the number of "0"s to add, k, where k is the smallest non-negative integer satisfying L+1+k≡448 mod 512 (where L is the length of the original message m). After adding the "1", pad with k "0"s. Finally, add a 64-bit bit string, which is the binary representation of the original message length L. After padding, the length of the padded message m′ is a multiple of 512.
[0036] Step 4.1.2: Perform iterative compression. First, group the padded message m′ into groups of 512 bits each, which can be represented as m′=B. (0) B (1) ...B (n-1) , where n= .
[0037] Then the iterative operation begins: iterates from i=0 to i=n-1, executing V in each iteration. (i+1) =CF(V (i) B (i) Here, CF is the compression function, and V... (0) It is a fixed 256-bit initial value IV, B (i)It is the i-th group of the padded message, and the final result of the iteration is V. (n) .
[0038] Next, message expansion is performed for each message group B. (i) It needs to be expanded to generate 132 words for the compression function CF.
[0039] B (i) Divided into 16 characters W0, W1, ..., W 15 Loop through j=16 to j=67 and calculate:
[0040] Loop through j=0 to j=63 and calculate W. j ′=W j ⊕W j+4 .
[0041] The W mentioned above j This is a sequence of words generated during message expansion. Each word is a 32-bit bit string (composed of 32 binary bits); P1 is the permutation function used in message expansion, applied to a 32-bit word. The mathematical expression is:
[0042] X is a 32-bit word, and the last W... j ′ is a sequence of derived words generated during message expansion, with each word being a 32-bit string.
[0043] Finally, the compression function is calculated. In the calculation of the compression function CF, there are word registers A, B, C, D, E, F, G, H and intermediate variables SS1, SS2, TT1, TT2.
[0044] V (i) The value is assigned to ABCDEFGH; the calculation is performed sequentially from j=0 to j=63:
[0045]
[0046] TT1=F j (A,B,C)+D+SS2+Wj′ TT2=G j (E,F,G)+H+SS1+Wj Then update the register value: D=C, B=A, A=TT1, H=G F=E, E=P0(TT2).
[0047] After the loop ends, calculate V(i+1) = ABCDEFGH ⊕ V (i) Step 4.1.3: After the iterative compression is complete, V (n) The value is assigned to ABCDEFGH, and the final output 256-bit value y=ABCDEFGH.
[0048] Step 4.2: Concatenate the SM3 hash values of the video frames obtained in the previous steps, and calculate the SM3 hash value again to obtain the encrypted video data.
[0049] Example 2 Based on the same inventive concept, this embodiment discloses a video verification method based on blockchain and national cryptographic algorithms. Please refer to [link to relevant documentation]. Figure 2 ,include: S201: Upload video data to the server so that the server can generate a storage certificate through storage proof technology and send it to the client. The server extracts video frame data based on timestamp feature extraction technology. Then, the extracted video frame data is encrypted using the national cryptographic algorithm SM3 to generate encrypted video data and send it to the client. S202: Verify the storage certificate and encrypted video data based on whether it is the first upload.
[0050] Specifically, the execution entity of the method of the present invention is a cloud server. The implementation steps in S201 have been described in detail in Embodiment 1, and will not be repeated here.
[0051] S202 can be achieved in the following way: If it is the first upload, the encrypted video data, the first upload verification, and the current timestamp will be stored in the blockchain structure to which the video belongs; If this is not the first upload, the encrypted video data is compared with the pre-recorded hash value. The received storage proof is verified using a verification algorithm. If the hash values are the same and the storage proof verification passes, it indicates that the video content has not been tampered with and is stored completely in the specified location. If the hash values are different, it indicates that the video content has been changed during storage. If the storage proof verification fails, it means that the video may be incomplete during storage.
[0052] In practice, if it is the first upload of a video, there is no need to compare hash values or store historical verification of proofs. The calculated video hash value, the verification result (which can be marked as "first upload verification" for the first upload), and the current timestamp are directly stored in the blockchain structure to which the video belongs.
[0053] If this is not the first upload of the video, the server will generate a hash value and a storage proof and return it to the client; the client will then perform the following operations: The returned hash value is compared with the hash value of the last record on the blockchain; The Vrfy algorithm is used to verify the received stored proof π.
[0054] Specifically, the client parses μ and τ from π, and then regenerates the elements c of the challenge vector using a pseudo-random function F. i =F K (i), and obtain the adjustment vector c, then call the HLA's Vrfy algorithm to verify b=Λ.Vrfy pk (st,μ,c,τ). If b=1, the proof is accepted, and the server is considered to have correctly stored the file; if b=0, the proof is rejected. Here, Λ represents a Public-Key Homomorphic Linear Authenticator (HLA), which is the overall structure of an authentication mechanism, containing a tuple of four algorithms: Gen, Tag, Auth, and Vrfy. The meaning of each component is as follows: Gen: Key generation algorithm, which generates public-private key pairs (pk, sk); Tag: Used by the client to tag the raw file data, outputting the tag t and status information st; Auth: The server uses this algorithm to calculate the corresponding response τ based on the challenge vector c given by the client and the stored file block f; Vrfy: The client uses this algorithm to verify whether the proof received from the server (combined message value μ and authentication tag τ) is valid.
[0055] Preferably, this embodiment also includes: If the calculated video hash value matches the pre-recorded hash value, and the storage proof verification passes successfully, this indicates that the video content has not been tampered with and is stored intact in the designated location. At this point, the hash value obtained from this verification, the verification result, and the current timestamp need to be stored in the corresponding blockchain structure. The characteristics of the blockchain ensure that this data cannot be tampered with once recorded, thus forming a traceable record. Each successful verification adds a new block to the blockchain; these blocks are arranged in chronological order, providing a complete historical record of the video's storage status. If the calculated video hash value differs from the pre-recorded hash value, it indicates that the video content has changed during storage. If the storage proof verification fails, it means that the video may be incomplete during storage.
[0056] Example 3 Based on the same inventive concept, this embodiment provides a video verification device based on blockchain and national cryptographic algorithms. The device is a server. Please refer to [link to documentation]. Figure 4 ,include: Receiver module 301 is used to receive video data uploaded by the client; The proof generation module 302 is used to generate a storage proof using storage proof technology and send it to the client; The video frame extraction module 303 is used to extract video frame data based on timestamp feature extraction technology; The data conversion and encryption module 304 is used to encrypt the extracted video frame data using the national cryptographic algorithm SM3, generate encrypted video data, and send it to the client so that the client can verify the storage certificate and the encrypted video data based on whether it is the first upload.
[0057] Since the apparatus in Embodiment 3 of the present invention is the same apparatus used to implement the method in Embodiment 1 of the present invention, those skilled in the art can understand the specific structure and variations of the apparatus based on the method described in Embodiment 1 of the present invention, and therefore will not be repeated here. All apparatuses used in the method of Embodiment 1 of the present invention fall within the scope of protection of this invention.
[0058] Example 4 Based on the same inventive concept, this embodiment provides a video verification device based on blockchain and national cryptographic algorithms. The device is a client; please refer to [link to documentation]. Figure 5 ,include: The video upload module 401 is used to upload video data to the server, so that the server can generate a storage certificate through storage proof technology and send it to the client. The server extracts video frame data based on timestamp feature extraction technology; then, it uses the national cryptographic algorithm SM3 to encrypt the extracted video frame data, generate encrypted video data, and send it to the client. Verification module 402 is used to verify the storage certificate and encrypted video data based on whether it is the first upload.
[0059] Since the apparatus in Embodiment 4 of the present invention is the same apparatus used to implement the method in Embodiment 2 of the present invention, those skilled in the art can understand the specific structure and variations of the apparatus based on the method described in Embodiment 2 of the present invention, and therefore will not be repeated here. All apparatuses used in the method of Embodiment 2 of the present invention fall within the scope of protection of this invention.
[0060] Example 5 Based on the same inventive concept, this embodiment discloses a video verification system based on blockchain and national cryptographic algorithms, including the video verification device based on blockchain and national cryptographic algorithms in Embodiments 3 and 4.
[0061] Specifically, the system described in this embodiment involves two core entities: a client and a cloud server. It achieves full-process control through a five-layer architecture: First, the client uploads on-site operation videos to the cloud server in real time; then, a storage proof is generated using storage proof technology; the server captures video frame data based on timestamp feature extraction technology; the extracted core frames are encrypted using national cryptographic algorithms to generate encrypted data; the client checks the storage proof results and compares and analyzes the encrypted data to verify the storage proof; finally, the verification results and metadata such as timestamps are stored in the blockchain to build a traceable encrypted evidence storage system.
[0062] Overall, the solution of this invention is applicable to fields such as judicial evidence preservation and smart construction. It innovatively integrates distributed storage proof, national cryptographic encryption and blockchain technology to ensure the authenticity and security of video data, and provides a reliable solution for the efficient verification and permanent preservation of large-scale video evidence.
[0063] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0064] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0065] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention. Clearly, those skilled in the art can make various modifications and variations to the embodiments of the invention without departing from the spirit and scope of the invention. Thus, if these modifications and variations of the embodiments of the invention fall within the scope of the claims of the invention and their equivalents, the invention also intends to include these modifications and variations.
Claims
1. A video verification method based on blockchain and national cryptographic algorithms, characterized in that, include: Receive video data uploaded by the client; A storage proof is generated using storage proof technology and sent to the client; Video frame data is extracted based on timestamp feature extraction technology; The extracted video frame data is encrypted using the national cryptographic algorithm SM3 to generate encrypted video data, which is then sent to the client so that the client can verify the storage certificate and the encrypted video data based on whether it is the first upload.
2. The video verification method based on blockchain and national cryptographic algorithms as described in claim 1, characterized in that, Generate storage proofs using storage proof technology, including: The system receives an encoded file, status information, and challenge vector sent by the client. The encoded file and status information are generated by the client after obtaining an HLA key pair through a key generation algorithm, and then encoding the file using an encryption encoding algorithm based on the HLA key pair. The challenge vector is generated by the client selecting a random key and then using a pseudo-random function. Based on the encoded file, state information, and challenge vector, a tag authentication algorithm is used to calculate the combined tag and linear combination value, and a storage proof is generated based on the combined tag and linear combination value.
3. The video verification method based on blockchain and national cryptographic algorithms as described in claim 2, characterized in that, The methods for generating encoded files, status information, and challenge vectors include: The client runs a key generation algorithm to obtain the HLA key pair (pk, sk), and uses the Encode algorithm to encode the file f. The Encode algorithm calls the HLA Tag algorithm to generate the file tag t, and outputs the encoded file f′=(f, t) and the status information st. The client selects a random key K∈{0,1} k The challenge vector c is generated by a pseudo-random function F, where k represents the number of bits in the random key K.
4. The video verification method based on blockchain and national cryptographic algorithms as described in claim 2, characterized in that, Based on the encoded file, state information, and challenge vector, a tag authentication algorithm is used to calculate the combined tag and linear combination value, and a storage proof is generated based on the combined tag and linear combination value, including: The server invokes the HLA tag authentication algorithm (Auth algorithm) based on the encoded file, status information, and challenge vector. The algorithm calculates the combined tag τ = Auth. pk (f,t, c), where pk is the public key, f is the file, t is the file tag, and c is the challenge vector; Calculate the linear combination value μ=∑ i c i f i c i For the i-th challenge element, c i = F K (i), f i This refers to the content of the i-th block in file f; The storage proof π=(μ,τ) is generated based on the combination of labels and linear combination values.
5. The video verification method based on blockchain and national cryptographic algorithms as described in claim 1, characterized in that, The extracted video frame data is encrypted using the national cryptographic algorithm SM3 to generate encrypted video data, including: The SM3 hash value of the frequency frame is calculated using the national cryptographic algorithm SM3; The calculated SM3 hash values of the video frames are concatenated to obtain the encrypted video data.
6. A video verification method based on blockchain and national cryptographic algorithms, characterized in that, include: Video data is uploaded to the server, which then generates a storage certificate using storage proof technology and sends it to the client. The server extracts video frame data using timestamp feature extraction technology. The extracted video frame data is then encrypted using the national cryptographic algorithm SM3 to generate encrypted video data, which is then sent to the client. Verification is performed on the storage certificate and encrypted video data based on whether it is the first upload.
7. The video verification method based on blockchain and national cryptographic algorithms as described in claim 6, characterized in that, Verification of storage proof and encrypted video data is performed based on whether it is the first upload, including: If it is the first upload, the encrypted video data, the first upload verification, and the current timestamp will be stored in the blockchain structure to which the video belongs; If this is not the first upload, the encrypted video data is compared with the pre-recorded hash value. The received storage proof is verified using a verification algorithm. If the hash values are the same and the storage proof verification passes, it indicates that the video content has not been tampered with and is stored completely in the specified location. If the hash values are different, it indicates that the video content has been changed during storage. If the storage proof verification fails, it means that the video may be incomplete during storage.
8. A video verification device based on blockchain and national cryptographic algorithms, characterized in that, The device is a server, comprising: The receiving module is used to receive video data uploaded by the client; The proof generation module is used to generate storage proofs using storage proof technology and send them to the client; The video frame extraction module is used to extract video frame data based on timestamp feature extraction technology. The data conversion and encryption module is used to encrypt the extracted video frame data using the national cryptographic algorithm SM3, generate encrypted video data, and send it to the client so that the client can verify the storage certificate and the encrypted video data based on whether it is the first upload.
9. A video verification device based on blockchain and national cryptographic algorithms, characterized in that, The device is a client, including: The video upload module is used to upload video data to the server, so that the server can generate a storage certificate through storage proof technology and send it to the client. The server extracts video frame data based on timestamp feature extraction technology; then, it uses the national cryptographic algorithm SM3 to encrypt the extracted video frame data, generate encrypted video data, and send it to the client. The verification module is used to verify the storage certificate and encrypted video data based on whether it is the first upload.
10. A video verification system based on blockchain and national cryptographic algorithms, characterized in that, Includes the video verification device based on blockchain and national cryptographic algorithms as described in claims 8 and 9.