Blockchain-based information processing methods, devices, equipment, media and products
By using encryption algorithms and anonymous transaction verification message generation mechanism in the blockchain network, the problem of blockchain data privacy protection is solved, and the secure transmission and verification of transaction information is realized, ensuring the protection and security of data privacy.
Patent Information
- Application Number
- CN202110181162.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-08
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-02-08
AI Technical Summary
Due to the lack of effective privacy protection solutions in government, enterprise and financial application scenarios, blockchain technology is difficult to achieve data privacy protection, affecting its use.
By introducing encryption algorithms and anonymous transaction verification message generation mechanism into the blockchain network, encrypted information exchange and anonymous transaction verification are carried out between nodes to ensure that transaction information is not disclosed during transmission and verification, and data privacy protection is achieved.
It effectively protects the identity information and transaction data privacy of both parties, reduces the need for plain text data to be linked, reduces the intrusion of nodes, and improves data security and privacy protection capabilities.
Smart Images

Figure CN113034135B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to the field of blockchain and finance, and more specifically to an information processing method, device, equipment, medium and product based on blockchain. Background Art
[0002] Blockchain technology is a distributed Internet database technology that has many inherent advantages, such as decentralization, trustlessness, immutability, autonomy, etc. It can enable unfamiliar nodes to establish point-to-point trusted value transfer without relying on third-party trusted institutions. The main advantage is that it can significantly reduce trust costs and improve interaction efficiency. Blockchain does not rely on a specific central node. Each blockchain node in the system independently stores and processes data, effectively avoiding single point failure.
[0003] In order to achieve public verification, the global ledger of the blockchain is open in the network. In the absence of a trusted digital infrastructure and unified security standards, the blockchain's own security level is limited, and the lack of an effective privacy protection solution has brought about the problem of on-chain data privacy protection in the blockchain. Since all participating nodes in the blockchain platform are equal and have global shared ledgers and data, the data privacy protection of the blockchain platform cannot protect private data by controlling access rights. This has seriously affected the use of blockchain technology in application scenarios with privacy protection needs such as government, enterprise, and finance. Summary of the invention
[0004] In view of the above problems, the present disclosure provides methods, devices, equipment, media and products for implementing on-chain data privacy protection of blockchain.
[0005] According to the first aspect of the present disclosure, there is provided a blockchain-based information processing method, which is executed by any first node in a first blockchain network, and the any first node is associated with at least one second node in a second blockchain network. The information processing method includes: receiving transaction information sent by the associated second node; encrypting the transaction information using a first predetermined encryption algorithm to obtain first encrypted information; sending the first encrypted information to the associated second node, so that the second blockchain network performs consensus verification on the transaction indicated by the transaction information based on the first encrypted information; generating an anonymous transaction verification message for the transaction information using a second predetermined encryption algorithm; and broadcasting the anonymous transaction verification message to other first nodes in the first blockchain network except any first node, so as to perform transaction verification on the transaction indicated by the transaction information.
[0006] The second aspect of the present disclosure provides a blockchain-based information processing method, which is executed by any second node in the second blockchain network, and the any second node is associated with a first node in the first blockchain network. The information processing method includes: in response to receiving a transaction initiation request, extracting transaction information in the transaction initiation request; sending the transaction information to the associated first node; receiving first encrypted information sent by the associated first node, the first encrypted information is obtained by encrypting the transaction information by a first predetermined encryption algorithm; generating a consensus verification message based on the first encrypted information; and broadcasting the consensus verification message to other second nodes in the second blockchain network except any second node, so as to perform consensus verification on the transaction indicated by the transaction information.
[0007] The third aspect of the present disclosure provides an information processing device based on blockchain, which is arranged at any first node in the first blockchain network, and the any first node is associated with at least one second node in the second blockchain network. The information processing device includes: a transaction information acquisition module, which is used to acquire transaction information sent by the associated second node; a first encryption module, which is used to encrypt the transaction information using a first predetermined encryption algorithm to obtain the first encrypted information; an encrypted information sending module, which is used to send the first encrypted information to the associated second node, so that the second blockchain network performs consensus verification on the transaction indicated by the transaction information based on the first encrypted information; an anonymous message generation module, which is used to generate an anonymous transaction verification message for the transaction information using a second predetermined encryption algorithm; and an anonymous message broadcasting module, which is used to broadcast the anonymous transaction verification message to other first nodes in the first blockchain network except any first node, so as to perform transaction verification on the transaction indicated by the transaction information.
[0008] The fourth aspect of the present disclosure provides an information processing device based on blockchain, which is arranged in any second node in the second blockchain network, and the any second node is associated with a first node in the first blockchain network. The information processing device includes: a transaction information extraction module, which is used to extract the transaction information in the transaction initiation request in response to receiving the transaction initiation request; a transaction information sending module, which is used to send the transaction information to the associated first node; an encryption information receiving module, which is used to receive the first encrypted information sent by the associated first node, and the first encrypted information is obtained by encrypting the transaction information by a first predetermined encryption algorithm; a consensus message generation module, which is used to generate a consensus verification message based on the first encrypted information; and a consensus message broadcasting module, which is used to broadcast the consensus verification message to other second nodes in the second blockchain network except any second node, so as to perform consensus verification on the transaction indicated by the transaction information.
[0009] A fifth aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned blockchain-based information processing method.
[0010] The sixth aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned blockchain-based information processing method.
[0011] The seventh aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned blockchain-based information processing method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0013] Figure 1 The application scenario diagram of the information processing method, device, equipment, medium and product based on blockchain according to the embodiment of the present disclosure is schematically shown;
[0014] Figure 2 A flowchart of a blockchain-based information processing method according to an embodiment of the present disclosure is schematically shown;
[0015] Figure 3 A flowchart of a blockchain-based information processing method according to another embodiment of the present disclosure is schematically shown;
[0016] Figure 4 A schematic diagram showing a principle diagram of using a second predetermined encryption algorithm to generate an anonymous transaction verification message for transaction information according to an embodiment of the present disclosure;
[0017] Figure 5 A schematic diagram showing a principle diagram of using a zero-knowledge proof algorithm to generate zero-knowledge evidence information for transaction information according to an embodiment of the present disclosure;
[0018] Figure 6 The schematic diagram shows a principle diagram of transaction verification performed by the first blockchain network according to an embodiment of the present disclosure;
[0019] Figure 7 A diagram schematically shows a key relationship architecture for encrypting transaction information according to an embodiment of the present disclosure;
[0020] Figure 8 A schematic diagram showing a structural architecture of any first node in a first blockchain network according to an embodiment of the present disclosure is shown;
[0021] Fig. 9 A schematic diagram showing a principle diagram of data interaction between a first blockchain network and a second blockchain network during a transaction according to an embodiment of the present disclosure;
[0022] Fig.10 A functional structure diagram of any first node in the first blockchain network according to an embodiment of the present disclosure is schematically shown;
[0023] Fig.11 The structure block diagram of the information processing device based on blockchain according to an embodiment of the present disclosure is schematically shown;
[0024] Fig.12 A block diagram schematically shows a structure of a blockchain-based information processing device according to another embodiment of the present disclosure; and
[0025] Fig.13 A block diagram of an electronic device suitable for implementing a blockchain-based information processing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0028] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0029] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0030] The embodiment of the present disclosure provides an information processing method based on blockchain, which is executed by any first node in the first blockchain network, and any first node is associated with at least one second node in the second blockchain network. The information processing method includes an encryption process, an information sending process, a message generation process, and a message broadcasting process. In the encryption process, any first node obtains the transaction information sent by the associated second node, and encrypts the transaction information using a first predetermined encryption algorithm to obtain the first encrypted information. In the information sending process, any first node sends the first encrypted information to the associated first node, so that the second blockchain network performs consensus verification on the transaction indicated by the transaction information based on the first encrypted information. In the message generation process, any first node uses the second predetermined encryption algorithm to generate an anonymous transaction verification message for the transaction information. In the message broadcasting process, any first node broadcasts an anonymous transaction verification message to other first nodes in the first blockchain network to perform transaction verification on the transaction indicated by the transaction information.
[0031] The following will be combined Figure 1 The application scenarios of the method and device provided by the present disclosure are described.
[0032] Figure 1 The application scenario diagram of the blockchain-based information processing method, apparatus, device, medium and product according to an embodiment of the present disclosure is schematically shown.
[0033] like Figure 1 As shown, the application scenario 100 of this embodiment may include one or more servers 111-113, a first blockchain network 120 and a second blockchain network 130.
[0034] A plurality of first nodes 121-123 are provided in the first blockchain network 120, and a plurality of second nodes 131-133 are provided in the second blockchain network 130. A second node uniquely corresponds to a first node, and a first node can uniquely correspond to the first second node or to a plurality of second nodes. Each of the one or more servers 111-113 can be communicatively connected with one or more second nodes in the second blockchain network 130 to initiate a transaction request to the one or more second nodes that are communicatively connected. The plurality of first nodes 121-123 are communicatively connected with each other to realize transaction verification of the transaction request. The plurality of second nodes 131-133 are communicatively connected with each other to realize consensus verification of the transaction request. The first node is communicatively connected with the corresponding second node to realize information transmission.
[0035] Exemplarily, the server may be a server resource owned by an institution or organization participating in a blockchain transaction. The server may call the interface service provided by the application layer of the second node in the second blockchain network during docking with the second blockchain network, and initiate a transaction request to the second node in the second blockchain network 130. Calling the interface service may be achieved, for example, by calling a RESTful API or a software development kit (SDK) provided by the second node. In the actual deployment and application process, depending on the different forms of the blockchain, the second node in the second blockchain network may also play the role of a server, that is, the second node calls the interface service provided by the second blockchain network application in which it is located.
[0036] Exemplarily, the second node in the second blockchain network mainly refers to the node participating in the consensus, i.e., the consensus node. The consensus node can fully participate in the transaction process, which generally includes receiving transaction requests, executing transactions, broadcasting transactions, transaction consensus, verifying transactions, and putting transactions on the chain. In this embodiment, the second node is mainly responsible for receiving and executing transaction requests, broadcasting transaction requests in the second blockchain network, and performing consensus verification on transaction requests broadcast by other second nodes to determine whether the transaction is the same transaction, and encapsulating the verified transaction information as a block and adding it to the blockchain.
[0037] Exemplarily, usually, the first node in the first blockchain network corresponds to the second node one-to-one. In the process of the second node in the second blockchain network responding to the transaction request to conduct a transaction, the corresponding first node can provide the second node with data privacy protection capabilities and privacy data verification capabilities on the one hand, and on the other hand, can save the relevant data on the second node chain in a specific way, so that when the second node is abnormal and recovers, the data can be restored through the data saved in the first node. For example, the first node can perform transaction propagation and consensus verification operations in the anonymous transaction process, and provide the corresponding second node with the result of the transaction verification. Each second node in the second blockchain network can perform anonymous transactions in the same way as performing ordinary transactions.
[0038] In one embodiment, if Figure 1 As described above, the application scenario 100 may also be provided with a firewall 140 and a router 150. When the server initiates a transaction request, the transaction request may first be filtered by the firewall 140 for whitelisting, and then be load balanced by the router 150 after passing the filtering, so as to be routed to any second node in the second blockchain network 130. The any second node is used to respond to and process the transaction request.
[0039] In one embodiment, if Figure 1 As shown, the application scenario 100 may also be provided with a database server 160 for storing data, and the database server 160 may include one or more servers (for example, including server 161 and server 162). The first node and the second node may, for example, access the database server 160 through a network. For example, the first node and the second node may, for example, archive the data on the chain in the database server 160 after processing a new transaction or periodically. By providing the database server 160, the integrity and availability of the data may be ensured, the consumption of the disks in the first node and the second node may be reduced, and the utilization rate of the disk resources may be improved.
[0040] It should be noted that the information processing method based on blockchain provided by the present disclosure may be partially executed by the first node in the first blockchain network and partially executed by the second node in the second blockchain network. Accordingly, the information processing device based on blockchain provided by the present disclosure may be partially set in the first node in the first blockchain network and partially set in the second node in the second blockchain network.
[0041] Understandably, Figure 1The number and type of servers 111-113, the first blockchain network 120, the second blockchain network 130, the firewall 140, the router 150, and the database server 160 described are only examples to facilitate understanding of the present disclosure. According to actual needs, there may be any number and type of servers 111-113, the first blockchain network 120, the second blockchain network 130, the firewall 140, the router 150, and the database server 160.
[0042] The following will be based on Figure 1 The scene described by Figure 2 A blockchain-based information processing method executed by a first node in a first blockchain network according to a disclosed embodiment is described in detail.
[0043] Figure 2 The flowchart of the blockchain-based information processing method according to an embodiment of the present disclosure is schematically shown.
[0044] like Figure 2 As shown, the information processing method 200 based on blockchain of this embodiment may include operations S210 to S250. The information processing method 200 may be performed by, for example, any first node in the first blockchain network, and the any first node is associated with at least one second node in the second blockchain network.
[0045] In operation S210, transaction information sent by an associated second node is received.
[0046] The transaction information can be extracted from the received transaction request by the associated second node according to the agreement with the first node. The received transaction information can include, for example, the identification information of the transaction initiator and the transaction recipient, the transaction resource amount and other privacy data that needs to be protected in the transaction request. The received transaction information is, for example, in plain text, so that the first node can store the privacy data locally, so that the second node can recover the data based on the data stored by the first node after an exception occurs and the exception is recovered.
[0047] In one embodiment, the associated second node may send the transaction information through the SDK provided by any of the first nodes. For example, any of the first nodes may be provided with a software development kit SDK, and the associated second node communicates with the any of the first nodes by calling the SDK to send the transaction information to the any of the first nodes.
[0048] In operation S220, the transaction information is encrypted using a first predetermined encryption algorithm to obtain first encrypted information.
[0049] Exemplarily, the first predetermined encryption algorithm may be, for example, a hash algorithm or a homomorphic encryption algorithm, so as to ensure that the first encrypted information obtained by encryption is not easy to be cracked, thereby ensuring the security of the transaction information. When the first predetermined encryption algorithm is a hash algorithm, the first encrypted information obtained is a hash field. When the first predetermined encryption algorithm is a homomorphic encryption algorithm, the first encrypted information obtained is ciphertext data.
[0050] Exemplarily, when the transaction information is in plain text and includes more information, this embodiment may first extract information of a specific field from the transaction information and encrypt the information of the specific field.
[0051] In one embodiment, after receiving the transaction information, for example, information of a specific field in the plain text may be extracted, and the information of the specific field may be packaged into information of a predetermined data structure for storage and caching.
[0052] In one embodiment, the first predetermined encryption algorithm can be implemented based on the national secret algorithm, for example. For example, when the first predetermined encryption algorithm is a homomorphic encryption algorithm, a combination of the SM2 algorithm (elliptic curve public key cryptographic algorithm issued by the State Cryptography Administration on December 17, 2010) and the ElGamal algorithm can be used. Among them, the ElGamal algorithm is an asymmetric encryption algorithm based on the Diffie-Hellman key exchange. When the first predetermined encryption algorithm is a hash algorithm, the SM3 algorithm (a cryptographic hash function standard issued by the State Cryptography Administration on December 17, 2010) can be used. By implementing the first predetermined encryption algorithm based on the national secret algorithm, the uncontrollable security factors of the cryptographic algorithm can be avoided, thereby improving the operational stability of the information processing method provided by the present disclosure.
[0053] In operation S230, the first encrypted information is sent to the associated second node so that the second blockchain network performs consensus verification on the transaction indicated by the transaction information based on the first encrypted information.
[0054] According to an embodiment of the present disclosure, after receiving the first encrypted information, the associated second node may, for example, use the first encrypted information as message information in a consensus verification message, and broadcast the consensus verification message to other second nodes in the second blockchain system for consensus verification. Any first node may return the encrypted hash field or ciphertext data to the associated second node in a responsive manner, for example, via an SDK. Consensus verification can be used to verify the uniformity of a transaction, and through the consensus verification, it can be determined whether the transaction indicated by the transaction information is a duplicate transaction or whether the consensus verification has timed out, etc.
[0055] In one embodiment, while sending the hash field or ciphertext data to the associated second node, any first node may also store the hash field or ciphertext data in its own account book.
[0056] In operation S240, an anonymous transaction verification message for the transaction information is generated using a second predetermined encryption algorithm.
[0057] According to an embodiment of the present disclosure, the second predetermined encryption algorithm may include, for example, a homomorphic encryption algorithm or a zero-knowledge proof algorithm, etc. It is understandable that the present disclosure does not limit the second predetermined encryption algorithm, as long as the identity information of the transaction parties in the transaction information can be hidden after being processed by the second predetermined encryption algorithm.
[0058] Exemplarily, if the second predetermined encryption algorithm is a homomorphic encryption algorithm, the anonymous transaction verification message may include ciphertext data generated after being processed by the homomorphic encryption algorithm. If the second predetermined encryption algorithm is a zero-knowledge proof algorithm, the anonymous transaction verification message may include a transaction proof generated by the zero-knowledge proof algorithm.
[0059] In operation S250, an anonymous transaction verification message is broadcast to other first nodes in the first blockchain network except any first node to perform transaction verification on the transaction indicated by the transaction information.
[0060] After generating the anonymous transaction verification message, the transaction verification message can be broadcast to other first nodes in the first blockchain network. After receiving the anonymous transaction verification message, other first nodes can verify the transaction indicated by the transaction information to verify whether the transaction parties are reasonable, whether the transaction is illegal, etc. After passing the transaction verification, the second node corresponding to the transaction parties in the second blockchain network can process the transaction according to the transaction information and complete the transaction.
[0061] According to the embodiments of the present disclosure, when verifying the transaction indicated by the transaction information, for example, a predetermined consensus mechanism can be used to implement it. During the consensus mechanism verification process, it can be determined whether the transaction is correct based on the ciphertext data or transaction proof encapsulated in the anonymous transaction verification message. In this way, during the transaction verification process, the verification can be completed without decrypting the ciphertext data and the transaction proof, thereby avoiding the disclosure of the transaction information and ensuring the privacy protection of the transaction information.
[0062] The disclosed embodiment can protect the privacy of identity information of both parties to the transaction by using the first node associated with the second node to generate an anonymous transaction verification message and perform transaction verification. Furthermore, the associated first node encrypts the transaction information and returns it to the second node, so that the second node does not need to provide plaintext data to other nodes when performing consensus verification, thereby protecting the privacy of transaction information. Therefore, the method of the disclosed embodiment can achieve dual protection of identity privacy and data privacy on the chain.
[0063] According to an embodiment of the present disclosure, any first node may be provided with a software development kit, for example. In the process of communication between a similar first node and an associated second node, the second node in the second blockchain network may communicate with the associated first node by calling a software development kit. By providing a software development kit for communication, high aggregation and low coupling between the first blockchain network and the second blockchain network may be achieved, and compared with the technical solution of setting privacy protection logic in the second node as a consensus node, the intrusiveness of the privacy protection logic to the first blockchain network may be reduced. In one embodiment, the first node in the first blockchain system may also be constructed, for example, using a microservice architecture to achieve pluggable settings of the privacy protection logic in the first node and flexible deployment of the privacy protection logic.
[0064] According to an embodiment of the present disclosure, after the transaction verification is passed, the blockchain-based information processing method 200 can, for example, send verification pass information to the associated second node, so that the associated second node can encapsulate the first transaction information as a block and store it on the blockchain, that is, perform a chain operation on the transaction information.
[0065] Exemplarily, when sending the verification pass information, the first node may actively send it. Alternatively, the associated second node may initiate an anonymous transaction verification request, and then any first node sends the verification pass information in response to the transaction verification request.
[0066] The following will be combined Figure 1 ,pass Figure 3 A blockchain-based information processing method performed by the second node in the second blockchain network is described in detail.
[0067] Figure 3 The figure schematically shows a flowchart of a blockchain-based information processing method according to another embodiment of the present disclosure.
[0068] like Figure 3As shown, the information processing method 300 based on blockchain of this embodiment may include operations S310 to S350. The information processing method 300 may be performed, for example, by any second node in the second blockchain network, and the any second node is associated with a first node in the first blockchain network.
[0069] In operation S310 , in response to receiving a transaction initiation request, transaction information in the transaction initiation request is extracted.
[0070] According to an embodiment of the present disclosure, a transaction initiation request may be initiated by any institution or organization participating in a blockchain transaction via its own server resources and sent to any second node that communicates with its own server resources. The transaction initiation request may be, for example, a transfer request, a foreign exchange request, etc.
[0071] According to an embodiment of the present disclosure, after receiving a transaction initiation request, the plaintext data in the transaction initiation request can be parsed and identified, and transaction information can be extracted from a predetermined location. The transaction information may include, for example, identification information of the transaction initiator and the transaction recipient, transaction resource volume, and other privacy data that needs to be protected in the transaction request. The transaction information can be set according to the functions provided by the first blockchain network, and the present disclosure does not limit this.
[0072] In operation S320, the transaction information is sent to the associated first node. The second node may upload the transaction information by calling the SDK provided by the associated first node to send the transaction information to the first node.
[0073] In operation S330, first encrypted information sent by the associated first node is received, the first encrypted information being obtained by encrypting the transaction information using a first predetermined encryption algorithm. The first encrypted information is obtained by encrypting the transaction information using the first predetermined encryption algorithm described above, and will not be described in detail here.
[0074] In operation S340, a consensus verification message is generated based on the first encrypted information.
[0075] In operation S350, a consensus verification message is broadcast to other second nodes in the second blockchain network except any second node to perform consensus verification on the transaction indicated by the transaction information.
[0076] According to an embodiment of the present disclosure, after receiving the first encrypted information, the first encrypted information and other information in the transaction initiation request except the transaction information can be encapsulated to obtain a consensus verification message. After obtaining the consensus verification message, the consensus verification message can be broadcast to a specific second node or to the second nodes of the entire network in the second blockchain network according to the consensus mechanism configured by the second blockchain network.
[0077] After the other second nodes receive the consensus verification message, they can extract the first encrypted information in the consensus verification message for consensus based on the configured consensus mechanism to determine whether the transaction is a duplicate transaction or whether the transaction has timed out.
[0078] It can be understood that the above-mentioned method of generating a consensus verification message, broadcasting a consensus verification message and reaching a consensus may adopt any method in the relevant technology, and the present disclosure does not limit this.
[0079] According to an embodiment of the present disclosure, after passing the consensus verification, the blockchain-based information processing method executed by the second node may, for example, also send an anonymous transaction verification request to the associated first node, so that the associated second node can verify the transaction, confirm whether the transaction parties are reasonable, whether the transaction is an illegal transaction, etc. Accordingly, after receiving the anonymous transaction verification request, the associated first node can first determine whether the anonymous transaction verification message has been generated using the method described above, and complete the transaction verification. If the transaction verification is completed, a verification pass message is sent to the second node. Similarly, after the other second nodes in the second blockchain network complete the consensus verification, an anonymous transaction verification request is also sent to the associated first node. After the first node associated with the other second nodes completes the transaction verification, a verification pass message is sent to the other second nodes.
[0080] Exemplarily, in response to receiving the verification pass information, any second node may package the first encrypted information received above into a block and store it on the blockchain. After receiving the verification pass information, other second nodes may package the first encrypted information in the received consensus verification message into a block and store it on the local blockchain.
[0081] The disclosed embodiment enables each second node to only perform consensus verification, and the associated first node completes the transaction verification, thereby reducing the intrusiveness to the second nodes while ensuring that there is no need to upload the plaintext to the chain.
[0082] Figure 4 The schematic diagram shows a principle diagram of using a second predetermined encryption algorithm to generate an anonymous transaction verification message for transaction information according to an embodiment of the present disclosure.
[0083] According to the embodiment of the present disclosure, when generating an anonymous transaction verification message, the embodiment 400 can encrypt according to the private key in the temporary key pair, and add the public key summarized by the temporary key pair to the anonymous transaction verification message. In this way, the risk of data such as the identity information of the two parties to the transaction encrypted in the anonymous transaction verification message existing in the fixed key pair being cracked by other first nodes is avoided.
[0084] For example, Figure 4As shown, this embodiment can first use a random number generation mechanism to generate a temporary key pair 410. Then, based on the private key (i.e., temporary private key 411) in the temporary key pair 410 and the unique public key 420, an encryption key 430 is generated using elliptic curve cryptography. The unique public key can be, for example, a public key in a key pair unique to the first node corresponding to the transaction sender, and the unique key pair is private information relative to other first nodes. An integrated encryption scheme (Elliptic CurveIntegrate Encrypt Scheme, ECIES) can generate an encryption key 430 and a MAC key based on the unique public key 420 and the temporary private key. The encryption key 430 is used to encrypt the transaction information 440 as plain text to obtain the second encrypted information 450. The first node corresponding to the transaction recipient can decrypt the second encrypted information 450 according to the unique private key after the transaction verification is passed, so as to complete the transaction. In order to ensure the privacy of the transaction, when the encryption key 430 encrypts the transaction information, at least the transaction sensitive information such as the amount of resources of the transaction needs to be encrypted.
[0085] Exemplarily, when generating an anonymous transaction verification message, the second predetermined encryption algorithm 460 may be used to encrypt the transaction information to obtain third encrypted information 470. The third encrypted information 470 may be used as a basis for transaction verification. When the second predetermined encryption algorithm 460 is used to encrypt the transaction information, for example, all the transaction information may be encrypted, or part of the transaction information may be encrypted according to a predetermined rule, and the part of the information may include, for example, identity information of both parties to the transaction.
[0086] Exemplarily, after obtaining the second encrypted information 450 and the third encrypted information 470, the second encrypted information 450, the third encrypted information 470 and the public key in the temporary key pair 410 (i.e., the temporary public key 412) can be encapsulated into a message to obtain an anonymous transaction verification message 480. In this way, after other first nodes receive the anonymous transaction verification message, the transaction verification can be performed according to the third encrypted information 470. After the first node corresponding to the transaction recipient determines that the transaction verification is passed, the second encrypted information 450 can be decrypted according to the temporary public key 412 and the unique private key in the anonymous transaction verification message, thereby obtaining sensitive information such as the amount of resources of the transaction.
[0087] According to an embodiment of the present disclosure, when generating a temporary key pair, for example, an asymmetric key algorithm in a national cryptographic algorithm may be used to generate a temporary key pair. This avoids the uncontrollable security and privacy of the cryptographic algorithm. For example, SM2 may be used to generate a temporary key pair.
[0088] According to an embodiment of the present disclosure, the first node can, for example, build an independent key system based on national encryption algorithms SM2, SM3, etc., and in combination with ECIES, etc. The key system can ensure that the key is random during use, thereby hiding the identity information of the two parties to the transaction in the transaction information.
[0089] According to an embodiment of the present disclosure, after a MAC key is generated, for example, a tag of the second encrypted information may be generated using the MAC key, and the second encrypted information may be signed according to the tag.
[0090] According to an embodiment of the present disclosure, the second predetermined algorithm may include, for example, a homomorphic encryption algorithm. The homomorphic encryption algorithm may, for example, support homomorphic addition. The amount of resources in the transaction (e.g., the amount of the check) and the amount of resources corresponding to the transaction mark (e.g., the amount corresponding to the check mark) may be homomorphically encrypted using a homomorphic encryption algorithm. In this way, after the other first nodes receive the anonymous transaction verification message, for example, the amount of the check in the third encrypted information and the amount corresponding to the check mark may be compared. If the two are consistent, the transaction is determined to be correct and the transaction verification is completed.
[0091] In one embodiment, the second predetermined algorithm can be implemented based on a national encryption algorithm, for example. For example, the homomorphic encryption algorithm can be implemented based on the SM2 algorithm and the ElGamal algorithm can be applied to avoid the uncontrollable security factors of the cryptographic algorithm.
[0092] In one embodiment, the resource hash value and resource tag hash value of the transaction indicated by the transaction information may be encrypted simultaneously. The encrypted third encrypted information includes the resource hash value and resource tag hash value of the transaction indicated by the transaction information, so that other first nodes can compare the resource hash value with the global resource hash value list and compare the resource tag hash value with the global resource tag hash value, thereby completing the transaction verification.
[0093] According to an embodiment of the present disclosure, the second predetermined algorithm may include, for example, a zero-knowledge proof algorithm. Figure 5 The principle of using zero-knowledge proof algorithm to encrypt transaction information is described.
[0094] Figure 5 The schematic diagram shows a principle diagram of using a zero-knowledge proof algorithm to generate zero-knowledge evidence information for transaction information according to an embodiment of the present disclosure.
[0095] like Figure 5As shown, when the zero-knowledge proof algorithm is used to encrypt transaction information, the operation process 500 may include the operation S501 of verifying logic, the operation S502 of equivalent conversion, and the operation S503 of generating parameters. Finally, the generated problem to be proved can be used as the zero-knowledge evidence information as the third encrypted information, and added to the anonymous transaction verification message to be sent to the whole network, completing the operation S504 of generating the transaction and the operation S505 of the whole network verification. Among them, the zero-knowledge proof algorithm can be implemented based on the zero-knowledge succinct non-interactive argument of knowledge (zk-SNARK) technology, for example.
[0096] First, in operation S501, the problem to be proved in verifying the existence of the transaction can be decomposed into logical verification steps, and these steps can be decomposed into arithmetic circuits composed of addition, subtraction, multiplication and division. Then in operation S502, the arithmetic circuit is first converted into a first-order constraint system (R1CS), which is a mathematical conversion process, so the conversion is equivalent. Then R1CS is converted into a polynomial, thereby converting the problem to be proved into a quadratic assignment problem (QAP).
[0097] After the QAP is obtained through conversion, in operation S503, the resource hash value and resource tag hash value of the transaction indicated by the transaction information can be generated according to the transaction information. Specifically, a hash algorithm can be used to calculate the hash value of the resource amount in the transaction information, and the hash value of the resource tag that uniquely corresponds to the resource amount in the transaction information. Subsequently, the resource hash value and the resource tag hash value are used as inputs to generate a transaction proof (i.e., zero-knowledge evidence information), and the transaction proof is generated using techniques such as homomorphic hiding and knowledge of coefficient assumption (KCA). The generated transaction proof is the third encrypted information. By adding the third encrypted information to the message encapsulated with the temporary public key and the second encrypted information, an anonymous transaction verification message can be obtained for broadcasting, so that the first node of the entire network or a specific first node in the first blockchain network verifies the transaction.
[0098] Through the above method, since the zero-knowledge proof algorithm is used to generate a transaction proof by taking the transaction information (such as resources and resource tags) as input, it is convenient for other first nodes to complete the verification of the legality of the transaction without disclosing the specific transaction details and transaction party information.
[0099] According to the embodiments of the present disclosure, when the other first nodes are verification nodes, the transaction legitimacy verification can be performed based on the third transaction information in the received anonymous transaction verification message. When the other first nodes are nodes corresponding to the transaction recipient, for example, the second encrypted information needs to be decrypted after the transaction verification is completed, and the plain text information of the transaction is obtained to process the transaction.
[0100] The following will be combined Figure 6 The working principle of each first node in the first blockchain network when performing transaction verification is described in detail.
[0101] Figure 6 The schematic diagram shows a principle diagram of transaction verification performed by the first blockchain network according to an embodiment of the present disclosure.
[0102] like Figure 6 As shown, any of the first nodes corresponding to the transaction initiator can use the Figure 4 The described process generates an anonymous transaction verification message. The detailed description is as follows.
[0103] In operation S601, the first node corresponding to the transaction initiator first obtains the temporary key pair tempsk / temppk, and uses the transfer key ptk 601 and the temporary private key tempsk 602 to generate a symmetric key enc 603 for encrypting the transmission message using an integrated encryption scheme.
[0104] In operation S602, the first node corresponding to the transaction initiator can use the key enc 603 to encrypt the plaintext information (plain 604), use the encrypted second encrypted information (encrypted 605) as the specific field of the message to be transmitted, and put the temporary public key temppk 606 and the hash value (hash 607) of the plaintext information into the message to be transmitted at the same time to obtain an anonymous transaction verification message. After signing the anonymous transaction verification message, the first node corresponding to the transaction initiator can broadcast the signed anonymous transaction verification message to other first nodes in the first blockchain network. Among them, after broadcasting the anonymous transaction verification message, the first node corresponding to the transaction initiator can send a unique private key itk 608 in a unique key pair to the first node corresponding to the transaction recipient.
[0105] In operation S603, after receiving the anonymous transaction verification message, the first node corresponding to the transaction verifier and the first node corresponding to the transaction receiver can extract the hash value (hash 607) of the plaintext information from the anonymous transaction verification message and perform consensus verification based on the hash.
[0106] In operation S604, for the first node corresponding to the recipient, in addition to verifying the transaction, the temporary public key temppk 606 can also be extracted from the anonymous transaction verification message. Then, based on the received unique private key itk 608 and the temporary public key temppk 606, the encryption key enc 603 described above is generated using an integrated encryption scheme.
[0107] In operation S605, after obtaining the encryption key enc 603, the first node corresponding to the recipient can decrypt the second encrypted information (encrypted 605) in the anonymous transaction verification message to obtain the plain text information (plain 604) to complete the transaction according to the plain text information. After obtaining the plain text information, the decrypted plain text information can also be deserialized and the information obtained by the deserialization process can be stored locally.
[0108] The following will be combined Figure 7 The logical relationship between the keys used in the first predetermined algorithm and the second predetermined algorithm described above is described.
[0109] Figure 7 A diagram schematically shows a key relationship architecture for encrypting transaction information according to an embodiment of the present disclosure.
[0110] like Figure 7 As shown, the unique private key itk used in the above description can be derived from apk and nk using the HMAC mechanism. Among them, HMAC is a mechanism that uses hash functions in cryptography to perform message authentication. The message authentication it can provide includes message integrity authentication and source identity authentication. apk is the public key of auk mapped to the elliptic curve corresponding to SM2, auk is the key derived from uk through the SM3 algorithm, and uk is the transaction key corresponding to the transaction indicated by the transaction information. nk is the key derived from nfk through the SM3 algorithm, which is used to generate resource tags. nfk is the key derived from uk through the SM3 algorithm.
[0111] like Figure 7 As shown, the temporary public key temppk and the temporary private key tempsk can be randomly generated by the random number generation source rand. The encryption key enc can be generated by the temporary public key temppk and the unique private key itk, or by the temporary private key tempsk and the unique public key ptk. The unique public key ptk is the key used for online confidential transaction transmission. When generating the encryption key enc, a shared key can be generated based on the unique public key ptk and the temporary private key tempsk, and then the encryption key is generated using the SM4 algorithm (a packet data algorithm for wireless LAN standards recognized by the National Cryptography Bureau) to encrypt the transaction information.
[0112] In order to protect the user's identity information, for example, an asymmetric public key addrPub can be used to encrypt the account information in the identity information of both parties to the transaction. addrKey is an asymmetric private key paired with addrPub. The asymmetric public key addrPub can be used to generate a user account address (i.e., encrypted information obtained by encrypting the account information).
[0113] In order to sign the transaction, the embodiment of the present disclosure may also provide a temporary signature key signKey, and also provide a key signPub paired with signKey for verifying the transaction signature.
[0114] The following will be combined Figure 8 The structure of the first node is described to facilitate a better understanding of the principle of transaction verification performed by the first node.
[0115] Figure 8 The structural architecture diagram of any first node in the first blockchain network according to an embodiment of the present disclosure is schematically shown.
[0116] like Figure 8 As shown, in this embodiment, any first node 800 in the first blockchain network can be provided with an interface layer 810, a data storage layer 820, a core algorithm layer 830 and a cryptographic algorithm layer 840.
[0117] The interface layer 810 involves the application of the GRPC protocol and the HTTP / HTTPS protocol. The interface layer 810 is responsible for receiving the transaction initiation request sent by the server corresponding to the transaction participant, processing the received request message, and assembling the message to be transmitted.
[0118] The data storage layer 820 supports three types of database architectures: rocksdb, sqlite, and mysql, for storing transaction information, on-chain data, first encrypted information, etc. In one embodiment, the data storage layer can maintain the account information of the node, the user routing address of the entire network, the hash list of unconsumed resources of the entire network, and the hash list of resource tags of the entire network. Among them, the user routing address mainly retains the virtual IP address of all users in the network, and the virtual IP address can be generated using the asymmetric public key addrPub described above to facilitate the broadcast of transaction verification messages, etc. The hash list of unconsumed resources of the entire network and the hash list of resource tags of the entire network can be used as the basis for transaction verification.
[0119] The core algorithm layer 830 integrates ECIES, zk-SNARK and ElGamal algorithms to provide functions such as homomorphic encryption, zero-knowledge proof and plaintext encryption.
[0120] The cryptographic algorithm layer 840 mainly integrates public key encryption algorithms based on elliptic curve mathematics (ECC), SHA256, SM2, SM3, SM4 and other algorithms to provide encryption algorithms for the core algorithm layer.
[0121] The following will be combined Figure 8 structure, through Fig. 9 The interaction between a first node and an associated second node in a transaction process is described, thereby providing a comprehensive understanding of the transaction process.
[0122] Fig. 9 The schematic diagram shows a principle diagram of data interaction between the first blockchain network and the second blockchain network during a transaction process according to an embodiment of the present disclosure.
[0123] like Fig. 9 As shown, the transaction process generally includes transaction generation, transaction propagation, transaction consensus, transaction verification and transaction on-chain. The second node in the second blockchain network is provided with a smart contract layer and an information verification layer, and maintains a global ledger.
[0124] During the transaction process, the second node may first receive a transaction initiation request. Before executing the anonymous transaction, the second node may perform operation S901 to send the required transaction information to the first node according to the SDK provided by the associated first node. For example, the transaction information in the received transaction initiation request may be assembled and sent to the interface layer of the first node in plain text.
[0125] After receiving the transaction information, the first node can perform operation S902 to assemble the fields in the plaintext transaction information into data of the data structure specified by the first node and then store or cache it. Then, operation S903 is performed to hash the assembled data to obtain a hash value, or to encrypt it using a homomorphic encryption algorithm to obtain encrypted ciphertext data. Then, the obtained hash value or ciphertext data is returned to the second node via the interface layer as the first encrypted information.
[0126] After receiving the hash value or ciphertext data, the second node executes operation S904, puts the hash value or ciphertext data into the request message to be broadcasted for consensus, and sends a consensus verification message to a specific second node or all second nodes in the second blockchain network according to the configured consensus mechanism for consensus verification.
[0127] After sending the hash value or ciphertext data, the first node performs operation S905, and uses the method described above to generate an anonymous transaction verification message, which generally includes ciphertext data generated after homomorphic encryption algorithm processing or transaction proof generated by zero-knowledge proof algorithm. The generated anonymous transaction verification message is then broadcast to other first nodes.
[0128] After the other second nodes receive the consensus verification message, they can extract the hash value or ciphertext data from the consensus verification message and execute operation S906 to send the hash value or ciphertext data to the associated first node via the SDK provided by the associated first node to initiate an anonymous transaction verification request to the associated first node.
[0129] After receiving the anonymous transaction verification request sent by the associated second node, the first node can first check whether the anonymous transaction verification message has been received and complete the transaction verification. If the transaction verification has been completed and passed, operation S907 is executed to send the verification pass information to the associated second node. If the transaction verification has not been completed, operation S907 will be executed after the transaction verification is completed.
[0130] After the second node receives the verification pass information, it can perform operation S908 to upload the obtained hash value or ciphertext data to the chain and store it in the chain account book.
[0131] The following will be combined Fig.10 The architecture of each functional module in the first node in the first blockchain network is described in detail.
[0132] Fig.10 The functional structure diagram of any first node in the first blockchain network according to an embodiment of the present disclosure is schematically shown.
[0133] like Fig.10 As shown, the first node 1000 may include, for example, a general module 1010 , an identity information protection module 1020 , and a data privacy protection module 1030 .
[0134] The general module 1010 includes a key system submodule 1011 , a data storage submodule 1012 and a signature verification submodule 1013 .
[0135] The key system submodule 1011 is mainly used to derive a key used in the transaction process based on a unique private key and a temporary key generated by the SM2 algorithm using ECIES. The key may be, for example, the encryption key described above.
[0136] The data storage submodule 1012 is used to maintain the account information of the nodes described above, the user routing addresses of the entire network, the hash list of unconsumed resources of the entire network, and the hash list of resource tags of the entire network. The data storage submodule 1012 can serve as the data storage layer described above.
[0137] The signature verification submodule 1013 is used to perform transaction signature on the anonymous transaction verification message. In each transaction process, the key used for transaction signature can be, for example, a temporarily generated key, which is not persisted.
[0138] The identity information protection module 1020 includes an account submodule 1021 and an anonymous transaction submodule 1022 .
[0139] The account submodule 1021 is used to realize the conversion of transaction information in the account / balance mode and transaction information in the UTXO (Unspent Transaction Output) mode, mainly in two scenarios. In the scenario of transmitting transaction information, the account submodule 1021 is used to convert the transaction information in the account / balance mode into the transaction information represented by the UTXO mode, and store the transaction information in the UTXO mode in the data storage submodule. In the scenario where the participant queries the account information, the account submodule 1021 can be used to convert the transaction information represented by the UTXO mode into the transaction information of the account / balance mode, and at the same time summarize the historical transaction information of the account and feed back the summary information to the participant in plain text.
[0140] The anonymous transaction submodule 1022 is used to hide the identity information of both parties to the transaction during the transaction process. For example, the anonymous transaction submodule 1022 can use the key system submodule 1011 to randomly generate a key pair during each transaction, and then sign the transaction, so that the fixed public key will not be exposed, thereby hiding the identity information of the transaction initiator. The anonymous transaction submodule 1022 can encrypt the transaction and retain the resource hash value and resource tag hash value generated by the transaction. Through a specific algorithm, only the recipient can decrypt and receive the resource information generated in the transaction in its entirety. Other nodes will only receive the hash value in the message and cannot decrypt the transaction information. In the consensus verification process, only the resource hash value and resource tag hash value will participate in the consensus, thereby hiding the identity information of the transaction recipient. In addition, a random number mechanism is added to the key system to ensure that the account corresponding to the resource is different during each transaction, thereby further hiding the information of the transaction recipient.
[0141] The data privacy protection module 1030 includes a homomorphic encryption submodule 1031 , a zero-knowledge proof submodule 1032 and a data encryption submodule 1033 .
[0142] The homomorphic encryption submodule 1031 is a component that provides homomorphic encryption function in the transaction process. The homomorphic encryption submodule 1031 supports homomorphic addition, mainly based on the SM2 algorithm, and applies the ElGamal algorithm for homomorphic encryption. The homomorphic encryption submodule 1031 can be used in the transaction verification process. The first node corresponding to the transaction initiator homomorphically encrypts the specific resource amount and the resource amount in the resource tag, and the first node corresponding to the transaction verifier verifies whether the specific resource amount and the resource amount in the resource tag are consistent, thereby determining the correctness of the transaction.
[0143] The zero-knowledge proof submodule 1032 is a core algorithm component for providing transaction proof. The zero-knowledge proof submodule 1032 enables the transaction initiator to convince the verifier that the current transaction is legal without providing any useful information to the verifier.
[0144] The data encryption submodule 1033 encrypts and transmits the transaction based on the key and encryption algorithm provided by the key system submodule 1011, and sends a specific decryption key to the first node corresponding to the transaction recipient. After reaching a consensus on the transaction, the first node corresponding to the transaction recipient uses the decryption key to decrypt the transaction information and updates the data in its local data storage submodule.
[0145] Through the architecture of the first node and the interaction between the first node and the second node, the present disclosure can make the transaction information aggregated in the whole transaction process and transmitted and stored in ciphertext, and by adopting technical means such as homomorphic encryption and zero-knowledge proof, it can achieve privacy protection of identity information. Furthermore, the present disclosure can avoid the uncontrollable security factors of the cryptographic algorithm by combining the national secret algorithm to build a cryptographic system. Finally, the first node can independently complete the transaction conversion, anonymous key pair generation, and transaction data encryption and decryption during the operation of the blockchain by adopting a one-to-one distributed deployment scheme with the second node. The second node only needs to exchange data through the corresponding SDK, so the intrusiveness of the first node to the second node can be reduced, and flexible access to the anonymous transaction function can be achieved.
[0146] Fig.11 The structural block diagram of a blockchain-based information processing device according to an embodiment of the present disclosure is schematically shown.
[0147] like Fig.11As shown, the information processing device 1100 based on blockchain of this embodiment can be set in any first node in the first blockchain network. Any first node is associated with at least one second node in the second blockchain network. The information processing device 1100 based on blockchain can include a transaction information acquisition module 1110, a first encryption module 1120, an encrypted information sending module 1130, an anonymous message generation module 1140 and an anonymous message broadcasting module 1150.
[0148] The transaction information acquisition module 1110 is used to acquire the transaction information sent by the associated second node. In one embodiment, the transaction information acquisition module 1110 can be used to perform the operation S210 described above, which will not be described in detail here.
[0149] The first encryption module 1120 is used to encrypt the transaction information using a first predetermined encryption algorithm to obtain first encrypted information. In one embodiment, the first encryption module 1120 can be used to perform the operation S220 described above, which will not be described in detail here.
[0150] The encrypted information sending module 1130 is used to send the first encrypted information to the associated second node, so that the second blockchain network performs consensus verification on the transaction indicated by the transaction information based on the first encrypted information. In one embodiment, the encrypted information sending module 1130 can be used to perform the operation S230 described above, which will not be repeated here.
[0151] The anonymous message generation module 1140 is used to generate an anonymous transaction verification message for the transaction information using a second predetermined encryption algorithm. In one embodiment, the anonymous message generation module 1140 can be used to perform the operation S240 described above, which will not be described in detail here.
[0152] The anonymous message broadcast module 1150 is used to broadcast anonymous transaction verification messages to other first nodes in the first blockchain network except any first node to verify the transaction indicated by the transaction information. In one embodiment, the anonymous message broadcast module 1150 can be used to perform the operation S250 described above, which will not be repeated here.
[0153] According to an embodiment of the present disclosure, the above-mentioned blockchain-based information processing device 1100 may also include a verification information sending module, which is used to send verification pass information to the associated second node in response to receiving an anonymous transaction verification request sent by the associated second node when it is determined that the verification is passed.
[0154] According to an embodiment of the present disclosure, the anonymous message generation module 1140 may include, for example, a key generation submodule, a first encryption submodule, a second encryption submodule, and a message generation submodule. The key generation submodule is used to generate an encryption key using an integrated encryption scheme based on a private key and a unique public key in a temporary key pair. The first encryption submodule is used to encrypt transaction information using an encryption key to obtain second encrypted information. The second encryption submodule is used to encrypt transaction information using a second predetermined encryption algorithm to obtain third encrypted information. The message generation submodule is used to obtain an anonymous transaction verification message for the transaction information based on the second encrypted information, the third encrypted information, and the public key in the temporary key pair.
[0155] According to an embodiment of the present disclosure, the second encryption submodule can be specifically used to generate third encrypted information for transaction information using a homomorphic encryption algorithm.
[0156] According to an embodiment of the present disclosure, the second encryption submodule may include, for example, a hash value generation unit and an evidence information generation unit. The hash value generation unit is used to generate a resource hash value and a resource tag hash value of the transaction indicated by the transaction information according to the transaction information. The evidence information generation unit is used to generate zero-knowledge evidence information for the transaction information based on the resource hash value and the resource tag hash value using a zero-knowledge proof algorithm.
[0157] According to an embodiment of the present disclosure, the above-mentioned blockchain-based information processing device 1100 may also include a private key sending module, for example, for sending a unique private key to a first node in the first blockchain network that is associated with a second node in the second blockchain network that receives the transaction, so as to decrypt the second encrypted information, wherein the unique private key is a private key paired with a unique public key.
[0158] According to an embodiment of the present disclosure, the above-mentioned blockchain-based information processing device 1100 may also include, for example, a private key receiving module, a key generation module and a decryption module. The private key receiving module is used to receive a unique private key sent by other first nodes in the first blockchain network except any first node. The key generation module is used to generate an encryption key using an integrated encryption scheme based on the unique private key and the public key in the received anonymous transaction verification message. The decryption module is used to decrypt the second encrypted information using the encryption key to complete the transaction according to the decrypted transaction information.
[0159] According to an embodiment of the present disclosure, the temporary key pair is generated using an asymmetric key algorithm in the national encryption algorithm.
[0160] According to an embodiment of the present disclosure, any of the above-mentioned first nodes is provided with a software development kit, and the second node in the second blockchain network communicates with the associated first node by calling the software development kit.
[0161] According to an embodiment of the present disclosure, the first predetermined encryption algorithm and the second predetermined encryption algorithm are implemented based on the national encryption algorithm.
[0162] Fig.12 The structural block diagram of a blockchain-based information processing device according to another embodiment of the present disclosure is schematically shown.
[0163] like Fig.12 As shown, the information processing device 1200 based on blockchain of this embodiment can be set in any second node in the second blockchain network. Any second node is associated with a first node in the first blockchain network. The information processing device 1200 based on blockchain may include a transaction information extraction module 1210, a transaction information sending module 1220, an encrypted information receiving module 1230, a consensus message generation module 1240 and a consensus message broadcasting module 1250.
[0164] The transaction information extraction module 1210 is used to extract the transaction information in the transaction initiation request in response to receiving the transaction initiation request. In one embodiment, the transaction information extraction module 1210 can be used to perform the operation S310 described above, which will not be described in detail here.
[0165] The transaction information sending module 1220 is used to send the transaction information to the associated first node. In one embodiment, the transaction information sending module 1220 can be used to perform the operation S320 described above, which will not be described in detail here.
[0166] The encrypted information receiving module 1230 is used to receive the first encrypted information sent by the associated first node, where the first encrypted information is obtained by encrypting the transaction information using a first predetermined encryption algorithm. In one embodiment, the encrypted information receiving module 1230 can be used to perform the operation S330 described above, which will not be described in detail here.
[0167] The consensus message generation module 1240 is used to generate a consensus verification message based on the first encrypted information. In one embodiment, the consensus message generation module 1240 can be used to perform the operation S340 described above, which will not be described in detail here.
[0168] The consensus message broadcast module 1250 is used to broadcast the consensus verification message to other second nodes in the second blockchain network except any second node, so as to perform consensus verification on the transaction indicated by the transaction information. In one embodiment, the consensus message broadcast module 1250 can be used to perform the operation S350 described above, which will not be repeated here.
[0169] According to an embodiment of the present disclosure, the above-mentioned blockchain-based information processing device 1200 may further include a verification request sending module and an information packaging module. The verification request sending module is used to send an anonymous transaction verification request to the associated first node. The information packaging module is used to package the first encrypted information into a block and store it on the blockchain in response to receiving the verification pass information sent by the associated first node in response to the anonymous transaction verification request.
[0170] According to an embodiment of the present disclosure, any multiple of the transaction information acquisition module 1110, the first encryption module 1120, the encrypted information sending module 1130, the anonymous message generation module 1140, and the anonymous message broadcasting module 1150, or any multiple of the transaction information extraction module 1210, the transaction information sending module 1220, the encrypted information receiving module 1230, the consensus message generation module 1240, and the consensus message broadcasting module 1250 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the transaction information acquisition module 1110, the first encryption module 1120, the encrypted information sending module 1130, the anonymous message generation module 1140 and the anonymous message broadcasting module 1150, or at least one of the transaction information extraction module 1210, the transaction information sending module 1220, the encrypted information receiving module 1230, the consensus message generation module 1240 and the consensus message broadcasting module 1250 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging circuits, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the transaction information acquisition module 1110, the first encryption module 1120, the encrypted information sending module 1130, the anonymous message generation module 1140 and the anonymous message broadcasting module 1150, or at least one of the transaction information extraction module 1210, the transaction information sending module 1220, the encrypted information receiving module 1230, the consensus message generation module 1240 and the consensus message broadcasting module 1250 can be at least partially implemented as a computer program module, which can execute corresponding functions when the computer program module is executed.
[0171] Fig.13 A block diagram of an electronic device suitable for implementing a blockchain-based information processing method according to an embodiment of the present disclosure is schematically shown.
[0172] like Fig.13 As shown, the electronic device 1300 according to an embodiment of the present disclosure includes a processor 1301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage part 1308 into a random access memory (RAM) 1303. The processor 1301 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1301 may also include an onboard memory for caching purposes. The processor 1301 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0173] In RAM 1303, various programs and data required for the operation of electronic device 1300 are stored. Processor 1301, ROM 1302 and RAM 1303 are connected to each other through bus 1304. Processor 1301 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1302 and / or RAM 1303. It should be noted that the program can also be stored in one or more memories other than ROM 1302 and RAM 1303. Processor 1301 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0174] According to an embodiment of the present disclosure, the electronic device 1300 may further include an input / output (I / O) interface 1305, which is also connected to the bus 1304. The electronic device 1300 may further include one or more of the following components connected to the I / O interface 1305: an input portion 1306 including a keyboard, a mouse, etc.; an output portion 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1308 including a hard disk, etc.; and a communication portion 1309 including a network interface card such as a LAN card, a modem, etc. The communication portion 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed, so that a computer program read therefrom is installed into the storage portion 1308 as needed.
[0175] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0176] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 1302 and / or RAM 1303 described above and / or one or more memories other than ROM 1302 and RAM 1303.
[0177] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiment of the present disclosure.
[0178] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 1301. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0179] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1309, and / or installed from the removable medium 1311. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0180] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1309, and / or installed from the removable medium 1311. When the computer program is executed by the processor 1301, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.
[0181] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0182] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should be noted that in some implementations as replacements, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0183] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0184] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A blockchain-based information processing method, wherein: The method is performed by any first node in a first blockchain network, wherein any first node is associated with at least one second node in a second blockchain network; the method includes: receiving transaction information sent by an associated second node; Encrypting the transaction information using a first predetermined encryption algorithm to obtain first encrypted information; Sending the first encrypted information to the associated second node, so that the second blockchain network performs consensus verification on the transaction indicated by the transaction information based on the first encrypted information; generating an anonymous transaction verification message for the transaction information using a second predetermined encryption algorithm; and Broadcast the anonymous transaction verification message to other first nodes in the first blockchain network except any one of the first nodes to perform transaction verification on the transaction indicated by the transaction information.
2. The method according to claim 1, further comprising, upon determining that the transaction verification is successful: In response to receiving the anonymous transaction verification request sent by the associated second node, verification pass information is sent to the associated second node.
3. The method according to claim 1, wherein: The step of using a second predetermined encryption algorithm to generate an anonymous transaction verification message for the transaction information includes: Generate an encryption key using an integrated encryption scheme based on the private key and the unique public key in the temporary key pair; Encrypting the transaction information using the encryption key to obtain second encrypted information; encrypting the transaction information using the second predetermined encryption algorithm to obtain third encrypted information; and An anonymous transaction verification message for the transaction information is obtained according to the second encrypted information, the third encrypted information and the public key in the temporary key pair.
4. The method according to claim 3, wherein: The step of encrypting the transaction information by using the second predetermined encryption algorithm to obtain third encrypted information comprises: A homomorphic encryption algorithm is used to generate third encrypted information for the transaction information.
5. The method according to claim 3, wherein: Using the second predetermined encryption algorithm to encrypt the transaction information includes: According to the transaction information, generating a resource hash value and a resource tag hash value of the transaction indicated by the transaction information; and Based on the resource hash value and the resource tag hash value, a zero-knowledge proof algorithm is used to generate zero-knowledge evidence information for the transaction information.
6. The method according to claim 3, further comprising: Sending a unique private key to a first node in the first blockchain network that is associated with a second node in the second blockchain network that receives the transaction, to decrypt the second encrypted information, The unique private key is a private key paired with the unique public key.
7. The method according to claim 6, further comprising: Receiving a unique private key sent by other first nodes in the first blockchain network except any one of the first nodes; Generate the encryption key using the integrated encryption scheme according to the unique private key and the public key in the received anonymous transaction verification message; as well as The second encrypted information is decrypted using the encryption key to complete the transaction according to the decrypted transaction information.
8. The method according to claim 3, wherein: The temporary key pair is generated using an asymmetric key algorithm in the national encryption algorithm.
9. The method according to claim 1, wherein: Any of the first nodes is provided with a software development kit, and the second node in the second blockchain network communicates with the associated first node by calling the software development kit.
10. The method according to claim 1, wherein: The first predetermined encryption algorithm and the second predetermined encryption algorithm are implemented based on the national encryption algorithm.
11. A method for information processing based on blockchain, wherein: The information processing method is performed by any second node in the second blockchain network, and the any second node is associated with a first node in the first blockchain network; the method includes: In response to receiving a transaction initiation request, extracting transaction information in the transaction initiation request; Sending the transaction information to the associated first node; Receiving first encrypted information sent by the associated first node, where the first encrypted information is obtained by encrypting the transaction information using a first predetermined encryption algorithm; Generate a consensus verification message based on the first encrypted information; and Broadcast the consensus verification message to other second nodes in the second blockchain network except any one of the second nodes to perform consensus verification on the transaction indicated by the transaction information.
12. The method according to claim 11, further comprising, when the consensus verification passes: sending an anonymous transaction verification request to the associated first node; In response to receiving the verification pass information sent by the associated first node in response to the anonymous transaction verification request, the first encrypted information is packaged into a block and stored on the blockchain.
13. An information processing device based on blockchain, wherein: The information processing device is arranged at any first node in the first blockchain network, and the any first node is associated with at least one second node in the second blockchain network; the device comprises: A transaction information acquisition module, used to acquire transaction information sent by the associated second node; A first encryption module, used to encrypt the transaction information using a first predetermined encryption algorithm to obtain first encrypted information; An encrypted information sending module, used to send the first encrypted information to the associated second node, so that the second blockchain network performs consensus verification on the transaction indicated by the transaction information based on the first encrypted information; an anonymous message generation module, configured to generate an anonymous transaction verification message for the transaction information by using a second predetermined encryption algorithm; and An anonymous message broadcasting module is used to broadcast the anonymous transaction verification message to other first nodes in the first blockchain network except any one of the first nodes, so as to verify the transaction indicated by the transaction information.
14. An information processing device based on blockchain, wherein: The information processing device is arranged at any second node in the second blockchain network, and the any second node is associated with a first node in the first blockchain network; the device comprises: A transaction information extraction module, configured to extract transaction information from a transaction initiation request in response to receiving the transaction initiation request; A transaction information sending module, used to send the transaction information to the associated first node; An encrypted information receiving module, used to receive first encrypted information sent by the associated first node, where the first encrypted information is obtained by encrypting the transaction information using a first predetermined encryption algorithm; A consensus message generation module, configured to generate a consensus verification message based on the first encrypted information; and A consensus message broadcasting module is used to broadcast the consensus verification message to other second nodes in the second blockchain network except any second node, so as to perform consensus verification on the transaction indicated by the transaction information.
15. An electronic device, 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 execute the method according to any one of claims 1 to 10 and / or the method according to any one of claims 11 to 12.
16. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 10 and / or the method according to any one of claims 11 to 12.
17. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 10 and / or the method according to any one of claims 11 to 12 is implemented.
