A secure and efficient non-permissioned blockchain conditional anonymity method, system and application
Through bilinear ring signature technology and dual-chain structure, the problems of anonymity and traceability in non-permissioned blockchains are solved, safe and efficient conditional anonymity is achieved, and the security risks and risks caused by uncontrolled random numbers are avoided. The problem of low computational efficiency is improved by improving the throughput and overall efficiency of the system.
Patent Information
- Application Number
- CN202110752881.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-07-02
AI Technical Summary
The existing conditional anonymity scheme in the non-permissioned blockchain scenario has security issues caused by uncontrolled random numbers, low computing efficiency, and insufficient system throughput, making it difficult to achieve user anonymity and traceability at the same time.
Bilinear ring signature technology is used to generate one-time public keys, and user anonymous transactions and identity tracking are achieved through a dual-chain structure, avoiding the introduction of uncontrolled random numbers and improving throughput and efficiency.
It achieves the anonymity and traceability of user identities in non-permissioned blockchains, avoids potential risks such as key leaks and covert transmissions, improves overall efficiency and throughput, and ensures a safe and efficient conditional anonymity scheme.
Smart Images

Figure CN113626852B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain security technology, and in particular to a safe and efficient non-permissioned blockchain conditional anonymity method, system and application. Background Art
[0002] The existing blockchain conditional anonymity scheme effectively tracks the anonymous identity of users on the basis of privacy protection by introducing a regulatory agency with special information. When an honest node publishes a legal transaction, the transaction exists in the form of privacy protection. When special circumstances such as double spending and suspicious transaction content occur, the regulatory agency can use the special information it has to track the anonymous identity of the transaction participants, thereby achieving conditional anonymity of the blockchain user identity. Since in real scenarios, criminals often prefer to conduct illegal transactions in non-permissioned blockchains with a higher degree of anonymity, it is more important to study conditional anonymity schemes in non-permissioned blockchain scenarios.
[0003] Anonymity and traceability are two opposing characteristics in blockchain systems. Domestic and foreign scholars have conducted a lot of relevant research on how to balance each other and achieve conditional anonymity in blockchain systems.
[0004] (1) Research on the anonymity of blockchain systems
[0005] Initially, the blockchain system represented by Bitcoin and Ethereum used pseudonym technology to hide the user's identity. Users can apply for multiple wallet addresses to conduct transparent transaction transfers, and all network nodes can verify and determine the transaction flow based on the transaction order. A large number of wallet addresses replace the user's identity information, which protects the user's privacy and security to a certain extent. However, traffic analysis technology and social engineering methods can filter user identity information from complex transaction data through transparent transaction flows, threatening the user's privacy and security, so many anonymous cryptocurrencies and blockchain systems came into being.
[0006] In 2014, Dash, the first anonymous blockchain system that truly hides user identities, was developed. This anonymous currency uses a coin mixing strategy to hide the identities of transaction participants. When generating transactions, users in Dash will introduce a large number of irrelevant account addresses to confuse their real transaction addresses, so that the adversary cannot know the exact flow of funds, thus ensuring the privacy and security of users. However, under this strategy, the introduction of a large number of irrelevant account addresses not only reduces transaction efficiency, but also wastes precious storage space in the blockchain system. In the same year, Zerocash (Zcash), which was improved on the basis of Zerocoin, was proposed. Zcash uses zk-SNARKs technology to hide user identities, and hides and verifies transaction amounts through homomorphic Pedersen commitments. Although Zcash provides an anonymous scheme with high security, zk-SNARKs requires a polynomial number of bilinear pairing operations when generating zero-knowledge proofs, so the overall efficiency of the scheme is low. Another unique anonymous currency was also proposed in 2014, Monero, the first blockchain system to achieve anonymity using linkable ring signature technology. When a user generates a transaction, he first generates a corresponding one-time public key address based on the recipient's long-term address, and then uses a linkable ring signature to sign the generated transaction order, achieving unconditional anonymity of the user's identity. Although the introduction of Monero has greatly improved the efficiency problem in Zcash, the original Monero did not hide the transaction amount, which provided an opportunity for the adversary to attack user privacy. In 2017, Sun et al. proposed an efficient RingCT protocol (called RingCT 2.0) based on Monero, which realized the hiding of transaction amounts in Monero. However, in 2019, Alsalami et al.'s research showed that many anonymous currencies such as Monero have a large number of uncontrolled randomness when generating ring signatures or zero-knowledge proofs. These random numbers can cause security issues such as covert communication and secret storage, and there is even a risk of leaking user private keys.
[0007] (2) Research on the traceability of blockchain systems
[0008] While protecting the privacy and security of users, the unconditionally anonymous blockchain system provides a natural barrier to the malicious acts of criminals. The increasing number of anonymous currency violations has made conditional anonymity and traceability a research focus.
[0009] Traceability in blockchain systems is mainly divided into two types: deployed in permissioned blockchains and non-permissioned blockchains. Since permissioned blockchains introduce certification authorities, tracking in permissioned blockchain scenarios will directly track the identity of users, while tracking in non-permissioned blockchain scenarios only requires tracking the public key address of users. First, let's review the traceability implemented in permissioned blockchains. In 2019, Zhang et al. proposed a blockchain anonymous tracking scheme based on Linkable Group Signature (LGS). In this scheme, when a user wants to join a blockchain network, he first registers with the Registration Authority (RA), and then RA returns the group public key and group private key for the user to sign the transaction. The group signature provides anonymity for the user. When the Supervisory Authority (SA) needs to track users, it can track down suspicious users by joining RA. The schemes proposed by Li et al. and Huang et al. also use linkable group signature technology to achieve anonymous tracking in blockchain systems. The SkyEye scheme proposed by Ma et al. uses chameleon hashing and concise non-interactive zero-knowledge proof to implement tracking schemes in blockchain systems. At present, some scholars have also studied the traceability in public chains. In 2016, Garman et al. introduced a privacy accountability mechanism in the DAP protocol to achieve selective tracking of users and coins in transactions. The scheme uses commitments to track an output coin in a transaction. All necessary information for tracking the coin is encrypted under a symmetric key, which is encrypted under the public key of the tracking agency. For user tracking, they use reliable traceable signatures to track user identities. Although the scheme achieves traceability in the specific scenario of Zcash, it still cannot avoid the problem of low efficiency in Zcash. In 2019, Li et al. used linkable ring signatures and one-way domain accumulators to implement traceable Monero, and regulators can track users' long-term addresses and one-time addresses. However, the construction of the label has the risk of leaking user privacy. The adversary can use the property that it is easy to solve the co-DDH problem with bilinear mapping to find the signer. In the same year, Wu et al. and Tian et al. respectively used Ciphertext-Policy Attribute-Based Encryption (CP-ABE) to audit the ciphertext data stored in the blockchain and track the keys, thereby achieving anonymous tracking in the blockchain. However, although these solutions have achieved the tracking and tracing problem in specific scenarios, there are still problems with efficiency or security.Therefore, it is of great value to study secure and efficient conditional anonymity schemes in non-permissioned blockchain scenarios.
[0010] Through the above analysis, the problems and defects of the prior art are as follows:
[0011] (1) The existing conditional anonymity schemes in non-permissioned blockchain scenarios contain a large number of uncontrolled random numbers that can be easily exploited by adversaries, leading to security issues such as key leakage and covert transmission.
[0012] (2) Existing conditional anonymity schemes in non-permissioned blockchain scenarios use a large number of complex cryptographic tools, resulting in unsatisfactory computational efficiency of the schemes.
[0013] (3) The additional parameters introduced by existing technologies to ensure anonymity result in a low system throughput, making it difficult to meet people's transaction needs.
[0014] The difficulty of solving the above problems and defects is: proposing a safe and efficient non-permissioned blockchain conditional anonymity method not only requires the traceability of user identities by regulatory agencies while ensuring user anonymity; at the same time, it is necessary to verify the legality of transactions under anonymity; in addition, it is also necessary to ensure the security and efficiency of the algorithm.
[0015] The significance of solving the above problems and defects is: to achieve the anonymity and traceability of user identities in non-permissioned blockchain scenarios at the same time, which will help to regulate user behavior in non-permissioned blockchains, and achieve supervision and traceability by regulatory agencies while ensuring user privacy and security. This is of great significance for the application and development of blockchain systems in specific scenarios. Summary of the invention
[0016] In view of the problems existing in the prior art, the present invention provides a safe and efficient non-permissioned blockchain conditional anonymity method, system and application.
[0017] The present invention is implemented as follows: a safe and efficient non-permissioned blockchain conditional anonymity method, the safe and efficient non-permissioned blockchain conditional anonymity method comprising the following steps:
[0018] Step 1: Generate a one-time public-private key pair: Generate a one-time public key and related verification parameters based on the user's long-term public key. The positive effect of this step is to generate a one-time public key for each transaction, and the user uses the one-time public key to conduct transactions, thereby achieving the anonymity of the user's identity;
[0019] Step 2: Anonymous transaction generation: Use bilinear ring signature technology to generate anonymous transaction bills, transaction signatures, and related verification parameters. The positive effect of this step is that the user's one-time public key is mixed in the ring signature group by using the ring signature, which enhances the anonymity of the user's identity; at the same time, the use of bilinear ring signature avoids the introduction of a large number of uncontrolled random numbers, increasing the security of the solution while also improving throughput and efficiency;
[0020] Step 3: Verify the legitimacy of the transaction: The miner node and the regulator jointly verify the legitimacy of the transaction, and package the anonymous transaction and user identity information into the anonymous non-permissioned blockchain and the regulatory blockchain respectively. The positive role of this step is to verify whether a transaction comes from an honest node, and to prevent the occurrence of double spending and other behaviors that undermine the stability of the system from the perspective of cryptographic probability;
[0021] Step 4: User identity tracking: The regulatory agency uses its own private key to track the user's anonymous identity. The positive role of this step is to enable the regulatory agency to track and supervise the user's identity, that is, the long-term public key, and achieve conditional anonymity.
[0022] Furthermore, in step 1, the user's one-time public and private key pair generation includes the following three algorithms:
[0023] (1)initialize(1 λ )→(param): Input a system security parameter λ and output a system public parameter param.
[0024] 1) Choose two bilinear maps with the same prime order p. and g1 and g2 represent The generator of arrive A computable homomorphic mapping of represents a target cyclic group of the same order p, represents a bilinear linear map;
[0025] 2) Choose two secure cryptographic hash functions
[0026] 3) Set the system common parameters to And returns this public parameter param.
[0027] (2)KeyGen(param)→((r, R), (sk i , pk i )): Input the system public parameter param, output the public-private key pair (r, R) of the regulatory agency, and generate a long-term public-private key pair (sk i, pk i ).
[0028] 1) The regulator selects a random number As your own private key, and calculate R = g1 r as your own public key;
[0029] 2) The user selects two random numbers As your own long-term private key sk i , and calculate As your own long-term public key address pk i , then the public-private key pair corresponding to each user's long-term address is: (sk i , pk i )=((a i , b i ), (A i , B i ));
[0030] 3) Output the public and private key pairs of the regulatory agency and the user.
[0031] (3)AddrGen(param, pk t )→(P t , K, Aux): Input system parameter param, recipient's long-term address pk t =(A t , B t ), output a one-time address public key corresponding to the long-term address of the payee, auxiliary information K and auxiliary information Aux related to the one-time address.
[0032] 1) The payer selects a random number And calculate the auxiliary information K = g1 k ;
[0033] 2) Payer calculates Generate the recipient's one-time address public key P for this transaction t The private key of the one-time address can then be used by the recipient through his own long-term private key sk i =(a t , b t ) is calculated
[0034] 3) The payer uses the regulator’s public key to encrypt the auxiliary information of the one-time address Used by regulatory agencies to track long-term addresses; wherein the public key is encrypted using the E1Gamal public key.
[0035] Furthermore, in step 2, the anonymous transaction is generated, including:
[0036] Spend(m,(x s , P s ), U, R) → (σ): Input message m, public key set U = {P i , i∈[1,n]}, the payer's public-private key pair (x s , P s )where s∈[1,n], the regulator’s public key R, and the signature σ of the output message.
[0037] (1) The payer selects a set of n one-time public key addresses with the same amount that include his own one-time address U = {P i : i∈[1,n]}, where s∈[1,n], and the transaction information m to be generated;
[0038] (2) The payer selects n-1 random numbers for all group members i≠s except himself calculate And set the bilinear ring signature according to the following formula:
[0039]
[0040] (3) The payer selects a random number q∈R[1,n] and calculates the signature auxiliary information V using the following formula:
[0041]
[0042] (4) The payer uses the private key x corresponding to his one-time address s Digitally sign (R, V) The digital signature uses the BLS short signature; the payer uses the regulator’s public key R to Encryption is performed, where timestamp represents the current timestamp;
[0043] (5) Output signature σ = (U, I, V, q, (σ1,...,σ n )).
[0044] Furthermore, in step 3, the transaction legitimacy verification includes:
[0045] Verify(Tx, σ)→(1 / 0): Input the transaction order Tx and the signature σ corresponding to the transaction order, output 1 / 0, and package the verified transaction and the corresponding identity information into AP-Blockchain and S-Blockchain respectively.
[0046] (1) The miner node calculates h→H1(m) and verifies whether the following two equations hold. If so, the miner node sends the verified transactions to the regulator. Otherwise, the transactions are discarded.
[0047]
[0048] (2) After receiving the transaction sent by the miner node, the regulator uses its own private key r to decrypt Aux and I and obtains and
[0049] (3) The regulatory authority verifies whether the following equation holds true; Ver represents the verification algorithm of the digital signature; if the equation holds true, the regulatory authority uses its own private key to sign the verified transaction and returns it to the miner node that sent it previously; otherwise, the transaction is discarded;
[0050]
[0051] (4) After receiving the transaction, the miner node verifies the validity of the transaction and packages the transaction into the AP-Blockchain; the identity information corresponding to the exchange is packaged into the S-Blockchain by the regulatory agency.
[0052] Furthermore, in step 4, the user identity tracking includes:
[0053] Link&Trace(σ)→((A s , B s ) / ⊥): Input the signature σ corresponding to the exchange, and output the long-term public key address of the actual signer of the transaction (A s , B s ) or ⊥.
[0054] (1) After the regulator uses its own private key r to decrypt I, it obtains the actual input address of the transaction and checks in S-Blockchain whether the one-time address has appeared before. If it has appeared before, it means that the one-time address has been used. Otherwise, it means that the one-time address is used for the first time, and the output is ⊥;
[0055] (2) When the regulatory agency discovers a double spend or a problem with the transaction, it uses its own private key to decrypt the Aux corresponding to the one-time address and obtain the long-term address public key P s =(A s , B s ) and output.
[0056] Another object of the present invention is to provide a secure and efficient non-permissioned blockchain conditional anonymity system using the secure and efficient non-permissioned blockchain conditional anonymity method, wherein the secure and efficient non-permissioned blockchain conditional anonymity system comprises:
[0057] The public-private key pair generation module is used to generate a one-time public key and related verification parameters based on the user's long-term public key;
[0058] Anonymous transaction generation module, used to generate anonymous transaction bills, transaction signatures and related verification parameters using bilinear ring signature technology;
[0059] The transaction legitimacy verification module is used to verify the legitimacy of transactions through miner nodes and regulatory agencies, and to package anonymous transactions and user identity information into anonymous non-permissioned blockchains and regulatory blockchains respectively;
[0060] The user identity tracking module is used to track the anonymous identity of users through regulatory agencies using their own private keys.
[0061] Another object of the present invention is to provide a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0062] Based on the user's long-term public key, a one-time public key and related verification parameters are generated; bilinear ring signature technology is used to generate anonymous transaction bills, transaction signatures and related verification parameters; miner nodes and regulators work together to verify the legality of transactions, and package anonymous transactions and user identity information into anonymous non-permissioned blockchains and regulatory blockchains respectively; regulators use their own private keys to track users' anonymous identities.
[0063] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the following steps:
[0064] Based on the user's long-term public key, a one-time public key and related verification parameters are generated; bilinear ring signature technology is used to generate anonymous transaction bills, transaction signatures and related verification parameters; miner nodes and regulators work together to verify the legality of transactions, and package anonymous transactions and user identity information into anonymous non-permissioned blockchains and regulatory blockchains respectively; regulators use their own private keys to track users' anonymous identities.
[0065] Another object of the present invention is to provide an information data processing terminal, which is used to implement the secure and efficient non-permissioned blockchain conditional anonymity system.
[0066] Another object of the present invention is to provide an application of the secure and efficient non-permissioned blockchain conditional anonymity system in a blockchain system.
[0067] Combining all the above technical solutions, the advantages and positive effects of the present invention are as follows: the secure and efficient non-permissioned blockchain conditional anonymity method provided by the present invention can simultaneously realize the anonymity and traceability of user identities in the non-permissioned blockchain, and through the bilinear ring signature and double-chain structure, it avoids the introduction of uncontrolled random numbers, circumvents potential risks such as key leakage and covert transmission, improves throughput and overall efficiency, and further realizes secure and efficient non-permissioned blockchain conditional anonymity.
[0068] Aiming at the application requirements of anonymity and traceability in non-permissioned blockchain scenarios, the present invention proposes a safe and efficient non-permissioned blockchain conditional anonymity method. The present invention has the following advantages: on the one hand, the use of bilinear ring signature technology avoids the introduction of uncontrolled random numbers, circumvents potential risks such as key leakage and covert transmission; on the other hand, by constructing a dual-chain structure with a regulatory blockchain, the transaction load in the non-permissioned blockchain is reduced, and the throughput and overall efficiency are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0070] Figure 1 This is a flow chart of a secure and efficient non-permissioned blockchain conditional anonymity method provided by an embodiment of the present invention.
[0071] Figure 2 This is a schematic diagram of a secure and efficient non-permissioned blockchain conditional anonymity method provided by an embodiment of the present invention.
[0072] Figure 3 This is a structural block diagram of a secure and efficient non-permissioned blockchain conditional anonymity system provided by an embodiment of the present invention;
[0073] In the figure: 1. Public-private key pair generation module; 2. Anonymous transaction generation module; 3. Transaction legitimacy verification module; 4. User identity tracking module.
[0074] Figure 4 It is a schematic diagram of a system model of a secure and efficient non-permissioned blockchain conditional anonymity method provided by an embodiment of the present invention.
[0075] Figure 5 It is a schematic diagram for comparing the time overhead of the Spend phase provided in an embodiment of the present invention.
[0076] Figure 6 It is a schematic diagram for comparing the time overhead of the Verify phase provided by an embodiment of the present invention.
[0077] Figure 7 Schematic diagram of the time overhead of user verification transactions in an anonymous non-permissioned blockchain provided by an embodiment of the present invention.
[0078] Figure 8 It is a schematic diagram for comparing the time overhead of the Trace phase provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0079] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0080] In view of the problems existing in the prior art, the present invention provides a safe and efficient non-permissioned blockchain conditional anonymity method, system and application. The present invention is described in detail below with reference to the accompanying drawings.
[0081] like Figure 1 As shown, the secure and efficient non-permissioned blockchain conditional anonymity method provided by the embodiment of the present invention includes the following steps:
[0082] S101, generating a one-time public key and related verification parameters based on the user's long-term public key;
[0083] S102, using bilinear ring signature technology to generate anonymous transaction bills, transaction signatures and related verification parameters;
[0084] S103, the miner node and the regulatory agency jointly verify the legitimacy of the transaction, and package the anonymous transaction and user identity information into the anonymous non-permissioned blockchain and the regulatory blockchain respectively;
[0085] S104, the regulatory agency uses its own private key to track the anonymous identity of the user.
[0086] The principle diagram of the secure and efficient non-permissioned blockchain conditional anonymity method provided by the embodiment of the present invention is as follows: Figure 2 shown.
[0087] like Figure 3 As shown, the secure and efficient non-permissioned blockchain conditional anonymity system provided by the embodiment of the present invention includes:
[0088] The public-private key pair generation module 1 is used to generate a one-time public key and related verification parameters based on the user's long-term public key;
[0089] Anonymous transaction generation module 2, used to generate anonymous transaction bills, transaction signatures and related verification parameters using bilinear ring signature technology;
[0090] Transaction legitimacy verification module 3 is used to verify the legitimacy of transactions through miner nodes and regulatory agencies, and to package anonymous transactions and user identity information into anonymous non-permissioned blockchains and regulatory blockchains respectively;
[0091] The user identity tracking module 4 is used to track the anonymous identity of the user through the regulatory agency using its own private key.
[0092] The technical solution of the present invention is further described below in conjunction with embodiments.
[0093] Blockchain technology is considered to be one of the most disruptive and revolutionary technologies in recent years. It has the characteristics of decentralization, tamper-proof, open, autonomous, and publicly verifiable, and has become a hot topic of research in academia, business, and government departments. Although the public verifiability of blockchain transactions guarantees decentralization and autonomy, transparent transaction information and certain capital flows will leak user privacy. Cryptocurrencies with privacy protection functions such as Zcash and Monero have emerged to achieve unconditional anonymity of user identities. However, this unconditional anonymity provides a natural barrier for the malicious behavior of criminals while protecting user privacy, which poses a great challenge to the investigation and accountability of regulators. Compared with permissioned blockchains that require identity registration, criminals are often more inclined to commit illegal acts in unlicensed blockchains with higher privacy protection levels. Although it is necessary to study the traceability of anonymous user identities in unlicensed blockchain scenarios, as far as we know, existing solutions often have problems such as questionable security and low efficiency. Therefore, it is an urgent problem to realize a safe and efficient traceable anonymity scheme, namely a conditional anonymity scheme, in unlicensed blockchain scenarios.
[0094] Aiming at the application requirements of anonymity and traceability of user identity in non-permissioned blockchain scenarios, the present invention proposes a safe and efficient non-permissioned blockchain conditional anonymity method, while realizing the privacy protection of user identity and the tracking and supervision of suspicious users by regulatory agencies. The present invention uses bilinear ring signature technology to realize the anonymity of user identity, while ensuring the privacy security of users, avoiding the introduction of a large number of uncontrolled random numbers, and avoiding potential risks such as key leakage and covert transmission. On this basis, the traceability of user identity by regulatory agencies is realized by constructing a dual-chain structure with a regulatory blockchain. At the same time, the use of the dual-chain structure reduces the transaction load in the non-permissioned blockchain and improves the throughput and overall efficiency.
[0095] The present invention is applicable to non-permissioned blockchain scenarios that have both privacy protection functions and regulatory requirements. It can not only utilize the excellent decentralization and tamper-proof characteristics of non-permissioned blockchains to achieve free entry and exit of users and spontaneous verification of transactions; at the same time, it can also achieve the anonymity of user identities and protect privacy security; in addition, compared with the existing unconditionally anonymous privacy protection non-permissioned blockchain system, the present invention solves the problems of difficult detection of illegal acts and difficult tracking of malicious users, and realizes a conditional anonymity solution that can be supervised and traced. It is particularly suitable for application scenarios that require both anonymity and traceability, such as: user transaction systems of a certain organization or region, vehicle information management systems with unrestricted access to and from unrestricted areas, and supervised public transaction systems with privacy protection, and other scenarios and applications that have both privacy protection and regulatory requirements.
[0096] 1. Preliminary knowledge
[0097] 1.1 Bilinear Map
[0098] set up is the multiplicative cyclic group of three prime orders p. The elements g1 and g2 represent the cyclic groups There exists a generator from arrive A computable homomorphic mapping ψ such that ψ(g1) = g2. There is also a computable bilinear mapping Satisfy the following three characteristics:
[0099] Bilinear: For any and Both have e(u a , v b )=e(u,v) ab Established;
[0100] Non-degenerate: in Represents a multiplicative cyclic group The unit element of
[0101] Computability: For any element There exist polynomial-time algorithms that can efficiently compute e(v,u) and ψ(u).
[0102] The following definition is given in Two difficult problems on the group.
[0103] Definition 1 (Discrete Logarithm Problem): The Discrete Logarithm Problem (DL) is described as follows: Assume is a multiplicative cyclic group of prime order p, and g is the generator of this cyclic group. Given a pair (g, g a ),in Output a.
[0104] According to the above definition, the group DL assumption in: Given a binary pair (g, g a ), for any probabilistic polynomial-time algorithm Advantages of output a is a negligible quantity, that is, it satisfies:
[0105]
[0106] where negl(·) is a negligible probability and λ represents a safety parameter.
[0107] Definition 2 (Computational co-Diffie-Hellman problem): The computational co-Diffie-Hellman problem is described as follows: Assume are two multiplicative cyclic groups of prime order p, g1 and h are groups A generator of . Given a triple in Without knowing a, output h a .
[0108] According to the above definition, we have Co-CDH hypothesis on groups: Given a triple For any probabilistic polynomial-time algorithm Output h a Advantages is a negligible quantity, that is, it satisfies:
[0109]
[0110] where negl(·) is a negligible probability and λ represents a safety parameter.
[0111] 1.2 Bilinear Ring Signature
[0112] A bilinear ring signature scheme consists of Four probabilistic polynomial-time algorithms. For a given security parameter This makes the following steps true:
[0113] · Setup(1 λ )→(param): A probabilistic polynomial time algorithm for a given security parameter Output system common parameters
[0114] · KeyGen(n, param) → (P i , x i ): A probabilistic polynomial time algorithm, which takes as input the ring group size n and the system public parameter param, and outputs n pairs of public and private keys (P i , x i ), where i∈[1,n]. Select a random number As the user's private key, and calculate As the user's public key;
[0115] · A probabilistic polynomial time algorithm, with the input being the signer's private key x s , signature message m, ring group public key set Where s∈[1,n] represents the position of the signer in the ring group, n represents the size of the ring group, and the output ring signature σ. Specifically, the signer uses a cryptographic hash function calculate And randomly select n-1 numbers i≠s, for all cases where i≠s, set the signature to For the case where i=s, set the signature to Output bilinear ring signature
[0116] · A deterministic algorithm, input ring signature σ, signature message m, ring group public key set If the verification is passed, the output is 1, otherwise the output is 0. Specifically, the verifier first calculates Then verify the equation Is it true?
[0117] 1.3 CryptoNote Technology
[0118] CryptoNote technology is an underlying cryptographic protocol used in blockchain systems with privacy protection functions. It uses one-time address technology and linkable ring signature technology to achieve anonymity hiding of transaction participants.
[0119] One-time key technology:
[0120] One-time public key address technology includes Four probabilistic polynomial-time algorithms. For a given security parameter This makes the following steps true:
[0121] · Setup(1 λ)→(param): A probabilistic polynomial time algorithm for a given security parameter Output system common parameters
[0122] · Long-termAddr(param)→((a, b)(A, B)): A probabilistic polynomial time algorithm that takes in the system public parameter param and outputs a long-term public-private key pair ((a, b)(A, B)).
[0123] · One-timeAddr((A, B), r) → (P, R): A probabilistic polynomial time algorithm that takes as input the long-term public key (A, B), a random number Output a one-time public key P and a public parameter R;
[0124] · Recover(P, R, (a, b)) → (x) is a probabilistic polynomial-time algorithm that takes as input a one-time public key P, public information R, and the corresponding long-term private key (a, b), and outputs the corresponding one-time private key x.
[0125] Linkable Ring Signatures:
[0126] A linkable ring signature scheme consists of Five probabilistic polynomial-time algorithms. For a given security parameter This makes the following steps true:
[0127] · Setup(1 λ )→(param): A probabilistic polynomial time algorithm for a given security parameter Output system common parameter param;
[0128] · KeyGen(n,pararn)→({sk i , pk i}): A probabilistic polynomial time algorithm, which takes as input the ring group size n and the system public parameter param, and outputs n pairs of public and private keys (pk i ,sk i ), where i∈[1,n];
[0129] · Sign(sk s ,m,U pk )→(I,σ): A probabilistic polynomial time algorithm, with the input being the signer’s private key sk s, signature message m, ring group public key set U pk ={pk1, pk2, ..., pk n}, where s∈[1,n] represents the position of the signer in the ring group, and outputs the ring signature σ and an auxiliary information I;
[0130] · Verify(σ,I,m,U pk )→(1 / 0): A deterministic algorithm, with input ring signature σ, signature message m, and ring group public key set U pk ={pk1, pk2, ..., pk n} and auxiliary information I, if it passes the verification, output 1, otherwise output 0;
[0131] · Link((σ1, I1), (σ2, I2))→(Link / ⊥): A deterministic algorithm that takes as input two ring signatures and corresponding auxiliary information ((σ1, I1), (σ2, I2)) and outputs Link / ⊥.
[0132] 2. System Model
[0133] like Figure 4 As shown, a secure and efficient non-permissioned blockchain conditional anonymity method provided by an embodiment of the present invention consists of six parts: payer, payee, miner node, regulator (Supervision Authority, SA for short), anonymous non-permissioned blockchain (Anonymous Permissionless Blockchian, AP-Blockchain for short) and supervision blockchain (Supervision Blockchain, S-Blockchain for short).
[0134] Payer: A payer is a type of node in AP-Blockchain, responsible for anonymously generating a transaction. When generating a transaction, it will also generate a one-time public key address for the payee.
[0135] Payee: Payee is a type of node in AP-Blockchain that receives a transaction as the output address of the transaction;
[0136] Miner node: Miner node is a type of node in AP-Blockchain, and is responsible for completing the legality verification of transactions together with SA;
[0137] ·Regulator: The regulator (SA) is a node in the regulatory blockchain (S-Blockchain). It maintains the normal operation of the regulatory blockchain and is responsible for verifying the legitimacy of transactions with miners. It can also track the user's identity information, including one-time addresses and long-term addresses;
[0138] Anonymous non-permissioned blockchain: Anonymous non-permissioned blockchain (AP-Blockchain) is a non-permissioned blockchain that maintains user anonymous transactions. Users conduct transactions anonymously in it, protecting the privacy and security of users;
[0139] ·Supervisory blockchain: The supervisory blockchain (S-Blockchain) is a permissioned blockchain that maintains user identity information. It stores the user’s hidden identity information and is used for transaction verification and identity tracking.
[0140] First, the payer generates a transaction using one-time address technology and bilinear ring signature technology. Subsequently, the miners and SA jointly verify the legitimacy of the transaction. Once verified, the transaction generated by the payer will eventually be packaged into the AP-Blockchain by the miners, and the user identity information corresponding to the exchange will eventually be packaged into the S-Blockchain by the SA, thereby achieving conditional anonymity for users in the non-permissioned blockchain.
[0141] 3. Method Overview
[0142] like Figure 2 As shown, under normal circumstances, the user's identity and other privacy information are protected in the AP-Blockchain similar to Monero. When a suspicious transaction is found, the SA tracks the identity of the real signer.
[0143] The overview of this method is as follows: The specific implementation and workflow of a secure and efficient non-permissioned blockchain conditional anonymity scheme are summarized as follows. The payer first executes step S101 to generate a one-time public key and related parameters, that is, to generate a one-time address for the current transaction and the auxiliary information Aux of the address based on the long-term address of the payee; the payer executes step S102 to generate an anonymous transaction, that is, to select n-1 other one-time addresses for hiding the identity to form a ring signature group. At the same time, the payer performs a bilinear ring signature on the transaction and publishes the transaction to the transaction pool; the miner node and SA execute step S103 to verify the validity of the anonymous transaction, that is, in the following period of time, the miner packages the transactions in the transaction pool and verifies the validity of the transaction with the SA. Finally, the miner will package the verified transactions into the AP-Blockchain, and the corresponding identity information in the transaction will be packaged into the S-Blockchain by the SA; the SA executes step S104 to track the identities of the participants in the suspicious transaction, that is, the SA tracks the identities of the anonymous users through its own private key, thereby realizing the traceability of the user identity of this method.
[0144] 4. Algorithm Overview
[0145] A secure and efficient non-permissioned blockchain conditional anonymity method consists of the following six algorithms, among which the algorithms Initialize, KeyGen, and AddressGen constitute step S101, which are used to generate a one-time public key and related parameters; the algorithm Spend constitutes step S102, which is used to generate user anonymous transactions; the algorithm Verify constitutes step S103, which is used to verify the validity of anonymous transactions; the algorithm Link&Trace constitutes step S104, which is used by the regulatory agency SA to track the user identity.
[0146] Initialize(1 λ )→(param): The algorithm is executed by the system. Enter a security parameter Output the public parameters param required by the solution;
[0147] ·KeyGen(param)→((r,R),(sk i , pk i )):This algorithm is executed by the user. Input the system public parameter param, and output the public-private key pair (r, R) of SA and the long-term public-private key pair (sk i , pk i );
[0148] ·AddressGen(param, pk t ,R)→(P t, K, Aux): This algorithm is executed by the payer. Input system public parameter param, payee long-term public key address pk t And SA's public key R, output a one-time address P associated with the recipient's long-term public key address t , auxiliary information K and auxiliary information Aux of the one-time address;
[0149] ·Spend(m,(x s , P s ), U, R) → (σ): This algorithm is executed by the payer. Input the one-time address public-private key pair (x s , P s ), message m, ring signature group public key set U = {P i :i∈[1,n]} and SA’s public key R, output the signature σ about the message;
[0150] Verify(Tx, σ)→(1 / 0): This algorithm is jointly executed by miners and SAs. Input transaction Tx and signature σ about the transaction. If it passes the verification, output 1, and miners and SAs package the transaction and corresponding identity information into AP-Blockchain and S-Blockchain respectively, otherwise output 0;
[0151] Link&Trace(σ)→((A s , B s ) / ⊥): This algorithm is executed by SA. Input the signature σ corresponding to the transaction. If the actual spending address of the transaction has been used before, output Link and the long-term address corresponding to the one-time address (A s , B s ), otherwise output ⊥.
[0152] 5. Specific structure
[0153] A secure and efficient non-permissioned blockchain conditional anonymity method packages the transactions published by anonymous users in AP-Blockchain. When a suspicious transaction is found, SA tracks the identity of the real signer. The present invention consists of 6 algorithms, and the specific construction method is described as follows:
[0154] Initialize(1 λ )→(param): Input a system security parameter λ and output the system public parameter Daram.
[0155] 1) Choose two bilinear maps with the same prime order p. and g1 and g2 represent The generator of arrive A computable homomorphic mapping of represents a target cyclic group of the same order p, represents a bilinear linear map;
[0156] 2) Choose two secure cryptographic hash functions
[0157] 3) Set the system common parameters to And returns this public parameter param.
[0158] ·KeyGen(param)→((r,R),(sk i , pk i )): Input the system public parameter paTam, output the public-private key pair (r, R) of the regulatory agency, and generate a long-term public-private key pair (sk i , pk i ).
[0159] 1) The regulator selects a random number As your own private key, and calculate R = g1 r as your own public key;
[0160] 2) The user selects two random numbers As your own long-term private key sk i , and calculate As your own long-term public key address pk i , then the public-private key pair corresponding to each user's long-term address is: (sk i , pk i )=((a i , b i ), (A i , B i ));
[0161] 3) Output the public and private key pairs of the regulatory agency and the user.
[0162] ·AddrGen(param, pk t )→(P t , K, Aux): Input system parameter param, recipient's long-term address pk t =(A t , B t ), output a one-time address public key corresponding to the long-term address of the payee, auxiliary information K and auxiliary information Aux related to the one-time address.
[0163] 1) The payer selects a random number And calculate the auxiliary information K = g1k ;
[0164] 2) Payer calculates Generate the recipient's one-time address public key P for this transaction t The private key of the one-time address can then be obtained by the recipient using his long-term private key sk i =(a t , b t ) is calculated
[0165] 3) The payer uses the regulator’s public key to encrypt the auxiliary information of the one-time address Used by regulators to track long-term addresses, the public key encryption here can be encrypted using ElGamal public key encryption.
[0166] ·Spend(m,(x s , P s ), U, R) → (σ): Input message m, public key set U = {P i , i∈[1,n]}, the payer's public-private key pair (x s , P s )(where s∈[1,n]), the regulator’s public key R, and the signature σ of the output message.
[0167] 1) The payer selects n one-time public key addresses with the same amount that include his own one-time address. i : i∈[1,n]}, where s∈[1,n], and the transaction information m to be generated;
[0168] 2) The payer selects n-1 random numbers for all group members i≠s except himself calculate And set the bilinear ring signature according to the following formula:
[0169]
[0170] 3) The payer selects a random number q∈R[1,n] and calculates the auxiliary information V of the signature using the following formula:
[0171]
[0172] 4) The payer uses the private key x corresponding to his one-time address s Digitally sign (R, V) The digital signature here can use the BLS short signature. Next, the payer uses the regulator’s public key R to Encryption is performed, where timestamp represents the current timestamp, which can prevent replay attacks;
[0173] 5) Output signature σ = (U, I, V, q, (σ1,...,σ n )).
[0174] Verify(Tx, σ)→(1 / 0): Input the transaction Tx and the signature σ corresponding to the transaction, output 1 / 0, and package the verified transaction and the corresponding identity information into AP-Blockchain and S-Blockchain respectively.
[0175] 1) The miner node calculates h→H1(m) and verifies whether the following two equations hold. If the equation holds, the miner node sends the verified transactions to the regulator, otherwise, it discards these transactions;
[0176]
[0177] 2) After receiving the transaction sent by the miner node, the regulator uses its own private key r to decrypt Aux and I and obtain and
[0178] 3) The regulator verifies whether the following equation is true. Ver represents the verification algorithm of the digital signature. If the equation is true, the regulator uses its own private key to sign the verified transaction and returns it to the miner node that sent it previously, otherwise the transaction is discarded;
[0179]
[0180] 4) After receiving the transaction, the miner node verifies the validity of the transaction and packages it into the AP-Blockchain. The identity information corresponding to these exchanges is packaged into the S-Blockchain by the regulatory agency.
[0181] Link&Trace(σ)→((A s , B s ) / ⊥): Input the signature σ corresponding to the exchange, and output the long-term public key address of the actual signer of the transaction (A s , B s ) or ⊥.
[0182] 1) After the regulator decrypts I with its own private key r, it obtains the actual input address of the transaction and checks in S-Blockchain whether the one-time address has appeared before. If it has appeared before, it means that the one-time address has been used. Otherwise, it means that the one-time address is used for the first time, and the output is ⊥;
[0183] 2) When the regulatory agency discovers a double spend or a problem with the transaction, it uses its own private key to decrypt the Aux corresponding to the one-time address and obtain the long-term address public key P s =(A s , B s ) and output.
[0184] The technical effects of the present invention are described in detail below in conjunction with experiments.
[0185] In order to test the present invention, a system of the present invention is implemented by programming simulation. At the same time, the scheme of the present invention is compared with the scheme of Li et al. [Traceable Monero: Anonymous Cryptocurrency with Enhanced Accountability].
[0186] First, a functional comparison is conducted.
[0187] Table 1 Functional comparison
[0188]
[0189] As shown in Table 1, both the scheme of the present invention and the scheme of Li et al. achieve anonymity and traceability in the non-permissioned blockchain scenario. The difference is that the present invention uses bilinear ring signature technology to eliminate the security risks brought by uncontrolled random numbers, avoiding problems such as covert transmission and key leakage. At the same time, since the scheme proposed by Li et al. does not take into account the easy solution of the co-DDH problem in bilinear pairing, the auxiliary information Ct of the one-time address generated in its scheme has potential identity leakage risks. This scheme successfully avoids such problems by using IND-CPA secure digital encryption technology.
[0190] Secondly, the communication and storage overhead are compared.
[0191] Table 2. Comparison of communication and storage overhead
[0192]
[0193] Table 2 analyzes the comparison between the scheme of the present invention and that of Li et al. in terms of communication and storage overhead. They represent cyclic groups of order p respectively. The length of the elements in the transaction, n and n' respectively represent the number of input and output accounts in a transaction, and l represents the cyclic group. The length of the elements in . In terms of the communication overhead of this scheme, Indicates the size of the input and output addresses of Aux in a transaction, and the size of the bilinear ring signature generated by the payer is At the same time, auxiliary information V and I need Length. Finally, the communication overhead of the solution of the present invention is Unlike communication efficiency, the storage efficiency of the solution of the present invention mainly analyzes the size of transactions in the anonymous non-permissioned blockchain. Under the same input and output accounts, the larger the transaction size, the lower the storage efficiency, which in turn affects the throughput. Compared with the solution of Li et al., the solution of the present invention does not need to store all signatures in the anonymous non-permissioned blockchain due to the introduction of auxiliary information V. Therefore, the storage cost of this solution is less than the communication cost by n-1 signatures, and the final storage cost is only
[0194] Finally, the computational cost is compared.
[0195] Table 3 Computational cost comparison
[0196]
[0197]
[0198] Table 3 shows the comparison of the computational overhead between the solution of the present invention and the solution of Li et al., where m represents the amount of money in each input account, n represents the number of input accounts, i.e., the number of members in the ring group, E represents the overhead of exponential operation in the cyclic group, and I represents the overhead of exponential operation in the cyclic group. s Indicates from arrive The overhead of homomorphic mapping, P represents the bilinear pairing operation, I n Indicates the inverse operation. In the analysis of Table 3, only operations with large overhead such as exponentiation and bilinear pairing are considered, and lightweight operations such as multiplication are ignored. For the public key encryption and digital signature technology used in the solution of the present invention, ElGamal and BLS short signatures are used for instantiation during the analysis and experiment process. The specific calculation overhead is as follows:
[0199] Spend phase: The computational overhead of this phase is performed by the payer. When generating a transaction, the payer must first perform 2(n-1) exponential operations and one bilinear pairing operation to generate a bilinear ring signature. After that, the auxiliary information (V, I) of the transaction is generated, which requires 5 exponential operations, including the generation of the BLS short signature and the ElGamal encryption operation. Therefore, the time overhead of the present invention in the Spend phase is: (3+2n)E+2I s .
[0200] Verify stage: The computational overhead of this stage is shared by the miner node and the regulator. On the miner node side, it is first necessary to perform (n+2) bilinear pairing operations to verify the bilinear ring signature generated by the payer. After that, the regulator needs to perform 3 exponential operations and 2 bilinear pairing operations to decrypt and verify the signature of (V, I). Therefore, the computational overhead of the solution of the present invention in the Verify stage is: (n+4)P+3E.
[0201] Trace phase: This phase is performed by the regulatory agency. The regulatory agency first decrypts the one-time address of the real signer of a transaction from the auxiliary information I, which requires 1 exponential operation. Since the signature in I has been verified in the previous verification phase, there is no need to perform the bilinear pairing operation again in the next step. Finally, in order to track the user's long-term address, the regulatory agency decrypts and verifies Aux, which requires 2 inversion operations and 1 exponential operation. Therefore, the final computational overhead of the regulatory agency in the Trace phase is: 2E+2I n .
[0202] The present invention is implemented in the Linux operating system by using Python based on the GMP library and the PBC library. The experimental equipment is equipped with an Intel (R) Xeon CPU E5-2682 v4@2.50GHz processor and 2GB RAM. Considering the security of the scheme, we set the order of the cyclic group to p=1024 bits. The test results are the average of 20 independent tests.
[0203] Figures 5 to 8 The figure shows the comparison of experimental results between the scheme of the present invention and the scheme of Li et al. Figure 4 The variation pattern of the time overhead of the scheme of the present invention and the scheme of Li et al. in the Spend stage with the number of input accounts (number of ring group members) is shown. It can be seen from the variation pattern of the curve in the figure that the time overhead of the two schemes in the Spend stage shows a linear growth pattern with the increase of input accounts. The difference is that the variation range of the scheme of Li et al. is higher than that of the scheme of the present invention. The reason for this variation pattern is that the scheme of Li et al. performs multiple one-way domain accumulator operations and one knowledge signature operation in the Spend stage, and these operations involve linearly growing bilinear pairing operations. Compared with the linearly growing modular exponential operation of the present invention, the variation range of the curve of the scheme of Li et al. is greater than that of the scheme of the present invention, which is consistent with the results of the efficiency analysis, indicating that the scheme of the present invention is superior to the scheme of Li et al. in the Spend stage.
[0204] Figure 6The figure shows how the time spent in the Verify phase of the scheme of the present invention and the scheme of Li et al. varies with the number of input accounts (number of ring group members). It can be clearly seen from the figure that although the time spent in the Verify phase of both shows a linear growth pattern with the number of input accounts, the verification efficiency of the scheme of the present invention is better than that of the scheme of Li et al. The reason for this phenomenon is that although the present scheme uses a linearly growing bilinear pairing operation in the Verify phase, the scheme of Li et al. uses 3 (m + 1) bilinear pairing operations in the verification of the one-way domain accumulator and the knowledge proof, which is three times that of the scheme of the present invention. The experimental results are consistent with the efficiency analysis, indicating that the present scheme is also better than the scheme of Li et al. in the verification phase.
[0205] Figure 7 The figure shows the time cost comparison between the scheme of the present invention and the scheme of Li et al. in verifying the validity of transactions on anonymous non-permissioned blockchains by users (not miner nodes). It can be clearly seen from the figure that as the number of input accounts increases, the scheme of the present invention presents a stable and low time cost, while the scheme of Li et al. presents a high linear growth. The reason for this phenomenon is that in order to improve the throughput, the scheme of the present invention only stores the auxiliary information V used for verification in AP-Blockchain instead of all the ring signature information. This makes the scheme only need to perform three bilinear pairing operations when the user verifies the transaction, while the scheme of Li et al. still stores all the verification information in the non-permissioned blockchain, making the user's verification of the transaction no different from that of the miner node. It is worth noting that since in the blockchain system, the generation of transactions and the verification of miner nodes are one-time, but the user's verification of transactions in the anonymous non-permissioned blockchain is multiple times, it is very meaningful to discuss the results of this aspect.
[0206] Figure 8 The time overhead of the scheme of the present invention and the scheme of Li et al. in the Trace stage varies with the number of input accounts (number of ring group members). It can be clearly observed in the figure that the modular exponential time overhead of the scheme of Li et al. in the Trace stage increases linearly with the number of input accounts, while the scheme of the present invention presents a fixed and smaller time overhead. The reason for this phenomenon is that when the scheme of the present invention tracks the anonymous identity of the user, it only needs to perform ciphertext decryption and signature verification operations, which only involves 2 modular exponential operations and 2 inversion operations. However, when the scheme of Li et al. is tracking, the regulatory agency needs to query and match the ring group members after using the private key to decrypt, and the time efficiency is related to the position of the real signer in the ring group. This is basically consistent with the analysis based on the average time complexity in the efficiency analysis, indicating that the scheme of the present invention has certain advantages in tracking efficiency compared with the scheme of Li et al.
[0207] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When the use is implemented in whole or in part in the form of a computer program product, the computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk (SSD)), etc.
[0208] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A secure and efficient non-permissioned blockchain conditional anonymity method, characterized by: The secure and efficient non-permissioned blockchain conditional anonymity method comprises the following steps: Step 1: Generate a one-time public-private key pair: Generate a one-time public key and related verification parameters based on the user's long-term public key; Step 2: Generate anonymous transactions: Use bilinear ring signature technology to generate anonymous transaction bills, transaction signatures, and related verification parameters; Step 3: Transaction legitimacy verification: Miner nodes and regulators work together to verify the legitimacy of the transaction and package the anonymous transaction and user identity information into an anonymous non-permissioned blockchain and a regulated blockchain respectively; Step 4: User identity tracking: The regulatory agency uses its own private key to track the user's anonymous identity.
2. The secure and efficient non-permissioned blockchain conditional anonymity method as claimed in claim 1, characterized in that: In step 1, the user's one-time public-private key pair generation includes the following three algorithms: (1) Initialize(1 λ )→(param): Input a system security parameter λ and output the system public parameter param; 1) Choose two bilinear multiplicative cyclic groups with the same prime order p and g1 and g2 represent The generator of arrive A computable homomorphic mapping of represents a target cyclic group of the same order p, represents a bilinear mapping; 2) Choose two secure cryptographic hash functions 3) Set the system common parameters to And return this public parameter param; (2)KeyGen(param)→((r, R), (sk i , pk i )):Input the system public parameter param, output the public and private key pair (r, R) of the regulatory agency, and generate a long-term public and private key pair (sk i , pk i ); 1) The regulator selects a random number As your own private key, and calculate R = g1 r as your own public key; 2) The user selects two random numbers As your own long-term private key sk i , and calculate As your own long-term public key address pk i , then the public-private key pair corresponding to each user's long-term address is: (sk i , pk i )=((a i , b i ), (A i , B i )); 3) Output the public and private key pairs of the regulatory agency and the user; (3)AddrGen(param, pk t )→(P t , K, Aux): Input system parameters param, recipient's long-term address pk t =(A t , B t ), output a one-time address public key corresponding to the payee's long-term address, auxiliary information K and auxiliary information Aux related to the one-time address; 1) The payer selects a random number And calculate auxiliary information K=g1 k ; 2) Payer calculates Generate the payee's one-time address public key P for this transaction t The private key of the one-time address can then be used by the payee through his long-term private key sk i =(a t , b t ) calculated 3) The payer uses the regulator’s public key to encrypt the auxiliary information of the one-time address Used by regulatory agencies to track long-term addresses; wherein the public key is encrypted using the E1Gamal public key.
3. The secure and efficient non-permissioned blockchain conditional anonymity method as claimed in claim 1, characterized in that: In step 2, the anonymous transaction is generated, including: Spend(m,(x s , P s ), U, R) → (σ): Input message m, public key set U = {P i , i∈[1,n]}, the payer's public and private key pair (x s , P s ) where s∈[1,n], the regulator’s public key R, and the signature σ of the output message; (1) The payer selects n one-time public key addresses with the same amount that include his own one-time address. U={P i : i∈[1,n]}, where s∈[1,n], and the transaction information m to be generated; (2) The payer selects n-1 random numbers for all group members i≠s except himself calculate And set the bilinear ring signature according to the following formula: (3) The payer selects a random number q∈R[1,n] and calculates the signature auxiliary information V using the following formula: (4) The payer uses the private key x corresponding to his one-time address s Digitally sign (R, V) The digital signature uses the BLS short signature; the payer uses the regulator's public key R to Encryption is performed, where timestamp represents the current timestamp; (5) σ=(U, I, V, q, (σ1, ..., σ n )).
4. The secure and efficient non-permissioned blockchain conditional anonymity method as claimed in claim 1, characterized in that: In step 3, the transaction legitimacy verification includes: Verify(Tx, σ) → (1 / 0): Input the transaction Tx and the signature σ corresponding to the transaction, output 1 / 0, and package the verified transaction and the corresponding identity information into the AP-Blockchain and S-Blockchain respectively; (1) The miner node calculates h→H1(m) and verifies whether the following two equations hold. If so, the miner node sends the verified transactions to the regulator; otherwise, it discards the transactions. (2) After receiving the transaction sent by the miner node, the regulator uses its own private key r to decrypt Aux and I to obtain and (3) The regulatory authority verifies whether the following equation holds true; where Ver represents the digital signature verification algorithm; if the equation holds true, the regulatory authority uses its own private key to sign the verified transaction and returns it to the miner node that sent it previously; otherwise, the transaction is discarded; (4) After receiving the transaction, the miner node verifies the validity of the transaction and packages the transaction into the AP-Blockchain; the identity information corresponding to the exchange is packaged into the S-Blockchain by the regulatory agency.
5. The secure and efficient non-permissioned blockchain conditional anonymity method as claimed in claim 1, characterized in that: In step 4, the user identity tracking includes: Link&Trace(σ)→((A s , B s ) / ⊥): Input the signature σ corresponding to the exchange and output the long-term public key address (A s , B s ) or ⊥; (1) The regulator uses its own private key r to decrypt I, obtains the actual input address of the transaction, and checks whether the one-time address has appeared before in the S-Blockchain; if it has appeared before, it means that the one-time address has been used; otherwise, it means that the one-time address is used for the first time, and outputs ⊥; (2) When the regulatory agency discovers a double spend or a problem with the transaction, it uses its own private key to decrypt the Aux corresponding to the one-time address and obtain the long-term address public key P s =(A s , B s ) and output.
6. A secure and efficient non-permissioned blockchain conditional anonymity system for implementing the secure and efficient non-permissioned blockchain conditional anonymity method according to any one of claims 1 to 5, characterized in that: The secure and efficient non-permissioned blockchain conditional anonymity system includes: Public-private key pair generation module, used to generate a one-time public key and related verification parameters based on the user's long-term public key; An anonymous transaction generation module, which uses bilinear ring signature technology to generate anonymous transaction bills, transaction signatures, and related verification parameters; The transaction legitimacy verification module is used to verify the legitimacy of transactions through miner nodes and regulatory agencies, and to package anonymous transactions and user identity information into an anonymous non-permissioned blockchain and a regulatory blockchain respectively; The user identity tracking module is used to track the anonymous identity of users using their own private keys through regulatory agencies.
7. A computer device, characterized in that: The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps: Based on the user's long-term public key, a one-time public key and related verification parameters are generated; bilinear ring signature technology is used to generate anonymous transaction bills, transaction signatures and related verification parameters; miner nodes and regulators work together to verify the legitimacy of transactions, and package anonymous transactions and user identity information into anonymous non-permissioned blockchains and regulatory blockchains respectively; regulators use their own private keys to track users' anonymous identities.
8. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps: Based on the user's long-term public key, a one-time public key and related verification parameters are generated; bilinear ring signature technology is used to generate anonymous transaction bills, transaction signatures and related verification parameters; miner nodes and regulators work together to verify the legitimacy of transactions, and package anonymous transactions and user identity information into anonymous non-permissioned blockchains and regulatory blockchains respectively; regulators use their own private keys to track users' anonymous identities.
9. An information data processing terminal, characterized in that: The information data processing terminal is used to implement the secure and efficient non-permissioned blockchain conditional anonymity system as described in claim 6.
10. An application of the secure and efficient non-permissioned blockchain conditional anonymity system as claimed in claim 6 in a blockchain system.
