Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines ERC7524, which proposes a signature scheme for deriving a nullifier that uniquely identifies an account while preserving its anonymity.
This article translates, summarizes, and expands on the proposal below.
I have also covered various EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ZK-SNARKs (succinct zero-knowledge proofs) have enabled a new class of identity applications in which users can demonstrate that they possess particular secret information without revealing their identities. In particular, proving the uniqueness of a key holder anonymously requires a verifiably deterministic signature, a signature scheme whose deterministic output can be verified.
Ethereum, however, uses the Elliptic Curve Digital Signature Algorithm (ECDSA). Even if an ECDSA signature is generated deterministically, an external party has no way to verify that it was generated in that manner. Furthermore, proving correct signature generation in a ZK-SNARK would ordinarily require the private key, which many hardware wallets are specifically designed never to expose.
Standardizing SNARK-specific computation (arithmetization) inside hardware wallets is also impractical. SNARK constructions evolve frequently, making it undesirable to embed a particular proving system in a wallet.
A new signature algorithm is therefore needed that allows a SNARK proof to be generated outside the wallet without exposing the private key.
The objective is to use a deterministic value derived from the signature as an anonymous identifier, or nullifier, so that individual users can demonstrate uniqueness without revealing whose key they hold.
For example, a SNARK can simultaneously establish the following properties.
- The signature was generated correctly.
- Only the hash of the signature, rather than the signature itself, is disclosed externally.
- Additional conditions hold, such as membership of the public key in a specified set.
Only the proof and the signature hash are made public. The latter acts as the nullifier.
A nullifier is public data that uniquely represents an anonymous account and can prevent duplicate actions or link anonymous actions to one another.
Standardizing a deterministic signature algorithm with these properties is central to establishing user uniqueness without compromising anonymity.
Motivation
Many current ZK applications allow the same wallet to generate proofs repeatedly. For many use cases, that is appropriate. However, there is growing demand for applications that enforce one action per user while preserving anonymity. Uniqueness is particularly important when preventing Sybil attacks involving multiple fraudulent accounts.
In Ethereum's existing architecture, achieving this has required mapping addresses into a separate system and associating their private keys with that system. This approach has several drawbacks.
- It requires additional infrastructure and increases complexity.
- It compromises atomicity.
- It cannot directly leverage an Ethereum address's existing history and track record.
What is needed is a deterministic, unique value derived from an Ethereum ECDSA key pair. This would make it possible to enforce one action by the holder of a given key while keeping the original address anonymous.
Applications That Require This Technique
The following applications are particularly relevant.
| Application | Description |
|---|---|
| ZK voting | Prevent duplicate votes while preserving anonymity when each account is entitled to one vote. |
| Anonymous airdrops (Stealthdrop) | Prevent repeated claims without identifying the claiming address. |
| Anonymous forum moderation | Establish that anonymous actions come from the same person and build a history of those actions. |
| ZK proofs of assets | When an exchange proves balances held by addresses whose private keys it controls, prevent another exchange from claiming the same addresses. |
These use cases require deterministic values derived from Ethereum keys to enforce one user = one action.
Specification
Parameters
The signature scheme uses the same elliptic curve as Ethereum, secp256k1.
The curve is defined in Standards for Efficient Cryptography 2 (SEC 2).
The curve has the following fundamental parameters.
- Base point (generator) The reference point used to calculate public keys.
- Curve order The period corresponding to the number of times the generator must be added to itself before returning to the identity.
- Finite field
The set of values over which curve computations take place.
secp256k1uses a finite field modulo a large prime.
ERC7524 explicitly uses exponential notation for elliptic curve scalar multiplication, such as multiplying the generator by a private key to obtain a public key.
Public Key Encoding (SEC1)
Public keys use the encoding defined in a separate standard, SEC1. The main points are as follows.
- Use the compressed encoding specified by SEC1.
- Represent a point on
secp256k1(a public key) as a 33-byte sequence.
ERC7524 defines dedicated notation for this 33-byte compressed public key representation. Fixed-length inputs to signature and hash operations make the specification and its implementation easier to follow.
Hash Function (SHA256)
The scheme uses SHA256, the standard hash function defined in IETF RFC4634.
ERC7524 specifies the following rules when hashing concatenated values with SHA256.
- Concatenate the byte representations of values such as messages, public keys, and encoded curve points in the specified order.
- Apply
SHA256to the concatenated sequence to obtain the hash. - Interpret the resulting 32-byte hash as a
secp256k1scalar in big-endian order.
Interpreting a hash as a scalar means treating it as a large integer suitable for scalar multiplication on the curve, in the same domain as private keys and random scalars.
Hash-to-Curve
Hash-to-curve is a standardized procedure for securely deriving a point on an elliptic curve from an arbitrary byte sequence.
ERC7524 uses the hash-to-curve construction for secp256k1 defined in IETF RFC9380.
Specifically, it uses secp256k1_XMD:SHA-256_SSWU_RO_, defined in Appendix J.8.1 of RFC 9380.
The specification uses dedicated notation for this function when concatenating several values into a byte sequence and deriving a curve point from it.
Key Generation
Key generation follows the conventional approach for secp256k1.
- Private key A random scalar drawn from the finite field using a cryptographically secure random number generator.
- Public key An elliptic curve point obtained by multiplying the generator by the private key. (Private key × generator = public key.)
The key pair is compatible with existing Ethereum accounts using ECDSA over secp256k1. Existing wallet keys can therefore be reused.
Signature Generation
The signature scheme is based on Chaum-Pedersen signatures (Chaum-Pedersen proofs). Chaum-Pedersen is a protocol for proving that two values share the same discrete logarithm, adapted here into a signature construction.
The following describes signature generation using a 32-byte message and the key pair above.
- Choose a random scalar from the finite field. Sample a fresh random scalar for each signature. This introduces a nondeterministic element.
- Compute a curve point corresponding to the random scalar. Obtain a random point, for example by multiplying the generator by the random scalar.
- Map the message and other values to a curve point using hash-to-curve. Concatenate the specified values, such as the message and public key, and apply hash-to-curve to obtain a point.
- Calculate the
nullifier. Calculate the deterministic component used as public information. Signing the same message with the same key always produces the samenullifier. - Calculate the challenge (hash).
Concatenate the specified values, such as the message and
nullifier, hash them withSHA256, and interpret the result as a scalar. This serves as the challenge in the signature scheme. - Calculate the response. Combine the random scalar, private key, and challenge to calculate a Chaum-Pedersen-style response scalar.
- Assemble the signature.
The final signature is represented as a tuple of values such as the random point,
nullifier, and response scalar.
The important point in this description is that the challenge is calculated from the message and nullifier, rather than from the message and random point.
This makes the nullifier derived from the same message and key invariant across signatures, allowing it to serve as a deterministic identifier.
Signature Verification (Non-ZK)
This section provides an intuitive account of ordinary, non-zero-knowledge signature verification. Although it is not the core of the specification, it helps explain ZK verification.
Suppose the verifier knows the following information.
- The message.
- The
nullifier. - The signer's public key.
- The signature, including values such as the random point and response scalar.
The verifier can check the signature as follows.
- Recalculate the challenge from the message and
nullifier. - Recalculate the expected points using the public key, challenge, and response scalar.
- Compare the results with the random point and other signature components to determine whether the Chaum-Pedersen signature relations hold.
For example, verification checks several conditions, such as whether three elliptic curve point equalities all hold. If any condition fails, the signature is rejected; otherwise, it is accepted.
This gives the intuition behind ordinary signature verification. The following sections describe verification in zero knowledge.
Version 1: Verifier Optimized
This version describes how to prove in zero knowledge that a signer possesses the correct private key without revealing it to the verifier.
Signature verification logic is represented as a circuit for a zero-knowledge proof system, such as a Groth16 SNARK. Its inputs are divided as follows.
- Public inputs
Values intended for the verifier, such as the message and
nullifier. - Private inputs Values that should remain hidden, such as the private key, randomness, and internal scalars and points. Some intermediate values can also be supplied as private inputs to reduce the number of constraints.
The circuit repeats computations similar to those used for signature generation.
- Recalculate the public key from the private key and generator.
- Recalculate the random point from the random scalar and generator.
- Derive the required point using hash-to-curve.
- Recalculate the
nullifier. - Calculate the challenge from the message and
nullifier. - Check that the response scalar was calculated correctly from the randomness, private key, and challenge.
Additional constraints establish that the signature was generated correctly.
- The public key is derived correctly from the private key.
- The nullifier is calculated correctly from the message and public key (or the specified values).
- The response scalar, random point, and public key satisfy the Chaum-Pedersen relations.
A SNARK proof that all these constraints are satisfied enables the verifier to confirm the correctness of the signature without knowing the private key.
Version 2: Prover Optimized
When generating ZK proofs in a browser, SHA-256 computation is particularly expensive.
In the context of PLUME, hashing the message and nullifier was a bottleneck.
The Poseidon team therefore proposed moving this SHA-256 calculation outside the proving circuit and performing it on the verifier's side.
The resulting architecture is as follows.
- Public circuit inputs
The message,
nullifier, signature, hash result, and related values. - Private circuit inputs The values that genuinely need to remain hidden, such as the private key and randomness.
The circuit no longer computes SHA-256. It performs only checks such as the following.
- Recalculate the public key from the private key.
- Recalculate the random point from the random scalar.
- Check the relationship between the
nullifierand the signature. - Check that the Chaum-Pedersen equalities hold.
The PLUME verifier performs the actual SHA-256 computation outside the circuit.
In addition to verifying the ZK proof, it hashes the message and nullifier with SHA-256 and checks that the result matches the hash supplied as a public input.
Ethereum provides SHA-256 as a precompile (a natively implemented, efficient built-in operation), so a smart contract can perform this additional check efficiently.
Version 2 removes SHA-256 from the proving circuit and is expected to substantially reduce browser-based proof generation time.
Version 3
The proposal also mentions Version 3 as a possible future improvement.
It suggests that relaxing the indifferentiability property of hash_to_curve (indistinguishability from a certain ideal hash construction) might allow further optimization.
No specific design or construction has been finalized, but a more efficient hash_to_curve could reduce circuit constraints and computational cost, enabling lighter-weight ZK signature verification.
Additional Considerations
This section describes the desired properties of the signature algorithm and the design choices intended to achieve them. The following properties are particularly important for zero-knowledge identity systems.
| Property | Objective |
|---|---|
| Noninteractivity | Support large anonymity sets without prior interaction. |
| Uniqueness | Prevent the same account from acting multiple times. |
| Determinism | Obtain the same result (nullifier) under identical conditions. |
| Verification without the private key | Verify the correctness of a nullifier using only the public key. |
Noninteractivity
Noninteractivity means being able to use proofs or nullifier values without prior communication to establish the system.
It matters in zero-knowledge identity systems because a large anonymity set can exist from the outset.
A larger anonymity set makes it harder to determine which user performed an action and provides resistance to Sybil attacks and spam. If a system requires an interactive registration phase, only users who complete registration belong to the anonymity set, which can limit its size.
A noninteractive nullifier allows the following operations.
- Prove membership in an account set represented by a Merkle tree in zero knowledge.
- Prove through a signature that the message is correctly associated with the account.
- Enforce a one-action-per-user constraint using the
nullifier.
This enables use cases such as a ZK airdrop in which all eligible accounts are already included in the anonymity set without taking any preliminary action.
By contrast, a design using interactive nullifier values, such as tornado.cash, requires updating the Merkle tree for each new user.
Joining the anonymity set therefore requires a prior action, and full noninteractivity is not achieved.
Uniqueness
Preventing double spending or duplicate claims requires ensuring that an account can act only once in a particular context.
A unique nullifier is crucial to this requirement.
However, Ethereum's ECDSA signature scheme permits nondeterministic signature generation using a different random value each time. The signature itself cannot therefore serve as a unique identifier. The same key and message can produce different signatures.
A new deterministic function that can be verified using only the public key is needed. It must satisfy the following conditions.
- Be noninteractive.
- Uniquely identify the key pair.
- Avoid disclosing the account's identity (its address).
The central idea is to use the nullifier as a public commitment to an anonymous account.
Although the nullifier is public, it does not reveal which account it represents; it establishes only that a particular anonymous account is uniquely entitled to use that nullifier.
Determinism
Determinism means that the same account signing under identical conditions always obtains the same value, such as the nullifier.
The objective is for each account to generate a signature in a given context and obtain the same nullifier whenever it signs again in that context.
The nullifier thus acts as a fixed label associated with that key pair and context.
Nondeterministic signature schemes such as ECDSA do not provide this property.
The proposed signature scheme is consequently designed to use randomness internally while retaining a deterministic nullifier component.
Verifiable Without a Secret Key
When signature generation is nondeterministic, as it can be with ECDSA, the signature alone does not establish whether it was derived from a particular deterministic function. This is because internal state depends on the private key.
The desired function has the following properties.
- Its output is deterministic.
- It can be verified using only the public key.
- It does not require pasting the private key anywhere or extracting it from an enclave.
- Its computation is simple enough to perform within a hardware wallet enclave.
A noninteractive nullifier can uniquely identify a key pair without revealing its public key, while preserving the anonymity of the account.
The design aims to remain as simple as possible. It draws on BLS signatures, Chaum-Pedersen proofs of equality of discrete logarithms, and ideas from Goh and Jarecki's EDL paper, adapted to operate over secp256k1.
Security
Cryptographic Security and Implementation Status
Formal proofs of the algorithm's particular cryptographic properties are provided in the PLUME paper, according to the proposal. The theoretical work has been published, and the implementation has undergone an internal audit.
End-to-end formal verification and external auditing, however, were not yet complete at the time described in the proposal.
- The theoretical construction has a security proof establishing its correctness under the specification.
- Empirical checks indicate that the implementation follows the specification, but a complete external audit was still pending.
The Trade-off Between Interactivity and Privacy in the Quantum Era
This section considers what could happen when sufficiently powerful quantum computers become available.
Breaking ECDSA With Quantum Computing
In the distant future, sufficiently powerful quantum computers could compromise key pairs based on the discrete logarithm problem, including ECDSA. Many Ethereum key pairs would consequently become vulnerable.
However, active assets could be protected by migrating in advance to new quantum-resistant key pairs (or key pairs with larger bit lengths). The proposal envisages a migration along the following lines.
- Use an existing ECDSA key to sign a message containing a commitment to a new quantum-resistant key pair.
- Fork the chain to recognize the new key pair as the authorized one.
This could protect migrated assets even if ECDSA were subsequently broken.
The proposal also considers the possibility that ZK-SNARKs could become forgeable once quantum computers arrive, while previously generated ZK proofs might retain forward secrecy. In the ideal case, the chain as a whole could continue operating without major disruption.
Anonymity Risks of Deterministic nullifier Values
Anonymity based on deterministic nullifier values is vulnerable to the exposure of private keys through quantum computation.
With a deterministic nullifier, the key pair is the sole source of secret randomness supporting anonymity.
If a quantum computer can recover private keys, an attacker could completely undermine anonymity through the following process.
- Recover the private keys of all accounts in the anonymity set.
- Recalculate the deterministic
nullifierfor each key. - Compare the results with on-chain
nullifiervalues to identify which account corresponds to each value.
This limitation applies to deterministic nullifier schemes built on ECDSA. Once the private key is known, the only source of randomness protecting anonymity is lost.
An Alternative for Post-Quantum Privacy (the semaphore Model)
Preserving anonymity even after quantum computers become available requires sacrificing some property of the system. The proposal considers noninteractivity the most practical property to relinquish.
A semaphore-style construction is given as an example.
At a high level, it works as follows.
- Each account wishing to join the anonymity set signs and publishes a commitment to a semaphore ID.
(Conceptually, it publishes a value such as
hash[random value, external nullifier, public key].) - When performing an action, a user publishes an
externalnullifierand proves in zero knowledge that it originates from one of thesemaphore IDvalues included in the anonymity set.
In this approach, the anonymity set is restricted to people who previously published semaphore commitments.
It therefore has the following characteristics.
- The anonymity set shrinks to users who have already opted in.
- A separate registration phase is needed to build a sufficiently large anonymity set.
This interactivity makes constructions such as ZK airdrops and improved versions of tornado.cash considerably harder to use.
However, the primary security assumption here is the hardness of attacking the hash function. Under the understanding described in the proposal, hash functions are comparatively resistant to quantum computation. Such a construction may therefore be considerably more resistant to deanonymization even after quantum computers become available.
Estimates of When Quantum Attacks Could Become Practical
Estimates of the qubits required to solve discrete logarithms with quantum annealing cited in the proposal report unsuccessful experiments beyond very small bit lengths (approximately 6-bit primes in the cited text). Given estimates of 10–40 years for the quantum resources needed to break RSA to become available, solving discrete logarithms at a practical scale was expected to take even longer.
On that basis, the proposal considers practical quantum attacks on ECDSA potentially still far in the future.
Choosing a Scheme for Each Application
The appropriate algorithm depends on the application.
-
Applications requiring relatively short-term privacy For example, DAO votes or confessions made in one's youth may become less sensitive far into the future. Such use cases might favor the deterministic
nullifierconstruction described here. Noninteractivity and ease of use are significant advantages. -
Applications requiring very long-term privacy In contexts such as whistleblowing and journalism, where anonymity matters even decades later, an interactive construction such as the
semaphoremodel may be more appropriate than a deterministicnullifier.
The choice of algorithm therefore depends on the relative importance of noninteractivity, uniqueness, determinism, verification without the private key, and anonymity extending into the quantum era.
Citation
Yush G (@Divide-By-0) aayushg@mit.edu, Kobi Gurkan (@kobigurk), Richard Liu (@rrrliu), Vivek Bhupatiraju (@vb7401), Barry Whitehat (@barryWhiteHat), "ERC-7524: PLUME Signature in Wallets [DRAFT]," Ethereum Improvement Proposals, no. 7524, September 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7524.
Conclusion
This article examined ERC7524, a proposal for signatures that generate a nullifier to uniquely identify an account while preserving anonymity.
If you have any questions, feel free to contact me via direct message on Twitter.
I also publish on other platforms.



