Transaction privacy protection method and device, storage medium and computer equipment
By using the key derivation function to generate multiple transaction addresses in blockchain transactions, the problem of privacy leakage caused by multiple transactions with the same address in the blockchain is solved and the privacy of transactions is improved.
Patent Information
- Application Number
- CN202310376588.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-04-10
AI Technical Summary
In blockchain financial transactions based on the UTXO model, multiple transactions with the same address can easily lead to the leakage of private information, and existing technology cannot effectively solve this problem.
The transaction recipient generates the second public key according to the preset derivation rules and the first public key, and sends the derivation certificate between the first public key and the second public key to the transaction initiator, using the key derivation function and random number Generate multiple transaction addresses that can be used to ensure that each transaction uses a different address to protect transaction privacy.
It provides multiple available transaction addresses for blockchain transactions, improves the privacy of transactions, and avoids privacy leaks caused by multiple uses of the same address.
Smart Images

Figure CN118780790A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain, and in particular to a transaction privacy protection method, device, storage medium and computer equipment. Background Art
[0002] In the blockchain financial transaction process based on the UTXO model, the public key can be used as the transaction address (receiving account). However, if both parties always use a fixed address, since the transaction records will be synchronized on the blockchain, all relevant nodes on the blockchain can receive the transaction records. When the number of transaction records continues to accumulate, the characteristics and information of the relevant transactions can be analyzed through big data and other methods, which will lead to the leakage of privacy information such as transaction identity.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a transaction privacy protection method, apparatus, storage medium and computer equipment to at least solve the technical problem that multiple transactions with the same address in the blockchain can easily lead to privacy leakage.
[0005] According to one aspect of an embodiment of the present invention, a transaction privacy protection method is provided, including: broadcasting a first public key in a first key pair; generating a second public key according to a preset derivation rule and the first public key; sending a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; completing a target transaction with the transaction initiator based on the first public key and the second public key, wherein an account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0006] Optionally, generating the second public key according to a preset derivation rule and the first public key includes: when the derivation rule is to derive a key using a key derivation function, obtaining a first random number; and processing the first public key based on the key derivation function and the first random number to generate the second public key.
[0007] Optionally, completing the target transaction with the transaction initiator based on the first public key and the second public key includes: processing the second public key based on the key derivation function and the first random number to generate a third public key; sending a second derivation certificate between the first public key and the third public key and the third public key to the transaction initiator, wherein the second derivation certificate is used to prove that the third public key is generated based on the first public key and the derivation rule; completing the target transaction with the transaction initiator based on the first public key, the second public key and the third public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the third public key.
[0008] Optionally, the above method also includes: confirming a second random number; processing the second public key based on the key derivation function and the second random number to generate a fourth public key; sending a third derivation certificate between the first public key and the fourth public key and the fourth public key to the transaction initiator, wherein the third derivation certificate is used to prove that the fourth public key is generated based on the first public key and the derivation rule; completing the target transaction with the transaction initiator based on the first public key, the second public key and the fourth public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the fourth public key.
[0009] Optionally, confirming the second random number includes at least one of the following methods: generating the second random number based on a random number algorithm, wherein the second random number is different from the first random number; or receiving the second random number sent by a transaction supervisor.
[0010] Optionally, obtaining the first random number includes: receiving the first random number sent by the transaction supervisor in an off-chain manner.
[0011] Optionally, completing the target transaction with the transaction initiator based on the first public key and the second public key includes: obtaining the first private key in the first key pair; receiving a transaction information message of the target transaction sent by the transaction initiator, wherein the transaction information message includes that the transaction initiator uses the first public key or the second public key as the account address corresponding to the target transaction; when it is determined according to the transaction information message that the transaction initiator uses the first public key as the account address corresponding to the target transaction, using the first private key to verify the target transaction; when it is determined according to the transaction information that the transaction initiator uses the second public key as the account address corresponding to the target transaction, processing the first private key based on the key derivation function and the first random number to generate a second private key, wherein the second public key and the second private key are a second key pair; and using the second private key to verify the target transaction.
[0012] Optionally, the sending of the first derivation proof between the first public key and the second public key to the transaction initiator includes: generating a random number ciphertext and a zero-knowledge evidence based on the derivation relationship between the first public key and the second public key, wherein the random number ciphertext and the zero-knowledge evidence are used to prove the existence of the first random number, and the second public key is generated according to the key derivation function, the first random number and the first public key, and the first derivation proof includes the zero-knowledge evidence and the random number ciphertext; and sending the first derivation proof to the transaction initiator.
[0013] Optionally, the sending of the first derived proof between the first public key and the second public key to the transaction initiator includes: obtaining the first private key in the first key pair; encrypting the second public key with the first private key to obtain an address verification ciphertext, wherein the first derived proof includes the address verification ciphertext; and sending the address verification ciphertext to the transaction initiator.
[0014] Optionally, completing the target transaction with the transaction initiator based on the first public key and the second public key includes: sending a public key judgment condition to the transaction initiator; and the transaction initiator determines, based on the public key judgment condition, to use a target public key between the first public key and the second public key to complete the target transaction.
[0015] Optionally, after completing the target transaction, the above method also includes: obtaining transaction information corresponding to the target transaction; sending the transaction information together with the derivation rules, the first derivation certificate and the first public key to the transaction regulator, so that the transaction regulator can verify the legitimacy of the target transaction.
[0016] According to another aspect of an embodiment of the present invention, a transaction privacy protection method is also provided, including: receiving a first public key in a first key pair broadcast by a transaction recipient; receiving a first derivation certificate between the first public key and the second public key and the second public key sent by the transaction recipient; based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule; completing a target transaction with the transaction recipient based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0017] Optionally, the determining, based on the first derivation certificate, that the second public key is generated based on the first public key and a preset derivation rule includes: when the derivation rule is to derive a key using a key derivation function, determining, based on the first derivation certificate, that the second public key is generated after processing the first public key based on the key derivation function and a first random number.
[0018] Optionally, completing the target transaction with the transaction recipient based on the first public key and the second public key includes: receiving a second derivation certificate between the first public key and a third public key and the third public key sent by the transaction recipient, wherein the third public key is generated by processing the second public key based on the key derivation function and the first random number; based on the second derivation certificate, determining that the third public key is generated by processing the second public key based on the key derivation function and the first random number; completing the target transaction with the transaction recipient based on the first public key, the second public key and the third public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the third public key.
[0019] Optionally, the above method also includes: receiving a third derivation certificate between the first public key and the fourth public key and the fourth public key sent by the transaction recipient, wherein the fourth public key is generated by the transaction recipient by processing the second public key based on the key derivation function and the second random number; based on the third derivation certificate, determining that the fourth public key is generated by processing the second public key based on the key derivation function and the second random number; completing the target transaction with the transaction recipient based on the first public key, the second public key and the fourth public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the fourth public key.
[0020] Optionally, completing the target transaction with the transaction recipient based on the first public key and the second public key includes: generating a transaction information message of the target transaction, wherein the transaction information message includes using a target public key among the first public key and the second public key as an account address corresponding to the target transaction; encrypting the transaction information message using the target public key to obtain an encrypted message; and sending the encrypted message to the transaction recipient.
[0021] Optionally, the receiving a first derivation proof between a first public key and a second public key sent by the transaction recipient and the second public key includes: receiving a random number ciphertext and a zero-knowledge evidence sent by the transaction recipient, wherein the first derivation proof includes the zero-knowledge evidence and the random number ciphertext, the random number ciphertext and the zero-knowledge evidence are used to prove the existence of the first random number, and the second public key is generated according to the key derivation function, the first random number and the first public key.
[0022] Optionally, receiving a first derived proof between a first public key and a second public key sent by the transaction recipient and the second public key includes: receiving an address verification ciphertext and the second public key sent by the transaction recipient, wherein the first derived proof includes the address verification ciphertext.
[0023] Optionally, based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule includes: using the first public key to decrypt the address verification ciphertext, and if the decryption is successful, determining that the second public key is generated based on the first public key and the derivation rule.
[0024] Optionally, completing the target transaction with the transaction initiator based on the first public key and the second public key includes: receiving a public key judgment condition sent by the transaction recipient; and determining, based on the public key judgment condition, to use a target public key between the first public key and the second public key to complete the target transaction.
[0025] According to another aspect of an embodiment of the present invention, a transaction privacy protection method is also provided, including: a transaction recipient broadcasts a first public key in a first key pair; the transaction recipient generates a second public key according to a preset derivation rule and the first public key; the transaction recipient sends a first derivation certificate between the first public key and the second public key and the second public key to a transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; the transaction initiator determines, based on the first derivation certificate, that the second public key is generated based on the first public key and the derivation rule; the transaction initiator and the transaction recipient complete the target transaction based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0026] According to another aspect of an embodiment of the present invention, a transaction privacy protection device is also provided, including: a first broadcast module, used to broadcast a first public key in a first key pair; a first generation module, used to generate a second public key according to a preset derivation rule and the first public key; a first sending module, used to send a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; a first transaction module, used to complete a target transaction with the transaction initiator based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0027] According to another aspect of an embodiment of the present invention, a transaction privacy protection device is also provided, including: a first receiving module, used to receive a first public key in a first key pair broadcast by a transaction recipient; a second receiving module, used to receive a first derivation certificate between the first public key and the second public key and the second public key sent by the transaction recipient; a first determination module, used to determine, based on the first derivation certificate, that the second public key is generated based on the first public key and a preset derivation rule; a second transaction module, used to complete a target transaction with the transaction recipient based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0028] According to another aspect of an embodiment of the present invention, a transaction privacy protection device is also provided, including: a second broadcast module, used by a transaction recipient to broadcast the first public key in a first key pair; a second generation module, used by the transaction recipient to generate a second public key according to a preset derivation rule and the first public key; a second sending module, used by the transaction recipient to send a first derivation certificate between the first public key and the second public key and the second public key to a transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; a second determination module, used by the transaction initiator to determine that the second public key is generated based on the first public key and the derivation rule based on the first derivation certificate; a third transaction module, used by the transaction initiator and the transaction recipient to complete a target transaction based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0029] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is further provided, wherein the non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the transaction privacy protection methods described above.
[0030] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising a processor, wherein the processor is used to run a program, wherein the program executes any one of the transaction privacy protection methods described above when running.
[0031] In an embodiment of the present invention, a transaction recipient derives a new public key based on an old public key, and the transaction recipient generates a second public key according to a preset derivation rule and the first public key. The second public key and the first derivation certificate are then sent to the transaction initiator, and the first derivation certificate is used to endorse the second public key. Then, the transaction initiator and the transaction recipient can conduct the target transaction based on the first public key and the second public key, thereby achieving the purpose of providing multiple available transaction addresses for the target transaction in the blockchain, thereby realizing the technical effect of improving the privacy of transactions in the blockchain, and further solving the technical problem that multiple transactions with the same address in the blockchain are prone to privacy leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0033] Figure 1 A hardware structure block diagram of a computer terminal for implementing a transaction privacy protection method is shown;
[0034] Figure 2 is a flowchart of a transaction privacy protection method 1 provided according to an embodiment of the present invention;
[0035] Figure 3 is a flow chart of a second transaction privacy protection method provided according to an embodiment of the present invention;
[0036] Figure 4 is a flowchart of a third transaction privacy protection method provided according to an embodiment of the present invention;
[0037] Figure 5 is a structural block diagram of a transaction privacy protection device 1 provided according to an embodiment of the present invention;
[0038] Figure 6 is a structural block diagram of a second transaction privacy protection device provided according to an embodiment of the present invention;
[0039] Figure 7 is a structural block diagram of a transaction privacy protection device 3 provided according to an embodiment of the present invention;
[0040] Figure 8 is a target transaction application scenario architecture diagram provided according to an optional embodiment of the present invention;
[0041] Fig. 9 is a timing diagram of a target transaction provided according to an optional embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0044] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretations:
[0045] UTXO, or Unspent Transaction Output (UTXO), is an account accounting model that only records the transaction itself but not the results of the transaction.
[0046] A key derivation function (Key Derivation Function). The key derivation function in the scheme can process the old public key and the old private key in the old key pair based on the random number and the algorithm, respectively, to generate a new public key and a new private key respectively, and the new public key and the new private key can still constitute a key pair.
[0047] Zero Knowledge Proofs (ZKPs) are a method where one party cryptographically proves to another that they possess knowledge about a piece of information without revealing the actual underlying information. The prover convinces the verifier that a specific statement about a data point is true without revealing any other information about the data. ZKPs can be interactive (the prover convinces a specific verifier, but this process needs to be repeated for each individual verifier) or non-interactive, where the prover generates a proof that anyone can verify using the same proof.
[0048] According to an embodiment of the present invention, an embodiment of a transaction privacy protection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0049] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal for implementing a transaction privacy protection method is shown. Figure 1 As shown, the computer terminal 10 may include one or more processors (processors 102a, 102b, ..., 102n are used as examples in the figure) (the processors may include but are not limited to processing devices such as microprocessors MCU or programmable logic devices FPGA), and a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply, and / or a camera. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0050] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0051] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the transaction privacy protection method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the transaction privacy protection method of the above-mentioned application. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0052] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0053] In the blockchain financial transaction process based on the UTXO model, the transaction can use the public key as the transaction address (for example, the payment account). However, if both parties always use a fixed address, since the transaction records will be synchronized on the blockchain, the relevant nodes on the blockchain can receive the transaction records. When the number of transaction records continues to accumulate, the characteristics and information of the relevant transactions can be analyzed through big data and other methods, resulting in the leakage of privacy information such as transaction identity. Therefore, this application proposes a transaction address generation scheme that can regenerate the payment address for both parties to the transaction. Since a new address can be generated, the transaction records generated by multiple transactions between the two parties cannot form a link relationship, thereby ensuring the identity privacy in each transaction.
[0054] This application is a blockchain-based financial transaction identity privacy protection solution under the UTXO model. The roles in this solution may include the blockchain system, the business initiator financial institution, the business recipient financial institution, and relevant financial regulatory agencies (such as the business initiator monetary authority, the business recipient monetary authority, etc.). The business initiator financial institution, the business recipient financial institution, and the relevant financial regulatory agencies are all blockchain roles and can access the blockchain in the form of nodes.
[0055] Figure 2 1 is a flow chart of a transaction privacy protection method according to an embodiment of the present invention. The method can be applied to the transaction recipient, that is, the business recipient node in the blockchain. Figure 2 As shown, the method comprises the following steps:
[0056] Step S201: broadcast a first public key in a first key pair.
[0057] In this step, the transaction recipient can broadcast his first public key to the chain. The first public key can be used as the fixed transaction account address of the transaction recipient, and any transaction initiator can obtain the first public key.
[0058] Step S202: Generate a second public key according to a preset derivation rule and the first public key.
[0059] In this step, the transaction recipient can generate a second public key according to a preset derivation rule, which is used to derive a new key based on the old key. The specific derivation rule can be kept confidential from the transaction initiator. The second public key can be used as the new transaction account address of the transaction recipient.
[0060] Step S203, sending a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule.
[0061] In this step, the transaction initiator is the financial party that wants to conduct a target transaction with the transaction recipient. For example, the transaction initiator wants to initiate a transfer to the transaction recipient. Since the transaction initiator does not know the key derivation rule of the transaction recipient, in order to avoid an attacker sending a wrong public key to the transaction initiator as a transfer address, the transaction recipient can send a first derivation certificate to the transaction initiator, and use the first derivation certificate to prove that the second public key received by the transaction initiator is indeed derived by the transaction recipient according to the preset derivation rule, that is, the second public key is generated by the transaction recipient.
[0062] Step S204, completing the target transaction with the transaction initiator based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0063] The transaction initiator can confirm that the second public key is a legitimate transaction account address generated by the transaction recipient by verifying the first derived proof. Therefore, the transaction initiator now has at least two legitimate transaction account addresses of the transaction recipients, namely the first public key and the second public key. Therefore, this embodiment supports both parties to the transaction to use the first public key and / or the second public key to conduct the target transaction, avoiding the problem of privacy leakage of both parties to the transaction due to the use of the same account address for each transaction.
[0064] Through the above steps, the transaction recipient derives a new public key based on the old public key, and the transaction recipient generates a second public key according to the preset derivation rule and the first public key, and then sends the second public key and the first derivation certificate to the transaction initiator, and the first derivation certificate is used to endorse the second public key. Then, the transaction initiator and the transaction recipient can conduct the target transaction based on the first public key and the second public key, thereby achieving the purpose of providing multiple available transaction addresses for the target transaction in the blockchain, thereby achieving the technical effect of improving the privacy of transactions in the blockchain, and further solving the technical problem that multiple transactions with the same address in the blockchain are prone to privacy leakage.
[0065] As an optional embodiment, the second public key can be generated according to a preset derivation rule and a first public key in the following manner: when the derivation rule is to derive a key using a key derivation function, a first random number is obtained; the first public key is processed based on the key derivation function and the first random number to generate a second public key.
[0066] It should be noted that the key derivation function in the scheme can process the old public key and the old private key in the old key pair based on the random number and the algorithm, respectively, and generate a new public key and a new private key respectively, and the new public key and the new private key can still constitute a key pair, and the key derivation function can be applied to the key based on the RSA algorithm. Therefore, when the transaction recipient obtains the first random number and knows the first public key, the key derivation function can be used to process the first public key and the first private key respectively to obtain the second public key and the second private key, wherein the second public key can be used as the transaction account address, and the second private key can be used as the password of the account address and kept by the transaction recipient himself.
[0067] As an optional embodiment, completing the target transaction with the transaction initiator based on the first public key and the second public key may include the following steps: processing the second public key based on a key derivation function and a first random number to generate a third public key; sending a second derivation certificate between the first public key and the third public key and the third public key to the transaction initiator, wherein the second derivation certificate is used to prove that the third public key is generated based on the first public key and the derivation rule; completing the target transaction with the transaction initiator based on the first public key, the second public key and the third public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the third public key.
[0068] By adopting the method of this optional embodiment, multiple transaction account addresses can be created in the transaction recipient, and the multiple transaction account addresses can be provided to the transaction initiator, providing better transaction concealment. Without changing the random number, the first public key is used to derive the second public key by using the key derivation function of the first random number, and then the second public key is used to derive the third public key by using the key derivation function of the first random number. The above process can also be repeated to continuously derive public keys to form a nested key group. The advantage of this method is that it can reduce the selection of random numbers, and only one random number is needed to generate multiple keys. In addition, the third private key can be generated in the same way. The third private key and the third public key are the third key pair, and the third private key can be used as the account password of the third public key.
[0069] As an optional embodiment, the second random number can also be confirmed; the second public key is processed based on the key derivation function and the second random number to generate a fourth public key; a third derivation certificate between the first public key and the fourth public key and the fourth public key are sent to the transaction initiator, wherein the third derivation certificate is used to prove that the fourth public key is generated based on the first public key and the derivation rule; the target transaction is completed with the transaction initiator based on the first public key, the second public key and the fourth public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the fourth public key.
[0070] By adopting the method of this optional embodiment, multiple transaction account addresses can be created in the transaction recipient, and the multiple transaction account addresses can be provided to the transaction initiator, providing better transaction concealment. By changing the random number, a more secure and reliable transaction account address can be provided for the transaction. Even if the first random number is leaked, the fourth public key can be used as the transaction account address to complete the target transaction without compromising the security of the transaction.
[0071] As an optional embodiment, the second random number may be confirmed in at least one of the following ways: generating a second random number based on a random number algorithm, wherein the second random number is different from the first random number; or receiving a second random number sent by a transaction supervisor.
[0072] As an optional embodiment, the process of obtaining the first random number may be to receive the first random number sent by the transaction supervisor in an off-chain manner.
[0073] Optionally, the first random number can be generated by the transaction recipient itself, or it can be given to the transaction recipient by the transaction regulator in an off-chain manner. The off-chain method is safer and can avoid the risk of transaction caused by accidental data leakage when the first random number is transmitted on the blockchain. In addition, the transaction regulator can supervise the target transaction by providing the transaction recipient with a random number.
[0074] Specifically, the transaction supervisor can grasp the key derivation function adopted by any transaction recipient and the first random number assigned to the transaction recipient. After the two transaction parties complete the target transaction, either party can upload the information of the target transaction to the transaction supervisor for supervision. The transaction supervisor, as a node in the blockchain, can obtain the first public key when the transaction recipient broadcasts it, and then calculate the second public key based on its own records of the key derivation function adopted by the transaction recipient and the first random number, and then compare it with the second public key recorded in the target transaction information uploaded by the two transaction parties. If the two are consistent, it indicates that the transaction is legal. If the two are inconsistent, it indicates that there is a risk in the transaction. At this time, a risk alarm can be issued to prompt the transaction supervisor to intervene in the investigation.
[0075] As an optional embodiment, sending a first derivative proof between a first public key and a second public key to a transaction initiator may include the following steps: generating a random number ciphertext and a zero-knowledge evidence based on a derivative relationship between the first public key and the second public key, wherein the random number ciphertext and the zero-knowledge evidence are used to prove the existence of a first random number, and the second public key is generated according to a key derivation function, the first random number and the first public key, and the first derivative proof includes the zero-knowledge evidence and the random number ciphertext; and sending the first derivative proof to the transaction initiator.
[0076] In this optional embodiment, in order to prove the legitimacy of the second public key to the transaction initiator, that is, to prove that the second public key is derived by the transaction recipient based on the first public key, the transaction recipient can use zero-knowledge proof to prove it. By using zero-knowledge proof, the derivation relationship between the first public key and the second public key can be proved to the transaction initiator, and at the same time, any information related to the first random number and the key derivation function adopted by the transaction recipient can be not transmitted to the transaction initiator, thereby achieving the technical effect of achieving the purpose of proof while avoiding privacy leakage and transaction risks.
[0077] As an optional implementation, the above zero-knowledge proof can adopt the following process:
[0078] The transaction recipient selects a random number R B For a random number r of the same bit length, calculate
[0079] Generate a non-interactive zero-knowledge proof ZKP-Proof B-1 , the statement of the zero-knowledge evidence is Pk B-1 and c, witness R B and r, where Pk B-1 Represents the second public key, whose public statement and private witness satisfy the following relationship:
[0080]
[0081] Among them, RandPk(Pk B ,R B ) represents the first random number R B For the first public key Pk B The key derivation function is processed, and the operator ∧ represents the AND operation, and the operator represents an XOR operation. This relationship represents Pk B-1 =RandPk(Pk B ,R B ) is established and Established.
[0082] The transaction initiator receives the zero-knowledge proof ZKP-Proof corresponding to the second public key B-1 After verifying the zero-knowledge evidence, we get This equation holds, which proves that the transaction initiator has indeed selected a random number R B The first public key Pk B Transformed into the second public key Pk B-1 , and this random number R B The random number ciphertext is c, which ensures that the transaction recipient does have a first random number R B .
[0083] After that, the two parties initiate the target transaction, and the recipient of the transaction sends the second public key Pk B-1 And the corresponding zero-knowledge proof ZKP-Proof B-1 The ciphertext c is sent to the transaction initiator, who then verifies the zero-knowledge proof ZKP-Proof B-1 Run the verification algorithm of the non-interactive zero-knowledge proof. If the verification passes, it means that Pk B-1 and the ciphertext c does satisfy Confirm the second public key Pk B-1 and the first public key Pk B The derivative relationship between them.
[0084] As an optional embodiment, sending a first derived proof between a first public key and a second public key to a transaction initiator may include the following steps: obtaining a first private key in a first key pair; encrypting the second public key with the first private key to obtain an address verification ciphertext, wherein the first derived proof includes the address verification ciphertext; and sending the address verification ciphertext to the transaction initiator.
[0085] This optional embodiment provides a method of proving a derived relationship without using a key derivation function. Specifically, the transaction recipient can use the first private key paired with the first public key to encrypt or digitally sign the second public key to obtain an address verification ciphertext, and then send the address verification ciphertext to the transaction initiator. Since the transaction recipient has previously broadcast the first public key, the transaction initiator can use the first public key to verify the address verification ciphertext after receiving it. If the verification is successful, it means that the first verification ciphertext is indeed generated by the encryption of the first private key corresponding to the first public key, thus proving that the second public key is indeed from the transaction recipient, which plays a role in authenticating the source of the second public key.
[0086] As an optional embodiment, the target transaction can be completed with the transaction initiator based on the first public key and the second public key in the following manner: sending the public key judgment condition to the transaction initiator; the transaction initiator determines to use the target public key between the first public key and the second public key to complete the target transaction based on the public key judgment condition.
[0087] Optionally, the public key judgment condition may include some transaction feature judgment conditions, by comparing the transaction features of the target transaction with the transaction feature judgment conditions, it is determined whether the first public key or the second public key should be used as the transaction account address for this target transaction. Among them, the transaction features may include the transaction time, the identity level of the transaction object or the transaction amount, etc. The transaction parties can determine whether the first public key or the second public key is used for this transaction based on the time period of this transaction, the identity level of the transaction initiator or the amount of this transaction, which plays a role in changing the fixed address of the transaction and avoiding privacy leakage.
[0088] As an optional embodiment, completing the target transaction with the transaction initiator based on the first public key and the second public key may also include the following steps: obtaining the first private key in the first key pair; receiving a transaction information message of the target transaction sent by the transaction initiator, wherein the transaction information message includes that the transaction initiator uses the first public key or the second public key as the account address corresponding to the target transaction; when it is determined according to the transaction information message that the transaction initiator uses the first public key as the account address corresponding to the target transaction, using the first private key to verify the target transaction; when it is determined according to the transaction information that the transaction initiator uses the second public key as the account address corresponding to the target transaction, processing the first private key based on a key derivation function and a first random number to generate a second private key, wherein the second public key and the second private key form a second key pair; and using the second private key to verify the target transaction.
[0089] In this optional embodiment, the first private key and the first public key form a key pair, and the second private key and the second public key form a key pair. Therefore, the transaction recipient can use the corresponding private key to perform account verification based on the transaction account address selected by the transaction initiator to verify the completion status of the target transaction. After the verification is completed, it can be confirmed that the target transaction is officially completed.
[0090] As an optional embodiment, after completing the target transaction, the transaction information corresponding to the target transaction can also be obtained; the transaction information together with the derivation rules, the first derivation certificate and the first public key are sent to the transaction supervisor, so that the transaction supervisor can verify the legality of the target transaction. Optionally, the transaction supervisor can be a relevant financial regulatory agency.
[0091] Figure 3 1 is a flow chart of a second transaction privacy protection method according to an embodiment of the present invention, which can be applied to the transaction initiator on the blockchain. Figure 3 As shown, the method comprises the following steps:
[0092] Step S301: receiving a first public key in a first key pair broadcasted by a transaction recipient.
[0093] Step S302: receiving a first derivative certificate between the first public key and the second public key and the second public key sent by a transaction recipient.
[0094] Step S303: Based on the first derivation certificate, determine that the second public key is generated based on the first public key and a preset derivation rule.
[0095] In this step, the transaction initiator can determine through the first derivation certificate that the received second public key is a public key generated based on the first public key according to the preset derivation rule, and since only the transaction recipient knows the preset derivation rule, the second public key comes from the public key of the transaction recipient. Therefore, the transaction initiator can complete the target transaction with the transaction recipient by transferring money to the second public key.
[0096] Step S304, completing the target transaction with the transaction recipient based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0097] Through the above steps, the purpose of providing multiple available transaction addresses for the target transaction in the blockchain is achieved, thereby achieving the technical effect of improving the privacy of transactions in the blockchain, and further solving the technical problem that multiple transactions with the same address in the blockchain are prone to privacy leakage.
[0098] As an optional embodiment, based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule includes: when the derivation rule is to derive the key using a key derivation function, based on the first derivation certificate, determining that the second public key is generated after processing the first public key based on the key derivation function and a first random number.
[0099] As an optional embodiment, a second derivation certificate between a first public key and a third public key and a third public key sent by a transaction recipient are received, wherein the third public key is generated by processing the second public key based on a key derivation function and a first random number; based on the second derivation certificate, the third public key is determined to be generated by processing the second public key based on a key derivation function and a first random number; and a target transaction is completed with the transaction recipient based on the first public key, the second public key and the third public key, wherein an account address corresponding to the target transaction is determined based on the first public key, the second public key and the third public key.
[0100] As an optional embodiment, a third derivation certificate between a first public key and a fourth public key and a fourth public key sent by a transaction recipient are received, wherein the fourth public key is generated by the transaction recipient by processing the second public key based on a key derivation function and a second random number; based on the third derivation certificate, it is determined that the fourth public key is generated by processing the second public key based on a key derivation function and a second random number; based on the first public key, the second public key and the fourth public key, a target transaction is completed with the transaction recipient, wherein an account address corresponding to the target transaction is determined based on the first public key, the second public key and the fourth public key.
[0101] As an optional embodiment, completing the target transaction with the transaction recipient based on the first public key and the second public key may include the following steps: generating a transaction information message of the target transaction, wherein the transaction information message includes using the target public key of the first public key and the second public key as the account address corresponding to the target transaction; encrypting the transaction information message using the target public key to obtain an encrypted message; and sending the encrypted message to the transaction recipient.
[0102] In this optional embodiment, since only the transaction recipient has the first private key corresponding to the first public key and the second private key corresponding to the second public key on the blockchain, and the first public key has been notified to the transaction initiator through broadcasting, and the second public key has also been sent to the transaction initiator, the transaction initiator can use the first public key or the second public key to encrypt or digitally sign the transaction information message to obtain an encrypted message, and then send the encrypted message to the transaction recipient. The transaction recipient can determine whether the first public key or the second public key is used for encryption or digital signing based on the target public key specified in the encrypted message, and then use the corresponding private key to decrypt or verify the signature.
[0103] As an optional embodiment, receiving a first derivative proof between a first public key and a second public key and the second public key sent by a transaction recipient includes: receiving a random number ciphertext and a zero-knowledge evidence sent by the transaction recipient, wherein the first derivative proof includes the zero-knowledge evidence and the random number ciphertext, the random number ciphertext and the zero-knowledge evidence are used to prove the existence of the first random number, and the second public key is generated according to the key derivation function, the first random number and the first public key.
[0104] In this optional embodiment, the transaction initiator uses zero-knowledge proof ZKP-Proof B-1 , random number ciphertext c and second public key Pk B-1 As input, run the verification algorithm of non-interactive zero-knowledge proof, and output a bit b. If b = 0, it means the verification failed, and if b = 1, the verification passed. If the verification passes, it means that Pk B-1 and ciphertext c, indeed satisfies Confirming the above zero-knowledge proof relationship, the transaction recipient did select a first random number R B The public key Pk B Transformed into the public key Pk B-1 , and this first random number R B The random number ciphertext is c, and it proves that the transaction recipient does have such a first random number R B .
[0105] As an optional embodiment, receiving a first derived proof between a first public key and a second public key and the second public key sent by a transaction recipient may include receiving an address verification ciphertext and a second public key sent by the transaction recipient, wherein the first derived proof includes the address verification ciphertext.
[0106] As an optional embodiment, based on the first derivation proof, determining that the second public key is generated based on the first public key and a preset derivation rule can be carried out in the following manner: using the first public key to decrypt the address verification ciphertext, if the decryption is successful, determining that the second public key is generated based on the first public key and the derivation rule.
[0107] As an optional embodiment, based on the first public key and the second public key, the target transaction is completed with the transaction initiator, and a public key judgment condition sent by the transaction recipient can be received; according to the public key judgment condition, it is determined to use the target public key between the first public key and the second public key to complete the target transaction.
[0108] Figure 4 is a flow chart of a third transaction privacy protection method according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:
[0109] Step S401, the transaction recipient broadcasts the first public key in the first key pair;
[0110] Step S402, the transaction recipient generates a second public key according to a preset derivation rule and the first public key;
[0111] Step S403: the transaction recipient sends a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule;
[0112] Step S404, the transaction initiator determines, based on the first derivation certificate, that the second public key is generated based on the first public key and the derivation rule;
[0113] Step S405: The transaction initiator and the transaction recipient complete the target transaction based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0114] Through the above steps, the purpose of providing multiple available transaction addresses for the target transaction in the blockchain can be achieved, thereby achieving the technical effect of improving the privacy of transactions in the blockchain, and further solving the technical problem that multiple transactions with the same address in the blockchain are prone to privacy leakage.
[0115] An optional implementation is provided here to schematically illustrate the process of the target transaction between the transaction initiator and the transaction recipient. Specifically, the following steps may be included:
[0116] Step 1: The business initiator, financial institution A, generates a public-private key pair Pk in a secure computing environment. A and Sk A The business recipient, financial institution B, generates a public-private key pair Pk in a secure computing environment. B and Sk B Among them, P represents the public key, S represents the private key, the business initiator is the transaction initiator, and the business receiver is the transaction receiver.
[0117] Step 2: The business recipient financial institution B generates a first random number R B .
[0118] Step 3: The business recipient financial institution B generates multiple second public keys Pk based on the RandPk (Pk, R) algorithm B-1 ,Pk B-2 , Pk B-3 , Pk B-n , the value of n can be controlled by the organization itself, n>=1. B-1 =RandPk(Pk B ,R B ), Pk B-2 =RandPk(Pk B-1,R B ),Pk B-n =RandPk(Pk B-(n-1) ,R B ), that is, Pk B-1 It is based on the fixed first public key Pk of the transaction recipient B and the first random number R B Calculated and generated, and so on, the RandPk (Pk, R) algorithm represents a key derivation function unique to financial institution B, which can generate a new public key based on a public key and a random number.
[0119] Step 4: The financial institution B, the recipient of the business, generates multiple second private keys Sk based on the RandSk (Sk, R) algorithm B-1 ,Sk B-2 , Sk B-3 , Sk B-n , the value of n can be controlled by the organization itself, n>=1. B-1 =RandSk(Sk B ,R B ), Sk B-2 =RandSk(Sk B-1 ,R B ),Sk B-n =RandSk(Sk B-(n-1) ,R B ), namely Sk B-1 It is based on the fixed first private key Sk of the transaction recipient B and the first random number R B By analogy, the RandSk(Sk,R) algorithm represents a key derivation function unique to financial institution B, which can generate a new private key based on a private key and a random number. B-n and Sk B-n is the corresponding public and private key, i.e. a key pair, Sk B-n The signature of Pk B-n verify.
[0120] Step 5: The financial institution B, the recipient of the business, uses a pre-calculation method to generate a proof ZKP-Proof based on the zero-knowledge proof algorithm B-1 ,ZKP-Proof B-2 ,…ZKP-Proof B-n , where ZKP-Proof B-1 Represents the public key Pk B-1 The public key Pk B Derived from, and so on.
[0121] Specifically, the business recipient financial institution B can select a random number that is the same as the first random number RB For a random number r of the same bit length, calculate in represents an XOR operation, and the random number ciphertext c obtained is an B Numbers with the same bit length.
[0122] Generate a non-interactive zero-knowledge proof ZKP-Proof B-1 , the statement of the zero-knowledge evidence is Pk B-1 and c, witness R B and r, where Pk B-1 Represents the second public key, whose public statement and private witness satisfy the following relationship:
[0123]
[0124] Among them, RandPk(Pk B ,R B ) represents the first random number R B For the first public key Pk B The key derivation function is processed, and the operator ∧ represents the AND operation, and the operator represents an XOR operation. This relationship represents Pk B-1 =RandPk(Pk B ,R B ) is established and Established.
[0125] Step 6: Financial institutions A and B initiate a target transaction, and the receiving financial institution B sends the second public key Pk B-1 And the corresponding zero-knowledge proof ZKP-Proof B-1 And the random number ciphertext c is sent to financial institution A, where the second public key Pk B-1 It can be used as the temporary payment address of financial institution B in this target transaction.
[0126] Step 7: Financial institution A issues a zero-knowledge proof ZKP-Proof B-1 Verify and confirm the public key Pk B-1 The relationship between the public key PkB.
[0127] Specifically, financial institution A uses zero-knowledge proof ZKP-Proof B-1 , ciphertext c, public key Pk B-1 As input, run the verification algorithm of non-interactive zero-knowledge proof, and output a bit b. If b = 0, it means the verification failed, and if b = 1, the verification passed. If the verification passes, it means that Pk B-1 and the random number ciphertext c, indeed satisfies the equation The above zero-knowledge proof relationship is confirmed.
[0128] Step 8: Financial institution A uses the second public key Pk B-1 Initiate a transaction message to financial institution B for the payment address.
[0129] Step 9: Financial institution B uses the second private key Sk B-1 Verify the transaction and complete the transaction.
[0130] Step 10: After the transaction is completed, financial institutions A and B can respectively send the transaction records and ZKP-Proof B-1 Sent to their respective financial regulators, who can verify the ZKP-Proof in the same way as in step 7 above B-1 , verify the legality of transactions from a regulatory perspective and save relevant transaction information.
[0131] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the transaction privacy protection method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present invention.
[0133] According to an embodiment of the present invention, a device for implementing the above-mentioned transaction privacy protection method 1 is also provided. Figure 5 is a structural block diagram of a transaction privacy protection device according to an embodiment of the present invention. Figure 5 As shown, the transaction privacy protection device 1 includes: a first broadcast module 51, a first generation module 52, a first sending module 53 and a first transaction module 54. The transaction privacy protection device 1 is described below.
[0134] A first broadcast module 51, configured to broadcast a first public key in a first key pair;
[0135] A first generating module 52, connected to the first broadcasting module 51, for generating a second public key according to a preset derivation rule and the first public key;
[0136] A first sending module 53, connected to the first generating module 52, is used to send a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule;
[0137] The first transaction module 54 is connected to the first sending module 53 and is used to complete the target transaction with the transaction initiator based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined according to the first public key and the second public key.
[0138] It should be noted that the first broadcast module 51, the first generation module 52, the first sending module 53 and the first transaction module 54 correspond to steps S201 to S204 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules as part of the device can be run in the computer terminal 10 provided in the embodiment.
[0139] According to an embodiment of the present invention, a device for implementing the second transaction privacy protection method is also provided. Figure 6 is a structural block diagram of a second transaction privacy protection device according to an embodiment of the present invention. Figure 6 As shown, the second transaction privacy protection device includes: a first receiving module 61, a second receiving module 62, a first determining module 63 and a second transaction module 64. The second transaction privacy protection device is described below.
[0140] A first receiving module 61, configured to receive a first public key in a first key pair broadcasted by a transaction receiver;
[0141] The second receiving module 62 is connected to the first receiving module 61 and is used to receive the first derived certificate between the first public key and the second public key and the second public key sent by the transaction recipient;
[0142] A first determination module 63, connected to the second receiving module 62, is used to determine, based on the first derivation certificate, that the second public key is generated based on the first public key and a preset derivation rule;
[0143] The second transaction module 64 is connected to the first determination module 63 and is used to complete the target transaction with the transaction recipient based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined according to the first public key and the second public key.
[0144] It should be noted that the first receiving module 61, the second receiving module 62, the first determining module 63 and the second transaction module 64 correspond to steps S301 to S304 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in the embodiment.
[0145] According to an embodiment of the present invention, a device for implementing the third transaction privacy protection method is also provided. Figure 7 is a structural block diagram of a transaction privacy protection device 3 provided according to an embodiment of the present invention, such as Figure 7 As shown, the transaction privacy protection device 3 includes: a second broadcast module 71, a second generation module 72, a second sending module 73, a second determination module 74 and a third transaction module 75. The transaction privacy protection device 3 is described below.
[0146] The second broadcast module 71 is used for the transaction recipient to broadcast the first public key in the first key pair;
[0147] A second generating module 72, connected to the second broadcasting module 71, is used by the transaction recipient to generate a second public key according to a preset derivation rule and the first public key;
[0148] A second sending module 73, connected to the second generating module 72, is used for the transaction receiving party to send the first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule;
[0149] A second determination module 74, connected to the second sending module 73, is used by the transaction initiator to determine, based on the first derivation certificate, that the second public key is generated based on the first public key and the derivation rule;
[0150] The third transaction module 75 is connected to the second determination module 74, and is used by the transaction initiator and the transaction recipient to complete the target transaction based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined according to the first public key and the second public key.
[0151] It should be noted that the second broadcast module 71, the second generation module 72, the second sending module 73, the second determination module 74 and the third transaction module 75 correspond to steps S401 to S405 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules as part of the device can be run in the computer terminal 10 provided in the embodiment.
[0152] Figure 8 is a target transaction application scenario architecture diagram provided according to an optional embodiment of the present invention, such as Figure 8 As shown, the transaction initiator, the transaction recipient, the transaction initiator regulator and the transaction recipient regulator can be nodes on the blockchain respectively, and the target transaction is completed and regulated through the blockchain. Optionally, the blockchain can be a consortium chain. The transaction initiator and the transaction recipient, as the two parties to the transaction, will have a two-way data interaction action. The transaction recipient can give the first public key and the second public key to the transaction initiator. In addition, the transaction initiator and the transaction recipient are subject to the supervision of their respective regulators. The two parties to the transaction will each give the transaction information to the regulator, and the regulator will conduct a legal and compliance review.
[0153] Fig. 9 is a timing diagram of a target transaction provided according to an optional embodiment of the present invention. Fig. 9 As shown in the figure, in a target transaction, the transaction initiator, transaction receiver and regulator can complete the transaction based on the following steps:
[0154] Step 1. The transaction initiator applies to initiate the target transaction;
[0155] Step 2.1 The transaction recipient broadcasts the first public key;
[0156] Step 2.2 The transaction recipient obtains a first random number from the regulatory agency;
[0157] Step 3.1: The transaction receiver generates a second public key for broadcasting to the transaction initiator based on the first public key, the derivation rule and the first random number. Optionally, the transaction receiver may jump from this step to step 3.2, step 3.3 or step 4.1 according to the transaction verification rule of the transaction initiator.
[0158] Step 3.2: The transaction receiver generates a third public key for broadcasting to the transaction initiator based on the second public key and the derivation rule. Optionally, the transaction receiver can jump from this step to step 3.3 or step 4.2 according to the transaction verification rule of the transaction initiator.
[0159] Step 3.3 The transaction recipient obtains a second random number from the regulatory agency;
[0160] Step 3.4: Based on the second public key, the second random number and the derivation rule, a fourth public key is generated for broadcasting to the transaction initiator;
[0161] Step 4.1 broadcasts the second public key and the first derivation proof to the transaction initiator, where the first derivation proof may be a zero-knowledge proof, which is used to prove that the second public key is derived from the first public key according to the derivation rule, and then jumps to step 5;
[0162] Step 4.2 broadcasts the third public key and the second derivation proof to the transaction initiator, where the second derivation proof may be a zero-knowledge proof, which is used to prove that the third public key is derived from the first public key according to the derivation rule, and then jumps to step 5;
[0163] Step 4.3 broadcasts the fourth public key and the third derivation proof to the transaction initiator, where the third derivation proof may be a zero-knowledge proof, which is used to prove that the fourth public key is derived from the first public key according to the derivation rule, and then jumps to step 5;
[0164] Step 5. The transaction initiator verifies the identity of the transaction recipient based on the first public key, the second public key and the first derived proof;
[0165] Step 6. The transaction initiator completes the target transaction and transfers the funds to the public key address received in step 4;
[0166] Step 7. The transaction initiator sends a transaction information message to the transaction recipient;
[0167] Step 8. The transaction recipient interprets the transaction information message based on the private key to verify whether the target transaction is completed, where the private key corresponds to the public key address in step 6, and the two form a key pair;
[0168] Step 9. The transaction recipient sends the transaction information and zero-knowledge proof of the target transaction to the transaction regulator to retain the transaction for financial supervision.
[0169] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.
[0170] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the transaction privacy protection method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned transaction privacy protection method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0171] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: broadcast the first public key in the first key pair; generate the second public key according to the preset derivation rule and the first public key; send the first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; complete the target transaction with the transaction initiator based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0172] Optionally, the processor may also execute program code for the following steps: generating a second public key according to a preset derivation rule and a first public key, including: obtaining a first random number when the derivation rule is to use a key derivation function to derive a key; processing the first public key based on the key derivation function and the first random number to generate a second public key.
[0173] Optionally, the processor may also execute the program code of the following steps: processing the second public key based on a key derivation function and a first random number to generate a third public key; sending a second derivation certificate between the first public key and the third public key and the third public key to the transaction initiator, wherein the second derivation certificate is used to prove that the third public key is generated based on the first public key and the derivation rule; completing the target transaction with the transaction initiator based on the first public key, the second public key and the third public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the third public key.
[0174] Optionally, the processor may also execute the program code of the following steps: confirming the second random number; processing the second public key based on the key derivation function and the second random number to generate a fourth public key; sending a third derivation certificate between the first public key and the fourth public key and the fourth public key to the transaction initiator, wherein the third derivation certificate is used to prove that the fourth public key is generated based on the first public key and the derivation rule; completing the target transaction with the transaction initiator based on the first public key, the second public key and the fourth public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the fourth public key.
[0175] Optionally, the processor may also execute program code of the following steps: obtaining a first random number, including: receiving a first random number sent by a transaction regulator in an off-chain manner.
[0176] Optionally, the processor may also execute program code for the following steps: completing the target transaction with the transaction initiator based on the first public key and the second public key, including: obtaining the first private key in the first key pair; receiving a transaction information message of the target transaction sent by the transaction initiator, wherein the transaction information message includes that the transaction initiator uses the first public key or the second public key as the account address corresponding to the target transaction; when it is determined according to the transaction information message that the transaction initiator uses the first public key as the account address corresponding to the target transaction, using the first private key to verify the target transaction; when it is determined according to the transaction information that the transaction initiator uses the second public key as the account address corresponding to the target transaction, processing the first private key based on a key derivation function and a first random number to generate a second private key, wherein the second public key and the second private key form a second key pair; and using the second private key to verify the target transaction.
[0177] Optionally, the processor may also execute program code for the following steps: sending a first derivative proof between the first public key and the second public key to the transaction initiator, including: generating a random number ciphertext and a zero-knowledge evidence based on the derivative relationship between the first public key and the second public key, wherein the random number ciphertext and the zero-knowledge evidence are used to prove the existence of the first random number, and the second public key is generated according to the key derivation function, the first random number and the first public key, and the first derivative proof includes the zero-knowledge evidence and the random number ciphertext; sending the first derivative proof to the transaction initiator.
[0178] Optionally, the processor may also execute program code for the following steps: sending a first derived proof between the first public key and the second public key to the transaction initiator, including: obtaining a first private key in the first key pair; encrypting the second public key with the first private key to obtain an address verification ciphertext, wherein the first derived proof includes the address verification ciphertext; and sending the address verification ciphertext to the transaction initiator.
[0179] Optionally, the processor may also execute program code for the following steps: completing the target transaction with the transaction initiator based on the first public key and the second public key, including: sending the public key judgment condition to the transaction initiator; the transaction initiator determines, based on the public key judgment condition, to use the target public key between the first public key and the second public key to complete the target transaction.
[0180] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: receiving the first public key in the first key pair broadcast by the transaction recipient; receiving the first derivation certificate between the first public key and the second public key and the second public key sent by the transaction recipient; based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule; completing the target transaction with the transaction recipient based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0181] Optionally, the processor may also execute the program code of the following steps: based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule, including: when the derivation rule is to derive the key using a key derivation function, based on the first derivation certificate, determining that the second public key is generated after processing the first public key based on the key derivation function and a first random number.
[0182] Optionally, the processor may also execute the program code of the following steps: receiving a second derivation certificate between the first public key and the third public key and the third public key sent by the transaction recipient, wherein the third public key is generated by processing the second public key based on a key derivation function and a first random number; based on the second derivation certificate, determining that the third public key is generated by processing the second public key based on a key derivation function and a first random number; completing the target transaction with the transaction recipient based on the first public key, the second public key and the third public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the third public key.
[0183] Optionally, the processor may also execute the program code of the following steps: receiving a third derivation certificate between the first public key and the fourth public key and the fourth public key sent by the transaction recipient, wherein the fourth public key is generated by the transaction recipient by processing the second public key based on a key derivation function and a second random number; based on the third derivation certificate, determining that the fourth public key is generated by processing the second public key based on a key derivation function and a second random number; completing the target transaction with the transaction recipient based on the first public key, the second public key and the fourth public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the fourth public key.
[0184] Optionally, the processor may also execute program code of the following steps: completing the target transaction with the transaction recipient based on the first public key and the second public key, including: generating a transaction information message of the target transaction, wherein the transaction information message includes using the target public key of the first public key and the second public key as the account address corresponding to the target transaction; encrypting the transaction information message using the target public key to obtain an encrypted message; and sending the encrypted message to the transaction recipient.
[0185] Optionally, the processor may also execute program code for the following steps: receiving a first derived proof between a first public key and a second public key sent by a transaction recipient and the second public key, including: receiving a random number ciphertext and a zero-knowledge evidence sent by the transaction recipient, wherein the first derived proof includes zero-knowledge evidence and a random number ciphertext, the random number ciphertext and the zero-knowledge evidence are used to prove the existence of a first random number, and the second public key is generated based on a key derivation function, the first random number and the first public key.
[0186] Optionally, the processor may also execute program code for the following steps: receiving a first derived proof between a first public key and a second public key and a second public key sent by a transaction recipient, including: receiving an address verification ciphertext and a second public key sent by the transaction recipient, wherein the first derived proof includes the address verification ciphertext.
[0187] Optionally, the processor may also execute the following program code: based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule, including: using the first public key to decrypt the address verification ciphertext, and if the decryption is successful, determining that the second public key is generated based on the first public key and the derivation rule.
[0188] Optionally, the processor may also execute program code for the following steps: completing the target transaction with the transaction initiator based on the first public key and the second public key, including: receiving the public key judgment condition sent by the transaction recipient; and determining, based on the public key judgment condition, to use the target public key among the first public key and the second public key to complete the target transaction.
[0189] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: the transaction recipient broadcasts the first public key in the first key pair; the transaction recipient generates the second public key according to the preset derivation rule and the first public key; the transaction recipient sends the first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; the transaction initiator determines, based on the first derivation certificate, that the second public key is generated based on the first public key and the derivation rule; the transaction initiator and the transaction recipient complete the target transaction based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0190] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0191] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the transaction privacy protection method provided by the above embodiment.
[0192] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0193] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: broadcasting the first public key in the first key pair; generating a second public key according to a preset derivation rule and the first public key; sending a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; completing the target transaction with the transaction initiator based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0194] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: generating a second public key according to a preset derivation rule and a first public key, including: when the derivation rule is to use a key derivation function to derive a key, obtaining a first random number; processing the first public key based on the key derivation function and the first random number to generate a second public key.
[0195] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: processing the second public key based on a key derivation function and a first random number to generate a third public key; sending a second derivation certificate between the first public key and the third public key and the third public key to the transaction initiator, wherein the second derivation certificate is used to prove that the third public key is generated based on the first public key and the derivation rule; completing the target transaction with the transaction initiator based on the first public key, the second public key and the third public key, wherein the account address corresponding to the target transaction is determined based on the first public key, the second public key and the third public key.
[0196] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: confirming a second random number; processing a second public key based on a key derivation function and the second random number to generate a fourth public key; sending a third derivation certificate between the first public key and the fourth public key and the fourth public key to the transaction initiator, wherein the third derivation certificate is used to prove that the fourth public key is generated based on the first public key and the derivation rule; completing a target transaction with the transaction initiator based on the first public key, the second public key and the fourth public key, wherein an account address corresponding to the target transaction is determined based on the first public key, the second public key and the fourth public key.
[0197] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining a first random number, including: receiving a first random number sent by a transaction regulator in an off-chain manner.
[0198] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: completing the target transaction with the transaction initiator based on the first public key and the second public key, including: obtaining the first private key in the first key pair; receiving a transaction information message of the target transaction sent by the transaction initiator, wherein the transaction information message includes that the transaction initiator uses the first public key or the second public key as the account address corresponding to the target transaction; in a case where it is determined according to the transaction information message that the transaction initiator uses the first public key as the account address corresponding to the target transaction, using the first private key to verify the target transaction; in a case where it is determined according to the transaction information that the transaction initiator uses the second public key as the account address corresponding to the target transaction, processing the first private key based on a key derivation function and a first random number to generate a second private key, wherein the second public key and the second private key are a second key pair; and using the second private key to verify the target transaction.
[0199] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: sending a first derivative proof between a first public key and a second public key to a transaction initiator, including: generating a random number ciphertext and a zero-knowledge evidence based on a derivative relationship between the first public key and the second public key, wherein the random number ciphertext and the zero-knowledge evidence are used to prove the existence of a first random number, and the second public key is generated according to a key derivation function, the first random number and the first public key, and the first derivative proof includes the zero-knowledge evidence and the random number ciphertext; sending the first derivative proof to the transaction initiator.
[0200] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: sending a first derived proof between a first public key and a second public key to a transaction initiator, including: obtaining a first private key in a first key pair; encrypting the second public key with the first private key to obtain an address verification ciphertext, wherein the first derived proof includes the address verification ciphertext; and sending the address verification ciphertext to the transaction initiator.
[0201] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: completing the target transaction with the transaction initiator based on the first public key and the second public key, including: sending a public key judgment condition to the transaction initiator; the transaction initiator determines to use the target public key between the first public key and the second public key to complete the target transaction based on the public key judgment condition.
[0202] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: receiving a first public key in a first key pair broadcast by a transaction recipient; receiving a first derivation certificate between the first public key and the second public key and the second public key sent by the transaction recipient; based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule; completing a target transaction with the transaction recipient based on the first public key and the second public key, wherein an account address corresponding to the target transaction is determined based on the first public key and the second public key.
[0203] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule, including: when the derivation rule is to derive the key using a key derivation function, based on the first derivation certificate, determining that the second public key is generated after processing the first public key based on the key derivation function and a first random number.
[0204] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: receiving a second derivation certificate between a first public key and a third public key and a third public key sent by a transaction recipient, wherein the third public key is generated by processing the second public key based on a key derivation function and a first random number; based on the second derivation certificate, determining that the third public key is generated by processing the second public key based on a key derivation function and a first random number; completing a target transaction with the transaction recipient based on the first public key, the second public key and the third public key, wherein an account address corresponding to the target transaction is determined based on the first public key, the second public key and the third public key.
[0205] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: receiving a third derivation certificate between a first public key and a fourth public key and a fourth public key sent by a transaction recipient, wherein the fourth public key is generated by the transaction recipient by processing the second public key based on a key derivation function and a second random number; based on the third derivation certificate, determining that the fourth public key is generated by processing the second public key based on a key derivation function and a second random number; completing a target transaction with the transaction recipient based on the first public key, the second public key and the fourth public key, wherein an account address corresponding to the target transaction is determined based on the first public key, the second public key and the fourth public key.
[0206] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: completing the target transaction with the transaction recipient based on the first public key and the second public key, including: generating a transaction information message of the target transaction, wherein the transaction information message includes using the target public key of the first public key and the second public key as the account address corresponding to the target transaction; encrypting the transaction information message using the target public key to obtain an encrypted message; and sending the encrypted message to the transaction recipient.
[0207] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: receiving a first derivative proof between a first public key and a second public key sent by a transaction recipient and the second public key, including: receiving a random number ciphertext and a zero-knowledge evidence sent by the transaction recipient, wherein the first derivative proof includes zero-knowledge evidence and a random number ciphertext, the random number ciphertext and the zero-knowledge evidence are used to prove the existence of a first random number, and the second public key is generated based on a key derivation function, the first random number and the first public key.
[0208] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: receiving a first derived proof between a first public key and a second public key and the second public key sent by a transaction recipient, including: receiving an address verification ciphertext and a second public key sent by the transaction recipient, wherein the first derived proof includes the address verification ciphertext.
[0209] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule, including: using the first public key to decrypt the address verification ciphertext, if the decryption is successful, determining that the second public key is generated based on the first public key and the derivation rule.
[0210] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: completing the target transaction with the transaction initiator based on the first public key and the second public key, including: receiving a public key judgment condition sent by the transaction recipient; and determining, based on the public key judgment condition, to use a target public key from the first public key and the second public key to complete the target transaction.
[0211] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0212] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0213] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0214] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0215] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0216] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0217] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A transaction privacy protection method, characterized in that: include: broadcasting a first public key in a first key pair; Generate a second public key according to a preset derivation rule and the first public key; Sending a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; The target transaction is completed with the transaction initiator based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined according to the first public key and the second public key.
2. The method according to claim 1, characterized in that The generating the second public key according to the preset derivation rule and the first public key includes: When the derivation rule is to use a key derivation function to derive the key, obtaining a first random number; The first public key is processed based on the key derivation function and the first random number to generate the second public key.
3. The method according to claim 2, characterized in that The completing the target transaction with the transaction initiator based on the first public key and the second public key includes: Processing the second public key based on the key derivation function and the first random number to generate a third public key; Sending a second derivation certificate between the first public key and the third public key and the third public key to the transaction initiator, wherein the second derivation certificate is used to prove that the third public key is generated based on the first public key and the derivation rule; The target transaction is completed with the transaction initiator based on the first public key, the second public key and the third public key, wherein the account address corresponding to the target transaction is determined according to the first public key, the second public key and the third public key.
4. The method according to claim 2, characterized in that: Also includes: Confirm the second random number; Processing the second public key based on the key derivation function and the second random number to generate a fourth public key; Sending a third derivation certificate between the first public key and the fourth public key and the fourth public key to the transaction initiator, wherein the third derivation certificate is used to prove that the fourth public key is generated based on the first public key and the derivation rule; The target transaction is completed with the transaction initiator based on the first public key, the second public key and the fourth public key, wherein the account address corresponding to the target transaction is determined according to the first public key, the second public key and the fourth public key.
5. The method according to claim 4, characterized in that The confirming of the second random number includes at least one of the following methods: Generate the second random number based on a random number algorithm, wherein the second random number is different from the first random number; or, receive the second random number sent by a transaction supervisor.
6. The method according to claim 2, characterized in that The obtaining of the first random number includes: receiving the first random number sent by the transaction supervisor in an off-chain manner.
7. The method according to claim 2, characterized in that: The completing the target transaction with the transaction initiator based on the first public key and the second public key includes: Obtaining a first private key in the first key pair; receiving a transaction information message of the target transaction sent by the transaction initiator, wherein the transaction information message includes that the transaction initiator uses the first public key or the second public key as an account address corresponding to the target transaction; When it is determined according to the transaction information message that the transaction initiator adopts the first public key as the account address corresponding to the target transaction, the first private key is used to verify the target transaction; In a case where it is determined according to the transaction information that the transaction initiator uses the second public key as the account address corresponding to the target transaction, the first private key is processed based on the key derivation function and the first random number to generate a second private key, wherein the second public key and the second private key are a second key pair; The target transaction is authenticated using the second private key.
8. The method according to claim 2, characterized in that: The sending a first derived certificate between the first public key and the second public key to the transaction initiator includes: Generate a random number ciphertext and a zero-knowledge evidence based on a derivation relationship between the first public key and the second public key, wherein the random number ciphertext and the zero-knowledge evidence are used to prove that the first random number exists, and the second public key is generated according to the key derivation function, the first random number and the first public key, and the first derivation proof includes the zero-knowledge evidence and the random number ciphertext; The first derived certificate is sent to the transaction initiator.
9. The method according to claim 1, characterized in that: The sending a first derived certificate between the first public key and the second public key to the transaction initiator includes: Obtaining a first private key in the first key pair; Encrypting the second public key using the first private key to obtain an address verification ciphertext, wherein the first derived proof includes the address verification ciphertext; The address verification ciphertext is sent to the transaction initiator.
10. The method according to claim 1, characterized in that The completing the target transaction with the transaction initiator based on the first public key and the second public key includes: Sending the public key judgment condition to the transaction initiator; The transaction initiator determines to use the target public key of the first public key and the second public key to complete the target transaction according to the public key judgment condition.
11. The method according to any one of claims 1 to 10, characterized in that After completing the target transaction, it also includes: Acquire transaction information corresponding to the target transaction; The transaction information together with the derivation rule, the first derivation certificate and the first public key are sent to a transaction supervisor so that the transaction supervisor can verify the legitimacy of the target transaction.
12. A transaction privacy protection method, characterized in that: include: Receive a first public key in a first key pair broadcasted by a transaction recipient; Receiving a first derivation certificate between a first public key and a second public key and the second public key sent by the transaction recipient; Based on the first derivation certificate, determining that the second public key is generated based on the first public key and a preset derivation rule; The target transaction is completed with the transaction recipient based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined according to the first public key and the second public key.
13. The method according to claim 12, characterized in that The determining, based on the first derivation certificate, that the second public key is generated based on the first public key and a preset derivation rule includes: In the case where the derivation rule is to use a key derivation function to derive a key, based on the first derivation certificate, it is determined that the second public key is generated by processing the first public key based on the key derivation function and a first random number.
14. The method according to claim 13, characterized in that The completing the target transaction with the transaction recipient based on the first public key and the second public key includes: receiving a second derivation certificate between the first public key and a third public key and the third public key sent by the transaction recipient, wherein the third public key is generated by processing the second public key based on the key derivation function and the first random number; Based on the second derivation certificate, determining that the third public key is generated by processing the second public key based on the key derivation function and the first random number; The target transaction is completed with the transaction recipient based on the first public key, the second public key and the third public key, wherein an account address corresponding to the target transaction is determined according to the first public key, the second public key and the third public key.
15. The method according to claim 13, characterized in that Also includes: receiving a third derivation certificate between the first public key and a fourth public key and the fourth public key sent by the transaction recipient, wherein the fourth public key is generated by the transaction recipient by processing the second public key based on the key derivation function and a second random number; Based on the third derivation proof, determining that the fourth public key is generated by processing the second public key based on the key derivation function and the second random number; The target transaction is completed with the transaction recipient based on the first public key, the second public key and the fourth public key, wherein an account address corresponding to the target transaction is determined according to the first public key, the second public key and the fourth public key.
16. The method according to claim 13, characterized in that The completing the target transaction with the transaction recipient based on the first public key and the second public key includes: Generate a transaction information message of the target transaction, wherein the transaction information message includes using a target public key among the first public key and the second public key as an account address corresponding to the target transaction; Encrypting the transaction information message using the target public key to obtain an encrypted message; Sending the encrypted message to the transaction recipient.
17. The method according to claim 13, characterized in that The receiving a first derived certificate between a first public key and a second public key and the second public key sent by the transaction recipient includes: Receive a random number ciphertext and a zero-knowledge evidence sent by the transaction recipient, wherein the first derived proof includes the zero-knowledge evidence and the random number ciphertext, the random number ciphertext and the zero-knowledge evidence are used to prove the existence of the first random number, and the second public key is generated according to the key derivation function, the first random number and the first public key.
18. The method according to claim 12, characterized in that The receiving a first derived certificate between a first public key and a second public key and the second public key sent by the transaction recipient includes: The address verification ciphertext and the second public key sent by the transaction recipient are received, wherein the first derived proof includes the address verification ciphertext.
19. The method according to claim 18, characterized in that The determining, based on the first derivation certificate, that the second public key is generated based on the first public key and a preset derivation rule includes: The address verification ciphertext is decrypted using the first public key. If the decryption is successful, it is determined that the second public key is generated based on the first public key and the derivation rule.
20. The method according to claim 12, characterized in that The completing the target transaction with the transaction initiator based on the first public key and the second public key includes: Receiving the public key judgment condition sent by the transaction recipient; According to the public key judgment condition, it is determined to use the target public key of the first public key and the second public key to complete the target transaction.
21. A transaction privacy protection method, characterized in that: include: The transaction recipient broadcasts the first public key in the first key pair; The transaction recipient generates a second public key according to a preset derivation rule and the first public key; The transaction recipient sends a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; The transaction initiator determines, based on the first derivation certificate, that the second public key is generated based on the first public key and the derivation rule; The transaction initiator and the transaction recipient complete the target transaction based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined according to the first public key and the second public key.
22. A transaction privacy protection device, characterized in that: include: A first broadcast module, used for broadcasting a first public key in a first key pair; A first generating module, used to generate a second public key according to a preset derivation rule and the first public key; A first sending module, configured to send a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; The first transaction module is used to complete a target transaction with the transaction initiator based on the first public key and the second public key, wherein an account address corresponding to the target transaction is determined according to the first public key and the second public key.
23. A transaction privacy protection device, characterized in that: include: A first receiving module, used to receive a first public key in a first key pair broadcasted by a transaction recipient; A second receiving module, configured to receive a first derivation certificate between the first public key and the second public key and the second public key sent by the transaction recipient; A first determination module, configured to determine, based on the first derivation certificate, that the second public key is generated based on the first public key and a preset derivation rule; A second transaction module is used to complete a target transaction with the transaction recipient based on the first public key and the second public key, wherein an account address corresponding to the target transaction is determined according to the first public key and the second public key.
24. A transaction privacy protection device, characterized in that: include: A second broadcast module, used for the transaction recipient to broadcast the first public key in the first key pair; A second generating module, used by the transaction recipient to generate a second public key according to a preset derivation rule and the first public key; A second sending module, configured for the transaction receiving party to send a first derivation certificate between the first public key and the second public key and the second public key to the transaction initiator, wherein the first derivation certificate is used to prove that the second public key is generated based on the first public key and the derivation rule; A second determination module, configured for the transaction initiator to determine, based on the first derivation certificate, that the second public key is generated based on the first public key and the derivation rule; A third transaction module is used for the transaction initiator and the transaction recipient to complete the target transaction based on the first public key and the second public key, wherein the account address corresponding to the target transaction is determined according to the first public key and the second public key.
25. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the transaction privacy protection method described in any one of claims 1 to 21.
26. A computer device, characterized in that: The computer device comprises a processor, and the processor is used to run a program, wherein the program, when running, executes the transaction privacy protection method described in any one of claims 1 to 21.
Citation Information
Patent Citations
Privacy transaction method and system, device and storage medium
CN109034801A
Improved systems and methods for storage, generation and verification of tokens used to control access to a resource
CN112119610A
Block chain-based information processing method and device, equipment, medium and product
CN113034135A
Block chain transaction auditing method and device, equipment and storage medium
CN114358782A
On-chain anonymous communication method and system based on key derivation algorithm
CN114679261A
Cited By
Method for extracting and parsing bitcoin transaction autonomy information
US12626253B2
Method for extracting and parsing bitcoin transaction autonomy information
US20250037124A1
