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 EIP7503, which proposes a native Ethereum privacy mechanism: send ETH to an address that is computationally infeasible to spend from, then use a zero-knowledge proof to mint an equivalent amount later.
This article translates, summarizes, and expands on the proposal below.
I have also covered a range of EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
EIP7503 proposes a technique called Zero-Knowledge Wormholes, in which ETH is sent to an effectively unspendable address and burned, then an equivalent amount can be minted again using a zero-knowledge proof of the burn. This enables funds to move to a new address while providing strong privacy for the original sender.
You might wonder: Wouldn't sending ETH to an unspendable address mean losing it forever? Under ordinary protocol rules, yes. This proposal introduces new rules at the protocol level. If a zero-knowledge proof demonstrates that ETH was sent to an effectively unspendable address, the protocol permits an equivalent amount of ETH to be minted at another address. The original ETH cannot be recovered, but an equivalent amount of new ETH is issued, preserving the user's assets under the proposed rules. Privacy is provided by obscuring the relationship between the original sender and the recipient.
Key features
| Feature | Description |
|---|---|
| Private burn | Burns ETH by sending it to an effectively unspendable address |
| Zero-knowledge minting | Mints the burned amount again without publicly revealing the corresponding burn |
| Plausible deniability | Observers cannot establish the sender's participation from the deposit alone |
| Native anonymity set | All accounts that have never sent a transaction are included in the anonymity set by default |
| Privacy pool integration | Includes a verification mechanism intended to support responsible use of privacy |
| Maximum deposit | Up to 32 ETH |
Plausible deniability means that a person can reasonably deny having performed a particular action. In this proposal, the deposit alone does not prove to a third party that the sender participated in the privacy protocol, providing strong plausible deniability.
Motivation
Cryptocurrency mixers such as TornadoCash can effectively obscure Ethereum transactions, but governments can target their use through restrictions. People interacting with a mixer contract, whether as senders or recipients, may be identified as such.
EIP7503 seeks to minimize disclosure about the sender by using ordinary EOA-to-EOA transfers for deposits, without requiring an interaction with a smart contract.
The following diagram compares mixers such as TornadoCash with the approach taken by EIP7503.
sequenceDiagram
participant U as ユーザー
participant M as ミキサーコントラクト
participant C as ブロックチェーン
Note over U,C: TornadoCash(既存ミキサー)
U->>M: ETHを入金(コントラクト呼び出し)
Note right of M: ミキサーとのやり取りが<br/>オンチェーンで記録される
M->>U: ETHを出金(コントラクト呼び出し)
Note right of U: 送受信者がマーク可能
Note over U,C: EIP7503(この提案)
U->>C: ETHを通常送金(EOA→EOA)
Note right of C: 友人への送金と区別不可能
U->>C: Wormholeトランザクションで再ミント
Note right of U: プライバシープロトコルへの<br/>参加を証明不可能
Mixer contract interactions are recorded on-chain and can be identified. With EIP7503, a deposit uses an ordinary EOA-to-EOA transfer, so that transfer alone does not establish participation in the privacy protocol.
Limitations of existing mixers
| Issue | Description |
|---|---|
| Explicit contract interactions | Mixer usage is observable |
| Regulatory risk | Governments can target mixer usage through bans or sanctions |
| Identification of senders and recipients | Accounts may be flagged based on their association with a mixer |
The EIP7503 approach
To enable ETH to be burned and subsequently minted at another address, the proposal distinguishes two groups of Ethereum addresses.
| Address space | Description |
|---|---|
| Spendable addresses | An address for which a private key is known such that , or for which a smart contract can be deployed such that |
| Effectively unspendable addresses | Addresses for which neither kind of preimage can feasibly be found |
denotes scalar multiplication of the elliptic curve generator by the private key to derive a public key. denotes the derivation of address from the Keccak hash of the public key, with the address-length truncation implied. A spendable address is therefore an EOA with a corresponding usable private key or a contract address with matching deployment parameters.
Ordinary addresses and effectively unspendable addresses are indistinguishable by appearance. The proposal uses this property to define new rules for funds sent to the latter.
Specification
Parameters
| Constant | Value | Description |
|---|---|---|
MAGIC_ADDRESS |
0xfe (1 byte) |
Prefix combined with the secret to derive the destination address |
MAGIC_NULLIFIER |
0x01 (1 byte) |
Prefix used to derive a nullifier, an identifier that prevents double use, from the secret |
MAGIC_POW |
0x02 (1 byte) |
Prefix for verifying proof of work associated with the secret |
MAGIC_CHANGE |
0x0404...04 (32 bytes) |
Topic identifying log events for change deposits |
POW_LOG_DIFFICULTY |
24 |
Proof-of-work difficulty (24 bits) |
MAX_DEPOSIT |
32 * 10**18 wei |
Maximum amount accepted in a single deposit (32 ETH) |
WormholeTxType |
TBD | Identifier for the new transaction type introduced by the proposal |
WORMHOLE_NULLIFIER_ADDRESS |
TBD | Contract address used for recording nullifiers and minting ETH |
RECEIPT_PREFIX |
TBD (type List[bool]) |
Prefix identifying the receipt position in the Merkle tree |
The following diagram illustrates how the parameters are derived from a secret.
flowchart LR
S[secret] --> A["sha256(MAGIC_ADDRESS + secret)[12:]<br/>→ 送金先アドレス"]
S --> B["sha256(MAGIC_NULLIFIER + secret)<br/>→ ナリファイア(二重ミント防止)"]
S --> C["sha256(MAGIC_POW + secret)<br/>→ PoW検証(衝突攻撃防止)"]
A single secret gives rise to three values: a destination address, a nullifier, and a proof-of-work verification value.
The destination address receives ETH, the nullifier prevents repeated minting against the same deposit, and proof of work increases the difficulty of hash collision attacks.
Transaction type
The proposal defines a new EIP2718 transaction type.
The TransactionType is WormholeTxType, and the TransactionPayload has the following format.
[chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, to, data, access_list, root_beacon_block_number, proof]In addition to standard transaction fields, the payload contains root_beacon_block_number and proof.
The root_beacon_block_number identifies the beacon block used by the proof, while proof contains the zero-knowledge proof.
Zero-knowledge proof verification
Validating this transaction type requires the checks described below.
In a zero-knowledge proof, private inputs are secret information known to the prover, while public inputs are information available to verifiers. The prover can demonstrate knowledge of private inputs without revealing those inputs.
Proof inputs
| Parameter | Input type | Description |
|---|---|---|
secret |
private | Secret value generated at the time of deposit |
main_index |
private | Receipt position in the beacon chain Merkle tree |
main_branch |
private | Beacon chain Merkle branch used for membership verification |
privacy_pool_index |
private | Position in the privacy pool Merkle tree |
privacy_pool_branch |
private | Privacy pool Merkle branch used for membership verification |
deposit_value |
private | Deposit amount |
deposit_sender |
private | Address of the deposit sender (0 for a change deposit) |
change_value_salt |
private | Salt used to hash the change amount |
change_value |
private | Change amount |
beacon_block_root |
public | Root hash of the referenced beacon block |
nullifier |
public | Identifier preventing double minting |
privacy_pool_root |
public | Merkle root of the privacy pool |
withdraw_value |
public | Withdrawal amount |
change_value_hash |
public | Hash of the change amount |
The following diagram illustrates the relationship between private and public inputs.
flowchart TD
subgraph private["private入力(秘密)"]
S[secret]
MI[main_index / main_branch]
PI[privacy_pool_index / privacy_pool_branch]
DV[deposit_value / deposit_sender]
CV[change_value / change_value_salt]
end
subgraph public["public入力(公開)"]
BR[beacon_block_root]
NF[nullifier]
PR[privacy_pool_root]
WV[withdraw_value]
CH[change_value_hash]
end
S -->|"sha256(MAGIC_NULLIFIER + secret)"| NF
CV -->|"sha256(salt, value)"| CH
DV -->|"deposit - change"| WV
MI -->|マークル検証| BR
PI -->|マークル検証| PR
The zero-knowledge proof verifies that the public inputs are correctly related to the private inputs. Verifiers inspect the public inputs without learning the contents of the private inputs.
Verification conditions
The proof must establish all of the following conditions.
| Condition | Verification | Description |
|---|---|---|
| Main Merkle branch | verify_merkle_branch(root=beacon_block_root, index=RECEIPT_PREFIX + main_index, leaf=make_receipt_hash(...), branch=main_branch) |
Confirms that the deposit exists in the beacon chain data |
| Privacy pool Merkle branch | verify_merkle_branch(root=privacy_pool_root, index=privacy_pool_index, leaf=make_receipt_hash(...), branch=privacy_pool_branch) |
Confirms that the deposit is included in the privacy pool's association set |
| Nullifier | nullifier == sha256(MAGIC_NULLIFIER + secret) |
Verifies the identifier used to prevent repeated minting against the same deposit |
| Proof of work | sha256(MAGIC_POW + secret) % 2**POW_LOG_DIFFICULTY == 0 |
Imposes a computational requirement to increase the difficulty of hash collision attacks |
| Change value hash | change_value_hash == sha256(change_value_salt, change_value) |
Confirms that the change deposit value was hashed correctly |
| Value conservation | change_value + withdraw_value == deposit_value (unsigned integers, without overflow) |
Confirms that the sum of the change and withdrawal equals the original deposit |
| Maximum deposit | deposit_value <= MAX_DEPOSIT |
Confirms that the deposit does not exceed 32 ETH |
The following diagram summarizes the verification conditions.
flowchart TD
A[Wormholeトランザクション受信] --> B{入金がビーコンチェーンに<br/>存在するか?}
B -->|No| X[拒否]
B -->|Yes| C{入金がプライバシープールに<br/>含まれるか?}
C -->|No| X
C -->|Yes| D{ナリファイアが<br/>正しいか?}
D -->|No| X
D -->|Yes| E{PoW条件を<br/>満たすか?}
E -->|No| X
E -->|Yes| F{お釣り額のハッシュが<br/>正しいか?}
F -->|No| X
F -->|Yes| G{お釣り額 + 出金額<br/>= 入金額か?}
G -->|No| X
G -->|Yes| H{入金額が<br/>32 ETH以下か?}
H -->|No| X
H -->|Yes| I[ZK証明の検証通過]
I --> J{追加の検証}
After the zero-knowledge proof is verified, additional on-chain checks are performed.
Additional verification
| Check | Description |
|---|---|
| Unused nullifier | SLOAD(WORMHOLE_NULLIFIER_ADDRESS, proof.nullifier) == 0. Confirms that the same nullifier has not previously been used, preventing double minting. |
| Beacon block root | get_beacon_block_root(root_beacon_block_number) == proof.beacon_block_root. Confirms that the beacon block referenced by the proof belongs to the actual chain. |
The make_receipt_hash function
def make_receipt_hash(deposit_sender: Address, value: uint256, change_value_salt: bytes32, secret: bytes32):
if deposit_sender != 0:
to_address = sha256(MAGIC_ADDRESS + secret)[12:]
topics = [MAGIC_EIP_7708, deposit_sender, to_address]
logdata = int_to_bytes32(value)
else:
topics = [MAGIC_CHANGE, hash(change_value_salt, value)]
logdata = bytes([])
return get_ssz_root_hash(Log(topics=topics, data=logdata))This function constructs the deposit receipt hash.
The following diagram illustrates how the operation branches depending on deposit_sender.
flowchart TD
A[make_receipt_hash呼び出し] --> B{deposit_sender != 0 ?}
B -->|Yes: 通常入金| C[secretから送金先アドレスを導出]
C --> D[EIP7708のETH転送ログ形式で<br/>topics と logdata を設定]
B -->|No: お釣り入金| E[お釣り額のハッシュを計算]
E --> F[MAGIC_CHANGE をtopicに設定<br/>logdata は空]
D --> G[SSZルートハッシュを返す]
F --> G
For an ordinary deposit, the function derives the effectively unspendable address from secret and constructs a hash using the EIP7708 ETH transfer log format.
For a change deposit, it sets MAGIC_CHANGE as a topic and records only the hash of the change amount.
Transaction execution
If the transaction is validated, the following operations are performed.
sequenceDiagram
participant TX as Wormholeトランザクション
participant WN as WORMHOLE_NULLIFIER_ADDRESS
participant TO as 送金先アドレス
TX->>WN: 1. withdraw_value分のETHを生成
TX->>WN: 2. ナリファイアを記録<br/>SSTORE(nullifier, 1)
WN->>TO: 3. 生成したETHで通常のコールを実行
TX->>TX: 4. お釣りのログイベントを発行<br/>topics=[MAGIC_CHANGE, change_value_hash]
- Create an amount of ETH equal to
proof.withdraw_valueatWORMHOLE_NULLIFIER_ADDRESS. - Before making the call, set
SSTORE(WORMHOLE_NULLIFIER_ADDRESS, proof.nullifier, 1)to prevent reuse of the nullifier. - Execute an ordinary call from that address to the recipient using the minted value.
- Emit a log with
topics = [MAGIC_CHANGE, proof.change_value_hash]andlogdata = bytes([]).
The transaction hash, excluding the proof itself, must be included in the randomness used when generating the zero-knowledge proof. This allows the proof to act as a signature.
Additional considerations
Address spendability
In elliptic curve digital signature schemes, a secret value (the private key) is used to compute a public key through multiplication by the generator : . An Ethereum EOA address is derived from the Keccak hash of the public key.
is a private key (a large random number), and is the elliptic curve generator. The result of is the public key, and the last 20 bytes of its Keccak hash form the Ethereum address. The derivation proceeds from private key to public key to address. Recovering a corresponding private key from the address is computationally infeasible.
Because of hash preimage resistance, if is a random value, finding an such that is computationally infeasible at the relevant address length.
means that hashing an input with Keccak produces the address , after the appropriate truncation. Preimage resistance is the property that makes it computationally infeasible to recover a matching input from a hash value . Consequently, a private key corresponding to a random address is unlikely to be known by anyone, making ETH sent there effectively unspendable.
Funds sent to a random Ethereum address are therefore effectively unspendable. But how can an observer establish that was generated randomly rather than derived from ?
A hash function can be used to derive a pseudorandom value. If an address is derived from the hash of a secret , finding a spendable preimage such that is assumed to be computationally infeasible. This is the basis for treating the address as unspendable.
is the result of hashing the secret value using another hash function, SHA-256. describes the problem of finding inputs for two different hash functions, Keccak and SHA-256, whose outputs match at the address length. The security assumption is that finding such a match is computationally infeasible at the parameters used by the proposal.
Deposits and withdrawals
The following flowchart illustrates the deposit-to-withdrawal process.
flowchart TD
A[ユーザー] --> B[秘密を生成]
B --> C[誰もアクセスできないアドレスを計算<br/>sha256 MAGIC_ADDRESS + secret の下位20バイト]
C --> D[ETHを誰もアクセスできないアドレスに送信]
D --> E[ゼロ知識証明を生成]
E --> F[Wormholeトランザクションを送信]
F --> G[証明の検証]
G --> H[新しいアドレスにETHをミント]
Deposits can originate in two ways.
| Deposit type | Description |
|---|---|
| Ordinary deposit | ETH is sent to the address sha256(MAGIC_ADDRESS + secret)[12:] |
| Change deposit | Created automatically when withdrawing from another deposit |
The entire deposit does not have to be withdrawn at once. The following diagram illustrates an example in which a change deposit is created.
flowchart LR
A[元の入金<br/>20 ETH] --> B[Wormhole<br/>トランザクション]
B --> C[出金<br/>12 ETH]
B --> D[お釣り入金<br/>8 ETH<br/>値はハッシュ化]
D --> E[次回の出金に<br/>使用可能]
If a user deposits 20 ETH and withdraws only 12 ETH, the system creates a new change deposit of 8 ETH. Because the change deposit value is committed to by a hash, a chain observer cannot directly identify the original deposit by calculating change value + withdrawal value = original deposit value.
Privacy pool mechanism
The proposal includes a privacy pool mechanism that requires a privacy pool root corresponding to a list of deposits. The following diagram illustrates privacy pool verification.
flowchart TD
A[プライバシープール<br/>許可された入金のリスト] --> B[マークルツリーを構築]
B --> C[プライバシープールルート]
D[自分の入金] --> E{入金がプール内に<br/>存在するか?}
C --> E
E -->|Yes| F[ZK証明でプール内の<br/>入金であることを証明<br/>どの入金かは明かさない]
E -->|No| G[出金不可]
A user proves that their deposit is a member of the list without revealing which deposit it is.
| Benefit | Description |
|---|---|
| No additional on-chain verification step | The second Merkle branch is integrated into the proof, which the proposal describes as involving no additional cost to the user |
| Broad adoption | The absence of an additional verification charge is intended to encourage adoption |
| Responsible privacy | Widespread use by legitimate users is intended to benefit the ecosystem |
The privacy pools paper discusses the value of this mechanism and the potential ecosystem benefits of adoption by nearly all legitimate users.
Proof of work and the 32 ETH limit
The built-in proof-of-work requirement and the 32 ETH limit are intended to discourage hash collision attacks.
| Protection mechanism | Description |
|---|---|
| Collision attack | Finding a collision (x1, x2) such that create2_address(..., x1) == sha256(MAGIC_ADDRESS + x2) at the address length |
| Baseline difficulty | Approximately hash operations |
| Increased difficulty through proof of work | The 24-bit proof-of-work requirement raises the estimated difficulty to |
| Attacker incentives | Bitcoin block mining (approximately hash operations in the proposal's comparison) is considered more profitable |
corresponds to approximately 1,000,000,000,000,000,000,000,000 () hash operations. The 24-bit proof-of-work constraint increases the estimated collision-search work by a factor of , giving . For comparison, the proposal uses approximately hash operations per Bitcoin block. Under that assumption, the attack is about 8,000 times more difficult.
An attacker who found such a collision could withdraw the same ETH twice, but only twice. However, the proposal argues that Bitcoin mining would offer a substantially more profitable opportunity to someone with the necessary computing power.
Scalability implications
If a circuit supports minting the combined value of multiple burns in one proof, merchants and centralized exchanges (CEXs) could receive payments at effectively unspendable addresses and consolidate funds at one address by recording a single proof and multiple nullifiers on-chain. This could substantially reduce the number of on-chain transactions.
Users who adopt the proposal as a scalability mechanism would also enlarge the anonymity set and improve its privacy properties.
Backwards compatibility
ETH created by the proposed minting mechanism should be indistinguishable from existing ETH. Newly minted ETH must also be usable to pay gas fees.
The proposal depends on EIP7708 and a proposal to migrate receipts to the SSZ format. These dependencies allow proofs to verify logs using ordinary SHA-256 Merkle branches without requiring complex Verkle or RLP logic within the proof.
Security
A defective implementation could allow unlimited ETH issuance, potentially destroying confidence in Ethereum and causing its price to collapse.
| Risk | Description |
|---|---|
| Unlimited minting | An implementation defect could enable unrestricted ETH issuance |
| Price collapse | Unlimited issuance could cause the ETH price to collapse |
The proposal introduces powerful functionality, but its implementation demands extreme care. Sound zero-knowledge proof verification and correct nullifier management are essential.
Reference implementation
ZK-SNARK implementation requirements
The implementation must satisfy the following requirements.
| Requirement | Description |
|---|---|
| Transparent setup | Ideally reuse the EIP4844 setup rather than Groth16 or another application-specific setup |
| Direct auditability | The circuit should be directly auditable without blindly trusting a compiler such as Circom |
| SHA-256 implementation | Can be implemented using PLOOKUP with 8-bit lookup tables |
| Elliptic curves | Elliptic curves are needed because the proposal considers STARK proofs too large |
References
Conclusion
This article covered the zero-knowledge wormhole privacy mechanism proposed by EIP7503. I hope you found it useful.
If you have any questions, feel free to contact me via Twitter DM.
I also publish on other platforms, which you can find below.




