With the continuous development of multimedia, more and more digital works such as videos are spread, stored, and used in the network. In recent years, digital copyright infringement disputes have occurred frequently. The traditional copyright protection system has some problems, such as difficulty confirming copyright, monitoring infringement, and obtaining evidence for rights protection. To this end, we have designed and implemented a novel video copyright protection scheme based on the blockchain and double watermarking technology. We use the image correlation coefficient method to extract video keyframes. And we combine with Contourlet Transform domain, QR decomposition, and SIFT algorithm to improve the robustness of watermark against geometric attacks on the premise of invisibility. After that, we use Arnold Transformation (Cat Map) based on the Maximum Entropy Threshold Segmentation to encrypt the robust watermark and strengthen the security. Moreover, based on the characteristics of the fragile watermarking, we accurately locate the attacked video’s tamper position and complete the integrity authentication of the watermarked video. In addition, the hash digest of the video watermark and the user ID of the copyright owner is signed by SM2 and uploaded to the blockchain. The user can register the copyright after passing the identity authentication. We conduct tests and security analysis on the blockchain performance of the system, the performance of the commercial cryptography algorithm, and the security of the watermarking system. The experimental results show that the blockchain used in this system conforms to the industry standard, the performance of SM2 and SM3 is better than ECC-256 and SHA-256, and the system security is well guaranteed.

1. Introduction

With the advent of the Internet era, the new media industry is growing at high speed worldwide [1], resulting from the integration of network technology and cultural industry. The number of video resources that people are exposed to in their daily life is rapidly expanding. And the number of online video users in China is gradually increasing in proportion to the total number of netizens. As of June 2019, the number of online video users had reached 759 million [2]. In the case of China, the short video industry, such as Tik Tok, Kuaishou, and other platforms, currently has more than 600 million active users and a market volume of more than 10 billion CNY [3]. The official data survey on video infringement cases shows the severe and rampant infringement phenomenon behind the prosperous video industry in China. From January 2019 to October 2020, the 12426 Copyright Monitoring Centre monitored more than 100,000 original short video authors, the National Copyright Administration’s early warning list, short video clips of key film, and other works. The number of works covered exceeded 10 million, and a total of 30,095,200 suspected infringing short videos were monitored, which involved up to 2.72 trillion clicks.

The frequent occurrence of video copyright infringement is also related to the characteristics of the video, such as easy modification and hard distinguishment. A large amount of video information is exchanged and transmitted on the network [4, 5], and the video can be easily modified by various means [6], such as interception, copy, tamper, and redistribution [7]. Pirated video resources can be found everywhere on the Internet. It is difficult to distinguish the authenticity of video information, and there are many disputes over copyright issues [8]. The commercialization of the video business is severely hampered, resulting in severe economic damage [9]. The Internet brings not only opportunities to the field of video works but also the problem of industry copyright disorder. This problem is the challenge in this field. If it cannot be solved in time, it will be a significant obstacle for the development of China’s online video works copyright industry [10]. Copyright protection in the field of video has become a matter of urgency and cannot be delayed.

Along with the acceleration of technology application and innovation in the emerging markets of intellectual property rights (IPR) capitalization, a large number of international investment treaties have included IPRs in the scope of investment [1113]. China’s policies related to IPR protection have also continued to increase. IPR has been mentioned many times in the document “Outline of the 14th Five-Year Plan and 2035 Vision for National Economic and Social Development of the People’s Republic of China.” China is actively promoting digital industrialization and industrial digitization, and the digital economy has become a new variable to improve the quality and efficiency of the Chinese economy [14, 15].

Traditional video digital watermarking technology has the following problems [1618]: Firstly, the algorithm’s robustness is poor. The vector of the video watermarking algorithm is video. For video attacks, in addition to image attacks, there are also frame average, frame deletion, frame reassembly, and other attacks. Therefore, for video watermarking technology, it is required to resist the attacks mentioned above. Moreover, the robustness of geometric attacks, compression attacks, and other attacks still needs to be improved. Secondly, the balance of the video watermarking scheme is poor. Video single watermarking algorithm is mutually constrained in terms of robustness and vulnerability. The robust watermarking ensures that the watermark information confirming the copyright can still be extracted after the video is attacked. The fragile watermarking can locate and quantify the tampered location when tampering is detected. Furthermore, the single watermarking systems often cannot balance robustness and vulnerability. Thirdly, traditional digital copyright protection systems use centralized central databases. So, the security of data is easily threatened. Nowadays, with the rapid development of the Internet, there are more and more copyright protection issues. And the centralized databases are no longer meet the growing demand for copyright protection on the Internet. Fourthly, the watermark is poorly associated with its owner. In order to protect their IPR, individuals or groups often embed the watermark of relevant information with certainty and confidentiality into the resources they want to protect. However, when their watermarks are not notarized by trusted third-party certification bodies, the relationship between them and individuals or groups cannot be guaranteed, which leads to the watermark’s poor relevance to the owner. Usually, the authentication steps of third-party certification bodies are tedious and costly.

Given the above problems, we propose and implement a video copyright protection system based on the blockchain and double watermarking technology. We are committed to protecting video copyright and solving traceability and other needs. The system makes use of SM2 to sign the digest of robust watermark and user ID and then uploads the signature to the blockchain platform. The consensus mechanism of the blockchain can effectively guarantee the authenticity of the data. During the uploading procedure, we also verify the user's identity to confirm that the user is who he claims to be. The combination of Contourlet Transform domain, QR decomposition, and SIFT algorithm makes the robust watermark improve the robustness against geometric attacks under the premise of invisibility. The watermark is encrypted by using Arnold Transformation (Cat Map) based on the Maximum Entropy Threshold Segmentation and pinpoints the location of the tampered location by using the fragile watermarking.

2. Background

Due to the increasing number of disputes caused by video copyright issues, people’s awareness of video copyright protection is growing, and the demand for video copyright protection has become intense. Digital watermarking technology has emerged. In 1993, Tirkel et al. first proposed the expression “watermark.” In 1994, Tirkel et al. [19] proposed “a digital watermark,” detailed the definition of digital watermarking, and described the application areas of digital watermarking. As a result, many famous universities and institutions at home and abroad have started to devote themselves to the research of digital watermarking technology, and the research results are widely used in real life. Video digital watermarking technology can be mainly divided into video watermarking based on the spatial domain (pixel domain) and video watermarking based on the transform domain [20]. Most video watermarking based on spatial domain has poor robustness, such as the LSB algorithm, which embeds the watermark in the least significant bit of data [21]. It is easy to be removed and challenging to resist attacks. The transform domain-based video watermarking technology can transform the spatial domain to the transform domain, perform image operations on the transform domain, and finally inverse transform to the spatial domain. The above operations can spread the transform to each pixel point in the spatial domain to enhance the robustness.

Currently, the ordinary and practical watermarking algorithms embed the watermark in the transform domain, such as Discrete Cosine Transform (DCT), Discrete Wavelet Transform (DWT), and other methods. However, the two-dimensional wavelet has limited directionality and cannot represent image contours and edge information in the most efficient sparse form. The Contourlet Transform has been proposed to solve this problem. Literature [22] proposed a zero watermarking algorithm based on Contourlet Transform, which constructs a zero watermarking without changing the video content, and the algorithm is also more robust to most attacks. Zhang et al. [23] proposed a block adaptive compressed sensing reversible watermarking algorithm based on the trade-off between high embedding capacity and invisibility of digital image reversible watermark. Literature [24] proposed robust reversible watermarking technology based on an independent embedding threshold and robust reversible watermarking technology based on the JND threshold in the frequency domain. Naskar and Chakraborty [25] developed a statistical modeling technique to derive a reversible watermarking algorithm based on pixel prediction. The exported metrics and performance trends are apparent, and the developed model is accurate and consistent. Literature [26] proposed a visual watermarking algorithm, which has better transparency and antiattack.

In recent years, with the continuous improvement of digital watermarking technology. The research of the video watermarking algorithm has become the main direction, and a large number of video watermarking algorithms have been proposed. Shukla and Sharma [27] extracted the keyframes of scene changes and embedded the watermark in the low-frequency subband of the three-level DWT. The method has good watermark invisibility, but the watermark embedding capacity needs to be improved. Moreover, the watermark embedding position is always fixed in the low-frequency subband of the video frame. The robustness against various attacks has much room for improvement. Bao and Yang [28] designed a blind video watermarking algorithm combined with DWT-Schur decomposition. The experimental results show that the method has good robustness against noise attacks and video attacks, but the watermark embedding position is fixed. Wang [29] proposed a video watermarking algorithm in the DWT domain based on extreme learning machines, which have better watermark invisibility and can effectively resist multiple attacks. However, the watermark embedding capacity is too small, and the watermark embedding position has been fixed in the low-frequency subband.

For a long time, the research on the algorithm based on video watermarking mainly focused on a single watermarking. The advantages of a single watermarking algorithm are good transparency and clear functions, but a single watermarking sometimes cannot meet different requirements of users. The research of video double watermarking algorithm arises. The video double watermarking algorithm has the characteristics of high transparency and good security, and the double watermarking algorithm in the transform domain has higher transparency and robustness. Therefore, the transform domain double watermarking algorithm has been more widely used.

In literature [30], the whole wavelet transform is first applied to the carrier image, embedding a robust watermark in the low-frequency subband and a fragile watermark in the high-frequency subband. The literature [31] first embeds the robust watermark into the discrete wavelet coefficients of the image YCbCr color space. Moreover, it embeds the fragile watermark into the least significant bit of the image RGB color space. However, the extraction effect of the two watermarks is not very well. The literature [32] performs DWT on the image, then selects some coefficients to do singular value decomposition, and embeds the robust watermark in the singular values. Finally, they perform quaternion DCT on the image and embed the fragile watermark in the least significant bit of its coefficients. However, this algorithm does not resist crop attacks and rotation attacks well.

Blockchain technology was proposed by Satoshi Nakamoto in a Bitcoin paper, which has attracted widespread attention. It provides an effective solution to solve the digital copyright challenge [3335]. Blockchain technology and digital copyright protection have a natural fit. Firstly, the blockchain can establish a hard link between user addresses and data objects, which realize data identification and clear ownership of rights and interests. Secondly, the characteristics of tamper-proof, forgery-proof, and traceable data on the chain can provide evidential proof and solidify evidence for digital works.

The current digital copyright protection based on blockchain has been studied in the academic field. The literature [36] designed a digital copyright protection and trading system based on blockchain technology. It uses the consortium blockchain technology to provide full-service digital copyright protection and trading services, such as digital content copyright registration, tracking, authentication, query, and trading. However, this literature only mentions depositing the eigenvalues of digital content into the blockchain. It does not explain for different types of works which digital content eigenvalue extraction technology is used. The literature [37] designed a digital copyright transaction system model based on the consortium blockchain, which can guarantee the immutability and traceability of copyright information. However, it does not describe too much about copyright registration. The literature [38] proposed a Hyperledger-based digital copyright registration model based on blockchain technology, which is mainly for the registration of works in the form of text as the carrier and focuses on the part of copyright registration. The paper [39] proposed a federated audio and video copyright blockchain system based on the improved Practical Byzantine Fault Tolerance algorithm. The literature [40] proposed a distributed digital copyright management mechanism based on a blockchain credit system, which focuses on the copyright transaction process. The scheme achieves the irreversibly encrypted record of the copyright transaction process and makes lightweight adjustments to the data structure of the distributed ledger. In addition, scholars in the literature [41, 42] have proposed new digital rights management schemes by combining digital watermarking technology and blockchain.

3.1. Architecture

The architecture of the system is shown in Figure 1, which is mainly divided into client-side, video copyright protection platform, blockchain network, and server-side.(1)Client-side: this part has encapsulated the complex and abstract transaction logic into a concise and beautiful visual interface to present to users, which has understandable operation logic and well interaction and user operation experience.(2)Video copyright protection platform: the platform includes five functional modules, comprising user management, copyright registration, copyright authentication, copyright complaints, and blockchain management. The following is the system process:(i)The users register and become legal users.(ii)The users upload the video to be registered. And the system performs the copyright audit of the video, which uses similarity detection to determine whether the video is registered and whether the watermark meets the requirements. The G component of the video keyframes is processed with the second-level Contourlet Transform. Then, the QR decomposition is performed on the low-frequency subband, and the R matrix is selected as the robust watermark embedding carrier. And the fragile watermark is embedded in the least significant bit of the B component of the video keyframes. After passing the authentication, the signature of the watermark hash digest value and user ID generated by SM2 are uploaded to the blockchain to generate the block. After that, the copyright registration is completed.(iii)The users upload the video to be authenticated and perform copyright detection after extracting keyframes. The platform compares the user watermark with the watermark hash value on the blockchain to realize the binding of user identity and robust watermark. We achieve the matching of the robust watermark with the embedded video by comparing the user watermark with the NC value of the extracted watermark. After that, the copyright authentication is completed.(iv)When users find others have preregistered their videos, they can submit credible proof. If the administrator approves, the platform will transfer the video copyright, upload the transaction information, update the database, and after that complete the copyright complaints.(3)Blockchain network: this part is responsible for the erection and management of the Fabric network, including distributed ledger, smart contract, consensus mechanism, and other components, which is the basis for the well operation of blockchain services.(4)Server-side: it is the foundation of the platform application services, which are responsible for the client’s transactions logic processing and communication with the blockchain network. It includes the processing and execution of functional modules of blockchain management and other services. In addition, it includes MySQL local database and provides security services such as identity authentication and permission management for the platform. We use an enterprise application framework for development, with good security and coupling degree and through the way as “Java back-end to SDK to blockchain” to achieve efficient communication with the Fabric network.

3.2. Copyright Registration

Copyright registration mainly includes copyright audit, watermark embedding, and identity authentication functions. The process is shown in Figure 2.(1)Copyright audit:In copyright registration, keyframes are first extracted from the video. Then, the keyframes are audited for similarity by using the perceptual hash algorithm. User watermarks are also audited in the same way. It is divided into four steps: ① scaling the image; ② converting the grayscale image; ③ calculating DCT; ④ shrinking DCT; ⑤ calculating the difference value; ⑥ calculating the fingerprint. After getting the pHash value of the picture, we compare the hamming distance of the pHash value of the two pictures. Usually, a group of pictures with hamming distance less than 10 is commonly considered as similar pictures.(2)Watermark embedding:Users register, become legal users, and then log in to this system. They need to provide the video for copyright registration and the watermark containing personal information, which is the video to be embedded with the watermark and the robust watermark. Firstly, the keyframes of the video to be registered are extracted using the image correlation coefficient method to prepare for embedding the digital watermark. Secondly, the robust watermark is encoded with the hamming code. Thirdly, we embed the robust watermark in the video by using the Contourlet-based digital double watermarking technology, and the fragile watermark is generated by the robust watermark. Furthermore, the video with a double watermark is obtained.(i)Video keyframe extractionThe image correlation coefficient method is used to measure the similarity of adjacent image frames in the video to realize the extraction of keyframes. Suppose that the video has a total of NOF frames and i = 1; then the keyframe extraction steps are as follows:Step 1: Obtain matrix A by reading frame i of the video.Step 2: Read the next frame, namely, the matrix B of frame i + 1.Step 3: Use A and B matrixes of the same size to calculate the similarity r of adjacent image frames. If the difference value is greater than a certain threshold, frame i is selected as the keyframes and output i.Step 4: If i + 1 >NOF, all keyframes of the video have been extracted, otherwise i = i + 1, and go back to Step 1.(ii)Robust watermark preprocessingSet the binary image of size as the robust watermark image. The preprocessing steps are as follows:Step 1: Transform the binary image into matrix A with 4 columns and rows (zero padding).Step 2: Each row of matrix A is coded with (7, 4) hamming code to obtain the matrix containing error correction codes, namely, the robust watermark image .(iii)Robust watermark embeddingSet the color image I of size as the carrier image, and the process of robust watermark embedding is shown in Figure 3.Detailed steps are as follows:Step 1: Separate components R, G, and B in the RGB color space model of the color carrier image I. Then, we perform the second-level Contourlet Transform on the component G to extract the second-level low-frequency subband.Step 2: Divide the second-order low-frequency subband into 4 × 4 blocks. And we perform QR decomposition of each small block to obtain Q matrixes and R matrixes.Step 3: Select element (C12) in row 1 and column 2 as the coefficient value of the embedding position and embed the watermark there.Step 4: Perform Arnold Transformation (Cat Map) based on the Maximum Entropy Threshold Segmentation for the robust watermark to form an encrypted robust watermark, denoted as .Step 5: Set the quantization step L as the optimal value 50 obtained in the previous experiment. Then, divide the coefficient value at the above embedding position by L to get the quantization value, namely, . And then, we embed the robust watermark into the R matrix to get the matrix with robust watermark.Set the quantization value as q and the pixel value of the encrypted robust watermark as . If  = 0, then the coefficient value of the element (C12) in row 1 and column 2 of R matrix after embedding the watermark isIf  = 1, then the coefficient value of the element (C12) in row 1 and column 2 of R matrix embedded with watermark isStep 6: perform Inverse QR decomposition on matrix embedded with robust watermark. Moreover, the Inverse Contourlet Transformation is performed to obtain component G containing robust watermark, denoted as .(iv)Fragile watermark embeddingUse the components R and B separated in the robust watermark embedding process and the component containing the robust watermark for the formation and embedding of the fragile watermark. The process of embedding fragile watermarks is shown in Figure 4.Detailed steps are as follows:Step 1: Set the least significant bit of the gray value of component B to 0, denoted as .Step 2: Divide the components R, , and into 2 × 2 blocks and calculate the mean value of the three components. The value is changed into 8-bit binary numbers. And the highest 4 bits is extracted to form a 2 × 2 small matrix to form the fragile watermark W2.Step 3: The fragile watermark W2 is correspondingly embedded into the least significant bit of the component and obtain the component containing the fragile watermark, denoted as .Step 4: Components R and containing robust watermark and containing fragile watermark are combined to form a color image containing double watermark.(3)Identity authentication:After the watermark is embedded, SM3 is used to hash the robust watermark and the user ID, respectively. Then, we use the digest value of the user ID as the private key, and SM2 is used to generate the corresponding public key. The robust watermark digest value and user ID are signed with the private key. The public key is used for verification before uploading to the blockchain. If the ID obtained by decryption matches the user’s identity, the authentication is passed. And then, the system uploads the signature to the blockchain platform. After that, the copyright registration is completed. On the contrary, it will be refused to upload to the blockchain, failing to complete the copyright registration. The specific process is shown in Figure 5.

3.3. Copyright Authentication

Copyright authentication requires proving the watermark’s relevance with the video and the watermark’s relevance with the individual. Suppose it is proved that the user’s watermark is embedded in the video and the user watermark is owned by the user. Then, the video is also owned by the user. The copyright registration module mainly includes watermark extraction, watermark owner authentication, and video owner authentication. The process is shown in Figure 6.(1)Watermark extractionWhen the users upload the video to be detected, we call the SIFT algorithm to process the video to be detected. Then, we carry out the reverse process of the watermark embedding algorithm. If the extraction fails, it means that the video has not been registered on this platform. If the extraction succeeds, the watermark in the video to be detected is obtained. Whether the watermark is the user’s watermark requires further authentication.The blind watermarking algorithm is used to extract fragile watermark and robust watermark. The process of extracting fragile and robust watermark is shown in Figure 7.The detailed process of extracting the fragile watermark and robust watermark is as follows:(i)Fragile watermark extracting:Step 1: Separate the color channels R, G, and B of the color image with double watermark of size from each other. And we extract the least significant bit of component B and set it to zero to form a fragile watermark matrix of size .Step 2: Divide the components R, G, and B into 2 × 2 blocks and calculate the mean value. Moreover, the maximum 4 bits of the mean value are extracted and form a 2 × 2 small matrix, denoted as .Step 3: Divide fragile watermark matrix into 2 × 2 blocks, denoted as . If and are equal, then the kth small matrix of the positioning matrix L is the null matrix. Otherwise, it is the matrix of all ones.(ii)Robust watermark extractingStep 1: Separate the color channels R, G, and B of the color image with double watermarks of size . And we perform a second-level Contourlet Transform on the G component and extract its low-frequency subbands.Step 2: The low-frequency subbands are divided into 4 × 4 blocks, and QR decomposition is performed to obtain matrix and matrix .Step 3: Calculate the quantization value of the coefficient value in row 1 and column 2 of the matrix . Among them, L is the quantization step. Furthermore, the extraction of the robust watermark is performed. A pixel value of the extracted robust watermark (undecrypted and with supervision code) isStep 4: Firstly, the matrix is decrypted by inverse Arnold Transformation (Cat Map) based on the Maximum Entropy Threshold Segmentation. Then, the robust watermark matrix containing only the supervisory code is obtained.Step 5: Transform the robust watermark matrix with supervisory code into A' with 7 columns and calculate the correctors of each row in the matrix A'.Step 6: Correct the element values in each row of matrix A'. Then, we extract the first 4 columns of elements in matrix A' and turn them into a square matrix denoted as . The robust watermark was finally extracted and restored.(2)Watermark owner authentication:Blockchain digital copyright registration mainly relies on the timestamp and the hash value. The timestamp is the added time of data content, once generated, that cannot be falsified and synchronized to the connected block. It is not possible to modify a newly generated block record unless the attackers have at least 51% of the total network capacity, but it is impossible. Consequently, it could ensure the heterogeneity and reliability of the information before and after. We call the corresponding public key through the user ID to verify the signature on the blockchain and obtain the digest value of the watermark and the user ID. Hence, the user watermark is owned by the user, which proves the correlation between the watermark and the user.(3)Video owner authentication:Copyright authentication module requires users to provide the user watermark and the video to be authenticated. If the user stores the user watermark, it is easy to lose. Besides, storing for a long time or after the transmission can easily cause a certain degree of distortion of the watermark image. Therefore, we use the database directly to retrieve the corresponding user watermark. The platform compares the normalized correlation coefficient between the extracted watermark and the user watermark. If the watermark passes the threshold value, it indicates that the watermark in the video is on the blockchain, proving the correlation between the video and the watermark.

3.4. Blockchain Management

We use Hyperledger Fabric to construct the blockchain module. Fabric is a consortium blockchain with features such as permissioned networks, confidential transactions, and pluggable architecture. Only individuals approved to join the blockchain network can participate in transactions. It offers a unique approach to the consensus that enables performance at scale while preserving privacy and can meet the needs of building a video copyright protection platform. Blockchain management is shown in Figure 8.

Node configuration: when building the blockchain, it is required to set the configuration information of different nodes. This module carries out CA authentication for nodes and sets basic configurations such as consensus algorithm and block size in the blockchain configuration file. When necessary, the number of nodes can be dynamically added through node configuration and allowing nodes certified by CA to join the blockchain to build the video copyright protection ecology together.

Channel creating: the channel feature in the Fabric can be used to separate the data of different channels in the ledgers shared by different nodes according to their requirements. In this system, it only needs to complete the basic node configuration and build a channel.

Smart contract deployment: the smart contract in the blockchain needs to be deployed at every node in the channel to be effective. So, the watermark information uploaded to the blockchain needs to be written into the smart contract. And the smart contract needs to be deployed and instantiated.

Copyright information uploading: when the users provide a robust watermark, the video platform will call the copyright information uploading function in the smart contract. And it uploads the signature of the watermark hash digest value and user ID generated by SM2 to the blockchain and generates a block.

When the video platform receives the uploading request, it will issue information to the blockchain module. The blockchain workflow is as follows: ① The transmitting node broadcasts the new watermark digest information to the whole blockchain network. ② The receiving node checks the record information of received data, such as whether the record information is legitimate. After passing the inspection, the data record will be included in a block. ③ All receiving nodes in the whole network perform the consensus algorithm for the block. ④ The block is formally incorporated into the blockchain after processing the consensus algorithm, and each network node achieves agreement on the incorporation of the block. The method of acceptance is to regard the random hash value of the block as the latest block hash value. And the manufacture of new blocks will be extended based on this blockchain.

In the way of uploading data to the blockchain, we choose to adopt the digital signature to store proof. The signature is the hash value of the robust watermark signed by SM2. Its hash value, also known as “digital fingerprint,” can be obtained by hashing the robust watermark. We use SM2 to sign the hash of the robust watermark and the user ID together and upload the signature to the blockchain.

4. Experiment and Analysis

In order to make the experimental results more accurate, we collected and organized 50 different videos in uncompressed MP4 format from the network to carry out the test, mainly taking the “landscape map” video as an example. The frame image is RGB color space with a size of 720 × 1280, the data rate is 20,604 kpbs, the total bit rate is 20,604 kpbs, the frame rate is 25.00 frames/sec, the audio sampling frequency is 44.100 kHz, the video size is 41.7 MB, the total number of video frames is 413 frames, and the duration is 17 seconds. The size of the watermark is a 9 × 12 binary image. The system uses MySQL8.0.22 as the back-end database. Bootstrap is used as the component development framework in the front-end, and the double watermarking processing is mainly implemented in MATLAB. Moreover, Hyperledger Fabric2.3 is used to build the blockchain platform, and the back-end uses IDEA for debugging. Table 1 shows the software and hardware environment.

4.1. Experiment
4.1.1. Blockchain Performance

We use Caliper to test the performance of our blockchain network. Caliper is a blockchain performance testing framework that can test the performance of a blockchain network with a defined set of tests and generate test reports. Caliper supports the tests of transaction success rate, transactions per second (TPS), transaction latency, and resource consumption performance metrics. The blockchain industry standards are shown in Table 2.

The results of the blockchain test are shown in Figure 9. The transaction success rate of this test is 100%, the average transaction delay is 0.71 s (the maximum transaction delay is 2.54 s, and the minimum transaction delay is 0.07 s), and the throughput is 221.2 transactions/second.

The test results show that it conforms to the industry standard.

4.1.2. Commercial Cryptography Algorithm Performance

This system combines SM2 and SM3 with blockchain technology and is mainly applied to the digital signature of transactions. SM3 and SHA-256 are both hash algorithms. SM2 is a public key cryptography algorithm based on the discrete logarithm problem on the elliptic curve, and its key length is 256 bits. To compare SM2 with the international mainstream cryptography algorithm, we select ECC-256, the public key cryptography with the same key length as the comparison object. During the process of digital signature and signature verification, SM2 and ECC use SM3 and SHA-256 to perform hash operations, respectively. Therefore, we will design test experiments on SM2 and ECC to compare the advantages of the blockchain using the commercial cryptography algorithm compared with the ordinary blockchain architecture.(1)Test environment:The two algorithms use elliptic curves based on the prime number field, and the equation on the prime number field isAmong them, SM2 adopts the commercial cryptography standards, and the parameters are as follows:ECC adopts the secp256k1 curve, and the parameters are as follows:(2)Test method:We, respectively, use SM2 and ECC to complete 10,000 signing and verifying operations and calculate the time and memory costs of the signing and verifying for 32-byte, 64-byte, and 128-byte strings.(3)Test results:(i)Time overheadAs can be seen from Table 3, the SM2 signing and verifying have a faster execution speed. It saves about 20% time compared with the secp256k1 curve adopted in Bitcoin.(ii)Memory overheadAs shown in Table 4, the signing and verifying by SM2 + SM3 take up less memory than the ECC-256 + SHA-256, which saves about 10% of the memory.

4.1.3. Security
(1)Test indicators(i)Invisibility:The test of invisibility of the watermark is described by the peak signal-to-noise ratio (PSNR). The larger the PSNR, the smaller the difference between the two. Conversely, the more significant the difference between the two, the smaller the PSNR. The calculation formula of PSNR is as follows:where F and F represent two images and h and , respectively, represent the number of rows and columns of the image. Generally, if the PSNR is greater than 35 dB, the visual quality of the original video frame is not significantly different from the watermark video frame.(ii)Robustness:The NC value can be used to evaluate the robustness of the watermark. After analyzing and summarizing a large number of traditional watermarks related literature data, we conclude that, in the scenario of assuring image quality (the PSNR is greater than 35 dB), if the NC of the watermark information is higher than 0.85, then this watermarking algorithm could be considered to have robustness.Among them, is the nth line from the bottom and the mth pixel value of the template image. is the part covered by the template, which is called the search subgraph, i and j are the image point coordinates in the lower-left corner of the search subgraph in the reference graph S.(2)Attack tests(i)Invisibility:We embedded watermarks on different video frames and tested their PSNR. The detailed results are shown in Table 5.As shown in Table 5, the results of PSNR all exceed 45 dB, which indicates that the difference between video frames before and after watermark embedding is slight and the invisibility is well.(ii)Robustness:Attacks can be used to detect the actual performance of a system. There are two types of attacks in the actual transmission process: unintentional and intentional. Traditional image attack methods include gamma correction, median filtering, shear attack, rotation attack, histogram equalization, Gaussian noise, motion blur, contrast ratio adjustment, and sharp attack. The attacks against video include frame deletion and frame displacement. Table 6 shows the different attack methods used on video frames, and the NC and PSNR values are tested.As shown in Table 6, NC values all exceed 0.9. It indicates that the extracted watermark and embedded watermark have high similarity and well robustness.(iii)Tampering location:The system adopts double watermarking technology, in which the fragile watermark can realize the tamper location function. Experiments on deleting, replacing, and adding malicious tampering are carried out to the watermark videos, respectively.The precision rate and recall rate are used to evaluate and analyze the tamper location results.Among them, A is the area of the location area of the experimental results, B is the area of the real tampering area, and AB is the intersection of A and B. Table 7 shows the statistics of precision and recall rate.As shown in Table 7, for physical attacks, the precision rate is above 95%, and the recall rate is about 90%, which well realizes the tamper location function of the fragile watermark.
4.2. Analysis

Confidentiality. When watermark and video are uploaded to the system, they need to pass similarity detection. After that, performs the hash operation on user ID by SM3 before uploading it to the blockchain platform. The user ID hash is used as the private key, which is used to sign the robust watermark hash and ID and upload the signature to the blockchain. When a copyright query or authentication is performed, the data can be obtained only by decrypting it with its corresponding public key, which realizes the confidentiality of user data. The confidentiality of the system is thus realized.

Integrity. After the user watermark is uploaded to the system, the user watermark and user ID are first hashed, and the user ID hash is used as the private key. The private key is used to sign the robust watermark and ID. Before uploading the signature to the blockchain platform, it needs to be decrypted with its public key to prevent the data from being tampered with and ensure the integrity of the system.

Authenticity. When users register for copyright, they must pass identity authentication before uploading the robust watermark information. Users use the SM2 algorithm to sign the information to be uploaded to the blockchain. The public key is invoked to verify the signature before uploading to the blockchain, ensuring that the user’s identity matches the claimed identity.

Nonrepudiation. Blockchain has the characteristics of tamper-proof, openness, and transparency to achieve nonrepudiation. Transactions on the blockchain are organized through the Merkle tree. If any transactions are modified, it will cause some change in the hash value of the Merkle root. Furthermore, the timestamp can prove the order between blocks. Each data in the timestamp is secondary encryption. To tamper with the data, not only break the hash algorithm but also change the timestamp.

5. Conclusion

This paper is based on the double watermarking algorithm on Contourlet and blockchain technology. We generate a fragile watermark based on the robust watermark and embed both in the video. The double watermarking algorithm improves the robustness under the premise of ensuring the invisibility of the watermark and implements the tampering locating function. This system generates the digest value of the robust watermark based on SM3 and signs the digest value and the user ID using SM2. The signature is uploaded to the blockchain after passing the identity authentication, which significantly improves the credibility of the authentication and the security of the system. In the first part, we explain the wide application of video copyright protection and analyze the security threats faced by video copyright and the solutions. The second part introduces the current research status on video copyright protection at home and abroad. In the third part, we propose a video copyright protection system based on blockchain and double watermarking technology for the shortcomings of the traditional video copyright protection system using digital watermarking technology, such as low security, poor balance, poor robustness, and watermark not bound to individuals. In the fourth part, we test the performance of blockchain and commercial cryptography algorithms. Besides, we test the security of double watermarking and analyze the watermarking systems’ confidentiality, integrity, authenticity, and nonrepudiation. The combination of blockchain and watermarking technology optimizes the traditional copyright protection scheme. The adoption of the commercial cryptography algorithm ensures the confidentiality and autonomy of the system. The improvement of the robust watermarking scheme improves the robustness, security, and self-adaptability of the watermark. Moreover, the adoption of improved fragile watermarking realizes the watermarked video integrity identification. The next steps of our job are as follows:(1)In view of the low efficiency of the blockchain system itself, the multinode server is adopted to improve the efficiency of the video copyright protection system.(2)We will find the best embedding point of the robust watermark to achieve the maximum energy and further improve the robustness of the robust watermark against geometric attacks.(3)We will improve the copyright transfer module to realize copyright transactions.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.


This work was supported in part by the Hainan Provincial Natural Science Foundation of China (621RC508 and 620RC563), the Science Project of Hainan University (KYQD(ZR)-21075 and KYQD(ZR)20021), and the National Natural Science Foundation of China (62162020).