Transaction methods, nodes and media based on blockchain network
By establishing a trustless third party watermark protocol on the blockchain network, using smart contracts and digital watermark nodes, the trust problem in the existing watermark protocol is solved, and more efficient and secure digital product transactions are achieved.
Patent Information
- Application Number
- CN202010575304.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-22
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2040-10-08
AI Technical Summary
The existing watermark protocol has trust problems during the digital product transaction process, requiring full trust in third parties to participate, unable to effectively defend against co-conspiracy attacks, and has limited efficiency.
Using a transaction method based on blockchain network, a trustless third party watermark protocol is established through smart contract nodes and digital watermark nodes, and the decentralized, immutable and traceable characteristics of blockchain are utilized to ensure the security and transparency of transactions.
It solves the problem of lack of trust in digital product transactions, improves the security and efficiency of transactions, prevents co-conspiracy attacks, and ensures the non-forgery of data.
Smart Images

Figure CN113837875B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a transaction method based on a blockchain network, a seller node, a digital watermark node, a smart contract node, and a computer-readable medium. Background Art
[0002] With the rapid development of intelligent, networked and communication technologies, related digital multimedia products have penetrated into all aspects of social life. The development of new technologies has brought new development opportunities to the digital publishing and digital copyright industries, and the proportion of digital publishing in the entire publishing industry has also grown rapidly. The publishing and distribution of digital multimedia content on the Internet is much more convenient than before, and most of the content does not have any copyright protection. Dishonest owners can easily copy and distribute digital multimedia content without reducing any perceived quality. In this case, the new form of digital publishing has brought tremendous pressure and challenges to digital copyright protection.
[0003] Digital Rights Management (DRM) is the main means of protecting the copyright of digital works on the Internet. The American Publishers Association defines it as: the technology, tools and processes for protecting intellectual property rights in the process of digital content transactions. As a kind of digital copyright management technology, the watermark protocol ensures the normal use of digital multimedia content (such as digital images, audio, video, etc.) by legal and authorized users through the application of information security technology. The watermark protocol protects the entire circulation process of digital content from production to distribution, sales to use, and plays a very important role in usage tracking, copyright infringement certification, etc. Specifically, it focuses on the various processes of describing, identifying, trading, protecting, monitoring and tracking the use of various forms of digital assets.
[0004] In order to solve the trust problem in the digital product transaction process, the current watermark protocol mostly involves the participation of a fully trusted or semi-trusted third party in building the buyer-seller interaction structure. In the transaction process designed with a trust system as the framework, the lack of trust caused by privacy leakage, IT security and performance risks will bring great hidden dangers. Once the third party is restricted or the trust relationship has problems, the buyer and seller will perform complex security operations and the transaction cannot continue. In addition, the watermark protocol that requires full trust in the third party cannot effectively defend against collusion attacks. At the same time, due to the need for trust verification, the efficiency of the watermark protocol will also be affected. Summary of the invention
[0005] The present disclosure aims to solve at least one of the technical problems existing in the prior art, and proposes a transaction method based on a blockchain network, a seller node, a digital watermark node and a computer-readable medium.
[0006] To achieve the above objectives, in a first aspect, the present disclosure provides a transaction method based on a blockchain network, comprising:
[0007] In response to the transaction request of the buyer node, a negotiation request is sent to the smart contract node, so that the smart contract node generates a buyer transaction key pair and a seller transaction key pair; wherein the transaction request includes: a buyer node identifier and a transaction product identifier, and the negotiation request includes: its own seller node identifier, the buyer node identifier and the transaction product identifier;
[0008] Encrypting the transaction product by using the seller's transaction public key in the negotiation protocol to generate a first encrypted transaction product, and sending the first encrypted transaction product and the transaction product identifier to the digital watermark node, so that the digital watermark node encrypts the first encrypted transaction product by using the buyer's transaction public key to generate a second encrypted transaction product;
[0009] In response to the third encrypted transaction product sent by the digital watermark node, the third encrypted transaction product is decrypted by the seller's transaction private key to generate a fourth encrypted transaction product, and the fourth encrypted transaction product is sent to the buyer's node.
[0010] In some embodiments, before the step of encrypting the transaction product using the seller's transaction public key, the method further includes:
[0011] In response to the smart contract node identifier sent by the smart contract node, the digital signature of the smart contract node identifier is verified, and after the verification is passed, the step of encrypting the transaction product using the seller's transaction public key is executed.
[0012] In some embodiments, the method further comprises:
[0013] In response to a product to be verified whose legality is unknown, an identification request is sent to the digital watermark node so that the digital watermark node can extract the watermark information in the product to be verified, search in the database according to the watermark information, and send a verification request to the smart contract node, wherein the identification request includes: the product to be verified.
[0014] In a second aspect, the present disclosure also provides a transaction method based on a blockchain network, including:
[0015] Receive the seller node ID, buyer node ID, seller transaction public key and buyer transaction public key sent by the smart contract node;
[0016] In response to a first encrypted transaction product and a transaction product identifier sent by the seller node, a digital watermark is generated according to the seller node identifier, the buyer node identifier, and the transaction product identifier, wherein the first encrypted transaction product is generated after the seller node encrypts the transaction product using the seller transaction public key;
[0017] The digital watermark is encrypted by the seller's transaction public key and the buyer's transaction public key to generate an encrypted digital watermark, and the first encrypted transaction product is encrypted by the buyer's transaction public key to generate a second encrypted transaction product;
[0018] Insert the encrypted digital watermark into the second encrypted transaction product to generate a third encrypted transaction product, and send the third encrypted transaction product to the seller node so that the seller node can decrypt the third encrypted transaction product using the seller's transaction private key to generate a fourth encrypted transaction product, and send the fourth encrypted transaction product to the buyer node.
[0019] In some embodiments, the step of generating a digital watermark according to the seller node identifier, the buyer node identifier and the product identifier specifically includes:
[0020] Generate a first sub-watermark according to the seller node identifier and the buyer node identifier, and generate a second sub-watermark according to the transaction product identifier and timestamp information;
[0021] The digital watermark is generated according to the first sub-watermark, the second sub-watermark and a random value.
[0022] In some embodiments, the method further comprises:
[0023] The transaction product identifier, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product are encrypted through its own digital watermark node public key to generate a watermark protocol, and the watermark protocol is sent to the smart contract node so that the smart contract node writes the watermark protocol into the blockchain network.
[0024] In some embodiments, the method further comprises:
[0025] The product identification, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product are stored in a database.
[0026] In some embodiments, the method further comprises:
[0027] receiving an identification request sent by the seller node, wherein the identification request includes: a product to be verified;
[0028] Extract the watermark information in the product to be verified, search the database according to the watermark information, and send a verification request to the smart contract node so that the smart contract node can verify the legitimacy of the product to be verified, wherein the verification request includes: the retrieval result and the product identification of the product to be verified, and the retrieval result records the retrieved transaction product identification, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product.
[0029] In a third aspect, the present disclosure also provides a transaction method based on a blockchain network, including:
[0030] In response to a negotiation request sent by a seller node, a negotiation protocol corresponding to a transaction product is generated; wherein the negotiation request includes: a seller node identifier, a buyer node identifier, and a transaction product identifier of the transaction product;
[0031] The seller node identifier, the buyer node identifier, and the seller transaction public key and the buyer transaction public key in the negotiation protocol are sent to the digital watermark node; the buyer transaction private key in the negotiation protocol is sent to the buyer node; the seller transaction public key and the seller transaction private key in the negotiation protocol are sent to the seller node.
[0032] In some embodiments, the method further comprises:
[0033] In response to the verification request sent by the digital watermark node, the legitimacy of the product to be verified is verified, wherein the verification request includes: the retrieval result and the product identification of the product to be verified, and the retrieval result records the retrieved transaction product identification, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product.
[0034] In some embodiments, the method further comprises:
[0035] The seller node identifier, the buyer node identifier, the transaction product identifier and the smart contract node identifier are signed by using their own smart contract node public key, added to the negotiation protocol, and the negotiation protocol is written into the blockchain network.
[0036] In a fourth aspect, the embodiment of the present disclosure further provides a seller node, including:
[0037] one or more processors;
[0038] A storage device for storing one or more programs;
[0039] When the one or more programs are executed by the one or more processors, the one or more processors implement a method as described in any of the above embodiments, including sending a negotiation request to a smart contract node.
[0040] In a fifth aspect, an embodiment of the present disclosure further provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps in the method including sending a negotiation request to a smart contract node as described in any of the above embodiments are implemented.
[0041] In a sixth aspect, the embodiments of the present disclosure further provide a digital watermark node, including:
[0042] one or more processors;
[0043] A storage device for storing one or more programs;
[0044] When the one or more programs are executed by the one or more processors, the one or more processors implement a method as described in any of the above embodiments, including generating a digital watermark based on the seller node identifier, the buyer node identifier and the transaction product identifier.
[0045] In the seventh aspect, the embodiments of the present disclosure also provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the program implements the steps of the method for generating a digital watermark according to the seller node identifier, the buyer node identifier and the transaction product identifier as described in any of the above embodiments.
[0046] In an eighth aspect, the present disclosure also provides a smart contract node, including:
[0047] one or more processors;
[0048] A storage device for storing one or more programs;
[0049] When the one or more programs are executed by the one or more processors, the one or more processors implement a method as described in any of the above embodiments, including sending the seller transaction public key and the seller transaction private key in the negotiation protocol to the seller node.
[0050] In the ninth aspect, an embodiment of the present disclosure further provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the method as described in any of the above embodiments, including sending the seller transaction public key and the seller transaction private key in the negotiation protocol to the seller node. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A flowchart of a transaction method based on a blockchain network provided in an embodiment of the present disclosure;
[0052] Figure 2A flowchart of another transaction method based on a blockchain network provided in an embodiment of the present disclosure;
[0053] Figure 3 A flowchart of another transaction method based on a blockchain network provided in an embodiment of the present disclosure;
[0054] Figure 4 This is a flow chart of a specific implementation method of step S7 in the embodiment of the present disclosure;
[0055] Figure 5 A flowchart of another transaction method based on a blockchain network provided in an embodiment of the present disclosure;
[0056] Figure 6 A flowchart of another transaction method based on a blockchain network provided in an embodiment of the present disclosure;
[0057] Figure 7 A signaling diagram of another transaction method based on a blockchain network provided in an embodiment of the present disclosure;
[0058] Figure 8 A signaling diagram of another transaction method based on a blockchain network provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0059] In order to enable those skilled in the art to better understand the technical solution of the present invention, the transaction method based on the blockchain network, the seller node, the digital watermark node, the smart contract node and the computer-readable medium provided by the present invention are described in detail below with reference to the accompanying drawings.
[0060] Example embodiments will be described more fully below with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete and to enable those skilled in the art to fully understand the scope of the present disclosure.
[0061] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded.
[0062] It will be understood that although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited to these terms. These terms are only used to distinguish one element from another element. Therefore, without departing from the teachings of the present disclosure, the first element, first component, or first module discussed below may be referred to as the second element, second component, or second module.
[0063] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.
[0064] The transaction method based on blockchain network, seller node, digital watermark node, smart contract node and computer-readable medium provided in the present disclosure can be used to establish a watermark protocol based on blockchain network through untrusted third parties such as smart contract nodes and digital watermark nodes to meet the needs of both parties to the transaction and solve corresponding trust issues.
[0065] The transaction method involves a watermarking protocol based on a blockchain network, which realizes the secure transmission of digital products between untrusted parties. In the blockchain network, each new transaction is announced to a distributed network composed of nodes. If all the nodes approve it, the transaction is added to a block. The timestamp, the hash value of the previous block and the transaction record are used as the main elements of each block. After that, different blocks are linked together to create an immutable and appendable chain. A copy of the blockchain is maintained by each participating node.
[0066] Therefore, the blockchain network has the following characteristics: Decentralization: The blockchain is a distributed database without a central node, including an ordered list of records, which are linked together through the blockchain. The blockchain network maintains a growing list of different records, where a block can be defined as a single component containing the same information related to a specific transaction; Immutable: In each blockchain, transaction information has a corresponding hash value, which combines each record into a child node and generates a binary tree. The root node, timestamp and identifier of the binary tree are stored in the block header to form a chain structure. Therefore, if an attempt is made to modify a record in a block, all blocks in the entire chain need to be modified. Generally speaking, if more than 6 blocks are generated in the entire chain, it can be considered tamper-proof; Unforgeable: The digital signatures of all parties during data transmission are also stored in the blockchain to ensure that the entire architecture cannot be forged; Traceable: The actions of all participants are traceable, and these actions are permanently stored in the blockchain. Therefore, once a certain action is completed, the relevant information cannot be withdrawn or deleted.
[0067] The transaction method provided by the present disclosure utilizes the data characteristics of the decentralized blockchain network, namely, the data is immutable, unforgeable and traceable, to ensure the data security of data products and related transaction information during the transaction process.
[0068] In addition, the trust issues in the transaction process may include customer rights, anonymity and unbinding issues, and collusion issues. Among them, customer rights issues: the seller is assumed to be the only trusted party responsible for inserting and extracting watermark signals in traditional watermarking protocols. Therefore, it cannot be denied that the seller may maliciously frame the buyer by inserting a specific watermark signal and disseminating the digitally contaminated multimedia content as an unauthorized copy, and the buyer cannot make an accurate judgment and provide evidence on whether the seller has framed him; anonymity and unbinding issues: the anonymity problem is caused by the phenomenon that the buyer's identity is protected before proving that he has committed a guilty act. The unbinding problem corresponds to the situation where a unique watermark signal cannot be bound to a specific copy of the digital content; collusion issues: two or more untrustworthy parties collude to create pirated copies, that is, multiple conspirators can combine their watermark signals to remove the original watermark signal or generate a new version of the digital watermark content to evade piracy detection.
[0069] Figure 1 The following is a flowchart of a transaction method based on a blockchain network provided by an embodiment of the present disclosure. Figure 1 As shown, the method is applied to the seller node side in the blockchain network, and includes:
[0070] Step S1: In response to the transaction request of the buyer node, a negotiation request is sent to the smart contract center (SCC for short).
[0071] In step S1, a negotiation request is sent to the smart contract node to generate a negotiation agreement, wherein the negotiation agreement is generated by the smart contract node, or the negotiation agreement is generated by the seller node itself.
[0072] The transaction request includes the buyer's node identifier and the transaction product identifier, and the buyer's node identifier has been signed by the buyer's node; the negotiation request includes its own seller's node identifier, the buyer's node identifier and the transaction product identifier, and the seller's node identifier has been signed by the seller's node. The negotiation request may also include a timestamp; the negotiation protocol includes the buyer's transaction key pair Trade key pairs with sellers The buyer's transaction key pair includes the buyer's transaction public key Transaction private key with the buyer The seller's transaction key pair includes the seller's transaction public key Transaction private key with seller The transaction product identifier is the identifier of the transaction product and can be used as the description information of the transaction product.
[0073] In some embodiments, the buyer node also sends its own buyer node identification and timestamp and other information to the smart contract node. After receiving the negotiation request, the smart contract node verifies whether the corresponding information sent by the buyer node and the seller node is consistent, and verifies the legitimacy and transaction qualifications of the buyer node and the seller node. If the information does not match, or the buyer node and the seller node are recorded in the blacklist, the transaction is canceled and the smart contract node returns an error response.
[0074] In some embodiments, all nodes use their own blockchain node private key to sign the information when sending it, and other nodes that receive the information can use their corresponding blockchain node public key to verify the signature.
[0075] Step S2: Encrypt the transaction product using the seller's transaction public key in the negotiation protocol to generate a first encrypted transaction product, and send the first encrypted transaction product and the transaction product identifier to a digital watermark node (Watermark Certification Authority / Center, abbreviated as WCA or WCC, or digital watermark center).
[0076] In step S2, the seller trades the public key Encrypt the transaction product X to generate the first encrypted transaction product And the first encrypted trading product and the transaction product identifier to the digital watermark node, so that the digital watermark node can use the buyer's transaction public key The first crypto trading product Encrypt and generate the second encrypted transaction product The digital watermark node is also responsible for inserting a digital watermark into the second encrypted transaction product.
[0077] In some embodiments, in response to the seller's transaction public key, the seller's transaction private key and the transaction product identifier sent by the smart contract node, the transaction product is encrypted by the seller's transaction public key to generate a first encrypted transaction product, and the first encrypted transaction product and the transaction product identifier are sent to the digital watermark node.
[0078] In some embodiments, the smart contract node also sends the buyer's transaction public key; the smart contract node also signs the seller's node identification, buyer's node identification, transaction product identification, smart contract node identification and other information through the smart contract node public key, adds it to the negotiation agreement, and writes the negotiation agreement into the blockchain network.
[0079] In some embodiments, the overall watermark protocol involved in the method includes a negotiation protocol, a watermark protocol, and an identification and verification protocol.
[0080] In some embodiments, before the step of encrypting the transaction product using the seller's transaction public key in step S2, it also includes: responding to the smart contract node identifier sent by the smart contract node, verifying the digital signature of the smart contract node identifier, and after the verification is passed, executing the step of encrypting the transaction product using the seller's transaction public key in step S2; if the verification fails, the seller node cancels the transaction and re-searches for the smart contract node to restart the transaction. In some embodiments, if the transaction product identifier returned by the smart contract node is inconsistent with the transaction product identifier sent by the seller node, or the returned information is missing, the seller node also cancels the transaction.
[0081] Step S3: In response to the third encrypted transaction product sent by the digital watermark node, the third encrypted transaction product is decrypted by the seller's transaction private key to generate a fourth encrypted transaction product, and the fourth encrypted transaction product is sent to the buyer's node.
[0082] In some embodiments, the fourth encrypted transaction product The seller's node uses the built-in commutative cryptosystem to pass the seller's transaction private key For third-party crypto trading products After decryption, the buyer node receives the fourth encrypted transaction product at this time The watermarked transaction product can still be decrypted using the buyer's private transaction key.
[0083] In step S3, the third encrypted trading product The second encrypted transaction product is encrypted by the digital watermark node Insert the digital watermark to obtain the fourth encrypted transaction product After being sent to the buyer's node, the buyer's node can obtain the watermarked transaction product after decrypting it with the buyer's transaction private key. The deal is done.
[0084] The disclosed embodiments provide a transaction method based on a blockchain network. The method can be used to establish a watermark agreement between buyers and sellers based on a blockchain network by using a trustless third party without establishing a trust relationship with a third party, thereby solving the trust problem in the digital product transaction process. Specifically, the customer power problem is solved by sending transaction products with digital watermarks inserted, and the collusion problem is solved by adding a trustless third party and exchanging a password system. At the same time, the blockchain network is used to ensure data security. Under the premise of open and transparent transaction information, identity information is highly encrypted to ensure personal privacy and improve process efficiency.
[0085] Figure 2 A flowchart of another transaction method based on a blockchain network provided by an embodiment of the present disclosure. Figure 2 As shown, this method is based on Figure 1 A specific optional implementation of the method shown. Specifically, the method also includes:
[0086] Step S4: In response to the product to be verified whose legality is unknown, an identification request is sent to the digital watermark node.
[0087] In step S4, an identification request is sent to the digital watermark node so that the digital watermark node can extract the watermark information in the product to be verified, search in the database according to the watermark information, and send a verification request to the smart contract node, wherein the identification request includes the product to be verified. In some embodiments, this step corresponds to an identification verification protocol.
[0088] The disclosed embodiment provides a transaction method based on a blockchain network, which can be used to solve the anonymity and unbinding problems through a trustless third party and a corresponding identification and verification process.
[0089] Figure 3 A flowchart of another transaction method based on a blockchain network provided in an embodiment of the present disclosure. Figure 3 As shown, the method is applied to the digital watermark node side in the blockchain network, and includes:
[0090] Step S5: Receive the seller node identifier, buyer node identifier, seller transaction public key, and buyer transaction public key sent by the smart contract node.
[0091] Step S6: In response to the first encrypted transaction product and transaction product identifier sent by the seller node, a digital watermark is generated according to the seller node identifier, the buyer node identifier and the transaction product identifier.
[0092] Among them, the first encrypted trading product For the seller node, pass the seller's transaction public key Generated after encrypting the transaction product X.
[0093] Figure 4 FIG. 6 is a flow chart of a specific implementation method of step S6 in the embodiment of the present disclosure. Figure 4 As shown, in step S6, the step of generating a digital watermark according to the seller node identifier, the buyer node identifier and the product identifier specifically includes:
[0094] Step S601: Generate a first sub-watermark according to the seller node identifier and the buyer node identifier, and generate a second sub-watermark according to the transaction product identifier and timestamp information.
[0095] In step S601, the digital watermark node generates watermark information according to two specific functions, which respectively mark the transaction parties according to the seller node identifier and the buyer node identifier, and mark the transaction product according to the transaction product identifier and timestamp information.
[0096] Specifically, the laws corresponding to the two specific functions are represented by m and n respectively, and the generation process of the first sub-watermark x and the second sub-watermark y is represented by the following formula: x = m (id B +id S ), y=n(id P +TWCC); where id B and id S Respectively represent the buyer node ID and the seller node ID, id P Indicates the transaction product identifier, and TWCC is the timestamp information.
[0097] Step S602: Generate a digital watermark according to the first sub-watermark, the second sub-watermark and the random value.
[0098] Among them, the digital watermark is a single watermark signal. Under the premise of solving the unbinding attack, the process efficiency of the watermark protocol is improved. At the same time, the insertion of a watermark signal can increase the hidden capacity and avoid ambiguous attacks.
[0099] Correspondingly, the generation process of the digital watermark W is expressed by the following formula: W=x+y+f; wherein f is a random value.
[0100] Step S7: Encrypt the digital watermark using the seller's transaction public key and the buyer's transaction public key to generate an encrypted digital watermark, and encrypt the first encrypted transaction product using the buyer's transaction public key to generate a second encrypted transaction product.
[0101] In some embodiments, the digital watermark node uses a built-in privacy homomorphic cryptosystem to implement dual encryption of the digital watermark and the transaction product to generate an encrypted digital watermark. And the second encrypted trading product
[0102] Step S8: insert the encrypted digital watermark into the second encrypted transaction product to generate a third encrypted transaction product, and send the third encrypted transaction product to the seller node.
[0103] In step S8, the third encrypted transaction product Sent to the seller's node for the seller's node to use the seller's transaction private key For third-party crypto trading products Decrypt and generate the fourth encrypted transaction product And the fourth encrypted trading product Sent to the buyer's node; the digital watermark node also signs and sends a timestamp when sending.
[0104] Specifically, the generation process of the third encrypted transaction product can be expressed as:
[0105]
[0106] In some embodiments, the encrypted digital watermark is directly inserted into the second encrypted transaction product according to the homomorphism conferred by the above-mentioned double encryption scheme.
[0107] In some embodiments, the method further comprises:
[0108] The transaction product identifier, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product are encrypted through its own digital watermark node public key to generate a watermark protocol, and the watermark protocol is sent to the smart contract node so that the smart contract node can write the watermark protocol into the blockchain network.
[0109] The disclosed embodiment provides a transaction method based on a blockchain network. This method is different from the traditional architecture in which more than two watermark signals are inserted. Only one watermark signal is inserted into the digital product being traded. On the premise of resolving the unbinding attack, the process efficiency of the watermark protocol is improved. At the same time, the insertion of a watermark signal can increase the hidden capacity and avoid ambiguous attacks.
[0110] Figure 5 A flowchart of another transaction method based on a blockchain network provided in an embodiment of the present disclosure. Figure 5 As shown, this method is based on Figure 3 A specific optional implementation of the method shown. Specifically, the method also includes:
[0111] Step S9: store the product identification, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product in the database.
[0112] Step S10: Receive the identification request sent by the seller node.
[0113] The identification request includes: the product to be verified.
[0114] Step S11: extract the watermark information from the product to be verified, search in the database according to the watermark information, and send a verification request to the smart contract node.
[0115] In step S11, if the corresponding information is retrieved, a verification request is sent to the smart contract node for the smart contract node to verify the legitimacy of the product to be verified. The verification request includes the search result and the product identifier of the product to be verified, and the search result records the retrieved transaction product identifier, the seller's transaction public key, the buyer's transaction public key, and the third encrypted transaction product.
[0116] In some embodiments, the smart contract node receives a verification request and first verifies whether the surface information matches correctly; after verifying that the surface information matches, the verification request is decrypted and the buyer's node identifier, seller's node identifier, transaction product identifier, seller's transaction key pair, and buyer's transaction key pair are extracted from the verification request and the blockchain network, and the watermark information and the identifier of the product to be verified are used to verify whether the product to be verified has other content added, the original information has been deleted, and the original information has been changed compared to the transaction product. If at least one of the above situations is verified to exist, the product to be verified is verified to be illegal.
[0117] The disclosed embodiment provides a transaction method based on a blockchain network, which can be used to solve the anonymity and unbinding problems through a trustless third party and a corresponding identification and verification process.
[0118] Figure 6 A flowchart of another transaction method based on a blockchain network provided in an embodiment of the present disclosure. Figure 6 As shown, applied to the smart contract node side, the method includes:
[0119] Step S12: In response to the negotiation request sent by the seller node, generate a negotiation protocol corresponding to the transaction product.
[0120] The negotiation request includes the seller's node identifier, the buyer's node identifier and the transaction product identifier; the negotiation protocol includes the buyer's transaction key pair and the seller's transaction key pair, the buyer's transaction key pair includes the buyer's transaction public key and the buyer's transaction private key, and the seller's transaction key pair includes the seller's transaction public key and the seller's transaction private key.
[0121] In some embodiments, the negotiation protocol may also be generated by the seller node itself.
[0122] Step S13: Send the seller node identifier, the buyer node identifier, and the seller transaction public key and the buyer transaction public key in the negotiation protocol to the digital watermark node.
[0123] Step S14: Send the buyer's transaction private key in the negotiation protocol to the buyer's node.
[0124] Step S15: Send the seller's transaction public key and seller's transaction private key in the negotiation protocol to the seller's node.
[0125] In some embodiments, the method also includes: verifying the legitimacy of the product to be verified in response to a verification request sent by the digital watermark node, wherein the verification request includes: the retrieval results and the product identification of the product to be verified, and the retrieval results record the retrieved transaction product identification, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product.
[0126] In some embodiments, the method also includes: signing the seller node identifier, buyer node identifier, transaction product identifier and smart contract node identifier through its own smart contract node public key, adding them to the negotiation protocol, and writing the negotiation protocol into the blockchain network.
[0127] Figure 7 A signaling diagram of another transaction method based on a blockchain network provided in an embodiment of the present disclosure. Figure 7 As shown, applied to a blockchain network, the method includes:
[0128] BZ101. Buyer node B sends a transaction request to seller node S. The transaction request includes the signed buyer node identifier, transaction product identifier and timestamp.
[0129] BZ102, buyer node B sends the signed buyer node identifier and timestamp to the smart contract node SCC.
[0130] BZ2. The seller node S sends a negotiation request to the smart contract node SCC. The negotiation request includes the signed seller node identifier, the buyer node identifier signed by the buyer node, the transaction product identifier and the timestamp.
[0131] BZ301 and the smart contract node SCC generate a negotiation agreement for this transaction, the negotiation agreement includes a buyer's transaction key pair and a seller's transaction key pair, the buyer's transaction key pair includes a buyer's transaction public key and a buyer's transaction private key, and the seller's transaction key pair includes a seller's transaction public key and a seller's transaction private key. In some embodiments, the negotiation agreement can also be directly generated by the seller's node S.
[0132] BZ302, smart contract node SCC sends the transaction product identifier and buyer transaction key pair to buyer node B.
[0133] BZ303, smart contract node SCC sends the seller's transaction key pair and transaction product identifier to the seller's node S.
[0134] BZ304, the smart contract node SCC sends the seller node identification signed by the seller node, the buyer node identification signed by the buyer node, the seller transaction public key and the buyer transaction public key to the digital watermark node WCA.
[0135] BZ305, smart contract node SCC signs the seller node identification, buyer node identification, buyer transaction key pair, seller transaction key pair, transaction product identification, smart contract node identification and other information through the smart contract node public key, adds it to the negotiation protocol, and writes it into the blockchain network.
[0136] BZ4. The seller node S encrypts the transaction product using the seller's transaction public key to generate the first encrypted transaction product, together with the transaction product identifier and timestamp, and sends it to the digital watermark node WCA.
[0137] BZ5, the digital watermark node WCA generates a first sub-watermark according to the seller node identifier and the buyer node identifier, generates a second sub-watermark according to the transaction product identifier and the timestamp, and generates a digital watermark according to the first sub-watermark, the second sub-watermark and the random value.
[0138] BZ6 and the digital watermark node WCA encrypt the digital watermark through the seller's transaction public key and the buyer's transaction public key to generate an encrypted digital watermark, and encrypt the encrypted transaction product through the buyer's transaction public key to generate a second encrypted transaction product.
[0139] BZ7, the digital watermark node WCA inserts the encrypted digital watermark into the second encrypted transaction product, generates a third encrypted transaction product, and sends the third encrypted transaction product to the seller node S.
[0140] BZ801, the digital watermark node WCA signs the transaction product identifier, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product through its own digital watermark node public key to generate a watermark protocol, stores the watermark protocol in the database, and sends it to the smart contract node SCC.
[0141] BZ802 and smart contract node SCC write the watermark protocol into the blockchain network.
[0142] BZ9, the seller node S decrypts the third encrypted transaction product through the seller's transaction private key, generates a fourth encrypted transaction product, and sends the fourth encrypted transaction product to the buyer node B.
[0143] BZ10 and the buyer node B decrypt the fourth encrypted transaction product using the buyer's transaction private key to obtain a transaction product with a watermark. After the buyer node B completes the payment, the transaction is completed.
[0144] Figure 8 A signaling diagram of another transaction method based on a blockchain network provided in an embodiment of the present disclosure. Figure 8 As shown, applied to a blockchain network, the method includes:
[0145] BZ11, the seller node S retrieves or discovers through other legitimate means a product to be verified that is suspected of being pirated or of unknown legality in the network, and sends an identification request to the digital watermark node WCA, and the identification request includes the product to be verified.
[0146] BZ12, the digital watermark node WCA extracts the watermark information from the product to be verified, searches the database according to the watermark information, and sends a verification request to the smart contract node SCC if the corresponding information is retrieved. The verification request includes the retrieval result and the product identifier of the product to be verified. The retrieval result records the retrieved transaction product identifier, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product.
[0147] BZ13, smart contract node SCC verifies the legality of the product to be verified.
[0148] The embodiment of the present disclosure also provides a seller node, including:
[0149] One or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement any method including step S1 in the above embodiments.
[0150] The embodiments of the present disclosure further provide a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the steps in any method including step S1 in the above embodiments are implemented.
[0151] The present disclosure also provides a digital watermark node, including:
[0152] One or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement any method including step S6 in the above embodiments.
[0153] The present disclosure also provides a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the steps in any method including step S6 in the above embodiments are implemented.
[0154] The present disclosure also provides a smart contract node, including:
[0155] One or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement any method including step S12 in the above embodiments.
[0156] The present disclosure also provides a computer-readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the steps in any of the methods including step S12 in the above embodiments.
[0157] It will be appreciated by those skilled in the art that all or some of the steps in the method disclosed above, the functional modules / units in the device may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0158] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.
Claims
1. A transaction method based on a blockchain network, characterized in that: include: In response to the transaction request of the buyer node, a negotiation request is sent to the smart contract node to generate a negotiation agreement; wherein the transaction request includes: the buyer node identifier and the transaction product identifier, and the negotiation request includes: its own seller node identifier, the buyer node identifier and the transaction product identifier; Encrypting the transaction product by using the seller's transaction public key in the negotiation protocol to generate a first encrypted transaction product, and sending the first encrypted transaction product and the transaction product identifier to the digital watermark node, so that the digital watermark node encrypts the first encrypted transaction product by using the buyer's transaction public key to generate a second encrypted transaction product; In response to the third encrypted transaction product sent by the digital watermark node, the third encrypted transaction product is decrypted by the seller's transaction private key to generate a fourth encrypted transaction product, and the fourth encrypted transaction product is sent to the buyer's node.
2. The method according to claim 1, characterized in that: Before the step of using the seller's transaction public key to encrypt the transaction product, the method further includes: In response to the smart contract node identifier sent by the smart contract node, the digital signature of the smart contract node identifier is verified, and after the verification is passed, the step of encrypting the transaction product using the seller's transaction public key is executed.
3. The method according to claim 1, characterized in that Also includes: In response to a product to be verified whose legality is unknown, an identification request is sent to the digital watermark node so that the digital watermark node can extract the watermark information in the product to be verified, search in the database according to the watermark information, and send a verification request to the smart contract node, wherein the identification request includes: the product to be verified.
4. A transaction method based on a blockchain network, characterized in that: include: Receive the seller node ID, buyer node ID, seller transaction public key and buyer transaction public key sent by the smart contract node; In response to a first encrypted transaction product and a transaction product identifier sent by the seller node, a digital watermark is generated according to the seller node identifier, the buyer node identifier, and the transaction product identifier, wherein the first encrypted transaction product is generated after the seller node encrypts the transaction product using the seller transaction public key; The digital watermark is encrypted by the seller's transaction public key and the buyer's transaction public key to generate an encrypted digital watermark, and the first encrypted transaction product is encrypted by the buyer's transaction public key to generate a second encrypted transaction product; Insert the encrypted digital watermark into the second encrypted transaction product to generate a third encrypted transaction product, and send the third encrypted transaction product to the seller node so that the seller node can decrypt the third encrypted transaction product using the seller's transaction private key to generate a fourth encrypted transaction product, and send the fourth encrypted transaction product to the buyer node.
5. The method according to claim 4, characterized in that The step of generating a digital watermark according to the seller node identifier, the buyer node identifier and the product identifier specifically includes: Generate a first sub-watermark according to the seller node identifier and the buyer node identifier, and generate a second sub-watermark according to the transaction product identifier and timestamp information; The digital watermark is generated according to the first sub-watermark, the second sub-watermark and a random value.
6. The method according to claim 4, characterized in that Also includes: The transaction product identifier, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product are encrypted through its own digital watermark node public key to generate a watermark protocol, and the watermark protocol is sent to the smart contract node so that the smart contract node writes the watermark protocol into the blockchain network.
7. The method according to claim 4, characterized in that Also includes: The product identification, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product are stored in a database.
8. The method according to claim 7, characterized in that Also includes: receiving an identification request sent by the seller node, wherein the identification request includes: a product to be verified; Extract the watermark information in the product to be verified, search the database according to the watermark information, and send a verification request to the smart contract node so that the smart contract node can verify the legitimacy of the product to be verified, wherein the verification request includes: the retrieval result and the product identification of the product to be verified, and the retrieval result records the retrieved transaction product identification, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product.
9. A transaction method based on a blockchain network, characterized in that: include: In response to a negotiation request sent by a seller node, a negotiation protocol corresponding to a transaction product is generated; wherein the negotiation request includes: a seller node identifier, a buyer node identifier, and a transaction product identifier of the transaction product; Sending the buyer's transaction private key in the negotiation protocol to the buyer's node; Sending the seller's transaction public key and the seller's transaction private key in the negotiation protocol to the seller's node, so that the seller's node encrypts the transaction product by using the seller's transaction public key in the negotiation protocol to generate a first encrypted transaction product, and the seller's node decrypts the third encrypted transaction product by using the seller's transaction private key to generate a fourth encrypted transaction product, and sends the fourth encrypted transaction product to the buyer's node; The seller node identifier, the buyer node identifier, and the seller transaction public key and the buyer transaction public key in the negotiation protocol are sent to the digital watermark node, so that the digital watermark node can encrypt the first encrypted transaction product through the buyer transaction public key to generate a second encrypted transaction product, and the digital watermark node can generate a digital watermark according to the seller node identifier, the buyer node identifier, and the transaction product identifier, and encrypt the digital watermark through the seller transaction public key and the buyer transaction public key to generate an encrypted digital watermark, and insert the encrypted digital watermark into the second encrypted transaction product to generate a third encrypted transaction product.
10. The method according to claim 9, characterized in that Also includes: In response to the verification request sent by the digital watermark node, the legitimacy of the product to be verified is verified, wherein the verification request includes: the retrieval result and the product identification of the product to be verified, and the retrieval result records the retrieved transaction product identification, the seller's transaction public key, the buyer's transaction public key and the third encrypted transaction product.
11. The method according to claim 10, characterized in that Also includes: The seller node identifier, the buyer node identifier, the transaction product identifier and the smart contract node identifier are signed by using their own smart contract node public key, added to the negotiation protocol, and the negotiation protocol is written into the blockchain network.
12. A seller node, comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.
13. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
14. A digital watermark node, comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 4 to 8.
15. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the steps of the method according to any one of claims 4 to 8 are implemented.
16. A smart contract node, comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 9 to 11.
17. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the steps of the method according to any one of claims 9 to 11 are implemented.
Citation Information
Patent Citations
Buyer and seller security digital watermarking protocol generation method based on block chain platform
CN109951511A