A copyright privacy protection method and system in the process of material data copyright auction

Using blockchain and encryption technology to conduct copyright bidding in material data copyright transactions solves the security and privacy risk issues of traditional copyright protection methods, achieves transparency and security in copyright transactions, and reduces the risk of infringement.

CN114117495BActive Publication Date: 2024-10-29SHANGHAI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111446905.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-10-29
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

Traditional digital copyright protection methods have security risks and privacy information leakage risks in the material data copyright transaction process, and it is difficult to effectively prevent and pursue copyright infringement.

Method used

Using blockchain technology and encryption technology, the copyright owner encrypts the material data and stores it on the cloud platform, completes the copyright bidding through the blockchain, and the bidding results are stored in the blockchain to ensure the transparency and security of copyright transactions, and through The public key and private key are used for key management to ensure that the right to decrypt the data belongs to the successful bidder.

Benefits of technology

It realizes copyright protection during the material data copyright transaction process, enhances the privacy protection and rights protection of copyright owners, overcomes the technical shortcomings of blockchain storage and computing power requirements, and reduces the risk of copyright infringement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114117495B_ABST
    Figure CN114117495B_ABST
Patent Text Reader

Abstract

The present invention relates to a copyright privacy protection method in a material data copyright auction process, the method comprising: the copyright owner stores the encrypted copyright to a cloud platform; the copyright demander obtains the copyright participating in the auction by querying key data; the copyright owner, the copyright demander and the cloud platform are respectively used as clients, the copyright auction is completed based on the blockchain, and the auction result is stored in the blockchain; the copyright owner uses the public key of the successful bidder to encrypt the symmetric key, the successful bidder uses the private key of the successful bidder to decrypt the encrypted symmetric key, obtains the symmetric key, and uses the symmetric key to decrypt the encrypted copyright. The present invention implements copyright protection in the material data copyright auction process based on blockchain technology and encryption technology, and sets a cloud platform to realize data storage and the operation of the auction algorithm, overcoming the technical defects of the existing blockchain that the terminal storage and computing power required for participating in the auction is relatively high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of copyright protection, and in particular to a copyright privacy protection method and system in a material data copyright auction process. Background Art

[0002] The generation of scientific research data in materials science research is hard-won, and there is a demand for copyright protection of material data. This demand hopes to protect the rights and interests of copyright owners while protecting material data. In the traditional network environment, the cost of digital copyright infringement is greatly reduced. As long as a low-cost server is rented, and advanced image recognition technology and other computer copying technologies are used, there will be no technical obstacles to digital copyright infringement, which will also make digital copyright infringement more concealed and difficult to hold accountable. The traditional digital copyright protection method is mainly digital rights management (DRM). DRM is a series of information technologies used by publishers, generally using a centralized central database to control user access, change, share, copy and other operations of files through licensing operations to protect the interests of copyright owners. However, DRM technology is mostly independently developed by publishers, and the technologies are incompatible with each other, thus forming multiple independent copyright centers. It is easy to be infiltrated by various technologies and has security risks. At the same time, there is a greater risk of privacy information leakage. In addition, once the infringement is infringed, due to the shortcomings of the system itself, it is quite weak in terms of evidence and rights protection.

[0003] How to achieve copyright protection during copyright transactions of material data has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The purpose of the present invention is to provide a copyright privacy protection method and system in the copyright auction process of material data, so as to realize the protection of copyright in the copyright transaction process of material data.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A copyright privacy protection method in a material data copyright auction process, the method comprising the following steps:

[0007] The copyright owner uses the copyright owner's symmetric key to encrypt the copyright of the material data and stores the encrypted copyright on the cloud platform; the encrypted copyright includes ciphertext and plaintext, and the plaintext is the key data for previewing and retrieving the copyright; the copyright demander obtains the copyright for bidding by querying the key data on the cloud platform;

[0008] The copyright owner, copyright demander and cloud platform are respectively used as clients to complete copyright auction based on blockchain, and the auction results are stored in the blockchain;

[0009] The copyright owner obtains the public key of the successful bidder according to the auction result, encrypts the symmetric key using the public key of the successful bidder, and sends the encrypted symmetric key to the successful bidder via the Internet;

[0010] The successful bidder uses the private key of the successful bidder to decrypt the encrypted symmetric key, obtains the symmetric key, obtains the encrypted copyright from the cloud platform, and uses the symmetric key to decrypt the encrypted copyright.

[0011] Optionally, the copyright owner, the copyright demander and the cloud platform are respectively used as clients to complete the copyright auction based on the blockchain, and the auction results are stored in the blockchain, which specifically includes:

[0012] The copyright owner enters a starting price into the blockchain;

[0013] The copyright demander inputs the bidding price into the blockchain according to the starting price;

[0014] The cloud platform obtains the starting prices input by different copyright owners and the bidding prices input by different copyright participants from the blockchain, executes the bidding algorithm, and obtains the bidding results.

[0015] Optionally, the specific steps of the auction algorithm are:

[0016] Obtain all valid bidding prices of different copyright combinations, where the valid bidding price of the copyright combination is the bidding price of the copyright combination that is higher than the starting price of the copyright;

[0017] Filtering valid auction prices for the same copyright combination, and retaining the highest auction price among the valid auction prices for the copyright combination;

[0018] Build a binary search tree of the highest bidding prices for different copyright combinations;

[0019] Traverse the binary search tree to obtain all bidding combinations and construct a bidding combination tree;

[0020] The bidding combination tree is searched to obtain the bidding combination with the highest bid as the bidding result.

[0021] Optionally, traversing the binary search tree to obtain all bidding combinations and constructing a bidding combination tree specifically includes:

[0022] Initialize the root node of the auction combination tree as the current node, initialize the status of the first copyright in the status array to must be selected, and the status of copyrights other than the first copyright to be selectable, initialize an empty stack, and initialize the traversal flag of the binary search tree to 0;

[0023] According to the stack and the state array, searching the binary search tree for a leaf node containing a copyright whose status in the state array is to be selected, and updating the state array and the stack;

[0024] Taking the leaf node as a branch node of the current node, determining whether the status of each copyright in the latest status array is unselectable, and obtaining a first determination result;

[0025] If the first judgment result indicates no, the branch node is used as the current node, and the process returns to the step of "searching a leaf node in the binary search tree containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack";

[0026] If the first judgment result indicates yes, the root node of the bidding combination tree is used as the current node;

[0027] Determine whether the traversal flag of the binary search tree is 1, and obtain a second determination result;

[0028] If the second judgment result indicates no, then return to the step of "searching the binary search tree for a leaf node containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack";

[0029] If the second judgment result indicates yes, the bidding combination tree is output.

[0030] Optionally, searching the binary search tree for a leaf node containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack, specifically includes:

[0031] Determine whether the status of each copyright in the latest status array is unselectable, and obtain a third determination result;

[0032] If the third judgment result indicates yes, then judging whether the stack is empty, and obtaining a fourth judgment result;

[0033] If the fourth judgment result indicates yes, the traversal flag of the binary search tree is set to 1;

[0034] If the fourth judgment result indicates no, a pop operation is performed on the stack, and the popped node is set as the current child node, the parent node of the current child node is set as the current parent node, the popped state array is set as the latest state array, and the step of "determining the state of the current child node" is executed;

[0035] If the third judgment result indicates no, then the status of the copyright with the smallest number among the products not included in the status array is changed to must be selected, and the root node is set as the current parent node, and the left child node of the current parent node is set as the current child node, and the step of "determining the status of the current child node" is executed;

[0036] Determine the status of the current child node;

[0037] If the current child node contains copyrights that must be selected and does not contain copyrights that can be selected, the current child node is set as the current parent node;

[0038] If the current child node contains copyright that cannot be selected, the right child node of the current parent node is set as the current child node;

[0039] If the current child node contains copyrights that are in a selectable state, the current child node and the current state array are added to the stack, the current child node is set as the current parent node, and the left child node of the current parent node is set as the current child node;

[0040] Determine whether the current child node is a leaf node, and obtain a fifth determination result;

[0041] If the fifth judgment result indicates yes, the current node is output as a leaf node, and the status of all copyrights contained in the current node is updated to be unselectable;

[0042] If the fifth judgment result indicates no, then return to step "determine the state of the current child node".

[0043] A copyright privacy protection system in a material data copyright auction process, the system comprising:

[0044] The first copyright owner terminal is used for the copyright owner to encrypt the copyright of the material data using the copyright owner's symmetric key, and store the encrypted copyright in the cloud platform; the encrypted copyright includes ciphertext and plaintext, and the plaintext is the key data for previewing and retrieving the copyright;

[0045] A first copyright demander terminal is used for the copyright demander to obtain the copyrights to participate in the auction by querying the key data of the cloud platform;

[0046] The copyright auction module is used to use the copyright owner, copyright demander and cloud platform as clients respectively, complete the copyright auction based on the blockchain, and store the auction results in the blockchain;

[0047] The second copyright owner terminal is used for the copyright owner to obtain the public key of the successful bidder according to the auction result, encrypt the symmetric key with the public key of the successful bidder, and send the encrypted symmetric key to the successful bidder through the blockchain;

[0048] The second copyright demander terminal is used for the successful bidder to use the private key of the successful bidder to decrypt the encrypted symmetric key, obtain the symmetric key, obtain the encrypted copyright from the cloud platform, and decrypt the encrypted copyright using the symmetric key.

[0049] Optionally, the copyright auction module specifically includes:

[0050] A starting price input submodule, used for the copyright owner to input the starting price into the blockchain;

[0051] A bidding price input submodule, used by copyright demanders to input bidding prices into the blockchain according to the starting price;

[0052] The copyright auction submodule is used for the cloud platform to obtain the starting price input by different copyright owners and the auction price input by different copyright participants from the blockchain, execute the auction algorithm, and obtain the auction result.

[0053] Optionally, the specific steps of the auction algorithm are:

[0054] Obtain all valid bidding prices of different copyright combinations, where the valid bidding price of the copyright combination is the bidding price of the copyright combination that is higher than the starting price of the copyright;

[0055] Filtering valid auction prices for the same copyright combination, and retaining the highest auction price among the valid auction prices for the copyright combination;

[0056] Build a binary search tree of the highest bidding prices for different copyright combinations;

[0057] Traverse the binary search tree to obtain all bidding combinations and construct a bidding combination tree;

[0058] The bidding combination tree is searched to obtain the bidding combination with the highest bid as the bidding result.

[0059] Optionally, traversing the binary search tree to obtain all bidding combinations and constructing a bidding combination tree specifically includes:

[0060] Initialize the root node of the auction combination tree as the current node, initialize the status of the first copyright in the status array to must be selected, and the status of copyrights other than the first copyright to be selectable, initialize an empty stack, and initialize the traversal flag of the binary search tree to 0;

[0061] According to the stack and the state array, searching the binary search tree for a leaf node containing a copyright whose status in the state array is to be selected, and updating the state array and the stack;

[0062] Taking the leaf node as a branch node of the current node, determining whether the status of each copyright in the latest status array is unselectable, and obtaining a first determination result;

[0063] If the first judgment result indicates no, the branch node is used as the current node, and the process returns to the step of "searching a leaf node in the binary search tree containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack";

[0064] If the first judgment result indicates yes, the root node of the bidding combination tree is used as the current node;

[0065] Determine whether the traversal flag of the binary search tree is 1, and obtain a second determination result;

[0066] If the second judgment result indicates no, then return to the step of "searching the binary search tree for a leaf node containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack";

[0067] If the second judgment result indicates yes, the bidding combination tree is output.

[0068] Optionally, searching the binary search tree for a leaf node containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack, specifically includes:

[0069] Determine whether the status of each copyright in the latest status array is unselectable, and obtain a third determination result;

[0070] If the third judgment result indicates yes, then judging whether the stack is empty, and obtaining a fourth judgment result;

[0071] If the fourth judgment result indicates yes, the traversal flag of the binary search tree is set to 1;

[0072] If the fourth judgment result indicates no, a pop operation is performed on the stack, and the popped node is set as the current child node, the parent node of the current child node is set as the current parent node, the popped state array is set as the latest state array, and the step of "determining the state of the current child node" is executed;

[0073] If the third judgment result indicates no, then the status of the copyright with the smallest number among the products not included in the status array is changed to must be selected, and the root node is set as the current parent node, and the left child node of the current parent node is set as the current child node, and the step of "determining the status of the current child node" is executed;

[0074] Determine the status of the current child node;

[0075] If the current child node contains copyrights that must be selected and does not contain copyrights that can be selected, the current child node is set as the current parent node;

[0076] If the current child node contains copyright that cannot be selected, the right child node of the current parent node is set as the current child node;

[0077] If the current child node contains copyrights that are in a selectable state, the current child node and the current state array are added to the stack, the current child node is set as the current parent node, and the left child node of the current parent node is set as the current child node;

[0078] Determine whether the current child node is a leaf node, and obtain a fifth determination result;

[0079] If the fifth judgment result indicates yes, the current node is output as a leaf node, and the status of all copyrights contained in the current node is updated to be unselectable;

[0080] If the fifth judgment result indicates no, then return to step "determine the state of the current child node".

[0081] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0082] The present invention discloses a copyright privacy protection method in a material data copyright auction process, the method comprising the following steps: the copyright owner encrypts the copyright of the material data using the copyright owner's symmetric key, and stores the encrypted copyright in a cloud platform; the encrypted copyright includes ciphertext and plaintext, and the plaintext is key data for previewing and retrieving the copyright; the copyright demander obtains the copyright participating in the auction by querying the key data of the cloud platform; the copyright owner, the copyright demander and the cloud platform are respectively used as clients, the copyright auction is completed based on the blockchain, and the auction result is stored in the blockchain; the copyright owner obtains the public key of the successful bidder according to the auction result, encrypts the symmetric key using the public key of the successful bidder, and sends the encrypted symmetric key to the successful bidder through the blockchain; the successful bidder decrypts the encrypted symmetric key using the private key of the successful bidder to obtain the symmetric key, obtains the encrypted copyright from the cloud platform, and decrypts the encrypted copyright using the symmetric key. The present invention realizes copyright protection in the copyright auction process of material data based on blockchain technology and encryption technology, and sets up a cloud platform to realize data storage and the operation of the auction algorithm, overcoming the technical defect of the existing blockchain that the storage and computing power of the terminals participating in the auction are relatively high. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0084] Figure 1 A flowchart of a copyright privacy protection method in a material data copyright auction process provided by Embodiment 1 of the present invention;

[0085] Figure 2 A schematic diagram of a copyright privacy protection method in a material data copyright auction process provided by Embodiment 1 of the present invention;

[0086] Figure 3 A flowchart of the bidding algorithm provided in Example 1 of the present invention;

[0087] Figure 4 An example diagram of a binary search tree provided in Embodiment 3 of the present invention;

[0088] Figure 5 An example diagram of a bidding combination tree provided in Embodiment 3 of the present invention;

[0089] Figure 6 This is a flowchart of the key exchange process provided in Example 3 of the present invention. DETAILED DESCRIPTION

[0090] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0091] The purpose of the present invention is to provide a copyright privacy protection method and system in the copyright auction process of material data, so as to realize the protection of copyright in the copyright transaction process of material data.

[0092] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0093] The present invention provides a copyright privacy protection method and system in the process of material data copyright auction. The method mainly involves blockchain data property rights protection technology and homomorphic encryption technology. This method can not only protect the rights and interests of the copyright owner but also protect the privacy of the copyright owner. The use of copyright blockchain allows copyright owners to participate in copyright auctions. Copyright auctions can safeguard the interests of copyright owners and highlight the value of copyrights. It is a form of copyright transfer and a way of copyright protection. Considering the limited storage capacity of blockchain, we use homomorphic encryption algorithms to encrypt key data and store them on a cloud platform. This means that the ciphertext stored on the cloud platform is encrypted and generated using the public key of the copyright owner. It is an optimized method for blockchain copyright protection, thereby solving the problem of waste of storage resources and computing power resources.

[0094] like Figure 1 and 2 As shown, the present invention provides a copyright privacy protection method in the material data copyright auction process, and the method includes the following steps:

[0095] Step 101, the copyright owner uses the copyright owner's symmetric key to encrypt the copyright of the material data, and stores the encrypted copyright on the cloud platform; the encrypted copyright includes ciphertext and plaintext, and the plaintext is the key data for previewing and retrieving the copyright; the copyright demander obtains the copyright to participate in the auction by querying the key data of the cloud platform. That is, the copyright demander uses the ciphertext keyword to search on the ciphertext storage cloud platform, and decides whether to participate in the copyright auction based on the search results (if the copyright demander has a demand for the retrieved data, he can bid and participate in the auction; if he has no demand, he can not participate in the auction).

[0096] Step 102, the copyright owner, copyright demander and cloud platform are respectively used as clients, and the copyright auction is completed based on the blockchain, and the auction results are stored in the blockchain.

[0097] Step 102 includes the following specific steps:

[0098] 1. The copyright owner enters the starting price, and the copyright demander enters the bidding price;

[0099] 2. Preprocess and initialize the bidding algorithm. Preprocess: For all bids, if the copyright numbers of the bids are exactly the same, only the one with the highest price is retained. For example, A bids 10 yuan for {1, 2, 3}, B bids 11 yuan for {1, 2, 3}, and C bids 15 yuan for {1, 2}. Since the copyright numbers of A and B are exactly the same, A is discarded and only the last two B and C are retained.

[0100] 3. The bidding algorithm executes and outputs the combination with the highest bid. The specific execution process of the bidding algorithm is as follows: Figure 3 shown.

[0101] 4. Finally, the auction combination tree is traversed through pre-order traversal, and the total price is calculated once each time a leaf node is traversed. At the end of the pre-order traversal, the highest total price and its traversal path are taken as the optimal combination auction result.

[0102] like Figure 3 As shown, the main auction algorithm:

[0103] Input: the bidding set of all users (including the copyright set and the corresponding bids), denoted as bidSet;

[0104] Output: the optimal bidding combination;

[0105] The algorithm can be described as:

[0106] Step 1: Preprocessing: filter the key-value pairs with the same copyright set but different bids in bidSet, retain the highest bid, and record the result as finalBidSet, with the key as finalBidSet.copyrightSet.

[0107] Step 2: Call Algorithm 1 with the input being finalBidSet.copyrightSet and the output being bst.

[0108] Step 3: Call Algorithm 2, with the input as bst and the output as the combined auction tree.

[0109] Step 4: Traverse the combined bidding tree and output the optimal bidding combination.

[0110] The pseudo code form of the auction main algorithm is:

[0111] Algorithm

[0112] Input: the bidding set of all users (including copyright set and corresponding bids), denoted as bidSet;

[0113] Output: The optimal bidding combination;

[0114] finalBidSet=Preprocedure(bidSet);

[0115] bst=algorithm1(finalBidSet.copyrightSet);

[0116] tree = algorithm2(bst);

[0117] best_selection=pre_traversal(tree);

[0118] return best_selection;

[0119] 1) Algorithm 1:

[0120] Input: the copyright set to be auctioned, denoted as copyrightSet;

[0121] Output: A binary search tree, where all leaf nodes are ∈ copyrightSet. Each node in the tree contains a data attribute, which is assigned the height of the tree except for leaf nodes, and the height of the root node is 1. The data attribute of the leaf node is recorded as the relevant information of the copyright.

[0122] The binary tree output by this algorithm has the following characteristics: on the path from the root node to the leaf node, the copyright numbers contained in the left subtree will appear in the final leaf node, and the copyright numbers contained in the right subtree will not appear in the final leaf node. For example: if you start from the root node and only pass through the left subtree of each node, then the final leaf node contains the number of each copyright.

[0123] Algorithm 1 can be described as:

[0124] Step 1: Initialize a root node

[0125] Step 2: Take a copyright bidding information, for example, {1, 3}, 9 yuan means that this copyright bidding information bids 9 yuan for copyright No. 1 and copyright No. 3. If this copyright bidding information contains the copyright represented by the current node, the copyright number represented by the current node is the distance between the current node and the root node, then a left child node is generated; if not, a right child node is generated.

[0126] Step 3: When the height of the tree reaches the total number of copyrights, the current node is determined to be a leaf node, the copyright information is recorded in the leaf node, and the root node is returned.

[0127] Step 4: Loop through steps 2 and 3 until all copyright bidding information has been traversed.

[0128] Step 5: Return the generated tree and the algorithm ends.

[0129] The pseudo code form of Algorithm 1 is:

[0130] Algorithm1

[0131] Input: the copyright set to be auctioned, denoted as copyrightSet;

[0132] Output: A binary search tree, where all leaf nodes are ∈copyrightSet. Each node in the tree contains a data attribute, which is assigned the height of the tree except for leaf nodes. The height of the root node is 1.

[0133] The data attribute of the leaf node records the relevant information of the copyright of the film.

[0134]

[0135] 3) Algorithm 2:

[0136] Input: tree bst generated by Algorithm 1;

[0137] Output: A bidding combination tree.

[0138] The goal of this algorithm is to generate a bidding combination tree through the tree generated by Algorithm 1 and calling Algorithm 3 (hereinafter referred to as FindLeaf) algorithm.

[0139] The algorithm is described as follows:

[0140] Step 1: Initialize a bidding tree newTree (with only the root node root), assign the current node current to root, initialize the status array, initialize status[1] to N, and assign the remaining M-1 nodes to A.

[0141] Step 2: Call the FindLeaf algorithm (i.e., Algorithm 3) on bst to obtain a leaf node Leaf. (Note that calling FindLeaf will also modify the status array while obtaining the leaf node)

[0142] Step 3: Set Leaf as the child node of current. If the current status value is not all B, set current to Leaf. If the status value is all B, set current to the parent node of current.

[0143] Step 4: Repeat steps 2 and 3 until all leaf nodes in bst have been traversed.

[0144] Step 5: Return to the auction combination tree.

[0145] The pseudo code form of Algorithm 2 is:

[0146] Algorithm2

[0147] Output a bidding combination tree

[0148] / / initialization

[0149] Define a status array so that status[1] = N, and assign the remaining M-1 items to A

[0150] Define an empty stack st

[0151] st.push(bst.root)

[0152] STEP.status = status

[0153] STEP.st=st

[0154] STACK.push(STEP)

[0155] STEP = STACK.top()

[0156] newTree / / Initialize a new tree

[0157] current = newTree.root

[0158] / / End of initialization

[0159] while (STACK is not empty):

[0160] newNode,status=FindLeaf(STEP)

[0161] STEP.status = status

[0162] ifstatus[i] is not all B:

[0163] Generate a new child node newChild for current and assign its data attribute to newNode.data

[0164] STEP.st=root

[0165] else:

[0166] Generate a new child node newChild for current and assign its data attribute to newNode.data

[0167] current = newTree.root

[0168] STEP.st=null

[0169] STACK.push(STEP)

[0170] Keep popping the stack until STEP.st at the top of the stack is not empty, and each time the stack is popped, current becomes the parent node of current

[0171] STEP = STACK.top()

[0172] returnnewTree

[0173] 3) Algorithm 3: FindLeaf (STEP)

[0174] Input: the root node of the binary tree bst, as well as the array status and the stack st

[0175] Output: a leaf node of bst

[0176] The purpose of this algorithm is to find a leaf node that meets the requirements based on the array status. The array status represents the status of each current bidding number and has three enumeration values: B for cannot be selected, N for must be selected, and A for can be selected. The status array is adjusted according to the selection result.

[0177] The algorithm is described as:

[0178] Step 1: Start from the root node of the tree generated by Algorithm 1.

[0179] Step 2: If the current node is not a leaf node, then if the copyright number represented by the current node is in the state of N in status, it means that it must be selected, so the current node moves to the left child node. If the copyright number represented by the current node is in the state of B in status, it means that it cannot be selected, so the current node moves to the right child node. If the copyright number represented by the current node is in the state of A in status, it means that it can be selected, then start the pre-order traversal of the tree from the current node, and execute step 2 for each node traversed.

[0180] Step 3: When the height of the tree reaches the total number of copyrights, the current node is determined to be a leaf node, and the status of all copyright numbers in this leaf node is set to B, and the status of the smallest number among all copyright numbers that are not in this leaf node is set to N.

[0181] Step 4: Return the current leaf node information and the algorithm ends.

[0182] The pseudo code form of Algorithm 3 is:

[0183]

[0184] In step 103, the copyright owner obtains the public key of the successful bidder according to the auction result, encrypts the symmetric key using the public key of the successful bidder, and sends the encrypted symmetric key to the successful bidder via the blockchain.

[0185] In step 104, the successful bidder uses the private key of the successful bidder to decrypt the encrypted symmetric key, obtain the symmetric key, obtain the encrypted copyright from the cloud platform, and decrypt the encrypted copyright using the symmetric key.

[0186] Steps 103-104: Since the data is uploaded to the cloud platform and also needs to be previewable by bidders, the entire data is encrypted, but some information (such as author, summary, etc.) is uploaded to the cloud platform as plain text. It is assumed that each user has his own pair of public and private keys PK and SK, as well as a series of symmetric keys K for encrypting the copyrights uploaded by him. The specific steps are:

[0187] 1. The copyright data owner encrypts the copyright data Data using his own symmetric key K and obtains the ciphertext E K (Data), and to meet the needs of preview and retrieval, the abstract, author and other information D are attached to the ciphertext, and E K (Data)||DUpload to the cloud platform.

[0188] 2. After the auction is completed, the copyright owner needs to use the public key PK of the successful bidder to exchange the symmetric key K. winner Encrypt (using existing asymmetric encryption algorithms, such as RSA (Rivest-Shamir-Adleman encryption) encryption algorithm) and convert the ciphertext Sent to the winner.

[0189] 3. The winner uses his own private key SK winner Ciphertext Decrypt (using an existing public key encryption algorithm, such as the RSA algorithm) to obtain K and thus obtain the data.

[0190] Example 2

[0191] A copyright privacy protection system in a material data copyright auction process, the system comprising: a first copyright owner terminal, used for the copyright owner to encrypt the copyright of the material data using the copyright owner's symmetric key, and store the encrypted copyright to a cloud platform; the encrypted copyright includes ciphertext and plaintext, and the plaintext is key data for previewing and retrieving the copyright; a first copyright demander terminal, used for the copyright demander to obtain the copyright participating in the auction by querying the key data of the cloud platform; a copyright auction module, used for taking the copyright owner, the copyright demander and the cloud platform as clients respectively, completing the copyright auction based on the blockchain, and storing the auction result in the blockchain; a second copyright owner terminal, used for the copyright owner to obtain the public key of the successful bidder according to the auction result, encrypt the symmetric key using the public key of the successful bidder, and send the encrypted symmetric key to the successful bidder through the blockchain; a second copyright demander terminal, used for the successful bidder to decrypt the encrypted symmetric key using the private key of the successful bidder, obtain the symmetric key, obtain the encrypted copyright from the cloud platform, and decrypt the encrypted copyright using the symmetric key.

[0192] Among them, the copyright auction module specifically includes: a starting price input submodule, which is used by the copyright owner to input the starting price into the blockchain; a bidding price input submodule, which is used by the copyright demander to input the bidding price into the blockchain according to the starting price; a copyright auction submodule, which is used by the cloud platform to obtain the starting prices entered by different copyright owners and the bidding prices entered by different copyright participants from the blockchain, execute the auction algorithm, and obtain the auction results.

[0193] The specific steps of the bidding algorithm are: obtaining all valid bidding prices for different copyright combinations, where the valid bidding price of the copyright combination is the bidding price of the copyright combination that is higher than the starting price of the copyright; screening the valid bidding prices of the same copyright combination, retaining the highest bidding price among the valid bidding prices of the copyright combination; establishing a binary search tree of the highest bidding prices for different copyright combinations; traversing the binary search tree, obtaining all bidding combinations, and constructing a bidding combination tree; searching the bidding combination tree to obtain the bidding combination with the highest bid as the bidding result.

[0194] The traversal of the binary search tree to obtain all the bidding combinations and construct the bidding combination tree specifically includes: initializing the root node of the bidding combination tree as the current node, initializing the status of the first copyright in the state array to be must-be-selected, and the status of copyrights other than the first copyright to be selectable, initializing an empty stack, and initializing the traversal flag of the binary search tree to 0; searching the binary search tree for a leaf node containing a copyright in the state array whose status is must-be-selected according to the stack and the state array, and updating the state array and the stack; using the leaf node as a branch node of the current node, determining whether the status of each copyright in the latest state array is not selectable, and obtaining a first determination result; if the first determination If the result indicates no, then the branch node is used as the current node, and the process returns to step "based on the stack and the state array, search for a leaf node in the binary search tree that contains a copyright that must be selected in the state array, and update the state array and the stack"; if the first judgment result indicates yes, then the root node of the auction combination tree is used as the current node; determine whether the traversal flag of the binary search tree is 1, and obtain the second judgment result; if the second judgment result indicates no, then the process returns to step "based on the stack and the state array, search for a leaf node in the binary search tree that contains a copyright that must be selected in the state array, and update the state array and the stack"; if the second judgment result indicates yes, then output the auction combination tree.

[0195] Among them, according to the stack and the state array, searching the binary search tree for a leaf node containing a copyright in the state array whose status is that it must be selected, and updating the state array and the stack, specifically includes: judging whether the status of each copyright in the latest state array is that it cannot be selected, and obtaining a third judgment result; if the third judgment result indicates yes, judging whether the stack is empty, and obtaining a fourth judgment result; if the fourth judgment result indicates yes, setting the traversal flag of the binary search tree to 1; if the fourth judgment result indicates no, performing a pop operation on the stack, and setting the popped node as the current child node, setting the parent node of the current child node as the current parent node, setting the popped state array to the latest state array, and executing the step of "determining the status of the current child node"; if the third judgment result indicates no, changing the status of the copyright with the smallest number in the products not included in the state array to must be selected, and setting the root node to the current parent node, and setting the current The left child node of the previous parent node is set as the current child node, and the step "determine the status of the current child node" is executed; the status of the current child node is determined; if the current child node contains copyrights that must be selected and does not contain copyrights that can be selected, the current child node is set as the current parent node; if the current child node contains copyrights that cannot be selected, the right child node of the current parent node is set as the current child node; if the current child node contains copyrights that can be selected, the current child node and the current status array are added to the stack, the current child node is set as the current parent node, and the left child node of the current parent node is set as the current child node; determine whether the current child node is a leaf node, and obtain the fifth judgment result; if the fifth judgment result indicates yes, the current node is output as a leaf node, and the status of all copyrights contained in the current node is updated to cannot be selected; if the fifth judgment result indicates no, return to the step "determine the status of the current child node".

[0196] Example 3

[0197] Assume that the users include a copyright owner A and two copyright bidders B and C. They each have the following keys:

[0198] A has the symmetric key K used to encrypt the copyright A And the public key PK corresponding to the private key of B and C B and PK C ;

[0199] B and C have their own asymmetric private key SK B and SK C ;

[0200] First, as the copyright owner, A first uses his symmetric key K to protect the data to be protected. AEncrypt (such as using AES symmetric encryption algorithm) to generate ciphertext And some information used for retrieval, such as the summary of the copyright data, the author and other information, denoted as D A , this part is not encrypted. Then A will send the data Upload to the cloud platform and set the starting price. In this example, the starting price is assumed to be 1 yuan. If there are multiple data, generate D1, D2 to D n In this example, it is assumed that there are only three pieces of data. At the same time, the copyright information and copyright owners of these three pieces of data are synchronized in the blockchain system, as shown in Table 1.

[0201] Table 1 Copyright information list

[0202] Copyright Number Copyright Transaction History <![CDATA[D1]]> A none <![CDATA[D2]]> A none <![CDATA[D3]]> A none

[0203] Then, buyers B and C first search through public information such as abstract information and authors, and the cloud platform returns search results D1, D2 and D3.

[0204] Next, B and C need to bid for the goods. The bid table is shown in Table 2. Assume that there are three kinds of goods, numbered D1, D2, and D3, participating in the auction.

[0205] Table 2 Bid table

[0206] Bidder Product portfolio price B <![CDATA[D1]]> 1 Yuan C <![CDATA[D2]]> 1 Yuan B <![CDATA[D3]]> 1 Yuan B <![CDATA[D1,D3]]> 9 yuan C <![CDATA[D2,D3]]> 5 Yuan C <![CDATA[D1,D2,D3]]> 4 yuan

[0207] According to the tree output by Algorithm 1, Figure 4 shown.

[0208] Then the program executes Algorithm 3. To conveniently represent the specific steps of the execution, the status in the program stack is represented in the form of Table 3, where the meanings of A, B, and N are specifically described in Algorithm 3.

[0209] Table 3 Status list

[0210]

[0211] Algorithm 3 starts to execute. After the initialization step, Algorithm 2 is called continuously according to the content of the status table and a new auction tree is generated. The order of generating the auction tree is as follows: Figure 5 When the contents of the status table are all B, it returns to the parent node.

[0212] Finally, by traversing the tree in pre-order, we find the optimal solution is {D1,D3}+{D2}, which is 10 yuan in total.

[0213] Then through the corresponding bidding table, B gets D1 and D3, and C gets D2.

[0214] At this point, the system notifies A of the transaction status, and A confirms it on the platform. After confirmation, the key exchange protocol is carried out, such as Figure 6 shown.

[0215] A will use the symmetric key corresponding to each copyright data After encrypting the corresponding bidder's public key (such as using the RSA asymmetric encryption algorithm), the ciphertext Sent to successful bidders. In this example, it is:

[0216] A sends to B and

[0217] A sends to C

[0218] After receiving the ciphertext, B and C decrypt it using their respective private keys.

[0219] At this time, B gets and C gets B and C can now decrypt their own data.

[0220] After obtaining the data, B and C become the owners of the copyrighted data. At this point, B has the symmetric key K B , C has the symmetric key K C , each re-encrypts their own data and uploads it to the cloud platform. At the same time, the state in the blockchain changes, as shown in Table 4.

[0221] Table 4 Copyright information list after auction

[0222] Copyright Number Copyright Transaction History <![CDATA[D1]]> B Seller: A <![CDATA[D2]]> C Seller: A <![CDATA[D3]]> B Seller: A

[0223] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0224] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A copyright privacy protection method in the process of material data copyright auction, characterized in that: The method comprises the following steps: The copyright owner uses the copyright owner's symmetric key to encrypt the copyright of the material data, and stores the encrypted copyright on the cloud platform; the encrypted copyright includes ciphertext and plaintext, and the plaintext is the key data for previewing and retrieving the copyright; Copyright demanders obtain copyrights for auction by querying key data on the cloud platform; The copyright owner, copyright demander and cloud platform are respectively used as clients to complete copyright auction based on blockchain, and the auction results are stored in the blockchain; The copyright owner obtains the public key of the successful bidder according to the auction results, encrypts the symmetric key using the public key of the successful bidder, and sends the encrypted symmetric key to the successful bidder through the blockchain; The successful bidder uses the private key of the successful bidder to decrypt the encrypted symmetric key, obtains the symmetric key, obtains the encrypted copyright from the cloud platform, and uses the symmetric key to decrypt the encrypted copyright; The specific steps of the auction algorithm are: Obtaining all valid bidding prices for different copyright combinations, where the valid bidding price for the copyright combination is a bidding price that is higher than the starting price of the copyright combination; Filtering valid auction prices for the same copyright combination, and retaining the highest auction price among the valid auction prices for the copyright combination; Build a binary search tree of the highest bidding prices for different copyright combinations; Traverse the binary search tree to obtain all bidding combinations and construct a bidding combination tree; Search the bidding combination tree to obtain the bidding combination with the highest bid as the bidding result; Traversing the binary search tree to obtain all bidding combinations and constructing a bidding combination tree specifically includes: Initialize the root node of the auction combination tree as the current node, initialize the status of the first copyright in the status array to must be selected, and the status of copyrights other than the first copyright to be selectable, initialize an empty stack, and initialize the traversal flag of the binary search tree to 0; According to the stack and the state array, searching the binary search tree for a leaf node containing a copyright whose status in the state array is to be selected, and updating the state array and the stack; Taking the leaf node as a branch node of the current node, determining whether the status of each copyright in the latest status array is unselectable, and obtaining a first determination result; If the first judgment result indicates no, the branch node is used as the current node, and the process returns to step "searching the binary search tree for a leaf node containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack"; If the first judgment result indicates yes, the root node of the bidding combination tree is used as the current node; Determine whether the traversal flag of the binary search tree is 1, and obtain a second determination result; If the second judgment result indicates no, then return to the step of "searching the binary search tree for a leaf node containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack"; If the second judgment result indicates yes, outputting the bidding combination tree; The step of searching the binary search tree for a leaf node in the state array containing a copyright that must be selected according to the stack and the state array, and updating the state array and the stack specifically includes: Determine whether the status of each copyright in the latest status array is unselectable, and obtain a third determination result; If the third judgment result indicates yes, then judging whether the stack is empty, and obtaining a fourth judgment result; If the fourth judgment result indicates yes, the traversal flag of the binary search tree is set to 1; If the fourth judgment result indicates no, a pop operation is performed on the stack, and the popped node is set as the current child node, the parent node of the current child node is set as the current parent node, the popped state array is set as the latest state array, and the step of "determining the state of the current child node" is executed; If the third judgment result indicates no, then the status of the copyright with the smallest number among the products not included in the status array is changed to must be selected, and the root node is set as the current parent node, and the left child node of the current parent node is set as the current child node, and the step of "determining the status of the current child node" is executed; Determine the status of the current child node; If the current child node contains copyrights that must be selected and does not contain copyrights that can be selected, the current child node is set as the current parent node; If the current child node contains copyright that cannot be selected, the right child node of the current parent node is set as the current child node; If the current child node contains copyrights that are in a selectable state, the current child node and the current state array are added to the stack, the current child node is set as the current parent node, and the left child node of the current parent node is set as the current child node; Determine whether the current child node is a leaf node, and obtain a fifth determination result; If the fifth judgment result indicates yes, the current node is output as a leaf node, and the status of all copyrights contained in the current node is updated to be unselectable; If the fifth judgment result indicates no, then return to step "determine the status of the current child node".

2. The copyright privacy protection method in the material data copyright auction process according to claim 1 is characterized in that: The copyright owner, copyright demander and cloud platform are respectively used as clients to complete the copyright auction based on the blockchain, and the auction results are stored in the blockchain, including: The copyright owner enters a starting price into the blockchain; The copyright demander inputs the bidding price into the blockchain according to the starting price; The cloud platform obtains the starting prices input by different copyright owners and the bidding prices input by different copyright participants from the blockchain, executes the bidding algorithm, and obtains the bidding results.

3. A copyright privacy protection system in the material data copyright auction process, characterized in that: The system comprises: The first copyright owner terminal is used for the copyright owner to encrypt the copyright of the material data using the copyright owner's symmetric key, and store the encrypted copyright in the cloud platform; the encrypted copyright includes ciphertext and plaintext, and the plaintext is the key data for previewing and retrieving the copyright; A first copyright demander terminal is used for the copyright demander to obtain the copyrights to participate in the auction by querying the key data of the cloud platform; The copyright auction module is used to use the copyright owner, copyright demander and cloud platform as clients respectively, complete the copyright auction based on the blockchain, and store the auction results in the blockchain; The second copyright owner terminal is used for the copyright owner to obtain the public key of the successful bidder according to the auction result, encrypt the symmetric key with the public key of the successful bidder, and send the encrypted symmetric key to the successful bidder through the blockchain; The second copyright demander terminal is used for the successful bidder to decrypt the encrypted symmetric key using the private key of the successful bidder to obtain the symmetric key, obtain the encrypted copyright from the cloud platform, and decrypt the encrypted copyright using the symmetric key; The specific steps of the auction algorithm are: Obtain all valid bidding prices of different copyright combinations, where the valid bidding price of the copyright combination is the bidding price of the copyright combination that is higher than the starting price of the copyright; Filtering valid auction prices for the same copyright combination, and retaining the highest auction price among the valid auction prices for the copyright combination; Build a binary search tree of the highest bidding prices for different copyright combinations; Traverse the binary search tree to obtain all bidding combinations and construct a bidding combination tree; Search the bidding combination tree to obtain the bidding combination with the highest bid as the bidding result; Traversing the binary search tree to obtain all bidding combinations and constructing a bidding combination tree specifically includes: Initialize the root node of the auction combination tree as the current node, initialize the status of the first copyright in the status array to must be selected, and the status of copyrights other than the first copyright to be selectable, initialize an empty stack, and initialize the traversal flag of the binary search tree to 0; According to the stack and the state array, searching the binary search tree for a leaf node containing a copyright whose status in the state array is to be selected, and updating the state array and the stack; Taking the leaf node as a branch node of the current node, determining whether the status of each copyright in the latest status array is unselectable, and obtaining a first determination result; If the first judgment result indicates no, the branch node is used as the current node, and the process returns to step "searching the binary search tree for a leaf node containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack"; If the first judgment result indicates yes, the root node of the bidding combination tree is used as the current node; Determine whether the traversal flag of the binary search tree is 1, and obtain a second determination result; If the second judgment result indicates no, then return to the step of "searching the binary search tree for a leaf node containing a copyright that must be selected in the state array according to the stack and the state array, and updating the state array and the stack"; If the second judgment result indicates yes, outputting the bidding combination tree; The step of searching the binary search tree for a leaf node in the state array containing a copyright that must be selected according to the stack and the state array, and updating the state array and the stack specifically includes: Determine whether the status of each copyright in the latest status array is unselectable, and obtain a third determination result; If the third judgment result indicates yes, then judging whether the stack is empty, and obtaining a fourth judgment result; If the fourth judgment result indicates yes, the traversal flag of the binary search tree is set to 1; If the fourth judgment result indicates no, a pop operation is performed on the stack, and the popped node is set as the current child node, the parent node of the current child node is set as the current parent node, the popped state array is set as the latest state array, and the step of "determining the state of the current child node" is executed; If the third judgment result indicates no, then the status of the copyright with the smallest number among the products not included in the status array is changed to must be selected, and the root node is set as the current parent node, and the left child node of the current parent node is set as the current child node, and the step of "determining the status of the current child node" is executed; Determine the status of the current child node; If the current child node contains copyrights that must be selected and does not contain copyrights that can be selected, the current child node is set as the current parent node; If the current child node contains copyright that cannot be selected, the right child node of the current parent node is set as the current child node; If the current child node contains copyrights that are in a selectable state, the current child node and the current state array are added to the stack, the current child node is set as the current parent node, and the left child node of the current parent node is set as the current child node; Determine whether the current child node is a leaf node, and obtain a fifth determination result; If the fifth judgment result indicates yes, the current node is output as a leaf node, and the status of all copyrights contained in the current node is updated to be unselectable; If the fifth judgment result indicates no, then return to step "determine the status of the current child node".

4. The copyright privacy protection system in the material data copyright auction process according to claim 3 is characterized in that: The copyright auction module specifically includes: A starting price input submodule, used for the copyright owner to input the starting price into the blockchain; A bidding price input submodule, used by copyright demanders to input bidding prices into the blockchain according to the starting price; The copyright auction submodule is used for the cloud platform to obtain the starting price input by different copyright owners and the auction price input by different copyright participants from the blockchain, execute the auction algorithm, and obtain the auction result.

Citation Information

Patent Citations

  • Privacy verifiable auction method and system, computer equipment and application

    CN113065934A

  • Key management method and device based on block chain digital copyright protection system

    CN113158143A