Video signing method, video verification method and related devices

By using quantum random numbers and blockchain technology to generate a unique video blind watermark signature, the problem of poor security of video signatures is solved and the video signature cannot be tampered with or forged.

CN119255061BActive Publication Date: 2025-10-14CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411295602.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-10-14
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

The security of video signatures in the existing technology is poor and they are easily tampered with and forged.

Method used

A video signature algorithm based on quantum random numbers is used to sign the video frame through the signature smart contract on the blockchain, generating a signature image including a blind watermark. The video frame is then replaced with the signature image, and a unique watermark signature string is generated using quantum random numbers and identity identifiers, which are then uploaded to the blockchain for verification.

Benefits of technology

This ensures that the first watermark signature string corresponding to the blind watermark signature of each video is different and cannot be tampered with or forged, thereby improving the security of the video signature.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255061B_ABST
    Figure CN119255061B_ABST
Patent Text Reader

Abstract

The application provides a video signing method, a video signature verification method and related equipment. The video signing method comprises obtaining an identity identifier of a first user, a quantum random number and a quantum encryption number, and uploading to a blockchain, wherein the quantum encryption number is obtained based on a hash operation on the encrypted quantum random number; by calling a signing smart contract on the blockchain, n video frames in the first video are signed using a first watermark signing string to generate n signed pictures, each signed picture comprising a blind watermark, the first watermark signing string being generated based on the identity identifier, the quantum random number and the quantum encryption number, and n being a positive integer; n video frames in the first video are replaced with n signed pictures to obtain a second video, the second video being a video after the first video is signed; and the identity identifier of the first video and the number of signed pictures are uploaded to the blockchain. In this way, the security of the video signing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information security technology, and in particular relates to a video signing method, a video signature verification method and related equipment. Background Art

[0002] To protect information security, watermarks are currently triggered based on different business systems or file sensitivity levels. These watermarks are then added to terminal screens, business web pages, documents, or printed files. This ensures that every time a terminal accesses a business system, sensitive file, or printed document, it carries the watermarked identity information. However, due to the editable and croppable nature of video files, this method of watermarking video files is susceptible to tampering and forgery, resulting in poor security for video signatures. Summary of the Invention

[0003] The embodiments of the present application provide a video signature method, a video signature verification method, and related devices to solve the technical problem of poor security of video signatures.

[0004] In a first aspect, an embodiment of the present application provides a video signing method, comprising:

[0005] Obtaining the first user's identity, quantum random number, and quantum encryption number, and uploading them to the blockchain, wherein the quantum encryption number is obtained by performing a hash operation on the encrypted quantum random number;

[0006] By calling the signature smart contract on the blockchain, n video frames in the first video are signed using the first watermark signature string to generate n signature images, each of which includes a blind watermark. The first watermark signature string is generated based on the identity, quantum random number and quantum encryption number, and n is a positive integer;

[0007] Replace n video frames in the first video with n signature images to obtain a second video, where the second video is the first video after the video signature is performed;

[0008] The number of the first video's logo and signature images are uploaded to the blockchain.

[0009] In a second aspect, an embodiment of the present application provides a video signature verification method, including:

[0010] When a second video uploaded by a second user is obtained, k signature verification images are extracted from the second video, where the second video is the first video after the video signature is applied, and k is a positive integer;

[0011] By calling the signature verification smart contract on the blockchain, using the identifier of the first video, the number of signature images, the identity identifier of the first user, at least one of the quantum random number and the quantum encryption number, the k signature verification images are verified to obtain a signature verification result;

[0012] Among them, the identifier of the first video, the number of signature images, the identity identifier, the quantum random number and the quantum encryption number are pre-stored in the blockchain; the quantum encryption number is obtained based on the hash operation of the encrypted quantum random number; the signature image is generated by calling the signature smart contract on the blockchain and signing n video frames in the first video with the first watermark signature string; the first watermark signature string is generated based on the identity identifier, the quantum random number and the quantum encryption number, and n is a positive integer.

[0013] In a third aspect, an embodiment of the present application provides a video signing device, comprising:

[0014] an acquisition module, configured to acquire the first user's identity, quantum random number, and quantum encryption number, and upload them to the blockchain, wherein the quantum encryption number is obtained by performing a hash operation on the encrypted quantum random number;

[0015] A signature module, configured to sign n video frames in a first video using a first watermark signature string by calling a signature smart contract on a blockchain, thereby generating n signature images, each of which includes a blind watermark. The first watermark signature string is generated based on an identity identifier, a quantum random number, and a quantum encryption number, where n is a positive integer.

[0016] A replacement module, configured to replace n video frames in the first video with n signature images to obtain a second video, where the second video is the first video after the video signature is performed;

[0017] The upload module is used to upload the identification of the first video and the number of signature images to the blockchain.

[0018] In a fourth aspect, an embodiment of the present application provides a video signature verification device, comprising:

[0019] An extraction module, configured to extract k signature verification images from a second video uploaded by a second user upon obtaining the second video, where the second video is a video signed by the first video, and k is a positive integer;

[0020] a signature verification module, configured to verify k signature verification images by calling a signature verification smart contract on the blockchain, using at least one of the identifier of the first video, the number of signature images, the identity identifier of the first user, a quantum random number, and a quantum encryption number, to obtain a signature verification result;

[0021] Among them, the identifier of the first video, the number of signature images, the identity identifier, the quantum random number and the quantum encryption number are pre-stored in the blockchain; the quantum encryption number is obtained based on the hash operation of the encrypted quantum random number; the signature image is generated by calling the signature smart contract on the blockchain and signing n video frames in the first video with the first watermark signature string; the first watermark signature string is generated based on the identity identifier, the quantum random number and the quantum encryption number, and n is a positive integer.

[0022] In a fifth aspect, an embodiment of the present application provides a video signature system, including:

[0023] At least one of the video signature device of the third aspect and the video signature verification device of the fourth aspect.

[0024] In a sixth aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0025] a processor and a memory storing programs or instructions;

[0026] When the processor executes the program or instruction, the method of the first aspect or the second aspect is implemented.

[0027] In a seventh aspect, an embodiment of the present application provides a machine-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the method of the first aspect or the second aspect is implemented.

[0028] In an eighth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method of the first aspect or the second aspect.

[0029] The video signing method provided in the embodiment of the present application can obtain the identity, quantum random number and quantum encryption number of the first user, and upload them to the blockchain, wherein the quantum encryption number is obtained based on the hash operation of the encrypted quantum random number; by calling the signature smart contract on the blockchain, the n video frames in the first video are signed using the first watermark signature string to generate n signature images, each signature image includes a blind watermark, the first watermark signature string is generated based on the identity, the quantum random number and the quantum encryption number, and n is a positive integer; the n video frames in the first video are replaced with n signature images to obtain a second video, which is the video after the first video is video signed; the identifier of the first video and the number of signature images are uploaded to the blockchain.

[0030] In this way, a video signature algorithm based on quantum random numbers is used to blindly watermark the video with quantum random number information, ensuring that the first watermark signature string corresponding to the blind watermark signature of each video is different, ensuring that the verification video cannot be tampered with or forged, and improving the security of the video signature. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0032] Figure 1 This is a flowchart of a video signing method provided by an embodiment of the present application;

[0033] Figure 2 This is a workflow diagram of a video signature system provided by an embodiment of the present application;

[0034] Figure 3 This is a flowchart of a video signature verification method provided by an embodiment of the present application;

[0035] Figure 4 This is a structural diagram of a video signature device provided by an embodiment of the present application;

[0036] Figure 5 This is a schematic diagram of the structure of a video signature verification device provided by an embodiment of the present application;

[0037] Figure 6 This is a structural diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0038] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.

[0039] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.

[0040] In addition, it should be noted that the acquisition, storage, use, and processing of data in the embodiments of this application comply with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of this application, certain software, components, models, and other existing solutions in the industry may be mentioned. These should be considered as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use such solution.

[0041] In order to solve the problems in the prior art, the embodiments of the present application provide a video signature method, a video signature verification method and related devices. The video signature method provided by the embodiments of the present application is first introduced below.

[0042] Figure 1 FIG. 1 shows a flow chart of the video signature method provided by the embodiment of the present application. Figure 1 As shown, the video signing method may include:

[0043] Step 101: Obtain the identity identifier, quantum random number, and quantum encryption number of the first user and upload them to the blockchain, wherein the quantum encryption number is obtained based on a hash operation on the encrypted quantum random number.

[0044] In step 101, the first user may obtain a current quantum random number P on a quantum random number platform, and may encrypt the quantum random number P, and obtain a quantum encryption number based on a hash operation on the encrypted quantum random number.

[0045] For example, after obtaining the quantum random number P at the current moment, the first user A can encrypt the quantum random number P according to his own private key using the Advanced Encryption Standard (AES) encryption algorithm to obtain the encrypted quantum random number P1, and then obtain the quantum encryption number Q based on the hash operation of the encrypted quantum random number P1, where Q = sha256(P1).

[0046] The first user's identity, quantum random number, and quantum encryption number can be obtained and written into the blockchain. The first user's identity can be information used to represent the first user's identity, for example, the identity can be the first user's name.

[0047] Step 102: By calling the signature smart contract on the blockchain, n video frames in the first video are signed using the first watermark signature string to generate n signature images, each signature image including a blind watermark. The first watermark signature string is generated based on the identity, quantum random number and quantum encryption number, and n is a positive integer.

[0048] In step 102, the signature video, i.e., the first video, can be signed by calling the signature smart contract on the blockchain.

[0049] For example, a first video uploaded by a first user can be read and n video frames from the first video can be extracted. The n video frames can be all video frames of the first video, or a certain number of video frames can be extracted from all video frames of the first video according to a preset extraction rule, which is not specifically limited here.

[0050] A first watermark signature string can be generated based on the identity identifier of the first user, a quantum random number, and a quantum encryption number. The generation method can be set according to actual needs and is not specifically limited here. The first watermark signature string can be used to sign n video frames to generate n signature images, and each signature image includes a blind watermark. Among them, the blind watermark can embed watermark information into digital media without affecting the original data. The method of adding a blind watermark to a video is to split the video into images, and then perform a Fourier transform on the images and then apply the first watermark signature string in a center-symmetrical manner.

[0051] In some examples, the video signature method can be applied to a video signature system, such as Figure 2 As shown, the video signature system can obtain the first video M uploaded by the first user A, and use the OpenCV library to read the first video M, and extract n video frames from the first video M to form an image array M j [n]. Call the quantum signature smart contract on the blockchain, sign n video frames using the first watermark signature string R, and generate n signature images. For example, use the first watermark signature string R to sign the image array M j Perform Fourier transform signature on each image in [n] to generate a blind watermark signature image array S j [n].

[0052] Step 103: Replace n video frames in the first video with n signature images to obtain a second video, where the second video is the first video after the video signature is performed.

[0053] In step 103, n video frames in the first video may be replaced with n signature images to obtain a signed second video. The first user may transmit the signed second video to the second user.

[0054] Step 104: Upload the identifier of the first video and the number of signature images to the blockchain.

[0055] In step 104, the identifier of the first video, such as the name of the first video, and the number n of signature images may be uploaded to the blockchain to facilitate subsequent verification of the integrity of the first video.

[0056] The video signing method provided in the embodiment of the present application can obtain the identity, quantum random number and quantum encryption number of the first user, and upload them to the blockchain, wherein the quantum encryption number is obtained based on the hash operation of the encrypted quantum random number; by calling the signature smart contract on the blockchain, the n video frames in the first video are signed using the first watermark signature string to generate n signature images, each signature image includes a blind watermark, the first watermark signature string is generated based on the identity, the quantum random number and the quantum encryption number, and n is a positive integer; the n video frames in the first video are replaced with n signature images to obtain a second video, which is the video after the first video is video signed; the identifier of the first video and the number of signature images are uploaded to the blockchain.

[0057] In this way, a video signature algorithm based on quantum random numbers is used to blindly watermark the video with quantum random number information, ensuring that the first watermark signature string corresponding to the blind watermark signature of each video is different, ensuring that the verification video cannot be tampered with or forged, and improving the security of the video signature.

[0058] In some examples, before generating n signed images, the method may further include: signing n video frames in the first video using a first watermark signature string by calling a signature smart contract on a blockchain; and generating n signed images.

[0059] A first video uploaded by a first user is read to obtain m video frames, where m is a positive integer and is greater than n; and n video frames are extracted from the m video frames according to a preset frame interval.

[0060] In this example, a first video uploaded by a first user can be read to obtain m video frames, where the m video frames can be all video frames of the first video. Then, n video frames can be extracted from the m video frames according to a preset frame interval. The preset frame interval can be set according to actual needs and is not specifically limited here.

[0061] Taking the preset frame interval as 10 frames as an example, we can extract a picture every 10 frames, extract n pictures, and form a picture array M j [n].

[0062] After subsequent signing, n signature images can be obtained to form the signature image array S j [n]. When generating the second video, you can use the signature image array S j The signature image in [n] replaces the corresponding frame in the first video M, replacing it every 10 frames. Then, use the mmpeg library to synthesize all the frames into the signed second video Ms.

[0063] In this way, it is not necessary to sign all video frames. Instead, n video frames are extracted and signed according to the preset frame interval. This can meet the video integrity verification requirements while reducing the workload of blind watermark verification, saving computing power and improving video verification efficiency.

[0064] In some embodiments, after signing n video frames in the first video using the first watermark signature string by calling the signature smart contract on the blockchain and generating n signature images, the method further includes:

[0065] For each signature image, the signature smart contract calls the corner detection algorithm and feature descriptor algorithm to extract features and determine the first quantum eigenvalue corresponding to the signature image;

[0066] The signature image and the first quantum eigenvalue corresponding to the signature image are stored in association.

[0067] In this embodiment, for each signature image, the signature smart contract calls the corner detection algorithm and feature descriptor algorithm to extract features and determine the first quantum eigenvalue corresponding to the signature image. For example, Figure 2 As shown in the figure, the quantum signature smart contract on the blockchain can call the quantum signature calculation module, introduce the corner detection (Features from accelerated segment test, FAST) algorithm and feature descriptor (Binary Robust Independent Elementary Features, BRIEF) algorithm in the feature extraction (Oriented Fast and Rotated Brief, ORB) algorithm library, and perform the signature image array Sj Each signature image in [n] is calculated based on the quantum eigenvalue extraction algorithm based on the image, and the first quantum eigenvalue F of each signature image is calculated. j Each signature image in [n] and its corresponding first quantum eigenvalue F are stored in the image library in association with each other.

[0068] In this way, the video can be blindly watermarked with quantum random number information, ensuring that the first watermark signature string corresponding to the blind watermark signature of each video is different. By comparing the quantum eigenvalues ​​with the signature images stored in the image library, video verification is achieved, ensuring that the verification video cannot be tampered with or forged, thereby improving the security of the video signature.

[0069] In some embodiments, for each signature image, the signature smart contract calls a corner detection algorithm and a feature descriptor algorithm to perform feature extraction and determine the first quantum eigenvalue corresponding to the signature image, including:

[0070] Use corner detection algorithm to detect all key points of the signature image;

[0071] Use feature descriptor algorithm to determine the descriptor of each key point;

[0072] Perform hash operation on the sum of the descriptors of all key points to obtain the hash value;

[0073] The hash value is encrypted according to the first watermark signature character string to obtain the first quantum eigenvalue corresponding to the signature image.

[0074] In this embodiment, if Figure 2 As shown in the figure, for a certain signature image, the FAST algorithm can be used to detect all the key points of the signature image, and then the BRIEF algorithm is used to calculate the 128-bit descriptor of each key point. After all the descriptors are added together, the result is hashed. For example, the sum of the descriptors of all key points is calculated by sha256 to obtain a 256-bit hash value T.

[0075] The first watermark signature string R can be used as the AES key to encrypt the hash value T, obtain the first quantum eigenvalue F of the signature image B based on the image, and put it into the image library.

[0076] The image library is a collection that stores several signature images and their corresponding first quantum eigenvalues. Each signature image has a unique first quantum eigenvalue.

[0077] In some embodiments, by calling a signature smart contract on a blockchain, signing n video frames in a first video using a first watermark signature string, and before generating n signature images, the method further includes:

[0078] When the first user's identity, quantum random number, and quantum encryption number are uploaded to the target block on the blockchain, receiving the block height returned by the target block;

[0079] Generate the first watermark signature string based on the block height and quantum encryption number.

[0080] In this embodiment, the identity of first user A, quantum random number P, and quantum encryption number Q can be written into the target block of the blockchain, and the block height Block_HeightQ returned by the target block can be received. Based on the block height and quantum encryption number, a first watermark signature string R can be generated. The first watermark signature string R = string Block_HeightQ + "5GQRT" + string Q.

[0081] In this way, the three signature parameters of the first user can be stored in the blockchain, and then the first watermark signature string can be generated according to the block height and quantum encryption number, which ensures the randomness and security of the first watermark signature string, reduces the possibility of others forging the watermark, and further ensures the security of the video signature.

[0082] The present application also provides a video signature verification method. Figure 3 As shown, the video signature verification method may include:

[0083] Step 301: When a second video uploaded by a second user is obtained, k signature verification images are extracted from the second video, where the second video is the first video after the video signature is performed, and k is a positive integer.

[0084] In step 301, the second video may be read, and k signature verification images may be extracted from the second video according to the same extraction rules as in the video signing method.

[0085] For example, Figure 2 As shown, user B can upload a second video Ms to the video signature system. The OpenCV library can be used to read the second video Ms and extract k signature verification images from the second video Ms. For example, as mentioned above, images can be extracted at the same preset frame interval, with one image extracted every 10 frames, resulting in k images being extracted and forming the image array Ms[k].

[0086] Step 302: Verify the k signature verification images by calling the signature verification smart contract on the blockchain using the first video identifier, the number of signature images, the first user's identity identifier, a quantum random number, and a quantum encryption number to obtain a signature verification result.

[0087] Among them, the identifier of the first video, the number of signature images, the identity identifier, the quantum random number and the quantum encryption number are pre-stored in the blockchain; the quantum encryption number is obtained based on the hash operation of the encrypted quantum random number; the signature image is generated by calling the signature smart contract on the blockchain and signing n video frames in the first video with the first watermark signature string; the first watermark signature string is generated based on the identity identifier, the quantum random number and the quantum encryption number, and n is a positive integer.

[0088] In step 302, the signature verification smart contract on the blockchain can be invoked to verify whether the first video's identifier and the number of signature images are consistent with the second video's identifier and the number of signature verification images. Furthermore, based on the first user's identity, quantum random number, and quantum encryption number, the second watermark signature string parsed from the verification image can be verified to match the first watermark signature string to verify whether the third video has been tampered with. The signature verification results can include videos not signed by the platform, videos signed by the first user, or videos with tampered signatures.

[0089] In this way, a video signature algorithm based on quantum random numbers is used to blindly watermark the video with quantum random number information, ensuring that the first watermark signature string corresponding to the blind watermark signature of each video is different, ensuring that the verification video cannot be tampered with or forged, and improving the security of the video signature.

[0090] In some embodiments, k signature verification images are verified using at least one of the identifier of the first video, the number of signature images, the identity identifier of the first user, a quantum random number, and a quantum encryption number to obtain a signature verification result, including:

[0091] The identifier of the second video is verified using the identifier of the first video, and the number of signature images is verified using the number of signature verification images to determine the integrity of the second video.

[0092] In this embodiment, it is possible to verify whether the identification of the first video on the blockchain is consistent with the identification of the second video. In other words, it is possible to verify whether the name of the second video Ms exists on the blockchain. If so, the number n of signature images stored on the blockchain is compared with the number k of signature verification images to determine whether they are consistent, so as to determine the integrity of the second video.

[0093] If they are consistent, the second video can be considered complete and not edited. If they are inconsistent, the second video may be edited, and the signature verification result can be output as a video with a tampered signature.

[0094] In some embodiments, each signature verification image includes a blind watermark, the identifier of the second video is verified using the identifier of the first video, and the number of signature verification images is verified using the number of signature images. After determining the integrity of the second video, the method further includes:

[0095] When the identifiers of the first video and the second video are consistent, and k is equal to n, the second watermark signature string of each verification image is extracted based on the blind watermark of each verification image by calling the verification smart contract on the blockchain;

[0096] According to the identity identifier of the first user, the quantum random number and the quantum encryption number, the second watermark signature character strings of the k signature verification images are signature verified to obtain a signature verification result.

[0097] In this embodiment, when the identifier of the first video is consistent with the identifier of the second video and k is equal to n, it can be considered that the integrity verification of the second video has passed. At this time, the signature verification smart contract on the blockchain can be called to extract the second watermark signature string of each signature verification image based on the blind watermark of each signature verification image, and perform signature verification on the second watermark signature strings of the k signature verification images based on the identity identifier, quantum random number, and quantum encryption number of the first user to obtain the signature verification result.

[0098] For example, Figure 2 As shown, for each signature verification image, an inverse Fourier transform can be used to extract the second watermark signature string RR. If the second watermark signature string RR cannot be extracted, it can be said that the second video has not been signed by the platform. In this case, the verification result can be output as a video that has not been signed by the platform.

[0099] For each signature verification image, the formula "Watermark signature string R = string Block_HeightQ + "5GQRT" + string Q" can be generated based on the first watermark signature string mentioned above. The signature block height Block_HeightQ_RR and quantum encryption number Q_RR of the signature verification image can be parsed from the second watermark signature string RR, and the quantum encryption number Q_RR can be found in the block with block height Block_HeightQ_RR on the blockchain.

[0100] If the block at block height Block_HeightQ_RR contains the quantum encryption number Q_RR, the name of the first user A on the block is obtained. If the quantum encryption number Q_RR does not exist on the block at block height Block_HeightQ_RR, the signature verification result fails, and the video with the tampered signature can be output as the verification result.

[0101] In some embodiments, after the signature verification result is obtained by verifying the second watermark signature string of the k verification pictures according to the identity identifier, the quantum random number and the quantum encryption number, the method further comprises:

[0102] In the case that the signature verification result is passed, for each verification picture, the verification smart contract calls the corner point detection algorithm and the feature descriptor algorithm to perform feature extraction, and determines the second quantum feature value corresponding to each verification picture;

[0103] For each verification picture, the second quantum feature value corresponding to the verification picture is matched with the first quantum feature value corresponding to the n signature pictures to determine whether there is a target picture in the n signature pictures, and a verification result is obtained; wherein the first quantum feature value corresponding to the target picture is consistent with the second quantum feature value corresponding to the verification picture, and the first quantum feature value is determined by calling the corner point detection algorithm and the feature descriptor algorithm to perform feature extraction on each signature picture based on the signature smart contract.

[0104] In this embodiment, in the case that the signature verification result is passed, as shown in Figure 2 For each verification picture, the second watermark signature string RR is used to calculate the second quantum feature value FR by using the picture-based quantum feature value extraction algorithm such as the corner point detection algorithm and the feature descriptor algorithm.

[0105] For each verification picture, according to the second quantum feature value FR corresponding to the verification picture, all pictures in the picture library are searched, and the first quantum feature value corresponding to the n signature pictures is matched, if there is no target picture corresponding to the first quantum feature value consistent with the second quantum feature value corresponding to the verification picture, the verification result can be output as a tampered signature video. If there is a target picture corresponding to the first quantum feature value consistent with the second quantum feature value corresponding to the verification picture, the verification result can be output as a video signed by the first user A.

[0106] Based on the video signature method provided in the above embodiment, an embodiment of a video signature device is further provided.

[0107] Figure 4 The structure of the video signature device provided by another embodiment of the present application is shown, as shown in Figure 4 The video signature device 400 can include:

[0108] The acquisition module 401 is configured to acquire the identity identifier, the quantum random number and the quantum encryption number of the first user, and upload them to the blockchain, wherein the quantum encryption number is obtained by performing a hash operation on the encrypted quantum random number.

[0109] A signature module 402 is configured to sign n video frames in the first video using a first watermark signature string by calling a signature smart contract on the blockchain, thereby generating n signature images, each of which includes a blind watermark. The first watermark signature string is generated based on the identity identifier, the quantum random number, and the quantum encryption number, where n is a positive integer.

[0110] A replacement module 403 is configured to replace n video frames in the first video with n signature images to obtain a second video, where the second video is the first video after the video signature is performed;

[0111] The uploading module 404 is used to upload the identifier of the first video and the number of signature images to the blockchain.

[0112] In some embodiments, the video signing apparatus 400 may further include:

[0113] a determination module, configured to sign n video frames in the first video using a first watermark signature string by calling a signature smart contract on the blockchain, and after generating n signature images, for each signature image, the signature smart contract calls a corner detection algorithm and a feature descriptor algorithm to perform feature extraction and determine a first quantum eigenvalue corresponding to the signature image;

[0114] The storage module is used to associate and store the signature image with the first quantum eigenvalue corresponding to the signature image.

[0115] In some embodiments, the determination module may also be configured to:

[0116] Use corner detection algorithm to detect all key points of the signature image;

[0117] Use feature descriptor algorithm to determine the descriptor of each key point;

[0118] Perform hash operation on the sum of the descriptors of all key points to obtain the hash value;

[0119] The hash value is encrypted according to the first watermark signature character string to obtain the first quantum eigenvalue corresponding to the signature image.

[0120] In some embodiments, the video signing apparatus 400 may further include:

[0121] a receiving module, configured to sign n video frames in the first video using a first watermark signature string by calling a signature smart contract on the blockchain, and before generating n signed images, receive a block height returned by the target block when the first user's identity, quantum random number, and quantum encryption number are uploaded to the target block on the blockchain;

[0122] The generation module is used to generate the first watermark signature string according to the block height and the quantum encryption number.

[0123] Based on the video signature verification method provided in the above embodiment, the present application also provides an embodiment of a video signature verification device.

[0124] Figure 5 A schematic diagram of the structure of a video signature verification device provided by another embodiment of the present application is shown in FIG. Figure 5 As shown, the video signature verification device 500 may include:

[0125] Extraction module 501, configured to extract k signature verification images from a second video uploaded by a second user, upon obtaining the second video, where the second video is the first video after the video signature is applied, and k is a positive integer;

[0126] The signature verification module 502 is configured to verify the k signature verification images by calling the signature verification smart contract on the blockchain, using at least one of the first video identifier, the number of signature images, the first user's identity identifier, the quantum random number, and the quantum encryption number, to obtain a signature verification result;

[0127] Among them, the identifier of the first video, the number of signature images, the identity identifier, the quantum random number and the quantum encryption number are pre-stored in the blockchain; the quantum encryption number is obtained based on the hash operation of the encrypted quantum random number; the signature image is generated by calling the signature smart contract on the blockchain and signing n video frames in the first video with the first watermark signature string; the first watermark signature string is generated based on the identity identifier, the quantum random number and the quantum encryption number, and n is a positive integer.

[0128] In some embodiments, the signature verification module 502 may also be used to:

[0129] The identifier of the second video is verified using the identifier of the first video, and the number of signature images is verified using the number of signature verification images to determine the integrity of the second video.

[0130] In some embodiments, the signature verification module 502 may also be used to:

[0131] When the identifiers of the first video and the second video are consistent, and k is equal to n, the second watermark signature string of each verification image is extracted based on the blind watermark of each verification image by calling the verification smart contract on the blockchain;

[0132] According to the identity identifier, quantum random number and quantum encryption number, the second watermark signature string of k signature verification images is signature verified to obtain the signature verification result.

[0133] In some embodiments, the signature verification module 502 can also be configured to:

[0134] In the case where the signature verification result is passed, for each signature verification picture, the signature verification smart contract calls the corner detection algorithm and the feature descriptor algorithm to perform feature extraction, to determine the second quantum feature value corresponding to each signature verification picture;

[0135] For each signature verification picture, the second quantum feature value corresponding to the signature verification picture is matched with the first quantum feature values corresponding to the n signature pictures, to determine whether there is a target picture in the n signature pictures, to obtain a verification result; wherein the first quantum feature value corresponding to the target picture is consistent with the second quantum feature value corresponding to the signature verification picture, and the first quantum feature value is determined based on the signature smart contract calling the corner detection algorithm and the feature descriptor algorithm to perform feature extraction on each signature picture.

[0136] The embodiments of the present application also provide a video signature system, comprising:

[0137] At least one of the above video signature device and the above video signature verification device.

[0138] It should be noted that the above video signature system and the video signature method and the video signature verification method of the method embodiments of the present application are based on the same concept, and all the implementation manners in the above video signature method and the video signature verification method embodiments are applicable to the embodiments of the system, and the specific functions and the technical effects brought by the specific functions can be referred to the system embodiment part, and will not be repeated here.

[0139] Figure 6 A hardware structure schematic diagram of an electronic device provided by another embodiment of the present application is shown.

[0140] The device can include a processor 601 and a memory 602 storing programs or instructions.

[0141] The processor 601 executes the programs to implement the steps in any of the above method embodiments.

[0142] For example, the programs can be divided into one or more modules / units, which are stored in the memory 602 and executed by the processor 601 to complete the present application. One or more modules / units can be a series of program instruction segments capable of completing a specific function, which are used to describe the execution process of the programs in the device.

[0143] Specifically, the above processor 601 can include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or can be configured to implement one or more integrated circuits of the embodiments of the present application.

[0144] The memory 602 can include mass storage for data or instructions. As an example and not by way of limitation, the memory 602 can include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc (e.g., a compact disc (CD) or a digital versatile disc (DVD)), a solid-state drive (SSD), a USB drive, or a combination of two or more of these. Where appropriate, the memory 602 can include removable or non-removable (or fixed) media, where appropriate. The memory 602 can be internal or external to the integrated gateway disaster recovery appliance. In particular embodiments, the memory 602 is non-volatile, solid-state memory.

[0145] The memory can include read-only memory (ROM), random-access memory (RAM), magnetic disk storage mediums, optical storage mediums, flash memory devices, electrical, optical, or other physically tangible / moφhological memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) machine-readable storage media (e.g., memory devices) encoded with software that, when executed (by one or more processors), is operable to cause the operations described with reference to the methods according to an aspect of the present disclosure.

[0146] The processor 601 implements any of the above-described methods by reading and executing program code stored in the memory 602.

[0147] In one example, the electronic device further includes a communication interface 603 and a bus 604. The processor 601, the memory 602, and the communication interface 603 are connected through the bus 604 and accomplish communication therebetween.

[0148] The communication interface 603 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application.

[0149] Bus 604 includes a hardware, software, or both that couples components of the online data traffic metering device to each other. As an example but not a limitation, the bus can include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front-side bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (ISA) bus, an infiniband (IB) interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standards association local (VLB) bus, or another suitable bus or a combination of two or more of these. Where suitable, bus 604 can include one or more buses. Although particular buses have been described and shown in the embodiments of the present application, the present application contemplates any suitable bus or interconnect.

[0150] In addition, in combination with the method in the above-mentioned embodiments, the embodiments of the present application can provide a machine readable storage medium to implement. The machine readable storage medium has a program or instruction stored thereon; the program or instruction is executed by a processor to implement any one of the methods in the above-mentioned embodiments. The machine readable storage medium can be read by a machine such as a computer.

[0151] The embodiments of the present application further provide a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used to run a program or instruction, to implement various processes of the above-mentioned method embodiments, and can achieve the same technical effects, to avoid repetition, which will not be described here.

[0152] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system level chip, a system chip, a chip system or a system on chip, etc.

[0153] The embodiments of the present application provide a computer program product, which is stored in a machine readable storage medium, the program product is executed by at least one processor to implement various processes of the above-mentioned method embodiments, and can achieve the same technical effects, to avoid repetition, which will not be described here.

[0154] It should be clear that the present application is not limited to the specific configurations and processes described above and shown in the drawings. For the sake of brevity, detailed descriptions of well-known methods are omitted here. In the above-mentioned embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after understanding the spirit of the present application.

[0155] The functional modules shown in the structural block diagram described above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and the like. When implemented in software, the elements of the present application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. The "machine-readable medium" can include any medium that can store or transfer information. Examples of the machine-readable medium include an electronic circuit, a semiconductor memory device, a ROM, a flash memory, an erasable ROM (EROM), a floppy diskette, a CD-ROM, an optical disk, a hard disk, a fiber optic medium, a radio frequency (RF) link, and the like. The code segments can be downloaded via a computer network, such as the Internet, an intranet, and the like.

[0156] It is also noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in an order different from the embodiments, or several steps can be performed simultaneously.

[0157] The aspects of the present disclosure can be described in the general context of methods, apparatuses (systems) and program products according to embodiments of the present disclosure. It should be understood that the various embodiments can be implemented in software, hardware, or a combination thereof. The various embodiments can be implemented in one or more computer systems or other processing systems. The various embodiments can also be implemented as or in a computer program product, which can include one or more computer program elements. The various embodiments can also be implemented as or in a program storage device or computer readable medium which can store the program product. The program storage device or computer readable medium can be a tangible device that can be read or accessed by a machine or computer. The program storage device or computer readable medium can be a memory device. The memory device can include, but is not limited to, read-only memory (ROM), volatile memory, non-volatile memory, flash memory, electronically programmable memory (EPROM), electrically erasable programmable memory (EEPROM), registers, hard disk, a removable disk, tape, auxiliary storage, or any suitable device or combination of devices that store data. The program elements can be provided on a single computer program product or on multiple computer program products.

[0158] The above description is only a specific embodiment of the present application. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.

Claims

1. A video signing method, characterized in that: include: Obtaining the first user's identity, quantum random number, and quantum encryption number, and uploading them to the blockchain, wherein the quantum encryption number is obtained by performing a hash operation on the encrypted quantum random number; By calling the signature smart contract on the blockchain, n video frames in the first video are signed using a first watermark signature string to generate n signature images, each signature image including a blind watermark, the first watermark signature string is generated based on the identity, the quantum random number, and the quantum encryption number, and n is a positive integer; Replacing the n video frames in the first video with the n signature images to obtain a second video, where the second video is the first video after the video signature is performed; The identifier of the first video and the number of the signature images are uploaded to the blockchain.

2. The method according to claim 1, characterized in that After signing n video frames in the first video using the first watermark signature string by calling the signature smart contract on the blockchain and generating n signature images, the method further includes: For each signature image, the signature smart contract calls the corner detection algorithm and the feature descriptor algorithm to perform feature extraction and determine the first quantum eigenvalue corresponding to the signature image; The signature image and the first quantum eigenvalue corresponding to the signature image are stored in association with each other.

3. The method according to claim 2, characterized in that For each signature image, the signature smart contract calls a corner detection algorithm and a feature descriptor algorithm to perform feature extraction and determine the first quantum eigenvalue corresponding to the signature image, including: Using the corner detection algorithm to detect all key points of the signature image; Use feature descriptor algorithm to determine the descriptor of each key point; Perform hash operation on the sum of the descriptors of all key points to obtain the hash value; The hash value is encrypted according to the first watermark signature character string to obtain a first quantum eigenvalue corresponding to the signature image.

4. The method according to claim 1, wherein Before calling the signature smart contract on the blockchain to sign n video frames in the first video using the first watermark signature string and generating n signature images, the method further includes: When the identity of the first user, the quantum random number, and the quantum encryption number are uploaded to a target block on the blockchain, receiving a block height returned by the target block; Generate the first watermark signature string according to the block height and the quantum encryption number.

5. A video signature verification method, characterized in that: include: When a second video uploaded by a second user is obtained, k signature verification images are extracted from the second video, where the second video is a video signed by the first video, and k is a positive integer; By calling the signature verification smart contract on the blockchain, the k signature verification images are verified using the identifier of the first video, the number of signature images, the identity identifier of the first user, at least one of a quantum random number and a quantum encryption number to obtain a signature verification result; Among them, the identifier of the first video, the number of the signature images, the identity identifier, the quantum random number and the quantum encryption number are pre-stored in the blockchain; the quantum encryption number is obtained based on a hash operation on the encrypted quantum random number; the signature image is generated by calling the signature smart contract on the blockchain and signing n video frames in the first video with a first watermark signature string; the first watermark signature string is generated based on the identity identifier, the quantum random number and the quantum encryption number, and n is a positive integer.

6. The method according to claim 5, characterized in that The step of verifying the k signature verification images using at least one of the identifier of the first video, the number of signature images, the identity identifier of the first user, a quantum random number, and a quantum encryption number to obtain a signature verification result includes: The identifier of the second video is verified using the identifier of the first video, and the number of the signature images is verified using the number of the signature verification images to determine the integrity of the second video.

7. The method according to claim 6, characterized in that Each signature verification image includes a blind watermark, the identifier of the second video is verified using the identifier of the first video, and the number of the signature images is used to verify the number of the signature verification images. After determining the integrity of the second video, the method further includes: When the identifier of the first video is consistent with the identifier of the second video, and k is equal to n, extract the second watermark signature string of each signature verification image based on the blind watermark of each signature verification image by calling the signature verification smart contract on the blockchain; According to the identity identifier, the quantum random number and the quantum encryption number, signature verification is performed on the second watermark signature character strings of the k signature verification images to obtain a signature verification result.

8. The method according to claim 7, characterized in that After performing signature verification on the second watermark signature strings of the k signature verification images based on the identity identifier, the quantum random number, and the quantum encryption number, and obtaining the signature verification result, the method further includes: If the signature verification result passes, the smart contract calls the corner detection algorithm and feature descriptor algorithm for each signature verification image to perform feature extraction and determine the second quantum eigenvalue corresponding to each signature verification image; For each of the signature verification images, the second quantum eigenvalue corresponding to the signature verification image is matched with the first quantum eigenvalue corresponding to the n signature images to determine whether the target image exists in the n signature images, and obtain a verification result; wherein the first quantum eigenvalue corresponding to the target image is consistent with the second quantum eigenvalue corresponding to the signature verification image, and the first quantum eigenvalue is determined based on the signature smart contract calling the corner detection algorithm and the feature descriptor algorithm to perform feature extraction on each of the signature images.

9. A video signature device, characterized in that: include: an acquisition module, configured to acquire the identity identifier, quantum random number, and quantum encryption number of the first user, and upload them to the blockchain, wherein the quantum encryption number is obtained by performing a hash operation on the encrypted quantum random number; a signature module, configured to sign n video frames in the first video using a first watermark signature string by calling a signature smart contract on the blockchain, thereby generating n signature images, each signature image including a blind watermark, wherein the first watermark signature string is generated based on the identity identifier, the quantum random number, and the quantum encryption number, and n is a positive integer; a replacement module, configured to replace the n video frames in the first video with the n signature images to obtain a second video, where the second video is the first video after the video signature is performed; An uploading module is used to upload the identifier of the first video and the number of the signature images to the blockchain.

10. A video signature verification device, characterized in that: include: an extraction module, configured to extract k signature verification images from a second video uploaded by a second user upon obtaining the second video, wherein the second video is a video after the first video has been video-signed, and k is a positive integer; a signature verification module, configured to verify the k signature verification images by calling a signature verification smart contract on the blockchain, using at least one of the identifier of the first video, the number of signature images, the identity identifier of the first user, a quantum random number, and a quantum encryption number, to obtain a signature verification result; Among them, the identifier of the first video, the number of the signature images, the identity identifier, the quantum random number and the quantum encryption number are pre-stored in the blockchain; the quantum encryption number is obtained based on a hash operation on the encrypted quantum random number; the signature image is generated by calling the signature smart contract on the blockchain and signing n video frames in the first video with a first watermark signature string; the first watermark signature string is generated based on the identity identifier, the quantum random number and the quantum encryption number, and n is a positive integer.

11. A video signature system, characterized in that: include: At least one of the video signing device according to claim 9 and the video signature verification device according to claim 10.

12. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing programs or instructions; When the processor executes the program or instruction, the method according to any one of claims 1 to 4 or the method according to any one of claims 5 to 8 is implemented.

13. A machine-readable storage medium, characterized in that The machine-readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the method according to any one of claims 1 to 4 or the method according to any one of claims 5 to 8 is implemented.

14. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 4, or the method according to any one of claims 5 to 8.

Citation Information

Patent Citations

  • Ethereum intelligent contract electronic signature system and method based on block chain

    CN111355592A

  • Electronic contract signature method based on block chain

    CN114614990A