EIPs Explained

EIP-7044 · Final · Core · 2023-05-18

EIP-7044: Perpetually Valid Signed Voluntary Exits

Made signed validator voluntary exits valid forever by fixing their signature domain to the Capella fork, so pre-signed exits no longer expire after two upgrades.

What problem does it solve?

A validator leaves the beacon chain by broadcasting a voluntary exit signed with its validator (BLS signing) key. The signature domain used to include the fork version, and the beacon state only knows the current and previous fork versions. A signed exit therefore stopped being valid after two network upgrades.

That is painful for staking setups where the operator (who holds the signing key) is a different party from the owner of the funds (who holds the withdrawal credentials). Owners often ask operators for pre-signed exit messages so they can leave without the operator's cooperation. With expiring signatures, those messages had to be collected again for every future fork.

EIP-7044 makes signed voluntary exits perpetually valid.

How it works

  • Consensus layer only, activated in the Deneb upgrade (the consensus half of Dencun, alongside EIP-4844 and EIP-7045).
  • process_voluntary_exit now always computes the signing domain with CAPELLA_FORK_VERSION, regardless of the current fork. Gossip validation of voluntary_exit messages follows the same rule.
  • Exits signed with the Capella domain therefore stay valid in Deneb and all later forks. This matches how BLS-to-execution changes and deposits already work.
  • No execution-layer changes.

Simplified from the consensus spec:

def process_voluntary_exit(state, signed_voluntary_exit):
    voluntary_exit = signed_voluntary_exit.message
    # ... usual checks: validator active, not already exiting, old enough ...
    domain = compute_domain(
        DOMAIN_VOLUNTARY_EXIT,
        CAPELLA_FORK_VERSION,               # fixed, instead of the current fork version
        state.genesis_validators_root,
    )
    signing_root = compute_signing_root(voluntary_exit, domain)
    assert bls.Verify(validator.pubkey, signing_root, signed_voluntary_exit.signature)
    initiate_validator_exit(state, voluntary_exit.validator_index)

Sample code

The signed message itself (beacon API JSON, values illustrative). Since EIP-7044 it can be generated once and stored for later:

{
  "message": {
    "epoch": "194048",
    "validator_index": "123456"
  },
  "signature": "0x8f3c...<96-byte BLS signature over the Capella-domain signing root>"
}

Submitting it whenever it's needed:

curl -X POST "$BEACON_NODE/eth/v1/beacon/pool/voluntary_exits" \
  -H "Content-Type: application/json" \
  -d @signed_exit.json

Things to know

  • Status: Final, live since Deneb.
  • Exits pre-signed with the Deneb fork domain are not valid. Make sure your signing tool uses the Capella domain.
  • A pre-signed exit is now a permanent "exit button" for that validator. Store it as securely as you would a key: anyone who gets it can exit the validator at any time. Exiting does not move funds; they still go to the withdrawal credentials.
  • Replay protection across chain splits is gone: after a contentious fork, one exit could be replayed on both chains. This affects only the individual staker, not funds or chain security.
  • For exits that don't need the validator key at all, see EIP-7002 (execution-layer triggerable exits).

#consensus #staking #validators #exits #deneb

Details

Authors
Lion (@dapplion)
Status
Final
Type
Standards Track / Core
Created
2023-05-18
Required by

Machine-readable: Markdown · JSON