Copyright protection method and device based on block chain network, equipment and medium
By recording the hash value and copyright information of written works on the blockchain network, and using the copyright registration contract of the named data network, the problem of copyright protection of written works in electronic reading mode is solved, and efficient copyright protection and information security are achieved.
Patent Information
- Application Number
- CN202410716172.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-27
AI Technical Summary
With the popularization of electronic reading methods, the copyright protection of written works is facing threats. Unauthorized copying and distribution have led to frequent infringement cases. How to effectively record and protect the copyright information of written works has become an urgent problem that needs to be solved.
Adopt a copyright protection method based on the blockchain network, connect the blockchain nodes through the named data network, and use the copyright registration contract to record the hash value and copyright information of the text work to ensure that the information cannot be tampered with and is safe.
It improves the efficiency of copyright protection of written works, ensures the reliability and security of copyright information, and prevents unauthorized copying and distribution.
Smart Images

Figure CN118709157A
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a copyright protection method, device, equipment and medium based on a blockchain network. Background Art
[0002] With the rapid development of the Internet and information technology, electronic reading of literary works has become an indispensable part of people's lives. The popularization of this reading method has not only greatly enriched people's spiritual life, but also provided a broader platform for the dissemination of literary works.
[0003] However, while this convenient way of reading has promoted the growth of cultural consumption, it has also brought about a series of copyright issues. Due to the easy reproduction and wide dissemination of electronic content, text works are more vulnerable to unauthorized copying, distribution and abuse, resulting in an endless stream of infringement cases, posing a threat to copyright protection. The copyright information of text works is crucial to copyright protection. Therefore, how to record the copyright information of text works is an issue that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a copyright protection method, apparatus, device and medium based on a blockchain network to solve the above-mentioned technical problem of how to record the copyright information of a text work.
[0005] In a first aspect, an embodiment of the present application provides a copyright protection method based on a blockchain network, which is applied to an electronic device, wherein the electronic device is connected to a blockchain node of the blockchain network through a named data network, and the copyright protection method includes:
[0006] Display the registration page, and obtain the registration information recorded on the registration page;
[0007] When the registration information is passed, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed;
[0008] When the operation page is a copyright registration page, obtaining the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model;
[0009] When the current similarity is less than a preset similarity, uploading the first text work to the IPFS network, and obtaining a first hash value generated by the IPFS network based on the first text work;
[0010] Obtaining a second hash value generated by the IPFS network based on the second text work, and determining whether the first hash value is the second hash value;
[0011] When the first hash value is not the second hash value, obtaining copyright information of the first text work, the copyright information including one or a combination of a copyright owner and a timestamp, the timestamp being used to record a creation time or a release time of the first text work;
[0012] The copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract.
[0013] Exemplarily, when the operation page is a copyright registration page, obtaining the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model includes:
[0014] When the operation page is a copyright registration page, obtaining the first text work to be registered in the copyright registration page;
[0015] Obtaining cosine similarity and Jaccard similarity between the first text work and the registered second text work;
[0016] The current similarity is generated according to the cosine similarity, the Jaccard similarity and a preset current similarity generation model.
[0017] The current similarity is used to describe the similarity between the first text work to be registered and the second text work that has been registered;
[0018] The greater the current similarity, the higher the similarity between the first text work to be registered and the second text work that has been registered;
[0019] The smaller the current similarity is, the smaller the similarity between the first text work to be registered and the second text work that has been registered is;
[0020] The current similarity generation model is a generation model of the current similarity.
[0021] Exemplarily, the current similarity generation model includes:
[0022] S = W1*S1+W2*S2;
[0023] Wherein, S is the current similarity, W1 is the weight coefficient of the cosine similarity, W2 is the weight coefficient of the Jaccard similarity, S1 is the cosine similarity, and S2 is the Jaccard similarity.
[0024] In a possible implementation manner of the first aspect, when the registration information passes, obtaining a user type corresponding to the registration information, and displaying an operation page corresponding to the user type include:
[0025] When the registration information is passed, the login page is displayed and the login information on the login page is obtained;
[0026] When the mailbox of the login information is the mailbox of the registration information, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed.
[0027] In a possible implementation manner of the first aspect, when the registration information passes, obtaining a user type corresponding to the registration information, and displaying an operation page corresponding to the user type include:
[0028] When the registration information is passed, the login page is displayed and the login information on the login page is obtained;
[0029] When the password of the login information is the password of the registration information, the user type corresponding to the registration information is acquired, and the operation page corresponding to the user type is displayed.
[0030] In a possible implementation of the first aspect, after calling the copyright registration contract deployed on the blockchain node through the named data network and recording the first hash value and the copyright information in a block of the blockchain node through the copyright registration contract, the copyright protection method includes:
[0031] Obtain the set query words through the preset copyright query page;
[0032] When the query term is a copyright owner, sending a first query request carrying the copyright owner to the blockchain node through the named data network, and receiving a first query result returned by the blockchain node in response to the first query request through the named data network;
[0033] When the query term is a work identifier, a second query request carrying the work identifier is sent to the blockchain node through the named data network, and a second query result returned by the blockchain node in response to the second query request is received through the named data network.
[0034] In a possible implementation of the first aspect, after calling the copyright registration contract deployed on the blockchain node through the named data network and recording the first hash value and the copyright information in a block of the blockchain node through the copyright registration contract, the copyright protection method includes:
[0035] Obtaining, through a preset copyright transaction page, a transaction request for the first text work submitted by the copyright user to the copyright owner;
[0036] receiving response information of the transaction request through the named data network;
[0037] When the response information is a pass message, the preset smart contract is called to complete the subscription or purchase of the first text work. When the response information is a reject message, the smart contract is refused to be called to complete the subscription or purchase of the first text work.
[0038] In a possible implementation of the first aspect, after calling the copyright registration contract deployed on the blockchain node through the named data network and recording the first hash value and the copyright information in a block of the blockchain node through the copyright registration contract, the copyright protection method includes:
[0039] The contract update information is obtained through the named data network, and the address of the target contract is obtained from the contract update information, where the target contract is used to replace the copyright registration contract.
[0040] In a possible implementation manner of the first aspect, the registration information includes a user name, an email address, a user password or a corporate license, and the user type includes one of a common user, an administrator user, and a corporate user, or a combination thereof.
[0041] In a second aspect, an embodiment of the present application provides a copyright protection device based on a blockchain network, which is applied to an electronic device, wherein the electronic device is connected to a blockchain node of the blockchain network through a named data network, including:
[0042] A first acquisition module, used to display a registration page and acquire registration information recorded on the registration page;
[0043] A second acquisition module is used to acquire the user type corresponding to the registration information when the registration information is passed, and display the operation page corresponding to the user type;
[0044] A third acquisition module is used for, when the operation page is a copyright registration page, acquiring the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model;
[0045] An uploading module, configured to upload the first text work to the IPFS network when the current similarity is less than a preset similarity, and obtain a first hash value generated by the IPFS network based on the first text work;
[0046] A judgment module, used to obtain a second hash value generated by the IPFS network based on the second text work, and judge whether the first hash value is the second hash value;
[0047] a fourth acquisition module, configured to acquire copyright information of the first text work when the first hash value is not the second hash value, the copyright information including one or a combination of a copyright owner and a timestamp, the timestamp being used to record a creation time or a release time of the first text work;
[0048] A recording module is used to call a copyright registration contract deployed on the blockchain node through the named data network, and record the first hash value and the copyright information in a block of the blockchain node through the copyright registration contract.
[0049] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the copyright protection method of any one of the first aspects above when executing the computer program.
[0050] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the copyright protection method of any one of the above-mentioned first aspects is implemented.
[0051] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the copyright protection method described in any one of the above-mentioned first aspects.
[0052] The beneficial effects of the embodiment of the present application lie in two aspects. On the one hand, the copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract. Therefore, the electronic device can record the copyright information of the first text work, which is beneficial to improving the efficiency of copyright protection of the first text work; on the other hand, the first hash value and the copyright information are recorded in the block of the blockchain node, and the first hash value and the copyright information will not be tampered with or deleted. Therefore, the reliability and security of the first hash value and the copyright information are ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0054] Figure 1 An application scenario diagram of the copyright protection method provided in the embodiment of the present application;
[0055] Figure 2 is a flowchart of a copyright protection method provided by an embodiment of the present application;
[0056] Figure 3 A flowchart of copyright transaction provided for an embodiment of the present application;
[0057] Figure 4 A schematic block diagram of a copyright protection device provided in an embodiment of the present application;
[0058] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0060] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0061] In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0062] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0063] The copyright protection method provided in the embodiments of the present application can be applied to electronic devices such as servers, mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0064] See also Figure 1 , Figure 1 The application scenario diagram of the copyright protection method provided in the embodiment of the present application is described in detail as follows:
[0065] The electronic device connects to the blockchain node of the blockchain network through a named data network.
[0066] Among them, named data networking is also known as NDN network. Named Data Networking (NDN) is a content-based network architecture that aims to replace the traditional communication model between IP addresses and hosts.
[0067] The purpose of the embodiments of the present application is to achieve efficient data transmission by combining the NDN network and the blockchain network.
[0068] Among them, combining the NDN network and the blockchain network includes the following steps:
[0069] Data Blockchain: First, the data on the blockchain network is processed in blocks, and large files are divided into blocks.
[0070] Naming data: Generate a globally unique name for each block, which will be calculated based on the content of the block to ensure uniqueness.
[0071] Data transmission: When a blockchain node of a blockchain network needs to request a specific block, it can use the NDN network to obtain the block. By using the concept of named data, the blockchain node can directly obtain the block from the NDN network without going through a complex search and verification process.
[0072] Data verification: After obtaining the block, the blockchain node can verify its integrity and authenticity by checking the hash value of the block to ensure that the block has not been tampered with.
[0073] Among them, in the NDN network, data naming needs to follow certain rules, which is different from the traditional data identification method. This also means that the key to combining the blockchain network with the NDN network lies in how to define the naming rules.
[0074] Because the NDN network works with a different communication paradigm, it focuses more on the data itself rather than the location of the data, which makes the NDN network an ideal platform to deal with copyright protection and blockchain technology. Combining the blockchain network with the NDN network can provide better protection and control for the owners of digital content.
[0075] To achieve this goal, we can consider introducing a new naming rule in the NDN network, which includes the copyright information of the data in the name. In this way, the data requester can know the copyright information of the data before accessing it, and can make corresponding authorizations and permissions as needed.
[0076] For example, the following naming convention can be used: [copyright owner name] / [data name]. In this way, when requesting certain data, the copyright information of the data can be determined by the copyright owner name contained in the name.
[0077] In addition, signature and encryption technologies can be used to ensure the integrity and authenticity of data. Data owners can use digital signatures to bind data to their copyright information, and use encryption technology to ensure the security of data during transmission.
[0078] Combining the blockchain network with the NDN network requires defining appropriate naming rules to ensure that the copyright information of the data is protected and disseminated in the network. At the same time, digital signatures and encryption technologies are used to ensure the integrity and security of the data. In this way, copyright protection can be better achieved.
[0079] In an embodiment of the present application, by using the NDN network to optimize data transmission, the data transmission efficiency of the blockchain network can be improved. The routing mechanism and data naming mechanism of the NDN network enable the blockchain node to obtain the required blocks more quickly, so that the blockchain node can update the blocks in a timely manner. In this way, the first hash value and the copyright information can be recorded in the block updated by the blockchain node.
[0080] See also Figure 2 , Figure 2It is a flow chart of the copyright protection method provided in an embodiment of the present application. The method can be applied to an electronic device, which is connected to a blockchain node of the blockchain network via a named data network.
[0081] like Figure 2 As shown, the copyright protection method provided in the embodiment of the present application includes the following steps, which are described in detail as follows:
[0082] S201, displaying a registration page, and obtaining registration information recorded on the registration page;
[0083] The registration information includes user name, email address, user password or company license.
[0084] Among them, before S201, the blockchain nodes are synchronously updated.
[0085] For ease of explanation, an example is given below:
[0086] The blockchain node to be synchronized is node A, and the node of the named data network is node B.
[0087] Node A initiates a request for the latest status interest to the named data network. This interest request carries the blockchain node's own highest block number to inform the blockchain network of its current incomplete status.
[0088] After receiving the latest status interest request, node B will compare the local block data. If the local highest block number is greater than the received block number, it means that the data status of node B is newer, and node B sends the latest highest block number to node A.
[0089] After receiving the highest block number returned by node B, node A initiates a synchronization request for the missing block to the named data network.
[0090] Finally, node A will add the missing blocks according to the response information of the synchronization request received, thus completing the synchronization update.
[0091] By synchronously updating, node A can ensure that the blockchain data stored locally is consistent with other nodes in the blockchain network, thereby ensuring the data integrity and accuracy of the entire blockchain network.
[0092] In the embodiment of the present application, the named data network realizes efficient data transmission and sharing during the synchronous update process of blockchain nodes, providing strong support for the stability and performance of the blockchain network.
[0093] S202, when the registration information is passed, obtaining the user type corresponding to the registration information, and displaying the operation page corresponding to the user type;
[0094] The user type includes one of a common user, an administrator user, and an enterprise user, or a combination thereof.
[0095] When the registration information includes a user name, an email address, and a user password, the user type corresponding to the registration information is a common user or an administrator user.
[0096] When the registration information includes a user name, an email address, and a corporate license, the user type corresponding to the registration information is a corporate user.
[0097] Wherein, when the registration information is passed, obtaining the user type corresponding to the registration information and displaying the operation page corresponding to the user type include:
[0098] When the registration information is passed, the login page is displayed and the login information on the login page is obtained;
[0099] When the mailbox of the login information is the mailbox of the registration information, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed.
[0100] Wherein, when the registration information is passed, obtaining the user type corresponding to the registration information and displaying the operation page corresponding to the user type include:
[0101] When the registration information is passed, the login page is displayed and the login information on the login page is obtained;
[0102] When the password of the login information is the password of the registration information, the user type corresponding to the registration information is acquired, and the operation page corresponding to the user type is displayed.
[0103] S203, when the operation page is a copyright registration page, obtaining the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model;
[0104] Among them, the first written work to be registered is a written work whose copyright has not been registered.
[0105] Among them, the registered second literary work is the literary work whose copyright has been registered.
[0106] Among them, the registered second text work is set by the user or by the system by default, and is not restricted here.
[0107] Exemplarily, when the operation page is a copyright registration page, obtaining the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model includes:
[0108] When the operation page is a copyright registration page, obtaining the first text work to be registered in the copyright registration page;
[0109] Obtaining cosine similarity and Jaccard similarity between the first text work and the registered second text work;
[0110] The current similarity is generated according to the cosine similarity, the Jaccard similarity and a preset current similarity generation model.
[0111] The current similarity is used to describe the similarity between the first text work to be registered and the second text work that has been registered;
[0112] The greater the current similarity, the higher the similarity between the first text work to be registered and the second text work that has been registered;
[0113] The smaller the current similarity is, the smaller the similarity between the first text work to be registered and the second text work that has been registered is;
[0114] The current similarity generation model is a generation model of the current similarity.
[0115] Exemplarily, the current similarity generation model includes:
[0116] S = W1*S1+W2*S2;
[0117] Wherein, S is the current similarity, W1 is the weight coefficient of the cosine similarity, W2 is the weight coefficient of the Jaccard similarity, S1 is the cosine similarity, and S2 is the Jaccard similarity.
[0118] Among them, Jaccard Similarity is a statistical measure used to compare the similarity and diversity between finite sample sets.
[0119] Among them, W1 and W2 are set by the user or by system default and are not restricted here.
[0120] For ease of explanation, an example is given below:
[0121] For example, W1 is 0.7, W2 is 0.3, S1 is 0.8, and S2 is 0.6;
[0122] The current similarity generation model is:
[0123] S=0.7*0.8+0.3-0.6=0.74. At this time, the current similarity is 0.74.
[0124] In the embodiment of the present application, the current similarity generation model combines the advantages of the cosine similarity and the Jaccard similarity to obtain a more comprehensive and accurate current similarity.
[0125] S204, when the current similarity is less than a preset similarity, uploading the first text work to the IPFS network, and obtaining a first hash value generated by the IPFS network based on the first text work;
[0126] Among them, in the local data, the second hash value generated by the IPFS network based on the second text work is obtained, and it is determined whether the first hash value is the second hash value.
[0127] Among them, the IPFS network is a network based on IPFS. IPFS (InterPlanetary File System) is a content-addressed, distributed, peer-to-peer hypermedia transmission protocol.
[0128] The preset similarity is set by the user or by the system by default and is not restricted here.
[0129] For ease of explanation, an example is given below:
[0130] When the preset similarity is 0.8 and the current similarity is 0.74, the current similarity is less than the preset similarity, the first text work is uploaded to the IPFS network, and a first hash value generated by the IPFS network based on the first text work is obtained.
[0131] S205, obtaining a second hash value generated by the IPFS network based on the second text work, and determining whether the first hash value is the second hash value;
[0132] S206, when the first hash value is not the second hash value, obtaining copyright information of the first text work, the copyright information including one or a combination of a copyright owner and a timestamp, the timestamp being used to record a creation time or a release time of the first text work;
[0133] S207, calling the copyright registration contract deployed on the blockchain node through the named data network, and recording the first hash value and the copyright information in the block of the blockchain node through the copyright registration contract.
[0134] Wherein, after calling the copyright registration contract deployed on the blockchain node through the named data network and recording the first hash value and the copyright information in the block of the blockchain node through the copyright registration contract, the copyright protection method includes:
[0135] Step A, obtaining the set query words through the preset copyright query page;
[0136] When the query term is a copyright owner, sending a first query request carrying the copyright owner to the blockchain node through the named data network, and receiving a first query result returned by the blockchain node in response to the first query request through the named data network;
[0137] When the query term is a work identifier, a second query request carrying the work identifier is sent to the blockchain node through the named data network, and a second query result returned by the blockchain node in response to the second query request is received through the named data network.
[0138] Among them, the copyright registration contract is used to upload the first hash value and the copyright information to the blockchain network.
[0139] Wherein, after calling the copyright registration contract deployed on the blockchain node through the named data network and recording the first hash value and the copyright information in the block of the blockchain node through the copyright registration contract, the copyright protection method includes:
[0140] Step B, obtaining contract update information through the named data network, obtaining the address of the target contract from the contract update information, and the target contract is used to replace the copyright registration contract.
[0141] On the blockchain network, when the copyright registration contract is not in use, the target contract is used to replace the copyright registration contract, and the target contract will be deployed to an address, which is the address of the target contract.
[0142] Among them, step A can be executed before or after step B, S301; step B can be executed before or after step A, S301; S301 can be executed before or after step A, step B; step A, step B, and S301 can also be executed simultaneously, and the specific execution order is not limited here.
[0143] The beneficial effects of the embodiment of the present application lie in two aspects. On the one hand, the copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract. Therefore, the electronic device can record the copyright information of the first text work, which is beneficial to improving the efficiency of copyright protection of the first text work; on the other hand, the first hash value and the copyright information are recorded in the block of the blockchain node, and the first hash value and the copyright information will not be tampered with or deleted. Therefore, the reliability and security of the first hash value and the copyright information are ensured.
[0144] See also Figure 3 , Figure 3 The flowchart of copyright transaction provided in the embodiment of the present application is detailed as follows:
[0145] S301, obtaining a transaction request for the first text work submitted by the copyright user to the copyright owner through a preset copyright transaction page;
[0146] S302, receiving response information of the transaction request through the named data network;
[0147] S303, when the response information is a pass message, calling the preset smart contract to complete the subscription or purchase of the first text work; when the response information is a reject message, refusing to call the smart contract to complete the subscription or purchase of the first text work.
[0148] Among them, smart contracts are set by users or by system default and are not restricted here.
[0149] For ease of explanation, an example is given below:
[0150] For example, the smart contract uses CSC smart contract, which refers to the automated contract running on CoinEx Smart Chain. CoinEx Smart Chain refers to the CoinEx smart contract chain.
[0151] For example, the smart contract uses CTC smart contract, which refers to the automated contract running on Credit Tag Chain. Credit Tag Chain means credit tag chain.
[0152] In an embodiment of the present application, the list processing request is processed based on the target component to obtain the list processing result, and the list processing result is displayed on the target page. Since the target component is based on a custom function, the list processing result can meet the personalized needs of the user. Therefore, displaying the list processing result on the target page can improve the user's usage experience and the efficiency of information acquisition.
[0153] For the copyright protection method described in the above embodiment, please refer to Figure 4 , Figure 4 A schematic block diagram of a copyright protection device provided in an embodiment of the present application, Figure 4 The copyright protection device 400 shown can be applied to Figure 1 The electronic device in the application scenario diagram shown below takes the electronic device as an example. Figure 4 The copyright protection device 400 shown in the figure is described in detail. The copyright protection device 400 may include a first acquisition module 401, a second acquisition module 402, a third acquisition module 403, an upload module 404, a judgment module 405, a fourth acquisition module 406, and a recording module 407.
[0154] The first acquisition module 401 is used to display the registration page and acquire the registration information recorded on the registration page;
[0155] The second acquisition module 402 is used to acquire the user type corresponding to the registration information when the registration information is passed, and display the operation page corresponding to the user type;
[0156] The third acquisition module 403 is used to acquire the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model when the operation page is a copyright registration page;
[0157] The uploading module 404 is used to upload the first text work to the IPFS network when the current similarity is less than the preset similarity, and obtain a first hash value generated by the IPFS network based on the first text work;
[0158] A judgment module 405 is used to obtain a second hash value generated by the IPFS network based on the second text work, and to judge whether the first hash value is the second hash value;
[0159] A fourth acquisition module 406, configured to acquire copyright information of the first text work when the first hash value is not the second hash value, the copyright information including one or a combination of a copyright owner and a timestamp, the timestamp being used to record a creation time or a release time of the first text work;
[0160] The recording module 407 is used to call the copyright registration contract deployed on the blockchain node through the named data network, and record the first hash value and the copyright information in the block of the blockchain node through the copyright registration contract.
[0161] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0162] The beneficial effects of the embodiment of the present application lie in two aspects. On the one hand, the copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract. Therefore, the electronic device can record the copyright information of the first text work, which is beneficial to improving the efficiency of copyright protection of the first text work; on the other hand, the first hash value and the copyright information are recorded in the block of the blockchain node, and the first hash value and the copyright information will not be tampered with or deleted. Therefore, the reliability and security of the first hash value and the copyright information are ensured.
[0163] See also Figure 5 , Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0164] like Figure 5 As shown, Figure 5 The electronic device 2 includes: at least one processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, and when the processor 20 executes the computer program 22, the steps in any of the above-mentioned method embodiments are implemented.
[0165] The electronic device 2 may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 2 and does not constitute a limitation on the electronic device 2. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0166] The processor 20 is used to run the computer program 22 stored in the memory 21, and implement the following steps when executing the computer program 22:
[0167] Display the registration page, and obtain the registration information recorded on the registration page;
[0168] When the registration information is passed, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed;
[0169] When the operation page is a copyright registration page, obtaining the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model;
[0170] When the current similarity is less than a preset similarity, uploading the first text work to the IPFS network, and obtaining a first hash value generated by the IPFS network based on the first text work;
[0171] Obtain a second hash value generated by the IPFS network based on the second text work, and determine whether the first hash value is the second hash value; when the first hash value is not the second hash value, obtain copyright information of the first text work, the copyright information including one or a combination of a copyright owner and a timestamp, and the timestamp is used to record the creation time or release time of the first text work; call a copyright registration contract deployed on the blockchain node through the named data network, and record the first hash value and the copyright information in a block of the blockchain node through the copyright registration contract.
[0172] In some embodiments, the processor 20 is configured to implement:
[0173] When the registration information is passed, the login page is displayed and the login information on the login page is obtained;
[0174] When the mailbox of the login information is the mailbox of the registration information, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed.
[0175] In some embodiments, the processor 20 is configured to implement:
[0176] When the registration information is passed, the login page is displayed and the login information on the login page is obtained;
[0177] When the password of the login information is the password of the registration information, the user type corresponding to the registration information is acquired, and the operation page corresponding to the user type is displayed.
[0178] In some embodiments, the processor 20 is configured to implement:
[0179] Obtain the set query words through the preset copyright query page;
[0180] When the query term is a copyright owner, sending a first query request carrying the copyright owner to the blockchain node through the named data network, and receiving a first query result returned by the blockchain node in response to the first query request through the named data network;
[0181] When the query term is a work identifier, a second query request carrying the work identifier is sent to the blockchain node through the named data network, and a second query result returned by the blockchain node in response to the second query request is received through the named data network.
[0182] In some embodiments, the processor 20 is configured to implement:
[0183] Obtaining, through a preset copyright transaction page, a transaction request for the first text work submitted by the copyright user to the copyright owner;
[0184] receiving response information of the transaction request through the named data network;
[0185] When the response information is a pass message, the preset smart contract is called to complete the subscription or purchase of the first text work. When the response information is a reject message, the smart contract is refused to be called to complete the subscription or purchase of the first text work.
[0186] In some embodiments, the processor 20 is configured to implement:
[0187] The contract update information is obtained through the named data network, and the address of the target contract is obtained from the contract update information, where the target contract is used to replace the copyright registration contract.
[0188] In some embodiments, the processor 20 is configured to implement:
[0189] The registration information includes a user name, an email address, a user password or a business license, and the user type includes one or a combination of a common user, an administrator user, and a business user.
[0190] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0191] In some embodiments, the memory 21 may be an internal storage unit of the electronic device 2, such as a hard disk or memory of the electronic device 2. In other embodiments, the memory 21 may also be an external storage device of the electronic device 2, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 2. Further, the memory 21 may also include both an internal storage unit of the electronic device 2 and an external storage device. The memory 21 is used to store an operating system, an application program, a boot loader (Boot Loader), data, and other programs, such as the program code of the computer program, etc. The memory 21 may also be used to temporarily store data that has been output or is to be output.
[0192] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0193] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0194] The computer-readable storage medium stores program codes, which can be called by a processor to execute the copyright protection method described in the above method embodiment.
[0195] The computer-readable storage medium has a storage space for program codes.
[0196] The program code includes the code of any step of the copyright protection method described in the above method embodiment.
[0197] For example, the program code is called by the processor and can execute the following steps:
[0198] Display the registration page, and obtain the registration information recorded on the registration page;
[0199] When the registration information is passed, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed;
[0200] When the operation page is a copyright registration page, obtaining the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model;
[0201] When the current similarity is less than a preset similarity, uploading the first text work to the IPFS network, and obtaining a first hash value generated by the IPFS network based on the first text work;
[0202] Obtaining a second hash value generated by the IPFS network based on the second text work, and determining whether the first hash value is the second hash value;
[0203] When the first hash value is not the second hash value, obtaining copyright information of the first text work, the copyright information including one or a combination of a copyright owner and a timestamp, the timestamp being used to record a creation time or a release time of the first text work;
[0204] The copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract.
[0205] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0206] The computer-readable storage medium may also be an external storage device of a copyright protection device or an electronic device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium), etc., equipped on the copyright protection device or the electronic device.
[0207] Since the computer program stored in the computer-readable storage medium can execute any one of the copyright protection methods based on the blockchain network provided in the embodiments of the present application, the computer-readable storage medium can achieve the beneficial effects that can be achieved by any one of the copyright protection methods based on the blockchain network provided in the embodiments of the present application. Please refer to the previous embodiments for details and will not be repeated here.
[0208] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the above-mentioned copyright protection method.
[0209] The computer program product is loaded into the electronic device and can execute the following steps:
[0210] Display the registration page, and obtain the registration information recorded on the registration page;
[0211] When the registration information is passed, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed;
[0212] When the operation page is a copyright registration page, obtaining the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model;
[0213] When the current similarity is less than a preset similarity, uploading the first text work to the IPFS network, and obtaining a first hash value generated by the IPFS network based on the first text work;
[0214] Obtaining a second hash value generated by the IPFS network based on the second text work, and determining whether the first hash value is the second hash value;
[0215] When the first hash value is not the second hash value, obtaining copyright information of the first text work, the copyright information including one or a combination of a copyright owner and a timestamp, the timestamp being used to record a creation time or a release time of the first text work;
[0216] The copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract.
[0217] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0218] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0219] Based on such understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to an electronic device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0220] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0221] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A copyright protection method based on blockchain network, characterized in that: Applied to an electronic device, the electronic device is connected to a blockchain node of the blockchain network via a named data network, and the copyright protection method includes: Display the registration page, and obtain the registration information recorded on the registration page; When the registration information is passed, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed; When the operation page is a copyright registration page, obtaining the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model; When the current similarity is less than a preset similarity, uploading the first text work to the IPFS network, and obtaining a first hash value generated by the IPFS network based on the first text work; Obtaining a second hash value generated by the IPFS network based on the second text work, and determining whether the first hash value is the second hash value; When the first hash value is not the second hash value, obtaining copyright information of the first text work, the copyright information including one or a combination of a copyright owner and a timestamp, the timestamp being used to record a creation time or a release time of the first text work; The copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract.
2. The copyright protection method according to claim 1, characterized in that: When the registration information is passed, obtaining the user type corresponding to the registration information and displaying the operation page corresponding to the user type include: When the registration information is passed, the login page is displayed and the login information on the login page is obtained; When the mailbox of the login information is the mailbox of the registration information, the user type corresponding to the registration information is obtained, and the operation page corresponding to the user type is displayed.
3. The copyright protection method according to claim 1, characterized in that: When the registration information is passed, obtaining the user type corresponding to the registration information and displaying the operation page corresponding to the user type include: When the registration information is passed, the login page is displayed and the login information on the login page is obtained; When the password of the login information is the password of the registration information, the user type corresponding to the registration information is acquired, and the operation page corresponding to the user type is displayed.
4. The copyright protection method according to claim 1, characterized in that: After the copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract, the copyright protection method includes: Obtain the set query words through the preset copyright query page; When the query term is a copyright owner, sending a first query request carrying the copyright owner to the blockchain node through the named data network, and receiving a first query result returned by the blockchain node in response to the first query request through the named data network; When the query term is a work identifier, a second query request carrying the work identifier is sent to the blockchain node through the named data network, and a second query result returned by the blockchain node in response to the second query request is received through the named data network.
5. The copyright protection method according to claim 1, characterized in that: After the copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract, the copyright protection method includes: Obtaining, through a preset copyright transaction page, a transaction request for the first text work submitted by the copyright user to the copyright owner; receiving response information of the transaction request through the named data network; When the response information is a pass message, the preset smart contract is called to complete the subscription or purchase of the first text work. When the response information is a reject message, the smart contract is refused to be called to complete the subscription or purchase of the first text work.
6. The copyright protection method according to claim 1, characterized in that: After the copyright registration contract deployed on the blockchain node is called through the named data network, and the first hash value and the copyright information are recorded in the block of the blockchain node through the copyright registration contract, the copyright protection method includes: The contract update information is obtained through the named data network, and the address of the target contract is obtained from the contract update information, where the target contract is used to replace the copyright registration contract.
7. The copyright protection method according to any one of claims 1 to 6, characterized in that: The registration information includes a user name, an email address, a user password or a business license, and the user type includes one or a combination of a common user, an administrator user, and a business user.
8. A copyright protection device based on a blockchain network, characterized in that: Applied to an electronic device, the electronic device is connected to a blockchain node of the blockchain network through a named data network, comprising: A first acquisition module, used to display a registration page and acquire registration information recorded on the registration page; A second acquisition module is used to acquire the user type corresponding to the registration information when the registration information is passed, and display the operation page corresponding to the user type; A third acquisition module is used for, when the operation page is a copyright registration page, acquiring the current similarity between the first text work to be registered and the second text work already registered in the copyright registration page by using a preset current similarity generation model; An uploading module, configured to upload the first text work to the IPFS network when the current similarity is less than a preset similarity, and obtain a first hash value generated by the IPFS network based on the first text work; A judgment module, used to obtain a second hash value generated by the IPFS network based on the second text work, and judge whether the first hash value is the second hash value; a fourth acquisition module, configured to acquire copyright information of the first text work when the first hash value is not the second hash value, the copyright information including one or a combination of a copyright owner and a timestamp, the timestamp being used to record a creation time or a release time of the first text work; A recording module is used to call a copyright registration contract deployed on the blockchain node through the named data network, and record the first hash value and the copyright information in a block of the blockchain node through the copyright registration contract.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the copyright protection method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the copyright protection method according to any one of claims 1 to 7 is implemented.
