EIP.tools

EIP.tools

⚠️ DraftStandards Track: Core

EIP-8483: Post-Quantum Material Registration

Execution layer triggered registration of opaque post-quantum material for validators and builders in the beacon state

Authors
Created2026-11-02
Discussion Linkhttps://ethereum-magicians.org/t/eip-8483-post-quantum-material-registration/30186
Requires

Markdown

https://raw.githubusercontent.com/ethereum/EIPs/re...
Pull Request#12609PR open

EIP-GPT summary

Contents
AbstractMotivationSpecificationConstantsExecution layerConsensus layerExecution layerPQ registration requestPQ registration request contractBuilder PQ registration requestBuilder PQ registration request contractConsensus layerNew containersNew typesModified containersModified getexecutionrequestslistModified applyparentexecutionpayloadNew processpqregistrationrequestNew processpqbuilderregistrationrequestRationaleOpaque data keeps the design space openBuilder registrationsExecution layer requests instead of a BLS-signed consensus layer messageStoring the data in the beacon state instead of an execution layer contractLeaving future use unspecifiedReplacing instead of dropping existing registrationsA separate list instead of a new Validator fieldPublic key in the request, index in the stateValidators with BLS withdrawal credentialsFee mechanismParameter choicesBackwards CompatibilityTest CasesReference ImplementationSecurity ConsiderationsAuthorization by source addressIgnored requestsPublic PQ materialRequests queued before activationCompromised withdrawal addressOverwriting before the migration forkFee overpaymentState growthProcessing costValidator index reuseBuilder index reuseSystem call failureEmpty code failureCopyright

Abstract

This EIP adds an EIP-7685 request type and a predeploy contract with which the execution address in a validator's withdrawal credentials can commit 64 bytes of opaque post-quantum (PQ) material for that validator. The consensus layer stores one (validator_index, pq_data) pair per validator in the beacon state. A later request from the same owner overwrites the earlier one. A second request type and predeploy contract let the execution address of an EIP-7732 builder commit 32 bytes of PQ material for that builder in the same way. This EIP gives the 64 bytes no meaning. A future fork that migrates Ethereum consensus to post-quantum signatures will define how they are used. The intended use is a 32-byte commitment to a hash-based public key followed by 32 bytes of verifiable random function (VRF) data, which together are enough to verify messages signed with that key.

Motivation

The BLS signatures used by Ethereum consensus are not secure against a sufficiently capable quantum computer. Once such an adversary is credible, a BLS signature no longer proves that a message came from the validator's owner. That includes any message that would announce a new post-quantum key. A migration is only safe if every validator has committed to its post-quantum material before BLS is considered broken, through a channel whose authenticity does not depend on BLS.

The execution address in a validator's withdrawal credentials provides such a channel today. It is the owner of the validator's funds, and EIP-7002 and EIP-7251 already let it act on the validator through execution layer requests. This EIP adds one more such request. EIP-7732 builders also sign their bids with BLS keys and face the same problem. Their execution address, set from the withdrawal credentials of the builder deposit and already used to authorize EIP-8282 builder exits, provides the same kind of channel, so builders get an equivalent request. This EIP lets owners start registering post-quantum commitments now, long before the migration fork, while leaving the design of that fork completely open.

Specification

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.

Constants

Execution layer

NameValueComment
PQ_REGISTRATION_REQUEST_TYPE0x06The EIP-7685 type prefix for PQ registration requests (provisional, see below)
PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESSTBDWhere to call and store relevant details about the PQ registration request mechanism
SYSTEM_ADDRESS0xfffffffffffffffffffffffffffffffffffffffeAddress used to invoke system operation on contract
EXCESS_PQ_REGISTRATION_REQUESTS_STORAGE_SLOT0
PQ_REGISTRATION_REQUEST_COUNT_STORAGE_SLOT1Number of requests added in the block stored in PQ_REGISTRATION_REQUEST_LAST_BLOCK_STORAGE_SLOT
PQ_REGISTRATION_REQUEST_QUEUE_HEAD_STORAGE_SLOT2Pointer to the head of the PQ registration request message queue
PQ_REGISTRATION_REQUEST_QUEUE_TAIL_STORAGE_SLOT3Pointer to the tail of the PQ registration request message queue
PQ_REGISTRATION_REQUEST_LAST_BLOCK_STORAGE_SLOT4Number of the last block in which a PQ registration request was added
PQ_REGISTRATION_REQUEST_QUEUE_STORAGE_OFFSET5The start memory slot of the in-state PQ registration request message queue
MAX_PQ_REGISTRATION_REQUESTS_PER_BLOCK1024Maximum number of PQ registration requests that can be dequeued into a block
MAX_PQ_REGISTRATION_REQUESTS_ADDED_PER_BLOCK256Maximum number of PQ registration requests that can be added to the queue in a block
TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK128Number of requests added per block above which the fee rises
MIN_PQ_REGISTRATION_REQUEST_FEE1
PQ_REGISTRATION_REQUEST_FEE_UPDATE_FRACTION17
EXCESS_INHIBITOR2**256-1Excess value that blocks requests while the queue is disabled
PQ_BUILDER_REGISTRATION_REQUEST_TYPE0x07The EIP-7685 type prefix for builder PQ registration requests (provisional, see below)
PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESSTBDWhere to call and store relevant details about the builder PQ registration request mechanism
MAX_PQ_BUILDER_REGISTRATION_REQUESTS_PER_BLOCK16Maximum number of builder PQ registration requests that can be dequeued into a block
MAX_PQ_BUILDER_REGISTRATION_REQUESTS_ADDED_PER_BLOCK16Maximum number of builder PQ registration requests that can be added to the queue in a block
TARGET_PQ_BUILDER_REGISTRATION_REQUESTS_PER_BLOCK2Number of builder requests added per block above which the fee rises

The builder contract uses the same storage slots, minimum fee, fee update fraction and EXCESS_INHIBITOR as the validator contract.

The request type value MUST be unique across all active EIP-7685 request types. 0x00 through 0x02 are used by Electra. 0x03 and 0x04 are the builder request types of EIP-8282. 0x05 is claimed by the draft proposals EIP-8148 and EIP-8205. 0x06 and 0x07 are the first values not claimed by any proposal. The final values are coordinated in consensus-specs together with any other request types scheduled for the same fork.

Consensus layer

NameValue
PQ_REGISTRATION_REQUEST_TYPEBytes1('0x06')
MAX_PQ_REGISTRATION_REQUESTS_PER_PAYLOADUint64(2**10) (= 1,024)
PQ_BUILDER_REGISTRATION_REQUEST_TYPEBytes1('0x07')
MAX_PQ_BUILDER_REGISTRATION_REQUESTS_PER_PAYLOADUint64(2**4) (= 16)

Execution layer

PQ registration request

The new PQ registration request is an EIP-7685 request with type PQ_REGISTRATION_REQUEST_TYPE consisting of the following fields:

  1. source_address: Bytes20
  2. validator_pubkey: Bytes48
  3. pq_data: Bytes64

The EIP-7685 encoding of a PQ registration request is as follows. The encoded request value is exactly what the contract returns.

request_type = PQ_REGISTRATION_REQUEST_TYPE
request_data = dequeue_pq_registration_requests()

Each record is 132 bytes (source_address ++ validator_pubkey ++ pq_data), and request_data is the concatenation of all dequeued records in queue order. This is exactly the concatenation of the fixed-size SSZ serializations of the consensus layer PQRegistrationRequest containers, in the same order.

PQ registration request contract

The contract has the same queue design as the EIP-7251 consolidation request contract, with one more storage slot per queued request to hold the larger record. Its fee state is maintained differently from EIP-7002, EIP-7251 and EIP-8282: the excess is updated by the add path, decaying with the number of blocks elapsed since the last request, rather than by the system call. The fee therefore depends only on the rate at which requests are added, and it is well defined before the system call starts running, so registrations can be queued as soon as the contract is deployed. As in EIP-8282, the fee charged on each write already accounts for the requests added earlier in the same block, and a system call with non-empty calldata disables the queue. There is no Solidity-compatible ABI. The contract dispatches on the caller and on calldatasize alone, through three code paths:

  1. Add PQ registration request: a call from any address other than SYSTEM_ADDRESS with exactly 112 bytes of calldata.
  2. Fee getter: a call from any address other than SYSTEM_ADDRESS with empty calldata returns the current fee.
  3. System process: a call from SYSTEM_ADDRESS dequeues the PQ registration requests for the current block.

Calls that match none of these cases MUST revert.

The 112 byte input of a PQ registration request is:

BytesFieldDescription
0:48validator_pubkey48-byte BLS public key of the validator
48:112pq_data64 bytes of opaque post-quantum material

The contract records msg.sender as source_address and performs no further check. In particular, it does not check that the public key belongs to a validator or that msg.sender controls it. The consensus layer honors the request only when source_address equals the execution address in the validator's withdrawal credentials.

Add PQ registration request

If the call data input to the contract is exactly 112 bytes, perform the following:

  1. Ensure the queue is not disabled and enough ETH was sent to cover the current PQ registration request fee (msg.value >= get_fee())
  2. Ensure fewer than MAX_PQ_REGISTRATION_REQUESTS_ADDED_PER_BLOCK requests have been added in the current block
  3. Store the fee state for the current block and increase the PQ registration request count by 1
  4. Insert a PQ registration request into the queue for the source address, validator public key and PQ data
  5. Emit the accepted 132-byte record as an anonymous log (LOG0)

Specifically, the functionality is defined in pseudocode as the function add_pq_registration_request():

def add_pq_registration_request(Bytes48: validator_pubkey, Bytes64: pq_data):
    """
    Add PQ registration request adds a new request to the PQ registration request queue,
    so long as a sufficient fee is provided.
    """

    excess, count = get_fee_state()

    # Verify sufficient fee was provided.
    fee = compute_fee(excess, count)
    require(msg.value >= fee, 'Insufficient value for fee')

    # Enforce the per-block limit on added requests.
    require(count < MAX_PQ_REGISTRATION_REQUESTS_ADDED_PER_BLOCK, 'Block limit reached')

    # Store the fee state for the current block.
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, EXCESS_PQ_REGISTRATION_REQUESTS_STORAGE_SLOT, excess)
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_COUNT_STORAGE_SLOT, count + 1)
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_LAST_BLOCK_STORAGE_SLOT, block.number)

    # Insert into queue.
    queue_tail_index = sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_TAIL_STORAGE_SLOT)
    queue_storage_slot = PQ_REGISTRATION_REQUEST_QUEUE_STORAGE_OFFSET + queue_tail_index * 5
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot, msg.sender)
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 1, validator_pubkey[0:32])
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 2, validator_pubkey[32:48] ++ pq_data[0:16])
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 3, pq_data[16:48])
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 4, pq_data[48:64])
    log0(msg.sender ++ validator_pubkey ++ pq_data)
    sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_TAIL_STORAGE_SLOT, queue_tail_index + 1)
Fee calculation

The following pseudocode computes the cost of an individual PQ registration request from the stored fee state and the current block number.

def get_fee_state() -> Tuple[int, int]:
    """
    Return the excess and the number of requests added in the current block,
    rolling the stored state forward if no request was added in this block yet.
    """
    excess = sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, EXCESS_PQ_REGISTRATION_REQUESTS_STORAGE_SLOT)
    require(excess != EXCESS_INHIBITOR, 'Inhibitor active')
    count = sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_COUNT_STORAGE_SLOT)
    last_block = sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_LAST_BLOCK_STORAGE_SLOT)

    if block.number != last_block:
        # Fold in the count of the last block with requests, and decay the
        # excess by the target for every block elapsed since then.
        decay = TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK * (block.number - last_block)
        excess = max(0, excess + count - decay)
        count = 0

    return excess, count

def get_fee() -> int:
    excess, count = get_fee_state()
    return compute_fee(excess, count)

def compute_fee(excess: int, count: int) -> int:
    # Account for the requests already added in the current block.
    if count > TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK:
        excess += count - TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK

    return fake_exponential(
        MIN_PQ_REGISTRATION_REQUEST_FEE,
        excess,
        PQ_REGISTRATION_REQUEST_FEE_UPDATE_FRACTION
    )

def fake_exponential(factor: int, numerator: int, denominator: int) -> int:
    i = 1
    output = 0
    numerator_accum = factor * denominator
    while numerator_accum > 0:
        output += numerator_accum
        numerator_accum = (numerator_accum * numerator) // (denominator * i)
        i += 1
    return output // denominator

The update max(0, excess + count - TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK * (block.number - last_block)) gives the same excess as applying the EIP-7002 end-of-block update max(0, excess + count - TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK) once for the last block with requests and once, with a count of zero, for every block after it. It is computed when a request is added instead of by the system call, so it does not depend on the system call running. As in EIP-8282, compute_fee() also adds the requests submitted earlier in the current block above TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK, so the fee rises within a block as soon as the target is exceeded. The fee, and any value sent above it, is left locked in the contract.

Fee getter

When the input to the contract is length zero and the caller is not SYSTEM_ADDRESS, interpret this as a get request for the current fee, i.e. the contract returns the result of get_fee(). The call MUST carry no value. A value-bearing fee getter call reverts.

System call

At the end of processing any execution block where this EIP is active (i.e. after processing all transactions), call PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS as SYSTEM_ADDRESS with no calldata. The invocation triggers the following:

  • The contract's queue is updated based on the PQ registration requests dequeued, and the queue head/tail are reset if the queue has been cleared (dequeue_pq_registration_requests())
  • The excess inhibitor is set if the call carries calldata, and cleared if it is set and the call carries none (update_excess_inhibitor())

Unlike EIP-7002, EIP-7251 and EIP-8282, the system call does not update the excess or reset the request count. The add path maintains both.

Each PQ registration request MUST appear in the EIP-7685 requests list in the exact order returned by dequeue_pq_registration_requests().

A system call with non-empty calldata dequeues requests as usual but then stores EXCESS_INHIBITOR into the excess slot, disabling the queue: subsequent PQ registration requests and fee getter calls revert. The next system call with empty calldata resets the excess and the request count to zero and re-enables the queue. Under this EIP the system call is always made with empty calldata, so this path is unused. It is reserved for the future fork that consumes the registered material, which can use it to stop accepting registrations.

Additionally, the system call and the processing of that block MUST conform to the following:

  • The call has a dedicated gas limit of 30_000_000. Dequeuing MAX_PQ_REGISTRATION_REQUESTS_PER_BLOCK requests uses about 11,000,000 gas.
  • Gas consumed by this call does not count against the block's overall gas usage.
  • Both the gas limit assigned to the call and the gas consumed are excluded from any checks against the block's gas limit.
  • The call does not follow EIP-1559 fee burn semantics: no value is transferred as part of this call.
  • If there is no code at PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, the corresponding block MUST be marked invalid.
  • If the call to the contract fails or returns an error, the block MUST be invalidated.

The functionality triggered by the system call is defined in pseudocode as the function process_pq_registration_requests():

###################
# Public function #
###################

def process_pq_registration_requests(calldata: bytes):
    reqs = dequeue_pq_registration_requests()
    update_excess_inhibitor(calldata)
    return ssz.serialize(reqs)

###########
# Helpers #
###########

class PQRegistrationRequest(object):
    source_address: Bytes20
    validator_pubkey: Bytes48
    pq_data: Bytes64

def dequeue_pq_registration_requests():
    queue_head_index = sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_HEAD_STORAGE_SLOT)
    queue_tail_index = sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_TAIL_STORAGE_SLOT)
    num_in_queue = queue_tail_index - queue_head_index
    num_dequeued = min(num_in_queue, MAX_PQ_REGISTRATION_REQUESTS_PER_BLOCK)

    reqs = []
    for i in range(num_dequeued):
        queue_storage_slot = PQ_REGISTRATION_REQUEST_QUEUE_STORAGE_OFFSET + (queue_head_index + i) * 5
        source_address = address(sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot)[0:20])
        validator_pubkey = (
            sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 1)[0:32]
            + sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 2)[0:16]
        )
        pq_data = (
            sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 2)[16:32]
            + sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 3)[0:32]
            + sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 4)[0:16]
        )
        req = PQRegistrationRequest(
            source_address=Bytes20(source_address),
            validator_pubkey=Bytes48(validator_pubkey),
            pq_data=Bytes64(pq_data)
        )
        reqs.append(req)

    new_queue_head_index = queue_head_index + num_dequeued
    if new_queue_head_index == queue_tail_index:
        # Queue is empty, reset queue pointers
        sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_HEAD_STORAGE_SLOT, 0)
        sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_TAIL_STORAGE_SLOT, 0)
    else:
        sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_HEAD_STORAGE_SLOT, new_queue_head_index)

    return reqs

def update_excess_inhibitor(calldata: bytes):
    # Any calldata disables the queue
    if len(calldata) > 0:
        sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, EXCESS_PQ_REGISTRATION_REQUESTS_STORAGE_SLOT, EXCESS_INHIBITOR)
        return

    # A call with empty calldata re-enables a disabled queue with a fresh fee state
    if sload(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, EXCESS_PQ_REGISTRATION_REQUESTS_STORAGE_SLOT) == EXCESS_INHIBITOR:
        sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, EXCESS_PQ_REGISTRATION_REQUESTS_STORAGE_SLOT, 0)
        sstore(PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_COUNT_STORAGE_SLOT, 0)
Bytecode

The contract is written in geas assembly. The source is available in main.eas (which includes fake_expo.eas) and the constructor in ctor.eas. The fee computation uses the EIP-7002 fake_exponential and the EIP-8282 in-block adjustment, with the excess update moved from the system call to the add path. The queue read and write paths follow the EIP-7251 consolidation request contract with one additional storage slot per queued request. The constants are the input size (0x70), the record size (0x84), the slots per queued request (0x05), the queue offset (0x05), TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK (0x80), MAX_PQ_REGISTRATION_REQUESTS_ADDED_PER_BLOCK (0x0100) and MAX_PQ_REGISTRATION_REQUESTS_PER_BLOCK (0x0400).

Runtime bytecode:

0x3373fffffffffffffffffffffffffffffffffffffffe14610128575f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461020d57600154600454804314606b574303608002910181811160635750505f6065565b035b5f90606e565b50905b60808211607a57806081565b6080820381015b601190600182026001905f5b5f82111560a85781019083028483029004916001019190608d565b90939004925050503660701460c8573661020d573461020d575f5260205ff35b341061020d5761010082101561020d575f5560010160015543600455600354806005026005013381556001015f3581556001016020358155600101604035815560010160603590553360601b5f5260705f60143760845fa0600101600355005b600354600254808203806104001161013f57506104005b5f5b81811461018c5782810160050260050181608402815460601b815260140181600101548152602001816002015481526020018160030154815260200190600401549052600101610141565b910180921461019e57906002556101a9565b90505f6002555f6003555b366101e3575f547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1415610207575f5f555f600155610207565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5f555b6084025ff35b5f5ffd

Init code (returns the runtime code without initializing any storage):

0x61021180600a5f395ff33373fffffffffffffffffffffffffffffffffffffffe14610128575f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461020d57600154600454804314606b574303608002910181811160635750505f6065565b035b5f90606e565b50905b60808211607a57806081565b6080820381015b601190600182026001905f5b5f82111560a85781019083028483029004916001019190608d565b90939004925050503660701460c8573661020d573461020d575f5260205ff35b341061020d5761010082101561020d575f5560010160015543600455600354806005026005013381556001015f3581556001016020358155600101604035815560010160603590553360601b5f5260705f60143760845fa0600101600355005b600354600254808203806104001161013f57506104005b5f5b81811461018c5782810160050260050181608402815460601b815260140181600101548152602001816002015481526020018160030154815260200190600401549052600101610141565b910180921461019e57906002556101a9565b90505f6002555f6003555b366101e3575f547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1415610207575f5f555f600155610207565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5f555b6084025ff35b5f5ffd
Deployment

TBD. The contract will be deployed through the EIP-7997 CREATE2 factory, and PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS will be fixed once the salt is chosen. The contract can be deployed well before the fork that activates this EIP. Its constructor does not set EXCESS_INHIBITOR, so requests can be queued as soon as it is deployed. They are dequeued, and processed by the consensus layer, once this EIP activates. If there is no code at PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS once this EIP is active, every block from activation onward MUST be invalid.

Builder PQ registration request

The new builder PQ registration request is an EIP-7685 request with type PQ_BUILDER_REGISTRATION_REQUEST_TYPE consisting of the following fields:

  1. source_address: Bytes20
  2. builder_pubkey: Bytes48
  3. pq_data: Bytes32
request_type = PQ_BUILDER_REGISTRATION_REQUEST_TYPE
request_data = dequeue_pq_builder_registration_requests()

Each record is 100 bytes (source_address ++ builder_pubkey ++ pq_data), and request_data is the concatenation of all dequeued records in queue order. This is exactly the concatenation of the fixed-size SSZ serializations of the consensus layer PQBuilderRegistrationRequest containers, in the same order.

Builder PQ registration request contract

The builder contract at PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS behaves exactly like the validator contract above, with the following differences:

  • Its constants are MAX_PQ_BUILDER_REGISTRATION_REQUESTS_PER_BLOCK, MAX_PQ_BUILDER_REGISTRATION_REQUESTS_ADDED_PER_BLOCK and TARGET_PQ_BUILDER_REGISTRATION_REQUESTS_PER_BLOCK instead of the validator ones.
  • A request is exactly 80 bytes of calldata, laid out as below, and each queued request occupies four storage slots instead of five.
  • The consensus layer honors the request only when source_address equals the builder's execution_address.
BytesFieldDescription
0:48builder_pubkey48-byte BLS public key of the builder
48:80pq_data32 bytes of opaque post-quantum material

The queue insertion and removal differ from the validator contract only in the storage layout of each request:

def insert_pq_builder_registration_request(Bytes48: builder_pubkey, Bytes32: pq_data):
    queue_tail_index = sload(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_TAIL_STORAGE_SLOT)
    queue_storage_slot = PQ_REGISTRATION_REQUEST_QUEUE_STORAGE_OFFSET + queue_tail_index * 4
    sstore(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot, msg.sender)
    sstore(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 1, builder_pubkey[0:32])
    sstore(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 2, builder_pubkey[32:48] ++ pq_data[0:16])
    sstore(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 3, pq_data[16:32])
    log0(msg.sender ++ builder_pubkey ++ pq_data)
    sstore(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, PQ_REGISTRATION_REQUEST_QUEUE_TAIL_STORAGE_SLOT, queue_tail_index + 1)

def read_pq_builder_registration_request(queue_index: int) -> PQBuilderRegistrationRequest:
    queue_storage_slot = PQ_REGISTRATION_REQUEST_QUEUE_STORAGE_OFFSET + queue_index * 4
    source_address = address(sload(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot)[0:20])
    builder_pubkey = (
        sload(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 1)[0:32]
        + sload(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 2)[0:16]
    )
    pq_data = (
        sload(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 2)[16:32]
        + sload(PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, queue_storage_slot + 3)[0:16]
    )
    return PQBuilderRegistrationRequest(
        source_address=Bytes20(source_address),
        builder_pubkey=Bytes48(builder_pubkey),
        pq_data=Bytes32(pq_data)
    )

At the end of processing any execution block where this EIP is active, after the system call to PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS, call PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS as SYSTEM_ADDRESS with no calldata, under the same rules as the validator contract's system call. Each builder PQ registration request MUST appear in the EIP-7685 requests list in the exact order returned by dequeue_pq_builder_registration_requests().

Builder contract bytecode

The source is available in builder.eas and the constructor in builder_ctor.eas. It differs from main.eas only in the constants and in the four-slot storage layout of each queued request. The constants are the input size (0x50), the record size (0x64), the slots per queued request (0x04), the queue offset (0x05), TARGET_PQ_BUILDER_REGISTRATION_REQUESTS_PER_BLOCK (0x02), MAX_PQ_BUILDER_REGISTRATION_REQUESTS_ADDED_PER_BLOCK (0x10) and MAX_PQ_BUILDER_REGISTRATION_REQUESTS_PER_BLOCK (0x10).

Runtime bytecode:

0x3373fffffffffffffffffffffffffffffffffffffffe1461011f575f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff146101f857600154600454804314606b574303600202910181811160635750505f6065565b035b5f90606e565b50905b60028211607a57806081565b6002820381015b601190600182026001905f5b5f82111560a85781019083028483029004916001019190608d565b90939004925050503660501460c857366101f857346101f8575f5260205ff35b34106101f85760108210156101f8575f5560010160015543600455600354806004026005013381556001015f358155600101602035815560010160403590553360601b5f5260505f60143760645fa0600101600355005b60035460025480820380601011610134575060105b5f5b8181146101775782810160040260050181606402815460601b8152601401816001015481526020018160020154815260200190600301549052600101610136565b91018092146101895790600255610194565b90505f6002555f6003555b366101ce575f547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14156101f2575f5f555f6001556101f2565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5f555b6064025ff35b5f5ffd

Init code (returns the runtime code without initializing any storage):

0x6101fc80600a5f395ff33373fffffffffffffffffffffffffffffffffffffffe1461011f575f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff146101f857600154600454804314606b574303600202910181811160635750505f6065565b035b5f90606e565b50905b60028211607a57806081565b6002820381015b601190600182026001905f5b5f82111560a85781019083028483029004916001019190608d565b90939004925050503660501460c857366101f857346101f8575f5260205ff35b34106101f85760108210156101f8575f5560010160015543600455600354806004026005013381556001015f358155600101602035815560010160403590553360601b5f5260505f60143760645fa0600101600355005b60035460025480820380601011610134575060105b5f5b8181146101775782810160040260050181606402815460601b8152601401816001015481526020018160020154815260200190600301549052600101610136565b91018092146101895790600255610194565b90505f6002555f6003555b366101ce575f547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14156101f2575f5f555f6001556101f2565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5f555b6064025ff35b5f5ffd
Builder contract deployment

TBD. The builder contract is deployed in the same way as the validator contract, and PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS will be fixed once its salt is chosen. If there is no code at PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS once this EIP is active, every block from activation onward MUST be invalid.

Consensus layer

The minimum consensus layer changes are sketched below against the EIP-7732 (Gloas) specification. Under EIP-7732, execution requests are no longer part of the beacon block body. A payload's requests are carried in ExecutionPayloadEnvelope.execution_requests, committed to by the execution_requests_root of the builder's bid, and applied to the beacon state by apply_parent_execution_payload when the child block is processed. Adding a field to ExecutionRequests is therefore enough to carry the new request type through the envelope, the bid commitment and the child block.

New containers

class PQRegistrationRequest(Container):
    source_address: ExecutionAddress
    validator_pubkey: BLSPubkey
    pq_data: ByteVector[64]

class PQRegistration(Container):
    validator_index: ValidatorIndex
    pq_data: ByteVector[64]

class PQBuilderRegistrationRequest(Container):
    source_address: ExecutionAddress
    builder_pubkey: BLSPubkey
    pq_data: Bytes32

class PQBuilderRegistration(Container):
    builder_pubkey: BLSPubkey
    pq_data: Bytes32

The SSZ serializations of PQRegistrationRequest and PQBuilderRegistrationRequest are the 132-byte and 100-byte records returned by the validator and builder contracts.

New types

class PQRegistrationRequests(ProgressiveList[PQRegistrationRequest]):
    """
    The PQ registration requests pertaining to a single execution payload.
    """

class PQRegistrations(ProgressiveList[PQRegistration]):
    """
    The registered PQ material, at most one entry per validator.
    """

class PQBuilderRegistrationRequests(ProgressiveList[PQBuilderRegistrationRequest]):
    """
    The builder PQ registration requests pertaining to a single execution payload.
    """

class PQBuilderRegistrations(ProgressiveList[PQBuilderRegistration]):
    """
    The registered builder PQ material, at most one entry per builder public key.
    """

Modified containers

ExecutionRequests is extended with two new fields:

class ExecutionRequests(ProgressiveContainer):
    ...
    pq_registrations: PQRegistrationRequests  # [New in EIP-8483]
    pq_builder_registrations: PQBuilderRegistrationRequests  # [New in EIP-8483]

BeaconState is extended with two new fields:

class BeaconState(ProgressiveContainer):
    ...
    pq_registrations: PQRegistrations  # [New in EIP-8483]
    pq_builder_registrations: PQBuilderRegistrations  # [New in EIP-8483]

Both fields are initialized to empty lists at the fork.

Modified get_execution_requests_list

The pairs (PQ_REGISTRATION_REQUEST_TYPE, execution_requests.pq_registrations) and (PQ_BUILDER_REGISTRATION_REQUEST_TYPE, execution_requests.pq_builder_registrations) are appended, in this order, to the list of request types, and the execution requests parsing in the honest validator guide is extended accordingly.

Modified apply_parent_execution_payload

The number of PQ registration requests is bounded together with the other request types:

assert len(requests.pq_registrations) <= MAX_PQ_REGISTRATION_REQUESTS_PER_PAYLOAD
assert len(requests.pq_builder_registrations) <= MAX_PQ_BUILDER_REGISTRATION_REQUESTS_PER_PAYLOAD

and they are processed after the existing request types:

    for_ops(requests.deposits, process_deposit_request)
    for_ops(requests.withdrawals, process_withdrawal_request)
    for_ops(requests.consolidations, process_consolidation_request)
    for_ops(requests.builder_deposits, process_builder_deposit_request)
    for_ops(requests.builder_exits, process_builder_exit_request)
    # [New in EIP-8483]
    for_ops(requests.pq_registrations, process_pq_registration_request)
    for_ops(requests.pq_builder_registrations, process_pq_builder_registration_request)

New process_pq_registration_request

def process_pq_registration_request(
    state: BeaconState,
    pq_registration_request: PQRegistrationRequest,
) -> None:
    # Verify the validator exists
    validator_pubkeys = [v.pubkey for v in state.validators]
    request_pubkey = pq_registration_request.validator_pubkey
    if request_pubkey not in validator_pubkeys:
        return
    validator_index = ValidatorIndex(validator_pubkeys.index(request_pubkey))
    validator = state.validators[validator_index]

    # Verify the request comes from the validator's withdrawal address
    has_correct_credential = has_execution_withdrawal_credential(validator)
    is_correct_source_address = (
        validator.withdrawal_credentials[12:] == pq_registration_request.source_address
    )
    if not (has_correct_credential and is_correct_source_address):
        return

    # Overwrite an existing registration for this validator
    for registration in state.pq_registrations:
        if registration.validator_index == validator_index:
            registration.pq_data = pq_registration_request.pq_data
            return

    # Otherwise append a new registration
    state.pq_registrations.append(
        PQRegistration(
            validator_index=validator_index,
            pq_data=pq_registration_request.pq_data,
        )
    )

Invalid requests are ignored. No validator status is checked: pending, active, exited and slashed validators can all register PQ material, as long as the request comes from their withdrawal address.

Note: The linear scan over state.pq_registrations is for specification clarity. Clients SHOULD maintain a cache mapping validator indices to positions in state.pq_registrations, as they already do for validator public keys.

New process_pq_builder_registration_request

def process_pq_builder_registration_request(
    state: BeaconState,
    pq_builder_registration_request: PQBuilderRegistrationRequest,
) -> None:
    # Verify the builder exists
    builder_pubkeys = [b.pubkey for b in state.builders]
    request_pubkey = pq_builder_registration_request.builder_pubkey
    if request_pubkey not in builder_pubkeys:
        return
    builder = state.builders[BuilderIndex(builder_pubkeys.index(request_pubkey))]

    # Verify the request comes from the builder's execution address
    if builder.execution_address != pq_builder_registration_request.source_address:
        return

    # Overwrite an existing registration for this builder public key
    for registration in state.pq_builder_registrations:
        if registration.builder_pubkey == request_pubkey:
            registration.pq_data = pq_builder_registration_request.pq_data
            return

    # Otherwise append a new registration
    state.pq_builder_registrations.append(
        PQBuilderRegistration(
            builder_pubkey=request_pubkey,
            pq_data=pq_builder_registration_request.pq_data,
        )
    )

As for validators, invalid requests are ignored and no builder status is checked. Unlike validator registrations, builder registrations are keyed by public key rather than by index, because builder indices are reused after a builder exits.

Rationale

Opaque data keeps the design space open

This EIP deliberately does not specify a post-quantum signature scheme, a key format, or how the registered bytes will be checked. The 64 bytes only need to be enough to later authenticate a message signed by the owner of the PQ key. Fixing 64 opaque bytes now is enough for many hash-based signing schemes. Two 32-byte words let the signing key commitment and the VRF data be registered separately, so neither has to be folded into a single hash with the other. Choosing the scheme, the parameters and the activation flow is left to the fork that actually needs them, when research on post-quantum signature aggregation, VRFs and key formats will have progressed.

Builder registrations

Builders sign bids and execution payload envelopes with BLS keys, so they need a post-quantum migration path as much as validators do. They do not take part in proposer selection or RANDAO, so they need no VRF data. A builder registration therefore carries 32 bytes, enough for a commitment to a PQ signing key, rather than 64.

Builders get their own request type and contract rather than a flag in the validator request. The two registries are distinct in the beacon state, with different authorization fields and different lifecycles, so a separate request keeps each consensus layer handler simple. A separate contract also gives builders their own fee market and limits: a rush of validator registrations ahead of the migration fork cannot price out the comparatively few builders, and the smaller builder limits match the much smaller builder set.

Builder registrations are stored by public key rather than by BuilderIndex. Builder indices are reused after a builder exits and is swept, so an index-keyed entry could be inherited by an unrelated new builder. Builder public keys are unique in the registry, and the builder set is small, so the extra 40 bytes per entry are negligible.

Execution layer requests instead of a BLS-signed consensus layer message

A consensus layer operation signed with the validator's BLS key could carry the same data. This EIP uses an execution layer request instead, for the following reasons:

  • Built-in DoS protection. Every request pays gas and the EIP-7002 style dynamic fee, and the per-block maximum bounds the work in each block. A consensus layer operation would need its own gossip validation, inclusion limits and anti-spam rules.
  • Already implemented. Consensus layer clients already process EIP-7002, EIP-7251 and EIP-8282 requests, and execution layer clients already run their system calls. The contract reuses the EIP-7251 queue and the EIP-8282 fee and inhibitor logic, moving the excess update from the system call to the add path, and the consensus layer change is a single request handler modeled on process_consolidation_request.
  • The owner of the funds is the right authority. The withdrawal address owns the stake. The BLS key is often held by a node operator rather than the owner, and it is exactly the key that becomes untrustworthy once quantum attacks are credible. Binding the PQ material to the withdrawal address puts it under the control of the party who stands to lose the funds.
  • Simplicity. No new signing domain, signature verification, gossip topic or beacon block operation is needed. The request travels in the existing ExecutionRequests container.
  • Flexibility. Smart contract withdrawal addresses, such as those used by staking pools, can register material for many validators under arbitrary custom logic, including multisig or governance approval.

Storing the data in the beacon state instead of an execution layer contract

The contract could simply keep the latest registration per validator in its own storage. However, the consumer of this data at the migration fork will be the consensus layer. Storing it in the beacon state means the consensus layer will have everything it needs at that fork without proofs against execution layer state or new cross-layer reads. The cost is at most 72 bytes per validator and 80 bytes per builder public key in the beacon state.

Leaving future use unspecified

Specifying now how the bytes will be used would commit Ethereum to a post-quantum design years before it is needed. Keeping the bytes opaque means the migration fork can choose any scheme that can be committed to in 64 bytes. Validators who registered early lose nothing if the scheme changes. They can overwrite their registration with a new commitment.

Replacing instead of dropping existing registrations

A later valid request for the same validator overwrites the earlier registration instead of being ignored. This lets owners correct mistakes, such as a wrong commitment or a lost PQ secret key, and rotate their PQ material before the migration fork. The authority to overwrite is the same as the authority to register, so allowing replacement does not weaken the authorization model.

A separate list instead of a new Validator field

The PQ material is stored as (validator_index, pq_data) pairs in a new BeaconState list rather than as a new field of the Validator container. Adding a field to Validator would touch one of the most heavily used and cached structures in consensus clients. It would affect the hashing, serialization and memory layout of every validator, and every client's validator-registry caches and database schemas, for data that nothing reads until a later fork. A separate list keeps this fork's changes to a new request handler and one new state field.

The Validator container will have to change anyway at the migration fork, when the registered material is used to register the validator's PQ public key and related data. That fork can then move the data from pq_registrations into the new validator structure in a single migration and drop the list, so the validator layout is changed once and not twice.

Public key in the request, index in the state

The request identifies the validator by its public key, as EIP-7002 and EIP-7251 requests do. This is the identifier owners and tooling already use, and it is unambiguous even if validator indices are reused in the future. The state stores the resolved ValidatorIndex, which is smaller than a public key.

Validators with BLS withdrawal credentials

Validators with 0x00 (BLS) withdrawal credentials have no execution address and cannot register. They must first change to execution withdrawal credentials with a BLSToExecutionChange. This is the same requirement as in EIP-7002.

Fee mechanism

In EIP-7002, EIP-7251 and EIP-8282 the excess and the per-block count are updated only by the system call at the end of each block. This contract is meant to be deployed, and to accept registrations, well before the fork that starts the system call. With the inherited design, nothing would reset the count or decay the excess before that fork. The fee would grow as fake_exponential of the total number of registrations ever made, exceeding 1 ETH after about 700 of them, far short of the hundreds of thousands of validators expected to register.

The contract therefore updates its fee state on the add path. The first request of each block folds the count of the previous block with requests into the excess and decays it by TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK for every elapsed block. This yields the same excess as an end-of-block update would, without depending on the system call. The fee reflects only how fast requests are being added. In particular, it does not depend on the length of the queue: requests waiting for the consensus layer do not make new requests more expensive.

The contract keeps the two modifications that EIP-8282 makes to the EIP-7251 design. Charging each write for the requests already added in the same block makes the fee respond immediately to a burst of submissions, instead of letting a single block absorb many requests at the previous block's price. The calldata-triggered inhibitor gives the migration fork a way to stop accepting registrations with no new predeploy and no change to the execution layer, by passing calldata to the existing system call. Unlike those contracts, the constructor does not set the inhibitor, so the queue is open from deployment.

MAX_PQ_REGISTRATION_REQUESTS_ADDED_PER_BLOCK additionally caps the number of requests added in a single block, bounding the storage any block can write to the queue independently of the fee.

Parameter choices

Every validator is expected to register before the migration fork, and most registrations are expected to be queued before this EIP activates, so throughput matters more than for consolidations. With TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK = 128, about 920,000 registrations can be added per day (at 7,200 blocks per day) at close to the minimum fee. MAX_PQ_REGISTRATION_REQUESTS_ADDED_PER_BLOCK = 256 bounds a single block. Sustained demand at that limit raises the fee by a factor of about e**(128/17), about 1,900, per block, so the long-run add rate stays near the target.

MAX_PQ_REGISTRATION_REQUESTS_PER_BLOCK = 1024 is the drain rate. It is set well above the add limit so that the backlog queued before activation drains quickly: a queue of one million registrations drains in about a thousand blocks, a few hours, even with new requests arriving at the target rate. Processing a request on the consensus layer requires no signature verification, only a public key lookup and a write, so 1,024 requests add little block processing cost. They add at most 1,024 × 132 bytes, about 135 KB, to the execution requests of a payload, and dequeuing them uses about 11,000,000 gas of the system call's 30,000,000 gas limit.

The builder contract uses TARGET_PQ_BUILDER_REGISTRATION_REQUESTS_PER_BLOCK = 2 and caps both the requests added and the requests dequeued per block at 16, like the EIP-8282 builder exit contract. That allows about 14,400 builder registrations per day at the minimum fee, far more than the size of the builder set.

Backwards Compatibility

This EIP introduces backward incompatible changes to the block validation rule set and must be accompanied by a hard fork. On the execution layer it introduces two new contracts at previously empty addresses and two new request types. On the consensus layer it adds two fields to ExecutionRequests and two fields to BeaconState. Existing request types and validator flows are unchanged.

Test Cases

TBD

Reference Implementation

The validator contract source is available in main.eas, fake_expo.eas and ctor.eas. The builder contract source is available in builder.eas, which also includes fake_expo.eas, and builder_ctor.eas.

Security Considerations

Authorization by source address

The contract records msg.sender as source_address and performs no further check. The request carries no signature, so, as in EIP-7002, the consensus layer check that source_address matches the validator's execution withdrawal credentials is the only authorization. Without it, an arbitrary caller could overwrite any validator's PQ material. For builders, the corresponding check is that source_address matches the builder's execution_address, as for EIP-8282 builder exits.

Ignored requests

A request for an unknown public key, for a validator with BLS withdrawal credentials, or from an address other than the validator's withdrawal address is dropped by the consensus layer rather than re-queued. The fee is not refunded. In particular, a request processed by the consensus layer before the validator's deposit has been processed is ignored and must be resubmitted.

Public PQ material

The pq_data is public: it appears in calldata, in the contract log and in the beacon state. It MUST therefore be a public value, such as a hash commitment to public keys, and never secret key material. A third party can resubmit a record it observed, but the resubmission carries the third party's own address as source_address and is ignored by the consensus layer.

Requests queued before activation

Requests can be queued as soon as the contract is deployed, but the consensus layer processes them only after this EIP activates, in queue order. All checks are made at processing time, not at submission time. A request is honored if, when it is processed, its public key belongs to a validator whose execution withdrawal credentials match source_address. A request whose validator has changed its withdrawal credentials in the meantime is ignored. If several queued requests target the same validator, the last valid one wins.

Compromised withdrawal address

Whoever controls the withdrawal address can register or overwrite the PQ material of its validators. This gives no new power to an attacker who controls the withdrawal address, since that attacker can already withdraw the entire stake. Owners SHOULD check their registered material in the beacon state before the migration fork.

Overwriting before the migration fork

Because registrations can be replaced, the material that counts is the material registered when the migration fork activates. The future fork MAY decide to ignore requests processed after a certain point, for example to stop a withdrawal address that is compromised late from replacing the material.

Fee overpayment

Calls to the system contract require a fee payment defined by the current contract state. Overpaid fees are not returned to the caller. It is not generally possible to compute the exact required fee ahead of time. When adding a PQ registration request from a contract, the contract can read the current fee first and then pay exactly that amount, as described in EIP-7251. Note that the system contract uses the CALLER opcode, so the address that calls it must be the execution address in the validator's withdrawal credentials.

State growth

There is at most one entry per validator in state.pq_registrations, of 72 bytes each, so the list is bounded by the validator registry. With one million validators, the list is at most about 72 MB. Repeated registrations for the same validator overwrite rather than grow the list.

The execution layer queue grows while requests are added before this EIP activates, or faster than MAX_PQ_REGISTRATION_REQUESTS_PER_BLOCK once it is active. Its growth is bounded by MAX_PQ_REGISTRATION_REQUESTS_ADDED_PER_BLOCK per block and, over longer periods, by the dynamic fee, which keeps the add rate near TARGET_PQ_REGISTRATION_REQUESTS_PER_BLOCK. Each queued request occupies five storage slots in the contract, paid for by the gas of the add call.

Processing cost

Each request needs a public key lookup and a lookup in state.pq_registrations. With the caches recommended above both are constant-time, and the number of requests per payload is bounded by MAX_PQ_REGISTRATION_REQUESTS_PER_PAYLOAD (1,024).

Validator index reuse

The state stores the validator index. If a future fork introduces validator index reuse, it MUST clear the pq_registrations entry of a reused index. Otherwise the new validator would inherit the previous validator's PQ material.

Builder index reuse

Builder registrations are keyed by public key, so a builder that takes over a reused index does not inherit the previous builder's PQ material. An entry for an exited builder stays in state.pq_builder_registrations. If the same public key later registers as a new builder, possibly with a different execution address, the old entry applies to it until the new execution address overwrites it. The migration fork SHOULD account for this, for example by clearing the entries of builders that have exited.

The builder list holds at most one entry per builder public key that was ever registered and registered PQ material, 80 bytes each. Each entry requires a builder in the registry, so its growth is bounded by the cost of builder deposits.

System call failure

Although the likelihood of a failed system call to PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS or PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS is extremely low, the behavior in such cases is well-defined: the block is marked as invalid. This follows EIP-7002.

Empty code failure

This EIP should not be activated if there is no code at PQ_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS or PQ_BUILDER_REGISTRATION_REQUEST_PREDEPLOY_ADDRESS. This is similar to the consideration in EIP-7002.

Copyright and related rights waived via CC0.

EIP.tools

EIP.tools

Search, read, and map Ethereum improvement proposals, ERCs, RIPs, and CAIPs from one focused interface.

Farcaster
by @apoorveth