Corpus Core Docs

Sequencer feed

The feed proof is arbFeedProof, index 6 of ETH_EL_PROOF_UNION. Existing indices stay frozen.

What the sequencer signs

Nitro's BroadcastFeedMessage.SignatureHash (broadcaster/message/message.go) hashes a flat concatenation. There is no length prefix and no RLP. The digest is

keccak256( "Arbitrum Nitro Feed:" | be64(chainId) | be64(sequence) | blockHash | signedTail )

chainId is the numeric id. For Arbitrum One that is 42161. sequence is the L2 block number minus the Nitro genesis, 22207817. blockHash is keccak256 of the RLP execution header. A message signed without a block hash cannot verify, because the verifier always inserts that hash.

signedTail is everything after blockHash in Nitro's preimage:

# Field Size Encoding
1 blockMetadata variable raw bytes
2 delayedMessagesRead 8 uint64 big-endian
3 kind 1 uint8
4 poster 20 raw address (header.sender)
5 L1 block number 8 uint64 big-endian (header.blockNumber)
6 timestamp 8 uint64 big-endian (header.timestamp)
7 requestId 32 or 0 raw, omitted when null
8 baseFeeL1 0..32 big-endian, no leading zeros; omitted when null or zero
9 l2Msg variable raw bytes

The fixed fields 2 to 6 are 45 bytes. A shorter tail is rejected. The signature is 65 bytes r || s || v, secp256k1 over the digest, with no EIP-191 prefix. v may be 0/1 or 27/28.

The verifier does not parse the tail. It hashes the bytes. The prover rebuilds those bytes from the feed JSON, so a field Nitro appends after blockHash stays inside the tail.

Proof format

static const ssz_def_t ARB_FEED_PROOF[] = {
    SSZ_PROG_BYTES("elHeader"),                           // RLP L2 execution header
    SSZ_UNION("signedTail", ETH_SEQUENCER_PAYLOAD_UNION), // index 0 zstd, index 1 raw
    SSZ_BYTE_VECTOR("signature", 65),
};

elHeader is the header whose hash was signed. blockHash and the sequence number are derived from it; they are not fields of the proof. signedTail reuses the OP-Stack payload union. The server stores the uncompressed member (index 1). The verifier also accepts zstd, and only when the frame carries its content size. The uncompressed length must be at least 45 bytes and at most 32 MiB, whether it arrived compressed or not.

The proof has no signer address. Who may sign is the cached batch poster, installed by arbSignerSyncData before this check.

Verification

arb_verify_feed_proof runs only for C4_CHAIN_TYPE_ARBITRUM.

  1. elHeader must be an execution header. Its block number must be at least 22207817. That genesis is a constant of the verifier, used for every chain of this type.
  2. blockHash = keccak256(elHeader), sequence = number - 22207817.
  3. Decompress signedTail when it is the zstd member. Reject a frame with an unknown content size, a size of 0, or a size above 32 MiB.
  4. digest is the concatenation above, with ctx->chain_id as the chain id.
  5. Recover the signer. Accept the header when that address equals the cached batch poster for this chain.

A missing cache is an error (unknown batch poster). The recovered address is compared with the cache and with nothing else: the check does not read the clock, and it does not read min_latest_block_ts. With EL_HEADER_CACHE the verified header is stored, so a later proof of the same block can use the blockHash variant.

Batch poster

The feed is signed by the batch poster's L1 key. On Arbitrum One that address is an entry in SequencerInbox.isBatchPoster at 0x1c479675ad559DC151F6Ec7ed3FbF8ceE79582B6. The mapping slot is 3. The storage key is keccak256(pad32(signer) || pad32(3)). For 0xC1b634853Cb333D3aD8663715b08f41A3Aec47cc the key is 0xa10aa54071443520884ed767b0684edf43acec528b7da83ab38ce60126562660. The proven value must be 1.

The verifier stores one record per chain, under batch_poster_<chain_id>: the 20-byte address, the Unix time in milliseconds at which the proof was accepted, and the L1 block number of that proof. The time is the verifier's clock at acceptance, not the timestamp of the L1 header.

Sync data. Index 3 of C4_ETH_REQUEST_SYNCDATA_UNION:

static const ssz_def_t ARB_SIGNER_SYNCDATA[] = {
    SSZ_ADDRESS("signer"),
    SSZ_CONTAINER("account", ETH_ACCOUNT_PROOF),
    SSZ_UNION("sync_data", C4_ETH_REQUEST_SYNCDATA_UNION), // L1 sync: none, light client, or ZK
};

account.elProof must be a clProof. A cached blockHash is rejected, so the L1 header is checked by the sync committee. The nested sync_data is the L1 prover's own sync update and is applied first, on the L1 chain. For Arbitrum One that chain is Ethereum mainnet. A nested arbSignerSyncData is rejected.

Then:

  1. account.address is the SequencerInbox configured for the chain.
  2. The L1 header has a state root and a non-zero block number.
  3. That L1 number is greater than or equal to the number already stored. A smaller number is a replay and is rejected. The same number is accepted and refreshes the stored time.
  4. The single storage proof is for the key recomputed from signer, and the value is 1.

The record is written after those checks. A pending L1 update leaves the outer sync object in place, so the next round continues on the same path.

How the client asks for it. The address is not part of the c4 client state. c4 stays the L1 sync snapshot. While the stored acceptance time is at most 24 hours old (C4_BATCH_POSTER_MAX_AGE_MS), a prover request for this chain includes "batch_poster":"0x…". The server compares that value with the signer of the current feed head. A missing or different address makes the prover build arbSignerSyncData. The flag that triggers it is internal; a client cannot set it.

The L1 request is eth_getStorageAt of the inbox slot at latest, sent to an L1 prover with the client's c4 snapshot. It does not forward batch_poster and does not send last_block_hash, so the returned block stays a clProof. The response's account proof and its sync_data become the arbSignerSyncData container.

A verifier with an empty cache, and a client whose record is older than 24 hours, therefore receive a fresh L1 proof from a prover that follows this path. A response that simply omits arbSignerSyncData leaves the cached address in place, and feed proofs signed by it keep verifying.

Further rollups can be registered at runtime with a chain id and a SequencerInbox address (at most eight, and not over a built-in chain). The digest still subtracts 22207817, and the L1 of the account proof is mainnet only for Arbitrum One, unless an L1 is registered for that chain.

Blocks inside the history window

latest, the block number of the signed head, and the hash of that head are the feed proof itself.

An older number or hash is one eip2935 proof. The newer block is the feed proof of the head. The history contract is 0x0000F90827F1C53a10cb7A02335B175320002935, the same address as on Ethereum. For every chain of type Arbitrum the window is 393168 (ARB_EIP2935_HISTORY_WINDOW) and the slot is pad32(number % 393168). The verifier checks that slot, checks newer - 393168 <= number < newer, and checks that the stored value equals keccak256(elHeader).

The prover builds that single hop. A block newer than the head, a block outside the window, an empty history slot, or a hash that is not the stored one is an error. safe, finalized and any other tag are an error: the prover accepts latest, a block number, or a block hash.

The verifier allows an eip2935 proof whose newer block is itself an eip2935 proof, bounded by the SSZ nesting limit. This prover does not build that chain. Blocks older than one window are the historic-blocks design.

Prover and feed

The feed is a stream. The server keeps one WebSocket, on the libuv loop, to arb_feed_url (environment ARB_FEED_URL, default wss://arb1-feed.arbitrum.io/feed). The upgrade sends Arbitrum-Feed-Client-Version: 2. After a disconnect that has already seen a sequence, it also sends Arbitrum-Requested-Sequence-Number with that sequence. Permessage-deflate is not offered; a compressed frame closes the connection. Reconnects back off from 1 s to 30 s. Thirty seconds without a frame also reconnects.

A message is kept when it has a blockHash, a 65-byte signatureV2, and a tail of at least 45 bytes. The newest such message replaces the head, including a message with a lower sequence number. Nothing is persisted, and no earlier message is retained. The signer is recovered when a proof needs it, from the chain id, the sequence, the hash, the tail and the signature. There is no allow-list at ingest.

arb_preconf/latest returns the arbFeedProof container. The header is read from the L2 node: debug_getRawHeader when a configured server advertises that method, otherwise eth_getBlockByHash. The header is kept only when its keccak equals the feed hash. The tail is stored uncompressed. The node answer is not cached. A null result is retried once, after 250 ms, because the feed runs ahead of the node; a second miss fails the request. The prover does not step back to an older signed message.

A proof that needs transactions loads debug_getRawBlock for the proven hash. A block encoded as header, transactions and uncles is stored with an empty withdrawals list. The header inside that encoding must hash to the proven block hash.

Trust

The verifier trusts one key, the batch poster last installed from L1, and the Ethereum sync committee that signed the L1 block of that proof. That is the trust of Arbitrum soft finality. It is weaker than a sync-committee proof of the L2 block, and weaker than a confirmed assertion. The sequencer can sign two blocks for one sequence number. Both signatures verify. The server keeps whichever message arrived last.

A removed key stays acceptable until a newer L1 proof overwrites the cache. The 24 hour figure decides when the client stops advertising the cached address, which is when a prover that implements this path attaches a new proof. It is not a deadline inside arb_verify_feed_proof.

The feed is one service. While it is down, this proof stops. The L2 node must also have imported the signed head; otherwise arb_preconf/latest fails after the one retry.

The digest binds the chain id and the header hash. A signature over some other concatenation would need a header whose keccak equals 32 bytes of that concatenation. The 32 MiB cap is the verifier's own limit; the SSZ bound of the shared payload union is 1 GiB.