Blockchain-based pseudonym transaction method and system

By generating stealth addresses and using a one-time ring signature aggregation commitment protocol, the problems of transaction anonymity and unlinkability in blockchain systems are solved, achieving anonymity for transaction recipients and efficient transaction verification, supporting third-party auditing, and ensuring transaction security.

CN116308351BActive Publication Date: 2026-11-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310257579.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2026-11-27
Estimated Expiration
2043-03-09

AI Technical Summary

Technical Problem

Traditional blockchain systems cannot guarantee the anonymity and unlinkability of transactions, especially in financial systems involving commercially sensitive information, where complete data transparency leads to a high risk of identity leakage.

Method used

A blockchain-based pseudonymous transaction method is adopted, which ensures the anonymity of the transaction recipient by generating a stealth address and a one-time ring signature aggregation commitment protocol through the transaction initiator, and improves transaction efficiency through the validity check of blockchain nodes and the verification of aggregation commitment.

Benefits of technology

It achieves the unlinkability and anonymity of the transaction recipient, allowing only the transaction initiator and recipient to identify the actual identity. It also improves the overall efficiency of the blockchain system and supports third-party auditing mechanisms to ensure fund security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116308351B_ABST
    Figure CN116308351B_ABST
Patent Text Reader

Abstract

The application provides a pseudonym transaction method and system based on a block chain, and relates to the technical field of the block chain, and the method comprises the following steps: a transaction initiator generates a stealth address by using a public key shared by a transaction receiver and sends a transaction to a block chain node; the transaction initiator obtains a ring signature, and a block chain proof aggregation agent obtains a ring signature aggregation commitment; the block chain node performs validity check on the ring signature aggregation commitment, and in response to the fact that the ring signature aggregation commitment is valid, the block chain node updates a valid transaction result to the block chain; and the transaction receiver regularly scans each transaction on the block chain, and performs a stealth address key calculation protocol to obtain transactions belonging to the transaction receiver. The application can realize that the transaction receiver uses a pseudonym to make an account, and a plurality of transactions of the transaction receiver have unlinkability. In addition, the transaction initiator anonymous transaction efficient protocol of the application only needs to perform commitment verification calculation once during transaction verification, thereby improving the overall efficiency of the block chain system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of blockchain technology, and in particular to a pseudonymous transaction method and system based on blockchain. Background Technology

[0002] One of the characteristics of blockchain technology is that the ledger is held by multiple parties, and the data is open and transparent. However, the complete openness and transparency of blockchain data is unacceptable in some financial systems involving commercially sensitive information. Therefore, traditional blockchain systems cannot ensure the "anonymity" and "unlinkability" of transactions. Here, "anonymity" means that the identity of the roles in the protocol cannot be obtained by attackers, while "unlinkability" refers to the association of the same role or identity. For example, in protocol P, if role R has multiple sessions, an attacker cannot distinguish from the outside whether the messages in two sessions come from the same role. In this case, protocol P is said to maintain the unlinkability of R. Summary of the Invention

[0003] In view of this, the present invention provides a blockchain-based pseudonymous transaction method and system to solve at least one of the aforementioned problems.

[0004] To achieve the above objectives, the present invention adopts the following solution:

[0005] According to a first aspect of the present invention, a blockchain-based pseudonymous transaction method is provided, the method comprising: a transaction initiator generating a stealth address P of the transaction recipient using a public key shared by the transaction recipient, and sending a transaction with the transaction recipient to a blockchain node based on the stealth address P; the transaction initiator, a blockchain proof aggregation agent, and the blockchain node jointly executing an efficient anonymous transaction protocol for the transaction initiator, such that the transaction initiator obtains a transaction ring signature and the blockchain proof aggregation agent obtains a ring signature aggregation commitment; the blockchain node performing a validity check on the ring signature aggregation commitment, and in response to the ring signature aggregation commitment being valid, the blockchain node updating the valid transaction result on the blockchain; and the transaction recipient periodically scanning each transaction on the blockchain and executing a stealth address key calculation protocol to obtain their own transaction.

[0006] According to a second aspect of the present invention, a blockchain-based pseudonymous transaction system is provided. The system includes: a transaction initiator, a transaction recipient, a blockchain proof aggregation agent, and a blockchain node. The transaction initiator generates a stealth address P for the transaction recipient using a public key shared by the transaction recipient, and sends the transaction with the transaction recipient to the blockchain node based on the stealth address P. The transaction initiator, the blockchain proof aggregation agent, and the blockchain node jointly execute an efficient anonymous transaction protocol for the transaction initiator, enabling the transaction initiator to obtain a transaction ring signature and the blockchain proof aggregation agent to obtain a ring signature aggregation commitment. The blockchain node performs a validity check on the ring signature aggregation commitment; in response to the ring signature aggregation commitment being valid, the blockchain node updates the valid transaction result on the blockchain. The transaction recipient periodically scans each transaction on the blockchain and executes a stealth address key calculation protocol to obtain their own transaction.

[0007] According to a third aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method.

[0008] According to a fourth aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.

[0009] As can be seen from the above technical solutions, the pseudonymous transaction method and system based on blockchain provided by this invention enables the transaction recipient to use a pseudonym for accounting, and multiple transactions of the transaction recipient are not linked, so that only the transaction initiator and the transaction recipient can reveal the actual recipient's identity behind the transaction. Furthermore, the efficient anonymous transaction protocol for the transaction initiator in this application uses a one-time ring signature aggregated commitment in the transaction initiator's data structure. During transaction verification, the blockchain node only needs to perform the commitment verification calculation once, which can further improve the overall efficiency of the blockchain system while satisfying the anonymity of the transaction initiator. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:

[0011] Figure 1 This is a flowchart illustrating a blockchain-based pseudonymous transaction method provided in an embodiment of this application.

[0012] Figure 2 This is a schematic diagram of the process for generating and sharing the public key of the transaction recipient provided in an embodiment of this application;

[0013] Figure 3 This is a schematic diagram illustrating the process of generating the stealth address of the transaction recipient provided in an embodiment of this application;

[0014] Figure 4 This is a schematic diagram of the execution flow of the efficient protocol for anonymous transactions by the transaction initiator provided in the embodiments of this application;

[0015] Figure 5 This is a schematic diagram of the process by which the transaction recipient confirms that the transaction belongs to them, provided in an embodiment of this application.

[0016] Figure 6 This is a flowchart illustrating the process of a third-party audit node auditing a transaction recipient, as provided in the embodiments of this application.

[0017] Figure 7 This is a flowchart illustrating the process of a third-party audit node auditing the transaction initiator, as provided in the embodiments of this application.

[0018] Figure 8 This is a schematic diagram of the structure of a blockchain-based pseudonymous transaction system provided in an embodiment of this application;

[0019] Figure 9 This is a schematic block diagram of the system configuration of the electronic device provided in the embodiments of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0021] To address the issue that traditional blockchain systems cannot guarantee transaction anonymity and unlinkability due to the complete transparency of data, this application provides a blockchain-based pseudonym transaction method and system. This method allows users to anonymously interact with multiple transacting parties using different pseudonyms, while ensuring that the pseudonyms cannot be linked. In other words, even if multiple users collude, it is impossible to identify whether any two pseudonyms belong to the same user. Even if the same user uses a pseudonym multiple times, the blockchain system still maintains anonymity and unlinkability.

[0022] like Figure 1 The diagram shown is a flowchart illustrating a blockchain-based pseudonymous transaction method according to an embodiment of this application. The method includes the following steps:

[0023] Step S101: The transaction initiator uses the public key shared by the transaction recipient to generate the stealth address P of the transaction recipient, and sends the transaction with the transaction recipient to the blockchain node based on the stealth address P.

[0024] In this embodiment, the transaction initiator and the transaction recipient refer to the users or institutions participating in the transaction, and the entity implementing the method described in this application is a blockchain wallet. A blockchain wallet is software used for calculating, storing, and managing user pseudonym (i.e., anonymous address) keys and sending transaction messages. It is jointly developed by the various participants in building the blockchain node and distributed to users for installation and use. The blockchain wallet is directly installed on the user's personal terminal, such as a mobile phone, laptop, or tablet.

[0025] To achieve anonymity for the transaction recipient, the transaction initiator can use a different, also known as a stealth address, for each transaction with the recipient. With a stealth address, even if multiple transactions are sent to the same recipient, each transaction recalculates a randomized public key. Unrelated third parties cannot be unaware of the randomized hidden information within the stealth address, and therefore cannot prove that two transactions were sent to the same person, meaning they cannot know the specific recipient of the transaction.

[0026] In this embodiment, to generate the stealth address P of the transaction recipient, the transaction initiator first needs to obtain the public key shared by the transaction recipient. Taking a transfer from user Bob to user Alice in the network as an example, in order to support subsequent transfers from user Bob to user Alice and the function of recording transactions on the blockchain, user Alice's blockchain wallet needs to execute the blockchain wallet user key (including private key and public key) generation protocol when it is used for the first time, such as... Figure 2 As shown, a specific user Alice's public key can be generated and shared in the following ways:

[0027] Step S201: User Alice's blockchain wallet calculates and encrypts and stores the user's private key and public key, where the private key format is (a, b), a, b ∈ Z. q Z q It is a q-order integer cyclic group, and the public key format is (A,B)=(aG,bG), where G is the base point of the elliptic curve system;

[0028] Step S202: User Alice shares her public key (A, B) with other blockchain users (including user Bob).

[0029] Preferred, such as Figure 3 As shown, the transaction initiator can generate the stealth address P of the transaction recipient in the following way:

[0030] Step S301: The transaction initiator selects a temporary key r.

[0031] Step S302: The transaction initiator uses the Diffie-Hellman key exchange protocol to generate a randomized symmetric key key = H(rA) from the first half of the public key shared by the temporary key and the recipient (i.e., A in the aforementioned public key), where H: {0, 1}. * →Z q It is a hash function.

[0032] Step S303: The transaction initiator performs a mixed calculation using the symmetric key and the latter half of the public key shared by the recipient (i.e., B in the aforementioned public key) to obtain the stealth address P = H(rA)·G+B of the transaction recipient.

[0033] In this way, because the transaction recipient uses an anonymous address for accounting, multiple transactions of the transaction recipient are not linked. Only the transaction initiator and the transaction recipient can access the actual recipient's identity behind the transaction, thus preventing the leakage of transaction privacy.

[0034] Step S102: The transaction initiator, the blockchain proof aggregation agent, and the blockchain node jointly execute the transaction initiator's anonymous transaction efficiency protocol, so that the transaction initiator obtains the transaction ring signature and the blockchain proof aggregation agent obtains the ring signature aggregation commitment.

[0035] Step S103: The blockchain node performs a validity check on the ring signature aggregate commitment. In response to the ring signature aggregate commitment being valid, the blockchain node updates the valid transaction result to the blockchain.

[0036] To achieve anonymity for transaction recipients, besides one-time pad encryption, a common practice in existing technologies is to use ring signature technology. Ring signatures are a signature technique that provides anonymity by mixing the signer's public key with a series of public keys from other people before signing the message. This makes it impossible for the signature verifier to distinguish which public key in the mixed set corresponds to the true signer. During the blockchain block packaging cycle, blockchain nodes collect all newly generated transactions from blockchain wallets in the network. Each transaction undergoes a ring signature verification process by the transaction initiator. Therefore, if the number of transactions is large, the efficiency of signature verification on the blockchain node side becomes very low.

[0037] To improve the efficiency of verifying the identity of initiators of a large number of transactions, this application proposes a new high-efficiency protocol for anonymous transactions. It uses a newly designed one-time ring signature aggregation commitment protocol to aggregate multiple ring signatures to obtain an aggregate commitment. The blockchain node only needs to perform verification once to confirm the identity of the initiator of multiple transactions in batches, which greatly reduces the computational load of blockchain node signature verification.

[0038] The following describes the computation and interaction of the one-time ring signature aggregation commitment protocol, such as... Figure 4 As shown, the execution of the efficient anonymous transaction protocol for the transaction initiator described in steps S102 and S103 above may specifically include the following steps:

[0039] Step S401: The transaction initiator calculates the stealth address key mirror and the transaction ring signature.

[0040] Let's continue with Bob's transfer to Alice as an example. Bob calculates the stealth address key x corresponding to a certain income transaction P = xG, and the stealth address key mirror I = xH(P s ), where P s This is Bob's public key. This stealth address key mirror I is unique to each transaction, ensuring that the transaction is not consumed repeatedly.

[0041] Bob then mixes his public key with the public keys of other users to obtain a set of n public keys S = {P1, ..., P2}. n Bob's public key P s In S, the index is s. When signing transaction m, two vectors {q} are first randomly generated. i {i = 1, ..., n} and {w} i ,i=1,...,s-1,s+1,...,n}, calculate:

[0042]

[0043]

[0044] c = H s (m,L1,...,L n ,R1,...,R n );

[0045] Where L i R i This indicates that the intermediate variable is being calculated and has no actual meaning; 'c' is part of the signature.

[0046] The final signature obtained for the transaction is:

[0047] σ=(I,c1,...,c n ,r1,...,r n )

[0048] =(I,w1,...,w s-1 ,c-∑w,w s+1 ,...,w n ,q1,...,q s-1 ,q s -(c-∑w)x,qs+1 ,...,q n )

[0049] After the above calculations, Bob will disclose the transaction m, the signature public key set S, and the signature σ to the verifier, i.e., the blockchain proof aggregation agent in subsequent step S402. Others in the network, unaware of the stealth address key x, cannot calculate r. s Therefore, it is impossible to forge a signature.

[0050] Step S402: The blockchain proof aggregation agent verifies the transaction ring signature, stealth address key mirror and transaction amount of multiple transaction initiators, and determines whether the transactions initiated by multiple transaction initiators are valid. If invalid, proceed to step S403; otherwise, proceed to step S404.

[0051] The blockchain proof aggregation agent verifies the transaction ring signature, hidden address key mirror, and transaction amount of each transaction from multiple initiators over a period of time, mainly performing the following three verifications:

[0052] (1) Calculation Then verify Transactions that satisfy the equation are valid transactions; otherwise, they are invalid transactions.

[0053] (2) The stealth address key mirror I has not been consumed before, thus ensuring that the transaction corresponding to I will not be consumed multiple times. Transactions that are not repeated with I are valid transactions; otherwise, they are invalid transactions.

[0054] (3) Determine whether the transaction amount exceeds the revenue provided by the transaction initiator. If it does not exceed the revenue, the transaction is considered valid; otherwise, the transaction is invalid.

[0055] Step S403: The blockchain proof aggregation agent sends the invalid transaction along with the reason for the transaction failure to the blockchain node, and the blockchain node updates the reason for the transaction failure on the blockchain.

[0056] Step S404: The blockchain proof aggregation agent computes the aggregate commitment of multiple valid transaction ring signatures.

[0057] In this embodiment, the blockchain proof aggregation agent can use an elliptic curve that supports bilinear pairing (such as BLS12-381) to compute the aggregation commitment. This curve is negotiated between the blockchain proof aggregation agent and the blockchain nodes. Based on the elliptic curve bilinear mapping, the blockchain proof aggregation agent can construct signatures σ1,...,σ for multiple different valid transactions. N The aggregate commitment C of a valid transaction is calculated and sent to the blockchain nodes. Specifically, the aggregate commitment calculation method for a valid transaction is as follows:

[0058]

[0059] In the above formula, a i G1 represents the committed calculation parameters.

[0060] Step S405: Blockchain nodes initiate random challenges t1,...,t to the blockchain proof aggregation agent. N .

[0061] Step S406: After receiving a random challenge, the blockchain proof aggregation agent calculates the aggregation proof, specifically using the following formula.

[0062]

[0063] Blockchain proof aggregation agent calculates aggregate proof Then, an aggregate proof is returned to the blockchain node. In addition, 2N-1 G1 elements αG1,...,α are disclosed. N G1,α N+2 G1,...,α 2N G1, N G2 elements αG2,...,α N G2, a GT element α N+ 1 G T Parameters such as these.

[0064] Step S407: The blockchain node performs the verification of the aggregated proof and determines whether the verification is successful. If it fails, proceed to step S408; otherwise, proceed to step S409. The verification method for the aggregated commitment is as follows:

[0065] e(C,∑ i α N+1-i t i G2)=e(π,G2)+(∑ i t i σ i )α N+1 G T

[0066] Step S408: Deem the transaction invalid and update the reason for invalidity on the blockchain.

[0067] Step S409: Deem the transaction valid and update the valid transaction result on the blockchain.

[0068] Step S104: The transaction recipient periodically scans each transaction on the blockchain and executes the stealth address key calculation protocol to obtain its own transaction.

[0069] Preferred, such as Figure 5 As shown, step S104 may include the following sub-steps:

[0070] S501: The transaction recipient periodically scans each transaction on the blockchain.

[0071] S502: The blockchain node returns detailed information about each transaction to the transaction recipient, including the stealth address P of the transaction recipient.

[0072] S503: The transaction recipient uses its own private key to calculate the stealth address P′=(H(aR)+b)·G. If P=P′, the transaction recipient confirms that the transaction belongs to itself.

[0073] After the transaction recipient confirms that the transaction belongs to them, in order to consume the income in subsequent transactions, the method in this embodiment further includes: the transaction recipient uses their private key to calculate the key x = H(aR) + b corresponding to the stealth address P, and the transaction recipient can use the key to consume the transaction income in the next transaction.

[0074] In the above design of this embodiment, third-party users on the network do not know the private key of the transaction recipient. Therefore, only the transaction recipient can calculate the key x corresponding to the stealth address P. Furthermore, the blockchain ledger uses P to hide the original recipient's public key (A, B), making it impossible for third-party users to determine who the transaction recipient is. The transaction recipient can sign the income with key x in the next transaction and spend it. Here, key x is the stealth address key x in step S401 above.

[0075] As can be seen from the above technical solutions, the pseudonymous transaction method based on blockchain provided by this invention enables the transaction recipient to use a pseudonym for accounting, and multiple transactions of the transaction recipient are not linked, so that only the transaction initiator and the transaction recipient can reveal the actual recipient's identity behind the transaction. Furthermore, the efficient anonymous transaction protocol for the transaction initiator in this application uses a one-time ring signature aggregated commitment in the transaction initiator's data structure. During transaction verification, the blockchain node only needs to perform the commitment verification calculation once, which can further improve the overall efficiency of the blockchain system while satisfying the anonymity of the transaction initiator.

[0076] The pseudonym transaction method based on blockchain provided in this application not only supports pseudonyms for the transaction recipient, but also supports a third-party auditing mechanism, which includes auditing both the transaction initiator and the transaction recipient.

[0077] For the audit of the transaction recipient, such as Figure 6 As shown, the above method may also include the following steps:

[0078] Step S601: The third-party audit node initiates an audit request to the transaction recipient;

[0079] Step S602: After the transaction receiving node verifies the identity of the auditing node on the blockchain, it provides (a, B) to the third-party auditing node;

[0080] Step S603: The third-party audit node calculates the stealth address P′=H(aR)·G+B based on (a, B);

[0081] Step S604: A third-party audit node tracks the transaction records of the transaction recipient on the blockchain that match the stealth address P′.

[0082] For the audit of the party initiating the transaction, such as Figure 7 As shown, the above method may also include the following steps:

[0083] Step S701: The third-party audit node sends an audit request to the transaction initiator;

[0084] Step S702: After the transaction initiator verifies the identity of the audit node on the blockchain node, it discloses a temporary key r to the third-party audit node to prove that it has transferred funds to the transaction recipient;

[0085] Step S703: The third-party audit node calculates the stealth address P′=H(rA)·G+B based on the temporary key r;

[0086] Step S704: A third-party audit node tracks the transaction records of the transaction initiator that match the stealth address P′ on the blockchain.

[0087] As described above, the pseudonymous transaction method based on blockchain provided by this invention can introduce an auditor-supporting mechanism to the blockchain. Based on the selective disclosure of user private keys in the wallet, an audit key can be generated and published to a third party authorized to audit. The third party holding the audit key can determine the association of the anonymous address of the transaction recipient on the blockchain, thereby tracing the transaction. However, the third party holding only the audit key cannot consume the transaction, thus ensuring the security of funds for the original user key holder.

[0088] like Figure 8 The diagram shown is a schematic representation of a blockchain-based pseudonymous transaction system provided in an embodiment of this application. The system includes: a transaction initiator 801, a transaction receiver 802, a blockchain proof aggregation agent 803, and a blockchain node 804, wherein:

[0089] The transaction initiator 801 uses the public key shared by the transaction recipient to generate the stealth address P of the transaction recipient 802, and sends the transaction with the transaction recipient 802 to the blockchain node 804 based on the stealth address P.

[0090] The transaction initiator 801, the blockchain proof aggregation agent 803, and the blockchain node 804 jointly execute the transaction initiator's anonymous transaction efficiency protocol, enabling the transaction initiator 801 to obtain a transaction ring signature and the blockchain proof aggregation agent 803 to obtain a ring signature aggregation commitment.

[0091] The blockchain node 804 performs a validity check on the ring signature aggregate commitment. In response to the ring signature aggregate commitment being valid, the blockchain node 804 updates the valid transaction result to the blockchain.

[0092] The transaction recipient 802 periodically scans each transaction on the blockchain and executes the stealth address key calculation protocol to obtain its own transaction.

[0093] The pseudonym transaction method executed by the aforementioned blockchain-based pseudonym transaction system can be found in the foregoing method embodiments. Figures 1-7 The corresponding descriptions will not be repeated here.

[0094] As can be seen from the above technical solutions, the blockchain-based pseudonymous transaction system provided by this invention enables the transaction recipient to use a pseudonym for accounting. Multiple transactions by the transaction recipient are not linked, and only the transaction initiator and the transaction recipient can reveal the actual recipient's identity behind the transaction. Furthermore, the efficient anonymous transaction protocol for the transaction initiator in this application uses a one-time ring signature aggregation commitment in the transaction initiator's data structure. During transaction verification, the blockchain node only needs to perform the commitment verification calculation once, which can further improve the overall efficiency of the blockchain system while satisfying the anonymity of the transaction initiator. It can also introduce an auditor support mechanism to the blockchain. Based on the selective disclosure of the user's private key in the wallet, an audit key can be generated and published to a third party authorized to audit. The third party holding the audit key can determine the association of the transaction recipient's hidden address on the blockchain, thereby tracking the transaction. However, the third party holding only the audit key cannot consume the transaction, thus ensuring the security of funds for the original user key holder.

[0095] This invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described method.

[0096] This invention also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the above-described method.

[0097] like Figure 9 As shown, the electronic device 600 may also include: a communication module 110, an input unit 120, an audio processor 130, a display 160, and a power supply 170. It is worth noting that the electronic device 600 does not necessarily need to include these components. Figure 9All components shown; in addition, the electronic device 600 may also include Figure 9 For components not shown, please refer to existing technologies.

[0098] like Figure 9 As shown, the central processing unit 100, sometimes also referred to as a controller or operating control, may include a microprocessor or other processor device and / or logic device. The central processing unit 100 receives inputs and controls the operation of various components of the electronic device 600.

[0099] The memory 140 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It may store the aforementioned failure-related information, and also store a program for executing that information. The central processing unit 100 may execute the program stored in the memory 140 to perform information storage or processing, etc.

[0100] Input unit 120 provides input to central processing unit 100. Input unit 120 may be, for example, a keypad or touch input device. Power supply 170 provides power to electronic device 600. Display 160 displays images and text. Display may be, for example, an LCD display, but is not limited thereto.

[0101] The memory 140 can be a solid-state memory, such as a read-only memory (ROM), random access memory (RAM), a SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROMs. The memory 140 can also be some other type of device. The memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application / function storage unit 142 for storing application programs and function programs or processes for executing the operation of the electronic device 600 via the central processing unit 100.

[0102] The memory 140 may also include a data storage unit 143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 144 of the memory 140 may include various drivers for the electronic device's communication functions and / or for performing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0103] The communication module 110 is a transmitter / receiver 110 that transmits and receives signals via antenna 111. The communication module (transmitter / receiver) 110 is coupled to the central processing unit 100 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.

[0104] Based on different communication technologies, multiple communication modules 110 can be configured in the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132, thereby enabling typical telecommunications functions. The audio processor 130 may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor 130 is coupled to a central processing unit 100, enabling on-device recording via the microphone 132 and on-device playback of stored audio via the speaker 131.

[0105] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0106] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0107] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1The function specified in one or more boxes.

[0108] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0109] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

Claims

1. A pseudonymous transaction method based on blockchain, characterized in that, The method includes: The transaction initiator uses the public key shared by the transaction recipient to generate the stealth address P of the transaction recipient, and sends the transaction with the transaction recipient to the blockchain node based on the stealth address P; The transaction initiator, the blockchain proof aggregation agent, and the blockchain node jointly execute the transaction initiator's anonymous transaction efficiency protocol, enabling the transaction initiator to obtain a transaction ring signature and the blockchain proof aggregation agent to obtain a ring signature aggregation commitment. The blockchain node performs a validity check on the ring signature aggregate commitment. In response to the ring signature aggregate commitment being valid, the blockchain node updates the valid transaction result to the blockchain. The transaction recipient periodically scans each transaction on the blockchain and executes the stealth address key calculation protocol to obtain its own transaction. Specifically, the transaction initiator, the blockchain proof aggregation agent, and the blockchain node jointly execute the transaction initiator's anonymous transaction efficiency protocol, enabling the transaction initiator to obtain a transaction ring signature, the blockchain proof aggregation agent to obtain a ring signature aggregation commitment, and the blockchain node to perform a validity check on the ring signature aggregation commitment. In response to the valid ring signature aggregation commitment, the blockchain node updates the valid transaction result to the blockchain, including: The transaction initiator calculates the stealth address key mirror and transaction ring signature; The blockchain proof aggregation agent verifies the transaction ring signatures, stealth address key mirrors, and transaction amounts of multiple transaction initiators to determine whether the transactions initiated by multiple transaction initiators are valid. In response to an invalid transaction, the blockchain proof aggregation agent sends the invalid transaction along with the reason for the transaction failure to the blockchain node, which then updates the reason for the transaction failure on the blockchain. In response to a valid transaction, the blockchain proof aggregation agent calculates an aggregate commitment of multiple valid transaction ring signatures. The blockchain node initiates a random challenge to the blockchain proof aggregation agent. Upon receiving the random challenge, the blockchain proof aggregation agent calculates the aggregate proof. The blockchain node performs verification of the aggregate proof. If the verification is successful, the transaction is considered valid and the valid transaction result is updated on the blockchain. If the verification fails, the transaction is considered invalid and the reason for invalidity is updated on the blockchain.

2. The pseudonymous transaction method based on blockchain as described in claim 1, characterized in that, The public key of the transaction recipient is generated and shared in the following manner: The transaction recipient's blockchain wallet calculates and encrypts the user's private key and public key, wherein the private key format is as follows: , , It is a cyclic group of integers of order q, and the public key format is: , G It is the base point of the elliptic curve system; The transaction recipient shares the user's public key with other blockchain users. .

3. The pseudonymous transaction method based on blockchain as described in claim 2, characterized in that, The transaction initiator uses the public key shared by the transaction recipient to generate the transaction recipient's stealth address. P include: The transaction initiator selects a temporary key r; A randomized symmetric key is generated by combining the temporary key with the first half of the public key shared by the recipient using the Diffie-Hellman key exchange protocol. , H : It is a hash function; The stealth address of the transaction recipient is obtained by performing a hybrid computation using the symmetric key and the latter half of the public key shared by the recipient. .

4. The pseudonymous transaction method based on blockchain as described in claim 3, characterized in that, The transaction recipient periodically scans each transaction on the blockchain and executes the stealth address key calculation protocol to obtain its own transaction details, including: The transaction recipient periodically scans each transaction on the blockchain; The blockchain node returns detailed information about each transaction to the transaction recipient, including the hidden address P of the transaction recipient. The transaction recipient uses their private key to calculate the stealth address. If P= If so, the recipient of the transaction confirms that the transaction belongs to them.

5. The pseudonymous transaction method based on blockchain as described in claim 4, characterized in that, After the transaction recipient confirms that the transaction belongs to them, the process also includes: the transaction recipient using their private key to calculate the key corresponding to the stealth address P. The transaction recipient uses the key x Spend the transaction proceeds in the next transaction.

6. The pseudonymous transaction method based on blockchain as described in claim 3, characterized in that, The method further includes: The third-party audit node initiates an audit request to the transaction recipient; After the transaction receiver verifies the identity of the audit node on the blockchain node, it provides (a, B) to the third-party audit node. The third-party audit node calculates the stealth address based on (a, B). ; Tracking blockchain and hidden addresses The matching transaction records of the transaction recipient.

7. The pseudonymous transaction method based on blockchain as described in claim 3, characterized in that, The method further includes: The third-party audit node sends an audit request to the transaction initiator. After the transaction initiator verifies the identity of the auditing node on the blockchain node, it discloses a temporary key r to the third-party auditing node to prove that it has transferred funds to the transaction recipient. The third-party audit node calculates the stealth address based on the temporary key r. ; Tracking blockchain and hidden addresses The matching transaction records of the transaction initiator.

8. A pseudonymous transaction system based on blockchain, characterized in that, The system includes: a transaction initiator, a transaction receiver, a blockchain proof aggregation agent, and blockchain nodes, wherein: The transaction initiator uses the public key shared by the transaction recipient to generate the stealth address P of the transaction recipient, and sends the transaction with the transaction recipient to the blockchain node based on the stealth address P; The transaction initiator, the blockchain proof aggregation agent, and the blockchain node jointly execute the transaction initiator's anonymous transaction efficiency protocol, enabling the transaction initiator to obtain a transaction ring signature and the blockchain proof aggregation agent to obtain a ring signature aggregation commitment. The blockchain node performs a validity check on the ring signature aggregate commitment. In response to the ring signature aggregate commitment being valid, the blockchain node updates the valid transaction result to the blockchain. The transaction recipient periodically scans each transaction on the blockchain and executes the stealth address key calculation protocol to obtain its own transaction. Specifically, the transaction initiator, the blockchain proof aggregation agent, and the blockchain node jointly execute the transaction initiator's anonymous transaction efficiency protocol, enabling the transaction initiator to obtain a transaction ring signature, the blockchain proof aggregation agent to obtain a ring signature aggregation commitment, and the blockchain node to perform a validity check on the ring signature aggregation commitment. In response to the valid ring signature aggregation commitment, the blockchain node updates the valid transaction result to the blockchain, including: The transaction initiator calculates the stealth address key mirror and transaction ring signature; The blockchain proof aggregation agent verifies the transaction ring signatures, stealth address key mirrors, and transaction amounts of multiple transaction initiators to determine whether the transactions initiated by multiple transaction initiators are valid. In response to an invalid transaction, the blockchain proof aggregation agent sends the invalid transaction along with the reason for the transaction failure to the blockchain node, which then updates the reason for the transaction failure on the blockchain. In response to a valid transaction, the blockchain proof aggregation agent calculates an aggregate commitment of multiple valid transaction ring signatures. The blockchain node initiates a random challenge to the blockchain proof aggregation agent. Upon receiving the random challenge, the blockchain proof aggregation agent calculates the aggregate proof. The blockchain node performs verification of the aggregate proof. If the verification is successful, the transaction is considered valid and the valid transaction result is updated on the blockchain. If the verification fails, the transaction is considered invalid and the reason for invalidity is updated on the blockchain.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Ring signature-based block chain anonymous trading method

    CN106779704A

  • Transaction method and device based on hidden address in block chain and related product

    CN112396417A