CN117134893A - Digital collection processing method, device and system - Google Patents

Digital collection processing method, device and system Download PDF

Info

Publication number
CN117134893A
CN117134893A CN202311059792.5A CN202311059792A CN117134893A CN 117134893 A CN117134893 A CN 117134893A CN 202311059792 A CN202311059792 A CN 202311059792A CN 117134893 A CN117134893 A CN 117134893A
Authority
CN
China
Prior art keywords
file
digital collection
cid
watermark
digital
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311059792.5A
Other languages
Chinese (zh)
Inventor
王青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202311059792.5A priority Critical patent/CN117134893A/en
Publication of CN117134893A publication Critical patent/CN117134893A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/085Secret sharing or secret splitting, e.g. threshold schemes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/60Digital content management, e.g. content distribution
    • H04L2209/608Watermarking

Abstract

The invention provides a method, a device and a system for processing digital collection, and relates to the technical field of blockchain. The method comprises the following steps: the management platform adds watermark information to the digital collection file uploaded by the first user to generate a watermark file; uploading a source file and a watermark file of the digital collection file to an IPFS (interstellar file system) network; receiving a content identification CID of the digital collection file returned by the IPFS, wherein the CID comprises a source file CID and a watermark file CID of the digital collection file; splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network; and respectively encrypting the n secret shares, and uploading the encrypted n secret shares and the watermark file CID to a blockchain network. The scheme of the invention solves the problem of original right confirmation of the digital collection.

Description

Digital collection processing method, device and system
Technical Field
The invention relates to the field of blockchain, in particular to a method, a device and a system for processing digital collections.
Background
Digital collections refer to digital assets that generate unique digital certificates for a particular work based on blockchain technology and have verifiable rights. Through copyright confirmation and authentication of the blockchain, unique digital identities can be generated for works or artworks, and true and credible digital distribution, collection and use are realized on the basis of protecting the digital copyrights of the works or artworks. Key information for digital assets is typically composed of asset class (Denom), asset Identifier (ID), metadata (metadata), and uniform resource identifier (Uniform Resource Identifier, URI) of the metadata. The form of digital collections includes, but is not limited to, data content such as pictures, music, video, text, etc., and because blockchains are not suitable for storing files, only key information such as identification IDs, metadata, etc. of digital collections are typically stored on the chain, while the data files themselves are stored in databases outside the blockchain.
The currently commonly adopted scheme is to implement blockchain file storage based on an interstellar file system (Inter Planetary File System, IPFS) network. IPFS is a distributed file system, which is a brand-new point-to-point Hypermedia text transfer protocol, and allows the network to run more quickly and safely. The general idea of using an IPFS network to implement blockchain file storage is: firstly, slicing and splitting a file, uploading the split file to an IPFS network, using hash as a Content ID (CID) of the file, and uploading the CID to a blockchain network. The method for reading the blockchain file based on the IPFS network comprises the following steps: first, the CID of the file is acquired, and then the file is read according to the CID. Because the data in the blockchain network is shared, all parties on the chain can obtain the CID of the file, and the file can be directly read through the IPFS network based on the CID.
With the explosive development of the universe and the digital collection, the copyright problem of the digital collection becomes a problem that the digital collection industry has to face. In order to ensure the security of the digital collection, a blockchain technology is generally adopted to manage the digital collection, but even if the blockchain technology is used for storing metadata and CID of the digital collection, whether the digital collection is tampered or not can be checked through the same abstract calculation, the uniqueness and the non-tamper-resistance of the digital collection on a certain blockchain platform can be ensured, and the digital collection cannot be restricted to be issued and spread through other platforms after being stolen or modified.
Disclosure of Invention
The invention aims to provide a processing method, a device and a system for digital collections, which solve the security problem of the digital collections in the prior art.
In order to achieve the above objective, an embodiment of the present invention provides a method for processing a digital collection, which is applied to a management platform, and includes:
adding watermark information to the digital collection file uploaded by the first user to generate a watermark file; the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
uploading the source file and the watermark file of the digital collection file to an IPFS (inter-star file system) network;
receiving a content identifier CID of the digital collection file returned by the IPFS, wherein the CID comprises a source file CID and a watermark file CID;
splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network;
and respectively encrypting the n secret shares, and uploading the encrypted n secret shares and the watermark file CID to a blockchain network.
To achieve the above objective, an embodiment of the present invention provides a method for processing a digital collection, applied to an IPFS network, including:
Receiving a source file of a digital collection file of a first user and a watermark file adding watermark information to the digital collection file from a management platform, wherein the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
the method comprises the steps that a content identification CID of a digital collection file is sent to a management platform, the CID comprises a source file CID and a watermark file CID, the management platform is used for splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, n is the node number of a blockchain network, the n secret shares are respectively encrypted, and the encrypted n secret shares and the watermark file CID are uploaded to the blockchain network.
In order to achieve the above objective, an embodiment of the present invention provides a method for processing a digital collection, which is applied to a blockchain network, and includes:
and receiving n secret shares of a watermark file CID of the digital collection file and a source file CID of the digital collection file from a management platform, wherein n is the node number of a blockchain network, the watermark file is a file generated by adding watermark information to the digital collection file, and the watermark information is generated according to at least one of identity information and anti-counterfeiting information of a first user.
In order to achieve the above object, an embodiment of the present invention provides a processing device for digital collection, which is applied to a management platform, and includes:
the digital watermark module is used for adding watermark information to the digital collection file uploaded by the first user to generate a watermark file; the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
the first sending module is used for uploading the source file and the watermark file of the digital collection file to an IPFS (inter-star file system) network;
a first receiving module, configured to receive a content identifier CID of the digital collection file returned by the IPFS network, where the CID includes a source file CID and a watermark file CID;
the secret splitting module is used for splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network;
and the data storage module is used for encrypting the n secret shares respectively and uploading the encrypted n secret shares and the watermark file CID to the blockchain network.
To achieve the above object, an embodiment of the present invention provides a processing device for digital collection, which is applied to an interstellar file system IPFS network, including:
The first receiving sub-module is used for receiving a source file of the digital collection file of the first user and a watermark file for adding watermark information to the digital collection file from the management platform, wherein the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
the management platform is used for splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network, encrypting the n secret shares respectively, and uploading the encrypted n secret shares and the watermark file CID to the blockchain network.
To achieve the above object, an embodiment of the present invention provides a processing device for digital collection, which is applied to a blockchain network, and includes:
the first receiving unit is used for receiving n secret shares of a watermark file CID of the digital collection file and a source file CID of the digital collection file from the management platform, wherein n is the node number of the blockchain network, the watermark file is a file generated by adding watermark information to the digital collection file, and the watermark information is generated according to at least one of identity information and anti-counterfeiting information of a first user.
In order to achieve the above objective, an embodiment of the present invention provides a processing system for digital collection, which includes the above management platform, the above IPFS network, and the above blockchain network.
To achieve the above object, an embodiment of the present invention provides a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps in the method for processing a digital collection as described above on the management platform side, the IPFS network side, or the blockchain network side.
The technical scheme of the invention has the following beneficial effects:
in the embodiment of the invention, a management platform adds watermark information to a digital collection file uploaded by a first user, generates watermark information, and uploads a source file and a watermark file of the digital collection file to an interstellar file system IPFS network; receiving a content identifier CID of the digital collection file returned by the IPFS, wherein the CID comprises a source file CID and a watermark file CID; splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network; and respectively encrypting the n secret shares, and uploading the encrypted n secret shares and the watermark file CID to a blockchain network. The digital collection file is divided into the source file and the watermark file added with watermark information and is uploaded to the IPFS network for storage, and CIDs of the two files are uploaded to the blockchain network for storage, so that the digital watermark added file can be provided for a user browsing the digital collection, the original collection file is provided for the user purchasing the collection, the digital collection value caused by random access, downloading and propagation of the digital collection source file can be limited to be influenced, the interests of a collection owner are effectively protected, and the safety of the digital collection file is improved.
Further, when the collection is displayed, the information of the visitor is added into the digital collection file as a watermark, and meanwhile, the information such as the access and the transaction of the digital collection is recorded in a linking way, and if the digital collection is infringed or leaked, the traceability checking can be performed. And the digital collection source file CID is taken as a secret in a secret sharing mode, then is encrypted and stored in the blockchain node, secret recovery can be realized only by authorizing and agreeing with the node reaching the threshold value, the digital collection source file is obtained, and the security of the digital collection copyright protection system can be improved. Meanwhile, the range of the threshold value is set according to the requirements of the alliance chain fault tolerance, so that the secret source file CID can be recovered on the premise that the system meets the requirements of the fault tolerance, and the reliability of the system is ensured.
Drawings
FIG. 1 is a flowchart of a method for processing digital collections on a management platform side according to an embodiment of the present invention;
fig. 2 is a flow chart of a watermarking process according to an embodiment of the present invention;
FIG. 3 is a flow chart of a collection access process according to an embodiment of the present invention;
FIG. 4 is a flow chart of a collection transaction process according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for processing digital collection on the IPFS network side according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for processing digital collections on the blockchain network side in accordance with an embodiment of the present invention;
FIG. 7 is a block diagram of a processing device for digital collection on the management platform side according to an embodiment of the present invention;
FIG. 8 is a block diagram of a processing device for digital collection on the IPFS network side according to an embodiment of the present invention;
FIG. 9 is a block diagram of a processing device for digital collections on the blockchain network side in accordance with an embodiment of the present invention;
fig. 10 is a block diagram of a processing system for digital collections according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved more apparent, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
In addition, the terms "system" and "network" are often used interchangeably herein.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B may be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information.
As shown in fig. 1, a method for processing a digital collection according to an embodiment of the present application is applied to a management platform or a copyright protection device for digital collection, and includes:
step 11: and adding watermark information to the digital collection file uploaded by the first user to generate a watermark file.
The first user is an creator, and the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user.
Step 12: and uploading the source file and the watermark file of the digital collection file to an IPFS (inter-star file system) network.
Step 13: and receiving a content identifier CID of the digital collection file returned by the IPFS, wherein the CID comprises a source file CID and a watermark file CID.
Wherein, the source file CID corresponds to the source file of the digital collection file, and the watermark file CID corresponds to the watermark file of the digital collection file.
Step 14: splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network.
Step 15: and respectively encrypting the n secret shares, and uploading the encrypted n secret shares and the watermark file CID to a blockchain network.
Because the IPFS is a public network, when the CID (i.e. the content hash value) of a certain digital collection source file in the IPFS network is obtained, the file can be queried, the CID of the digital collection file is stored in a blockchain, all parties on the chain can obtain the CID of the collection, and the collection can be accessed and downloaded through the IPFS network, so that the digital collection source file is easy to obtain and download, and data leakage is easy to cause; if the original file of the digital collection is obtained by other people and then transmitted or slightly modified to generate a new digital collection, the copyright of the original creator is damaged, the collection value of the digital collection is affected, and especially the digital collection cast by art works such as painting and calligraphy is more valuable because of scarcity, if the original file of the digital collection can be accessed and downloaded through a public network without limitation, the scarcity of the original file is greatly affected, and the self value of the original file is affected. According to the embodiment of the application, the source file of the digital collection file and the watermark file added with the watermark information are stored in the IPFS network, so that the storage cost of the digital collection file can be reduced. The watermark file CID of the digital collection file is further stored in the blockchain network, so that the digital collection file can be conveniently accessed and inquired, the source file CID of the digital collection file is split into n secret shares and stored in the blockchain network, the falsification of other people to the digital collection source file is avoided, and the safety of the digital collection file is improved.
Optionally, step 11 further includes, before: and carrying out identity authentication on the first user to generate identity information of the first user. The identity authentication mode includes, but is not limited to, real name authentication, mobile phone number verification and the like.
Optionally, step 11 further includes, before: acquiring a source file of a digital collection file uploaded by a first user; generating a hash file of a source file of the digital collection file by utilizing a hash algorithm; sending a query request to the IPFS network, wherein the query request carries a hash file of a source file; receiving a query result fed back by the IPFS based on the query request, and if the query result is that the digital collection file corresponding to the hash file is queried, determining that the digital collection file is a registered file; and if the query result is that the digital collection file corresponding to the hash file is not queried, executing the step of adding watermark information to the digital collection file uploaded by the user.
Optionally, step 14 includes: constructing a k-1 order polynomial f (x) =a by using a Shamir secret sharing algorithm and the CID of the digital collection file k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Wherein a is i Is randomly generated based on a threshold value k, a 0 A source file CID of the digital collection file, wherein n is more than or equal to k and more than or equal to n is fault tolerance; randomly generating n non-zero numbers x from the number n of nodes of a blockchain network i And according to each nonzero number x i And said k-1 order polynomial f (x) generates an (x) i ,f(x i ) To obtain n (x) i ,f(x i ) As secret share, wherein 1.ltoreq.i.ltoreq.n. Thus, the digital collection source file CID is used as a secret for privacy protection, and fault tolerance is carried out according to the alliance chainThe sexual requirement constructs a lagrangian polynomial. For example, the number of nodes n is shared by the alliance chain, the fault tolerance rate is k/n, namely, only k or more nodes work normally, a k-1 order polynomial is constructed, the source file CID is divided into n shares according to the number of alliance chain links, each share is encrypted by adopting different node public keys, and the shares are uploaded to the chain for storage. As a special case, when the fault tolerance requirement is 1, k=n, step 14 includes: constructing an n-1 order polynomial f (x) =a by using a Shamir secret sharing algorithm and the CID of the digital collection file n-1 x n-1 +...+a 2 x 2 +a 1 x+a 0 Wherein a is i Is based on n randomly generated, a 0 In this case, when the CID of the digital collection file is verified, all nodes (i.e., n nodes) in the blockchain network need to feed back secret shares to recover the CID.
The steps are the watermark adding process of the digital collection, the digital collection casting process or the digital collection registering process, and when an creator applies for registering the digital collection, the digital collection platform firstly verifies the identity of the creator and determines the right for the collection. The collection casting process is divided into two parts, namely, on one hand, creator information is used as a digital watermark to be embedded into collection files, and the files CID added with the digital watermark are stored in a chain manner and used for collection display; on the other hand, secret shares are stored in each blockchain node in a distributed manner after being encrypted by a secret sharing technique for the digital collection source file CID, and secret information (collection source file) can be reconstructed only when the condition for secret recovery is satisfied. The main flow of the watermarking process of the digital collection can be seen in fig. 2:
1: user identity authentication.
The digital collection creator completes identity authentication (including but not limited to real name authentication, mobile phone number verification and the like) through the digital collection platform to generate an identity credential. (this paragraph serves as a specific description of user identity authentication)
2: uploading the digital collection file.
The creator uploads a digital collection file, calls a digital collection copyright protection device and submits data such as digital collection metadata, source files and the like;
3: file Hash check
The digital collection copyright protection device performs right verification on the newly uploaded file, initiates a Hash query comparison to the IPFS network, and if the file corresponding to the Hash is found, the digital collection is registered and cast; if the file is not found, continuing the subsequent operation;
4: adding digital watermarks to stock
The digital collection copyright protection device adds a watermark to the digital collection file, and the copyright attribution of the collection is marked by embedding the creator key, anti-counterfeiting information and other data capable of determining the right into the digital collection file;
5: uploading IPFS (Internet protocol file system) to digital collection source file and file added with watermark
The digital collection copyright protection device uploads a digital collection source file and a file added with a watermark (namely the watermark file) to an IPFS network;
6: obtaining source file and watermarked file CID
The IPFS network returns the digital collection source file CID and the watermark file CID after adding the watermark;
7: secret splitting of source file CIDs
The digital collection copyright protection device adopts a Shamir secret sharing algorithm to carry out secret splitting on the CID of the digital collection source file, and selects a threshold k to randomly generate k-1 a i (1. Ltoreq.i. Ltoreq.k-1), constructing a polynomial f (x) =a of degree k-1 k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Source file CID as secret constant term a 0 . At the same time randomly generating n non-zero numbers x according to the number n of the block chain link points i (1. Ltoreq.i.ltoreq.n) to obtain n (x) i ,f(x i ) As secret shares, each share is encrypted by a node public key;
8: digital collection up-link application (metadata, watermarking file CID, source file Hash secret share encryption).
The digital collection copyright protection device uplinks digital collection metadata, the watermarked file CID and the encrypted source file CID share, and generates a unique copyright identification ID and an information table for the digital collection on a blockchain.
The embodiment of the invention divides the digital collection casting process into two parts, namely, on one hand, the creator information is embedded into collection files as digital watermarks, the files added with the digital watermarks are stored through IPFS, and meanwhile, CIDs of the files are directly linked for collection display; on the other hand, the digital collection source file is also stored by adopting an IPFS, but the CID of the digital collection source file is not directly linked up, but the source file CID is split by adopting a secret sharing technology as a secret, the share is encrypted and then uploaded into a blockchain, and the source file data is obtained through secret recovery only when collection transaction is carried out. That is, by dividing the digital collection file into the source file and the file added with the watermark information, uploading the files to the IPFS network for storage, and uploading the CIDs of the two files to the blockchain network for storage, the method can provide the file added with the digital watermark for the user browsing the digital collection, provide the original collection file for the user purchasing the collection, and limit the value of the digital collection, which is caused by random access, downloading and propagation of the source file of the digital collection, to be affected, thereby effectively protecting the interests of the collection owners.
Optionally, the processing method of the digital collection further comprises the following steps: acquiring a digital collection display application of a second user; responding to the digital collection display application, obtaining a watermark file and secondarily adding the watermark; and sending the digital collection file with the watermark added for the second time to the second user.
The digital collection display application carries a digital collection ID, and responds to the digital collection display application to acquire a watermark file and carry out secondary watermarking, and the method comprises the following steps:
according to the digital collection ID in the digital collection display application, a first access request is sent to the blockchain network; receiving a watermark file CID corresponding to the digital collection ID returned by the blockchain network aiming at a first access request; sending a second access request to the IPFS according to the watermark file CID, wherein the second access request carries the watermark file CID; receiving a watermark file corresponding to the watermark file CID returned by the IPFS network for the second access request; and secondarily watermarking the watermark file according to the identity information of the second user.
The digital collection copyright protection device calls the contract for adding the watermark again to increase the information watermark of the digital collection visitor when the platform user applies for appreciating a certain digital collection. By the method, the right and the traceability of the original copyright of the digital collection are realized, and meanwhile, if a digital collection visitor leaks data information, the infringement tracing can be realized. The main flow of the collection access process of the digital collection can be seen in fig. 3:
1: user identity authentication
The platform user (such as a second user) completes identity authentication (including but not limited to real name authentication, mobile phone number verification and the like) through the digital collection platform;
2: applying for access to a digital collection
The user initiates an application for accessing a certain digital collection to the digital collection platform;
3: acquiring the data storage information
The digital collection copyright protection device calls a digital collection display contract and requests access to the digital collection related information from the blockchain according to the digital collection ID;
4: watermarking file CID
Acquiring a file CID of the digital collection after watermarking through a block chain;
5: obtaining the digital collection file added with the watermark according to the CID of the file
The digital collection copyright protection device applies for accessing the digital collection file added with the watermark to the IPFS network according to the file CID;
6: digital collection file added with watermark
The IPFS network acquires and returns a digital collection file added with the creator information watermark;
7: secondary watermarking based on user information
The digital collection copyright protection device secondarily generates a watermark to be added into the digital collection file according to the user information of the access collection so as to trace back the circulation record of the digital collection according to the watermark information of the access user;
8: digital collection file display with secondary watermark added
And displaying the digital collection file with the watermark added for the second time to a user.
When the embodiment of the invention is used for showing the collection, the information of the visitor is added into the digital collection file as the watermark, and meanwhile, the information such as the access and the transaction of the digital collection is recorded in a linking way, and if the digital collection is infringed or leaked, the traceability checking can be carried out.
Optionally, the processing method of the digital collection further comprises the following steps: acquiring a digital collection purchase application of a third user, wherein the digital collection purchase application carries a digital collection ID; according to the digital collection ID, obtaining a secret share corresponding to the digital collection ID; restoring the source file CID of the digital collection file according to the secret share; acquiring a source file of the digital collection file according to the source file CID; and sending the digital collection file corresponding to the source file to the third user according to the source file.
Optionally, according to the digital collection ID, obtaining a secret share corresponding to the digital collection ID includes: according to the digital collection ID, a transaction request is sent to the blockchain network; and receiving secret shares corresponding to the digital collection ID, which are returned by at least K nodes in the blockchain network respectively, wherein n is greater than or equal to K and greater than or equal to n, the fault tolerance is K/n, and K is the minimum value of the number of nodes required for recovering the source file.
Optionally, recovering the source file CID of the digital collection file according to the secret share, including: based on the secret shares (x i ,f(x i ) Solving a k-1 order polynomial f (x) =a) k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Obtaining a 0 I.e. the source file CID of the digital collection file. In secret recovery, only when at least one of the n blockchain nodesk or more nodes agree to authorize, decrypt and sign the secret shares using their respective node private keys, and when any k or more valid secret shares are collected, the source file CID of the digital collection file can be recovered.
Optionally, acquiring the source file of the digital collection file according to the source file CID includes: sending an acquisition request carrying the source file CID to the IPFS network; and receiving a source file of the digital collection file corresponding to the source file CID returned by the IPFS network.
Optionally, after sending the corresponding digital collection file to the third user according to the source file, the method further includes: generating a transaction record and transmitting the transaction record to the blockchain network, the transaction record including at least one of: identity information of the transactor and transaction time.
The above steps are the transaction process of the digital collection, when the platform user applies for buying a certain digital collection, the platform user applies for obtaining the secret share from the blockchain node by calling the transaction contract, the secret recovery is carried out for the digital collection CID, when the share is authorized and decrypted by k or more nodes reaching the threshold value, the secret (digital collection storage address) can be calculated according to the Lagrangian polynomial interpolation method. The main flow of the transaction process of the digital collection can be seen in fig. 4:
1: user identity authentication
The platform user (such as a third user) completes identity authentication (including but not limited to real name authentication, mobile phone number verification and the like) through the digital collection platform;
2: apply for purchasing a digital collection
The user initiates a request for purchasing a certain digital collection to the digital collection platform;
3: invoking a collection transaction contract to apply for obtaining secret shares from each node on the blockchain
The digital collection copyright protection device calls a digital collection transaction contract, and applies for obtaining CID information of the digital collection file from the blockchain according to the digital collection ID;
4: node authorizes and decrypts shares
Each node on the blockchain receives the trafficAfter easy request, it can be determined whether to authorize the transaction based on the purchaser information, and if authorization is confirmed, the node private key is used to determine the secret share (x i ,f(x i ) Decrypting and signing, and returning to the digital collection copyright protection device;
5: collecting and verifying whether the secret shares are valid, reconstructing the secret CID
The digital collection copyright protection device performs signature verification on the secret shares, and only when the effective secret shares returned by any at least k nodes are collected, the k-1 order polynomial f (x) =a can be solved k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Recovering the secret a 0 (i.e., tibetan CID); if less than k nodes return a secret share (x i ,f(x i ) Will not get the secret a) 0
6: digital storage source file CID
After the digital collection copyright protection device obtains the digital collection file CID, the digital collection copyright protection device applies for accessing the digital collection file to the IPFS network;
7: returning a source file of a digital collection
The IPFS network acquires and returns the source file information of the digital collection;
8: returning the digital storage content information
The digital collection copyright protection device provides related information of the digital collection source file for a user;
9: transaction record up-link certificate
After the trade is completed, the digital collection copyright protection device links and reserves the trade record (the key information such as the purchaser information, the time and the like).
According to the embodiment of the invention, the digital collection source file CID is taken as the secret in a secret sharing mode, then the secret is encrypted and stored in the blockchain node, secret recovery can be realized only by authorizing and agreeing with the node reaching the threshold value, the digital collection source file is obtained, and the security of the digital collection copyright protection system can be improved. Meanwhile, the range of the threshold value is set according to the requirements of the alliance chain on fault tolerance, so that the secret source file CID can be recovered on the premise that the system meets the requirements of the fault tolerance, the digital collection source file CID is protected from being acquired and accessed at will, and the reliability of the system is guaranteed.
The method for processing the digital collection on the management platform side is introduced, and the method for processing the digital collection on the IPFS network and the blockchain network side is further described with reference to the accompanying drawings.
As shown in fig. 5, an embodiment of the present invention provides a method for processing a digital collection, which is applied to an IPFS network, and includes:
step 51: a source file of a digital collection file of a first user and a watermark file that adds watermark information to the digital collection file are received from a management platform.
Wherein the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
step 52: and sending the content identification CID of the digital collection file to the management platform, wherein the CID comprises a source file CID and a watermark file CID of the digital collection file.
The management platform splits the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network, the n secret shares are respectively encrypted, and the encrypted n secret shares and the watermark file CID are uploaded to the blockchain network.
Optionally, the processing method of the digital collection further comprises the following steps: receiving a query request from a management platform, wherein the query request carries a hash file of a source file of the digital collection file; and inquiring the digital collection file corresponding to the hash file according to the inquiry request, and feeding back an inquiry result.
Optionally, the processing method of the digital collection further comprises the following steps: receiving a second access request sent by the management platform, wherein the second access request carries a watermark file CID; and responding to the second access request, and feeding back a watermark file corresponding to the watermark file CID to the management platform.
Optionally, the processing method of the digital collection further comprises the following steps: receiving an acquisition request sent by the management platform, wherein the acquisition request carries a source file CID of a digital collection file; and responding to the acquisition request, and feeding back the source file of the digital collection file corresponding to the source file CID of the digital collection file to the management platform.
As shown in fig. 6, an embodiment of the present invention provides a method for processing a digital collection, which is applied to a blockchain network, and includes:
step 61: and receiving n secret shares of a watermark file CID of the digital collection file and a source file CID of the digital collection file from a management platform, wherein n is the node number of a blockchain network, the watermark file is a file generated by adding watermark information to the digital collection file, and the watermark information is generated according to at least one of identity information and anti-counterfeiting information of a first user.
Optionally, the processing method of the digital collection further comprises the following steps: receiving a first access request from the management platform, wherein the first access request carries a digital collection ID; and responding to the first access request, and returning a watermark file CID corresponding to the digital collection ID to the management platform.
Optionally, the processing method of the digital collection further comprises the following steps: receiving a transaction request from the management platform, wherein the transaction request carries a digital collection ID; and responding to the transaction request, and returning a secret share corresponding to the digital collection ID to the management platform.
Optionally, the processing method of the digital collection further comprises the following steps: receiving a transaction record from the management platform, the transaction record comprising at least one of: identity information of the transactor and transaction time.
The method for processing the digital collection on the IPFS network side and the blockchain side in the embodiment of the present invention corresponds to the management platform side, and in the embodiment of the management platform side, the implementation manner and the technical effect of the IPFS network side and the blockchain side have been described indirectly or directly, so that repetition is avoided and no further description is provided.
The processing method of the digital collection according to the embodiment of the invention is described above from the management platform side, the IPFS network side and the blockchain side, and the corresponding devices will be further described below with reference to the accompanying drawings.
As shown in fig. 7, an embodiment of the present invention provides a processing device for digital collection, which is applied to a management platform, including but not limited to the following functional modules:
the digital watermarking module 710 is configured to add watermark information to the digital collection file uploaded by the first user, and generate a watermark file; the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
A first sending module 720, configured to upload the source file and the watermark file of the digital collection file to an interstellar file system IPFS network;
a first receiving module 730, configured to receive a content identifier CID of the digital collection file returned by the IPFS network, where the CID includes a source file CID and a watermark file CID of the digital collection file;
the secret splitting module 740 is configured to split the source file CID by using a secret sharing technology to obtain n secret shares, where n is the number of nodes of the blockchain network;
the data certification module 750 is configured to encrypt the n secret shares, and upload the encrypted n secret shares and the watermark file CID to the blockchain network.
Optionally, the processing device of the digital collection further comprises:
and the identity authentication module is used for carrying out identity authentication on the first user and generating the identity information of the first user.
Optionally, the processing device of the digital collection further comprises:
the first acquisition module is used for acquiring a source file of the digital collection file uploaded by the first user;
the hash generation module is used for generating a hash file of the source file of the digital collection file by utilizing a hash algorithm;
the hash check module is used for sending a query request to the IPFS network, wherein the query request carries a hash file of the source file;
The second receiving module is used for receiving the query result fed back by the IPFS, and if the query result is that the digital collection file corresponding to the hash file is queried, determining that the digital collection file is a registered file; and if the query result is that the digital collection file corresponding to the hash file is not queried, executing the step of adding watermark information to the digital collection file uploaded by the user.
Optionally, the secret splitting module is specifically configured to:
constructing a k-1 order polynomial f (x) =a by using a Shamir secret sharing algorithm and the CID of the digital collection file k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Wherein a is i Is randomly generated based on a threshold value k, a 0 A source file CID of the digital collection file, wherein n is more than or equal to k and more than or equal to n is fault tolerance;
randomly generating n non-zero numbers x from the number n of nodes of a blockchain network i And according to each nonzero number x i And said k-1 order polynomial f (x) generates an (x) i ,f(x i ) To obtain n (x) i ,f(x i ) As secret share, wherein 1.ltoreq.i.ltoreq.n.
Optionally, the processing device of the digital collection further comprises:
the second acquisition module is used for acquiring a digital collection display application of a second user;
the digital watermarking module is further used for: responding to the digital collection display application, obtaining a watermark file and adding the watermark for the second time;
And the second sending module is used for sending the digital collection file with the secondary watermark to the second user.
Optionally, the digital collection display application carries a digital collection ID, and the digital watermark module is specifically configured to:
according to the digital collection ID in the digital collection display application, a first access request is initiated to the blockchain network;
receiving a watermark file CID corresponding to the digital collection ID returned by the blockchain network aiming at a first access request;
sending a second access request to the IPFS network according to the watermark file CID;
receiving a watermark file returned by the IPFS network for the second access request;
and secondarily watermarking the watermark file according to the identity information of the second user.
Optionally, the processing device of the digital collection further comprises:
the third acquisition module is used for acquiring a digital collection purchase application of a third user, wherein the digital collection purchase application carries a digital collection ID;
a fourth obtaining module, configured to obtain, according to the digital collection ID, a secret share corresponding to the digital collection ID;
a secret recovery module, configured to recover the source file CID of the digital collection file according to the secret share;
A fifth obtaining module, configured to obtain a source file of the digital collection file according to the source file CID;
and the third sending module is used for sending the corresponding digital collection file to the third user according to the source file.
Optionally, the fourth obtaining module is specifically configured to:
according to the digital collection ID, a transaction request is sent to the blockchain network;
and receiving secret shares corresponding to the digital collection ID, which are returned by at least K nodes in the blockchain network respectively, wherein n is greater than or equal to K and greater than or equal to n, the fault tolerance is K/n, and K is the minimum value of the number of nodes required for recovering the source file.
Optionally, the secret recovery module is specifically configured to:
based on the secret shares (x i ,f(x i ) Solving a k-1 order polynomial f (x) =a) k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Obtaining a 0 I.e. the source file CID of the digital collection file.
Optionally, the fifth obtaining module is specifically configured to:
sending an acquisition request carrying the source file CID to the IPFS network;
and receiving a source file of the digital collection file corresponding to the source file CID returned by the IPFS network.
Optionally, the data certification module is further configured to:
generating a transaction record and transmitting the transaction record to the blockchain network, the transaction record including at least one of: identity information of the transactor and transaction time.
As shown in fig. 8, the embodiment of the invention further provides a processing device of digital collection, which is applied to an interplanetary file system IPFS network, including but not limited to:
a first receiving sub-module 810, configured to receive, from a management platform, a source file of a digital collection file of a first user and a watermark file that adds watermark information to the digital collection file, where the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
a first sending submodule 820, configured to send a content identifier CID of the digital collection file to the management platform, where the CID includes a source file CID and a watermark file CID, and the management platform is configured to split the source file CID by using a secret sharing technology to obtain n secret shares, where n is a node number of the blockchain network, encrypt the n secret shares respectively, and upload the encrypted n secret shares and the watermark file CID to the blockchain network.
Optionally, the processing device of the digital collection further comprises:
the second receiving submodule is used for receiving a query request from the management platform, wherein the query request carries a hash file of a source file of the digital stock file;
And the second sending sub-module is used for inquiring the digital collection file corresponding to the hash file according to the inquiry request and feeding back the inquiry result.
Optionally, the processing device of the digital collection further comprises:
a third receiving sub-module, configured to receive a second access request sent by the management platform, where the second access request carries a watermark file CID;
and the third sending sub-module is used for responding to the second access request and feeding back the watermark file corresponding to the watermark file CID to the management platform.
Optionally, the processing device of the digital collection further comprises:
a fourth receiving sub-module, configured to receive an acquisition request sent by the management platform, where the acquisition request carries a source file CID of a digital collection file;
and the fourth sending submodule is used for responding to the acquisition request and feeding back the source file of the digital collection file corresponding to the source file CID of the digital collection file to the management platform.
As shown in fig. 9, the embodiment of the invention further provides a processing device of digital collection, which is applied to a blockchain network and includes, but is not limited to, the following functional modules:
the first receiving unit 910 is configured to receive, from a management platform, n secret shares of a watermark file CID of a digital collection file and a source file CID of the digital collection file, where n is a node number of a blockchain network, and the watermark file is a file generated by adding watermark information to the digital collection file, where the watermark information is generated according to at least one of identity information and anti-counterfeiting information of a first user.
Optionally, the processing device of the digital collection further comprises:
the second receiving unit is used for receiving a first access request from the management platform, wherein the first access request carries a digital collection ID;
and the first sending unit is used for responding to the first access request and returning the watermark file CID corresponding to the digital collection ID to the management platform.
Optionally, the processing device of the digital collection further comprises:
a third receiving unit, configured to receive a transaction request from the management platform, where the transaction request carries a digital collection ID;
and the second sending unit is used for responding to the transaction request and returning the secret share corresponding to the digital collection ID to the management platform.
Optionally, the processing device of the digital collection further comprises:
a fourth receiving unit, configured to receive a transaction record from the management platform, where the transaction record includes at least one of: identity information of the transactor and transaction time.
It should be noted that the above embodiment of the apparatus is a product embodiment corresponding to the above embodiment of the method, and all implementation manners in the method embodiment are applicable to the embodiment of the apparatus and can achieve the same technical effects, so that repetition is avoided and no further description is given here.
The embodiment of the application also provides a processing system of the digital collection, which comprises the management platform, the IPFS network and the blockchain network.
In order to meet the collection display and transaction requirements of a digital collection platform and simultaneously reduce privacy and potential safety hazards brought by public access of a digital collection source file, the embodiment of the application provides a processing system of the digital collection based on block chain and IPFS (Internet protocol file system), or a copyright protection system, by combining a digital watermark and a secret sharing technology. As shown in fig. 10, the system includes: management platform, blockchain network, IPFS network, etc.
1. Management platform, or digital collection copyright protection device
The digital collection copyright protection device comprises an identity authentication module, an identification management module, a digital watermark module, a data storage module, a hash generation module, a hash verification module, a secret splitting module and a secret recovery module.
Wherein, identity authentication module: identity authentication and verification (including but not limited to real name authentication, digital certificate and other forms) are performed on publishers, visitors, purchasers and the like of the digital collection so as to ensure that the data registration, access and circulation of the digital collection are confident and traceable;
The identification management module: generating a unique collection ID for the newly registered digital collection according to a set coding rule, wherein the collection ID is also used as a unique identification for managing the digital collection on a blockchain and is associated with information such as creator identity, collection storage hash address and the like;
digital watermarking module: the anti-fake information, the traceability information and the like of a digital collection creator/visitor are embedded into the digital collection as digital watermarks by utilizing a digital watermark technology, and the digital watermarks are not easy to detect and modify, but can be found out information hidden in the digital collection by an embedded party through an extraction algorithm, so that the copyright attribution of the digital collection can be judged by virtue of the digital watermarks on a carrier, and the requirements of copyright confirmation, infringement tracking and the like of the digital collection are met;
the data storage and verification module: invoking a blockchain stock certificate contract to uplink the digital stock metadata, the watermarked file CID and the source file CID secret share encrypted by the node public key, and additionally, carrying out uplink certificate on the transaction and circulation information of the digital stock;
and a hash generation module: generating file metadata/content Hash of the digital collection source file and the file added with the watermark by utilizing a Hash algorithm;
and a hash checking module: inquiring and comparing the collection metadata/file hash submitted by the user with the hash on the blockchain/IPFS network, if the inquiry in the blockchain/IPFS network fails, indicating that the collection is not registered by the platform, and checking the compared collection to enter a collection casting process;
And the secret splitting module is used for: because the digital collection source file CID is the storage address of the digital collection in the IPFS network, in order to avoid uncontrolled access of the collection file, the digital collection source file CID is required to be used as a secret for protection, and a secret splitting scheme can be designed according to the requirements of the number of alliance chain links and fault tolerance. For example, the alliance chain has n nodes, the fault tolerance requirement is k/n, namely, only k or more nodes work normally, the Shamir secret sharing algorithm is adopted to split the secret of the digital collection source file CID, and the threshold k is selected to randomly generate k-1 a i (1. Ltoreq.i. Ltoreq.k-1), constructing a polynomial f (x) =a of degree k-1 k-1 x k -1 +...+a 2 x 2 +a 1 x+a 0 Source file CID as secret constant term a 0 . At the same time randomly generating n non-zero numbers x according to the number n of the block chain link points i (1. Ltoreq.i.ltoreq.n) to obtain n (x) i ,f(x i ) As secret shares, each shareEncrypting the data by adopting node public keys, uploading the encrypted data to a chain, and storing the encrypted data by each block chain link point;
and a secret recovery module: decrypting and signing the secret shares using the respective node private key only if at least k and more of the n blockchain nodes agree to authorization, when any k or more valid secret shares (x i ,f(x i ) To solve the k-1 order polynomial f (x) =a) k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Completing secret recovery to obtain a secret constant item a 0 (i.e., digital collection source file Hash). The secret shares returned by less than k nodes can not obtain the polynomial f (x) expression, so that the privacy protection of the digital collection source file CID is realized.
2. Blockchain networks, or blockchain platforms
The blockchain platform guarantees the non-falsification and verification of the digital collection file by using the technologies of a distributed account book, a consensus algorithm, an intelligent contract, encryption and decryption and the like.
The digital collection information maintained and updated on the blockchain includes a digital collection identifier ID, metadata (creator information, collection type, etc.), a watermarked file CID, a source file CID secret share encrypted by a node public key, a transaction record, an access record, etc. of the collection, and the collection information table is exemplified as follows:
3. IPFS network
Because the blockchain is not suitable for storing large data files, the digital collection files are stored by adopting an IPFS network. In the scheme, two files are stored for one digital collection in the IPFS network, wherein one is a digital collection source file, and the other is a collection file added with a digital watermark. When a platform user browses and accesses the collection, only providing the file added with the digital watermark for display; when the user purchases the collection, the source file CID can be obtained after platform authorization and secret reconstruction are completed, and the source file information is obtained through the IPFS network.
The embodiment of the invention also provides a readable storage medium, on which a program or an instruction is stored, wherein the program or the instruction, when executed by a processor, realizes the steps in the method for processing the digital collection on the management platform side, the IPFS network side or the blockchain side, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted.
Wherein the processor is a processor in the management platform, IPFS network, or blockchain described in the above embodiments. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a magnetic disk or an optical disk.
In an embodiment of the invention, the modules may be implemented in software for execution by various types of processors. An identified module of executable code may, for instance, comprise one or more physical or logical blocks of computer instructions which may, for instance, be organized as an object, procedure, or function. Nevertheless, the executables of an identified module need not be physically located together, but may comprise disparate instructions stored in different bits which, when joined logically together, comprise the module and achieve the stated purpose for the module.
Indeed, a module of executable code may be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs, and across several memory devices. Likewise, operational data may be identified within modules and may be embodied in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations including over different storage devices.
Where a module may be implemented in software, taking into account the level of existing hardware technology, a module may be implemented in software, and one skilled in the art may, without regard to cost, build corresponding hardware circuitry, including conventional Very Large Scale Integration (VLSI) circuits or gate arrays, and existing semiconductors such as logic chips, transistors, or other discrete components, to achieve the corresponding functions. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices or the like.
The exemplary embodiments described above are described with reference to the drawings, many different forms and embodiments are possible without departing from the spirit and teachings of the present invention, and therefore, the present invention should not be construed as limited to the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will convey the scope of the invention to those skilled in the art. In the drawings, the size of the elements and relative sizes may be exaggerated for clarity. The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Unless otherwise indicated, a range of values includes the upper and lower limits of the range and any subranges therebetween.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (39)

1. The processing method of the digital collection is applied to a management platform and is characterized by comprising the following steps:
adding watermark information to the digital collection file uploaded by the first user to generate a watermark file; the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
uploading the source file of the digital collection file and the watermark file to an IPFS (inter-star file system) network;
receiving a content identification CID of the digital collection file returned by the IPFS, wherein the CID comprises a source file CID and a watermark file CID of the digital collection file;
splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network;
and encrypting the n secret shares respectively, and uploading the encrypted n secret shares and the watermark file CID to a blockchain network.
2. The method for processing a digital collection according to claim 1, further comprising, before adding watermark information to the digital collection file uploaded by the first user:
and carrying out identity authentication on the first user to generate identity information of the first user.
3. The method for processing a digital collection according to claim 1, further comprising, before adding watermark information to the digital collection file uploaded by the first user:
acquiring a source file of the digital collection file uploaded by the first user;
generating a hash file of the source file by utilizing a hash algorithm;
sending a query request to the IPFS network, wherein the query request carries a hash file of the source file;
receiving a query result fed back by the IPFS;
if the query result is that the digital collection file corresponding to the hash file is queried, determining that the digital collection file is a registered file;
and if the query result is that the digital collection file corresponding to the hash file is not queried, executing the step of adding watermark information to the digital collection file uploaded by the user.
4. The method for processing the digital collection according to claim 1, wherein splitting the source file CID using a secret sharing technique to obtain n secret shares comprises:
Constructing a k-1 order polynomial f (x) =a for CID of the digital collection file by adopting a Shamir secret sharing algorithm k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Wherein a is i Is randomly generated based on a threshold value k, a 0 For the source file CID, n is greater than or equal to k and greater than or equal to n is the fault tolerance;
randomly generating n non-zero numbers x from the number n of nodes of a blockchain network i And according to each nonzero number x i And the k-1 order polynomial f (x) generates a (x) i ,f(x i ) To obtain n (x) i ,f(x i ) N secret shares, where 1.ltoreq.i.ltoreq.n.
5. The method for processing a digital collection according to any one of claims 1 to 4, further comprising:
acquiring a digital collection display application of a second user;
responding to the digital collection display application, obtaining a watermark file and secondarily adding the watermark;
and sending the digital collection file with the watermark added for the second time to the second user.
6. The method for processing the digital collection according to claim 5, wherein the digital collection display application carries a digital collection identification ID, and the obtaining and the secondarily watermarking of the watermark file in response to the digital collection display application comprises:
according to the digital collection ID in the digital collection display application, a first access request is sent to the blockchain network;
Receiving a watermark file CID corresponding to the digital collection ID returned by the blockchain network for the first access request;
sending a second access request to the IPFS network according to the watermark file CID, wherein the second access request carries the watermark file CID;
receiving a watermark file returned by the IPFS network for the second access request;
and secondarily watermarking the watermark file according to the identity information of the second user.
7. The method for processing a digital collection according to any one of claims 1 to 4, further comprising:
acquiring a digital collection purchase application of a third user, wherein the digital collection purchase application carries a digital collection ID;
according to the digital collection ID, obtaining a secret share corresponding to the digital collection ID;
recovering the source file CID according to the secret share;
acquiring the source file according to the source file CID;
and sending the digital collection file corresponding to the source file to the third user according to the source file.
8. The method for processing the digital collection according to claim 7, wherein obtaining the secret share corresponding to the digital collection ID from the digital collection ID comprises:
According to the digital collection ID, a transaction request is sent to the blockchain network;
and receiving secret shares corresponding to the digital collection ID, which are returned by at least K nodes in the blockchain network respectively, wherein n is greater than or equal to K and greater than or equal to n, the fault tolerance is K/n, and K is the minimum value of the number of nodes required for recovering the source file.
9. The method of processing a digital collection of claim 8, wherein recovering the source file CID from the secret share comprises:
based on the secret shares (x i ,f(x i ) Solving a k-1 order polynomial f (x) =a) k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Obtaining a 0 The a is carried out 0 And the source file CID is used as the digital collection file.
10. The method for processing the digital collection according to claim 7, wherein obtaining the source file according to the source file CID comprises:
sending an acquisition request carrying the source file CID to the IPFS network;
and receiving a source file corresponding to the source file CID returned by the IPFS network.
11. The method for processing a digital collection according to claim 7, further comprising, after transmitting the corresponding digital collection file to the third user according to the source file:
Generating a transaction record and transmitting the transaction record to the blockchain network, the transaction record including at least one of: identity information of the transactor and transaction time.
12. The processing method of the digital collection is applied to an IPFS network, and is characterized by comprising the following steps:
receiving a source file of a digital collection file of a first user and a watermark file for adding watermark information to the digital collection file from a management platform, wherein the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
the method comprises the steps that a content identification CID of a digital collection file is sent to a management platform, the CID comprises a source file CID of the digital collection file and a watermark file CID, the management platform is used for splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, n is the node number of a blockchain network, the n secret shares are respectively encrypted, and the encrypted n secret shares and the watermark file CID are uploaded to the blockchain network.
13. The method for processing a digital collection of claim 12, further comprising:
receiving a query request from a management platform, wherein the query request carries a hash file of the source file;
And inquiring the digital collection file corresponding to the hash file according to the inquiry request, and feeding back an inquiry result.
14. The method for processing a digital collection of claim 12, further comprising:
receiving a second access request sent by the management platform, wherein the second access request carries a watermark file CID;
and responding to the second access request, and feeding back a watermark file corresponding to the watermark file CID to the management platform.
15. The method for processing a digital collection of claim 12, further comprising:
receiving an acquisition request sent by the management platform, wherein the acquisition request carries the source file CID;
and responding to the acquisition request, and feeding back a source file corresponding to the source file CID to the management platform.
16. A method for processing digital collections, applied to a blockchain network, comprising the steps of:
and receiving n secret shares of a watermark file CID of the digital collection file and a source file CID of the digital collection file from a management platform, wherein n is the node number of a blockchain network, the watermark file is a file generated by adding watermark information to the digital collection file, and the watermark information is generated according to at least one of identity information and anti-counterfeiting information of a first user.
17. The method for processing a digital collection of claim 16, further comprising:
receiving a first access request from the management platform, wherein the first access request carries a digital collection ID;
and responding to the first access request, and returning a watermark file CID corresponding to the digital collection ID to the management platform.
18. The method for processing a digital collection of claim 16, further comprising:
receiving a transaction request from the management platform, wherein the transaction request carries a digital collection ID;
and responding to the transaction request, and returning a secret share corresponding to the digital collection ID to the management platform.
19. The method for processing a digital collection of claim 18, further comprising:
receiving a transaction record from the management platform, the transaction record comprising at least one of: identity information of the transactor and transaction time.
20. A processing device for digital collections, applied to a management platform, comprising:
the digital watermark module is used for adding watermark information to the digital collection file uploaded by the first user to generate a watermark file; the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
The first sending module is used for uploading the source file and the watermark file of the digital collection file to an IPFS (inter-star file system) network;
a first receiving module, configured to receive a content identifier CID of the digital collection file returned by the IPFS network, where the CID includes a source file CID and a watermark file CID of the digital collection file;
the secret splitting module is used for splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network;
and the data storage module is used for encrypting the n secret shares respectively and uploading the encrypted n secret shares and the watermark file CID to a blockchain network.
21. The digital collection processing device of claim 20, further comprising:
and the identity authentication module is used for carrying out identity authentication on the first user and generating the identity information of the first user.
22. The digital collection processing device of claim 20, further comprising:
the first acquisition module is used for acquiring a source file of the digital collection file uploaded by the first user;
the hash generation module is used for generating a hash file of the source file by utilizing a hash algorithm;
The hash check module is used for sending a query request to the IPFS network, wherein the query request carries a hash file of the source file;
the second receiving module is used for receiving the query result fed back by the IPFS, and determining that the digital collection file is a registered file if the query result is that the digital collection file corresponding to the hash file is queried; and if the query result is that the digital collection file corresponding to the hash file is not queried, executing the step of adding watermark information to the digital collection file uploaded by the user.
23. The processing device of the digital collection according to claim 20, wherein the secret splitting module is specifically configured to:
constructing a k-1 order polynomial f (x) =a by using a Shamir secret sharing algorithm and the CID of the digital collection file k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Wherein a is i Is randomly generated based on a threshold value k, a 0 For the source file CID, n is greater than or equal to k and greater than or equal to n is the fault tolerance;
randomly generating n non-zero numbers x from the number n of nodes of a blockchain network i And according to each nonzero number x i And the k-1 order polynomial f (x) generates a (x) i ,f(x i ) To obtain n (x) i ,f(x i ) As secret share, wherein 1.ltoreq.i.ltoreq.n.
24. The processing apparatus of a digital collection according to any one of claims 20 to 23, further comprising:
The second acquisition module is used for acquiring a digital collection display application of a second user;
the digital watermarking module is further used for: responding to the digital collection display application, obtaining a watermark file and secondarily adding the watermark;
and the second sending module is used for sending the digital collection file with the secondary watermark to the second user.
25. The digital collection processing device according to claim 24, wherein the digital collection display application carries a digital collection ID, and the digital watermark module is specifically configured to:
according to the digital collection ID in the digital collection display application, a first access request is sent to the blockchain network;
receiving a watermark file CID corresponding to the digital collection ID returned by the blockchain network for the first access request;
sending a second access request to the IPFS network according to the watermark file CID;
receiving a watermark file returned by the IPFS network for the second access request;
and secondarily watermarking the watermark file according to the identity information of the second user.
26. The processing apparatus of a digital collection according to any one of claims 20 to 23, further comprising:
The third acquisition module is used for acquiring a digital collection purchase application of a third user, wherein the digital collection purchase application carries a digital collection ID;
a fourth obtaining module, configured to obtain, according to the digital collection ID, a secret share corresponding to the digital collection ID;
a secret recovery module for recovering the source file CID from the secret share;
a fifth obtaining module, configured to obtain the source file according to the source file CID;
and the third sending module is used for sending the digital collection file corresponding to the source file to the third user according to the source file.
27. The device for processing a digital collection according to claim 26, wherein the fourth acquisition module is specifically configured to:
according to the digital collection ID, a transaction request is sent to the blockchain network;
and receiving secret shares corresponding to the digital collection ID, which are returned by at least K nodes in the blockchain network respectively, wherein n is greater than or equal to K and greater than or equal to n, the fault tolerance is K/n, and K is the minimum value of the number of nodes required for recovering the source file.
28. The processing device of digital collection according to claim 27, wherein the secret recovery module is specifically configured to:
Based on the secret shares (x i ,f(x i ) Solving a k-1 order polynomial f (x) =a) k-1 x k-1 +...+a 2 x 2 +a 1 x+a 0 Obtaining a 0 The a is carried out 0 And the source file CID is used as the digital collection file.
29. The device for processing a digital collection according to claim 26, wherein the fifth acquisition module is specifically configured to:
sending an acquisition request carrying the source file CID to the IPFS network;
and receiving a source file corresponding to the source file CID returned by the IPFS network.
30. The digital collection processing device of claim 26, wherein the data logging module is further configured to:
generating a transaction record and transmitting the transaction record to the blockchain network, the transaction record including at least one of: identity information of the transactor and transaction time.
31. A processing device for digital collection, applied to an interstellar file system IPFS network, comprising:
the first receiving sub-module is used for receiving a source file of a digital collection file of a first user and a watermark file for adding watermark information to the digital collection file from the management platform, wherein the watermark information is generated according to at least one of identity information and anti-counterfeiting information of the first user;
The management platform is used for splitting the source file CID by adopting a secret sharing technology to obtain n secret shares, wherein n is the node number of the blockchain network, encrypting the n secret shares respectively, and uploading the encrypted n secret shares and the watermark file CID to the blockchain network.
32. The digital collection processing device of claim 31, further comprising:
the second receiving submodule is used for receiving a query request from the management platform, wherein the query request carries a hash file of the source file;
and the second sending sub-module is used for inquiring the digital collection file corresponding to the hash file according to the inquiry request and feeding back the inquiry result.
33. The digital collection processing device of claim 31, further comprising:
a third receiving sub-module, configured to receive a second access request sent by the management platform, where the second access request carries a watermark file CID;
and the third sending sub-module is used for responding to the second access request and feeding back the watermark file corresponding to the watermark file CID to the management platform.
34. The digital collection processing device of claim 31, further comprising:
a fourth receiving sub-module, configured to receive an acquisition request sent by the management platform, where the acquisition request carries the source file CID;
and the fourth sending sub-module is used for responding to the acquisition request and feeding back the source file corresponding to the source file CID to the management platform.
35. A processing device for digital collections, applied to a blockchain network, comprising:
the first receiving unit is used for receiving n secret shares of a watermark file CID of the digital collection file and a source file CID of the digital collection file from the management platform, wherein n is the node number of the blockchain network, the watermark file is a file generated by adding watermark information to the digital collection file, and the watermark information is generated according to at least one of identity information and anti-counterfeiting information of a first user.
36. The digital collection processing device of claim 35, further comprising:
the second receiving unit is used for receiving a first access request from the management platform, wherein the first access request carries a digital collection ID;
and the first sending unit is used for responding to the first access request and returning the watermark file CID corresponding to the digital collection ID to the management platform.
37. The digital collection processing device of claim 35, further comprising:
a third receiving unit, configured to receive a transaction request from the management platform, where the transaction request carries a digital collection ID;
and the second sending unit is used for responding to the transaction request and returning the secret share corresponding to the digital collection ID to the management platform.
38. The digital collection processing device of claim 37, further comprising:
a fourth receiving unit, configured to receive a transaction record from the management platform, where the transaction record includes at least one of: identity information of the transactor and transaction time.
39. A processing system for digital collections, comprising the management platform of any one of claims 20 to 30, the IPFS network of any one of claims 31 to 34, and the blockchain network of any one of claims 35 to 38.
CN202311059792.5A 2023-08-22 2023-08-22 Digital collection processing method, device and system Pending CN117134893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311059792.5A CN117134893A (en) 2023-08-22 2023-08-22 Digital collection processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311059792.5A CN117134893A (en) 2023-08-22 2023-08-22 Digital collection processing method, device and system

Publications (1)

Publication Number Publication Date
CN117134893A true CN117134893A (en) 2023-11-28

Family

ID=88857715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311059792.5A Pending CN117134893A (en) 2023-08-22 2023-08-22 Digital collection processing method, device and system

Country Status (1)

Country Link
CN (1) CN117134893A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117541393A (en) * 2024-01-10 2024-02-09 悦享星光(北京)科技有限公司 NFT transaction method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117541393A (en) * 2024-01-10 2024-02-09 悦享星光(北京)科技有限公司 NFT transaction method and system
CN117541393B (en) * 2024-01-10 2024-03-19 悦享星光(北京)科技有限公司 NFT transaction method and system

Similar Documents

Publication Publication Date Title
CN107566116B (en) Method and apparatus for digital asset weight registration
US10769252B2 (en) Method and apparatus for watermarking of digital content, method for extracting information
US9032497B2 (en) System and method for securing embedded media
US7376624B2 (en) Secure communication and real-time watermarking using mutating identifiers
US7725404B2 (en) Secure electronic commerce using mutating identifiers
US7877604B2 (en) Proof of execution using random function
CN111292041B (en) Electronic contract generation method, device, equipment and storage medium
US20060149683A1 (en) User terminal for receiving license
CN111538784B (en) Digital asset transaction method, device and storage medium based on blockchain
CN103457733A (en) Data sharing method and system under cloud computing environment
JP2005124168A (en) Digital rights management system
Nair et al. Enabling DRM-preserving digital content redistribution
CN114584295A (en) Universal black box traceable method and device for attribute-based proxy re-encryption system
CN117134893A (en) Digital collection processing method, device and system
CN109902495B (en) Data fusion method and device
CN114629713A (en) Identity verification method, device and system
WO2021258907A1 (en) Transaction method based on blockchain network, node, and medium
Xiao et al. Fingerchain: copyrighted multi-owner media sharing by introducing asymmetric fingerprinting into blockchain
Cheung et al. Rights protection for digital contents redistribution over the Internet
US8755521B2 (en) Security method and system for media playback devices
JP2000324329A (en) Contents id provision system
CN116248289A (en) Industrial Internet identification analysis access control method based on ciphertext attribute encryption
Tai et al. Blockmarking: Hybrid model of blockchain and watermarking technique for copyright protection
CN114091072A (en) Data processing method and device
Kwon et al. Decentralized identifier based illegal digital content distribution tracking system using the format‐preserving encryption algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination