Skip to content

Add Glamsterdam proofs and a fresh Hoodi staking deployment - #3059

Open
naddison36 wants to merge 7 commits into
masterfrom
codex/fresh-hoodi
Open

naddison36 wants to merge 7 commits into
masterfrom
codex/fresh-hoodi

Conversation

@naddison36

@naddison36 naddison36 commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

The existing Hoodi vault and staking proxies are governed by an inaccessible Defender relayer. Add an independent Hoodi deployment, based on the Glamsterdam proof implementation, with governance and operational roles handed to a dedicated Talos signer.

Changes

  • Include the existing nicka/glamsterdam implementation: progressive SSZ proof verification, legacy/Gloas fork router, proof-generation tooling and tests.
  • Add a one-time Foundry deployment for fresh OETH, vault and vanilla CompoundingStakingStrategy proxies, their implementations, proof verifiers/router and a strategy view. Reuse Hoodi WETH and the canonical beacon deposit contract; do not call or upgrade the old stack.
  • Configure the new signer as strategist, operator and validator registrator, with pending governance for it to claim. Limit initial validator deposits to 1 ETH.
  • Add Hoodi deployment/simulation targets and descriptor generation, a public-key address helper, and a retryable claimHoodiGovernance action.
  • Select HOODI_KMS_RELAYER_ID for Hoodi and fail closed if it is missing; retain existing signer selection on other chains.
  • Document rollout and update the Talos action inventory. No automatic staking schedules are enabled, and no balances or validators are migrated.

Companion infrastructure: https://github.com/oplabs/talos/pull/60. Apply its signed infrastructure release and fund the new signer before live deployment. Then deploy using a separate bootstrap EOA, publish confirmed descriptors in the runner image, and manually claim governance through Talos.

Ethereum Gloas proof changes

The proof changes target Gloas's adoption of forward-compatible SSZ structures (EIP-7688). BeaconState becomes a ProgressiveContainer, and its validators, balances and pending-deposits collections become ProgressiveLists. This changes the Merkle paths used by native staking even though the values being proven retain the same meaning. The Gloas consensus specification remains a work in progress; these paths must be checked against the final fork specification before rollout.

Container paths

BeaconBlock.state_root remains at generalized index (gindex) 11. The new state layout changes the collection roots as follows; block-relative indices concatenate the state-root path with the state-relative path:

Collection Legacy state-relative gindex Gloas state-relative gindex Legacy block-relative gindex Gloas block-relative gindex
Validators 75 358 715 2918
Balances 76 359 716 2919
Pending deposits 98 2957 738 23437

List elements and proof lengths

Legacy list proofs use fixed tree depths determined by SSZ limits. Progressive lists place chunks in successive subtrees of 1, 4, 16, ... chunks, so the element index determines both the generalized index and proof depth. BeaconProofsGloasLib computes these paths and requires exactly one 32-byte witness per level of the computed path, replacing the legacy fixed proof lengths.

Validator proofs continue to prove the public-key hash and check the withdrawal credentials in the adjacent witness, or prove the withdrawable epoch. The Validator field paths remain unchanged inside each element. Balance chunks still pack four little-endian uint64 Gwei amounts: the progressive-list chunk index is validatorIndex / 4, and validatorIndex % 4 selects the balance within the authenticated chunk. Pending-deposit proofs similarly use progressive element paths; first-deposit checks account for the new empty-list path and the first deposit's slot field. SHA-256 hashing and the PendingDeposit field encoding remain unchanged.

Verifier and tooling changes

BeaconProofsGloas exposes the new paths through the existing IBeaconProofs interface. BeaconProofsForkRouter tries the preferred verifier and retries the other verifier on revert. Its activation timestamp controls preference using the current execution timestamp; it does not authenticate the fork of a supplied beacon root, and a zero timestamp still allows Gloas through fallback. This is the current implementation behavior, not evidence that mixing proof formats is safe: review must ensure a collection-root proof and its element proofs cannot be accepted under incompatible layouts.

Off-chain proof generation selects fork-specific Lodestar SSZ types and obtains list-relative generalized indices from those types. The Gloas checks require progressive validators, balances and pending-deposits types. Independent generated fixtures and end-to-end strategy coverage remain rollout requirements, as noted below.

Validation

  • Contract/deployment build passed.
  • Fresh-deployment lifecycle test passed: wrong-chain/old-relayer rejection, governance handoff, minting and allocation.
  • Live Hoodi fork simulation passed using real WETH and the canonical deposit-contract dependency; no transactions broadcast.
  • JavaScript task tests: 40 passed, including signer isolation and governance claim retries/role checks.
  • TypeScript, changed-tooling lint, formatting checks and git diff --check passed.
  • Earlier verification of the underlying branch: 109 beacon unit tests, 130 strategy unit tests and 9 historical mainnet beacon fork tests passed.

Draft / remaining work

Gloas verification currently uses synthetic proof roots. Independent Lodestar-generated fixtures and full validator/deposit/balance integration coverage remain required before validator operations. The underlying branch also has a recursive getStrategyNetworkName helper and assumes slot + 1 is produced in verifyValidator; these are documented and not fixed here. Existing staking actions remain mainnet-only until Hoodi beacon-provider and action paths are validated. Reconcile this branch with current master before merging.

No live AWS resources or contracts have been created by this PR.

@naddison36
naddison36 marked this pull request as ready for review November 30, 2026 05:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant