github alpenlabs/alpen-ee v0.4.0

latest releases: v0.5.2, v0.5.1, v0.5.0-rc.1...
one month ago

Alpen v0.4.0 is the first release from the alpen-ee repository. After v0.3.0, the execution environment (EE) code moved here from alpenlabs/alpen, which keeps the Strata orchestration layer (OL).

The main change is spec versions. Each block header now names the rule set (spec version) that applies to it. Blocks built before this release are V0. This release adds V1, which brings Osaka EVM rules, a fee for Bitcoin data availability (DA), and a minimum base fee. A node runs V0 and V1 side by side, so it can sync a chain from genesis across the switch.

This release also moves the node's store from sled to MDBX and moves node setup into one config file and one params file.

Action Required

Upgrade before your network switches to V1. A v0.3 node cannot validate V1 blocks. A v0.4 node follows the switch on its own, with no restart.

Migrate your datadir or resync. The node refuses to start on a datadir that still holds the v0.3 sled store. See Upgrading from v0.3.0.

Rewrite your node config. Most CLI flags are gone. See Breaking Changes.

Breaking Changes

Configuration

  • alpen-client reads its settings from one TOML file passed with --alpen-config. This replaces the node flags. bin/alpen-client/testdata/ has annotated examples (#81).
  • Chain parameters come from one file passed with --alpen-params. It replaces --ee-params, --custom-chain, --ee-da-magic-bytes and the bridge flags. params/ holds the file for testnet and mainnet, and each network's file is also attached to this release (#42, #172).
  • In Docker, ALPEN_PARAMS_PATH replaces EE_PARAMS_PATH, CHAIN_SPEC, EE_DA_MAGIC_BYTES and BRIDGE_DENOMINATION, and the config file is mounted instead of generated (#42, #81).

Storage

  • The node's store moved from sled to MDBX. The node refuses to start on a datadir that holds sled/ and no mdbx/ (#82, #141).
  • Reth moved from v1.9.1 to v2.2.0. Reth 2.2 cannot read the write-ahead log that reth 1.9 left in exex/wal, and refuses to start on it (#124).

Removed

  • The alpen-cli wallet is no longer part of this release (#125).

V1 Protocol Changes

None of these apply to V0 blocks, which keep the rules they were built with: Prague, no DA fee and no minimum base fee.

EVM

  • V1 runs Osaka rules (#77).
  • V1 gets Osaka's precompiles, minus KZG point evaluation, plus Alpen's Schnorr and bridge-out precompiles (#191). For contracts this means:
    • MODEXP (0x05) costs more gas (EIP-7883) and caps each input at 1024 bytes (EIP-7823).
    • P256VERIFY (EIP-7951) is added at 0x100 for 6900 gas. It verifies secp256r1 signatures, the curve used by passkey and WebAuthn wallets.

Fees

  • DA fee. Each V1 transaction pays for the Bitcoin DA cost of its state changes: da_fee = da_rate × diff_size. The fee comes out of the transaction's unused gas, so the gas limit must leave room for it. eth_estimateGas includes the DA fee in the gas it returns, so wallets that use it reserve enough (#44).
  • DA rate. Each block's header carries its DA rate, in wei per byte. It follows Bitcoin fee rates, and a block's rate can be at most 10% above its parent's (#44, #120).
  • New RPC. alpen_estimateFees returns a fee breakdown with the execution and DA parts shown apart (#44).
  • Minimum base fee. V1 has a base-fee floor: 0.00025 gwei on mainnet and 0.001 gwei on testnet (#170, #194).

Data Availability

  • A V1 DA blob carries the DA rate of its batch's last block, 8 more bytes per batch. A node that rebuilds the chain from Bitcoin needs this rate to check the next block. The blob's commit marker now carries the batch's spec version. V0 blobs are unchanged (#175).

Features

  • New dbconsole binary, also in the Docker image. It reads every table of the node's store through the node's own codecs, and can stage and apply edits while the node is stopped (#127, #171).
  • New JWT-protected admin RPC in the alpenadmin namespace, on its own port. Enable it with an [admin_rpc] table in the config (#94).

Dependencies

  • Reth v1.9.1 → v2.2.0 (#124)
  • SP1 v6.1.0 → v6.8.1 (#124, #174)

Upgrading from v0.3.0

You can either resync from genesis with a fresh datadir, or carry your v0.3.0 datadir over:

  1. Stop the v0.3.0 node cleanly.
  2. Run dbconsole migrate-sled --datadir <dir>. Run it against a copy, since opening a sled store rewrites it. On success, sled/ is renamed to sled.migrated/.
  3. Write alpen-config.toml from your old command line, and point --alpen-params at your network's params file.
  4. Move exex/wal aside. Reth rebuilds what it needs on start.

bin/dbconsole/README.md has the details.

Proof Programs

The SP1 guest programs are published as files of this release: for each network, the chunk ELF, the account ELF, the account predicate, and the params file they were built with. Release files can't be changed after publishing, but these notes can. Treat the files as the source of truth, and check any program ID or predicate shown here against them.

The guests are built in SP1's Docker image, so anyone can rebuild them at this tag and get the same bytes (#153, #174).

SP1 guests

Each network's guests bake in its <network>-alpen-params.json. To check a network's files, rebuild at this tag with those params and compare digests:

SP1_ALPEN_PARAMS_PATH=/abs/path/to/<network>-alpen-params.json \
  cargo build --release --locked -p alpen-sp1-guest-builder --features docker-build

The build writes the ELFs and the account program ID and predicate to provers/sp1/generated/.

The account program ID is SP1's program vkey hash of the account ELF, which cargo prove vkey --elf <network>-guest-alpen-acct.elf prints. Most of a predicate's bytes are the same for every build, so compare program IDs to tell builds apart.

mainnet

Account program ID: 0x002013337440901e316d6e00bc1d07e15b9cc038f6a7b421ecb7930e2844b27a

Account predicate:

Sp1Groth16:4388a21c002f850ee998974d6cc00e50cd0814b098c05bfade466d28573240d057f253520121c7d728a5fd961fc179ec5eab938f564deba5b271e1c90c2c29a79648418fc12317bd9b644830ef5ffec1c2d46b5442aa8029d41eb58fb8fc939fb03365e00e1c3c9339849225980c7d3f824f80d19e2a9c2554b6ab2160fa9635528f693fc00d964538da2653f2e62499571e6c78afb8909d3ea8107f306bd6928253680a3a2c8e3c3c5153ef35c01baddac0d2e24dfee9dd922d819aae54fa90e175f9625e2677b02e199903c8131b8e9fafaa7d5b0eeda406cf3d190e01cfdce881ab30ca198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c21800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa11b7e9276171bb0efd647fc63e38bbfba3076f20daca8cd52bcc7284d9b1c6eb1723616533dd6ae53502c9c506a81f23f543d68750b5133ebfbe1f4746b3b0110c4684810202d51d39e2b093a0a9187afacb75e203000170f23687b2cc786b2605865c701a782e7a81549613e8f8832f6a6d86a809ca794fd7e99b54e626080c00000005142e518672192dd50aeef784885fb9ef98af67b112e61d3166a35cbf810a690a1c1b44f5cce16b9e69adb1ec5e67b1f1654ae97cc2aeb5076069add85d46c55d0b0ae6e491bc04c544da9e8cd4857d201b4cfa0222dbe96aac97f044fdf1c922123e064d2ffdb7f8094b727cde1c0beea6d4d551e5743a336804f8effb7f07ac097c875a6ebd0999b06e7267ff3d8a6bf859bb9635abae07cb6b3534ba409a832d84b73fb0f397e356b524f2d0e9ddc9d0f6ac75e566041147ee8554879183ec1807204ddcd27506ba72e17b55227b0bf310136ecb40c74acd52f3ccfbcba9f7011078b5c7767fe73bb54241dcd143ee805ea4383d48d46bced129482c8c2021008c7b7c98d78c07a2c4be5f6be7082ba41021611f9a2dfc016f8bbb37d36bee09ce6d246baeac24b5a404ca175c2cc4a974e217176fe2ec2a6c22eb60fd65c1

staging

Account program ID: 0x000f8692df95b9def35c0d75e7cec0aeae9d6c9ff31be22abab356322fcd345c

Account predicate:

Sp1Groth16:4388a21c002f850ee998974d6cc00e50cd0814b098c05bfade466d28573240d057f253520121c7d728a5fd961fc179ec5eab938f564deba5b271e1c90c2c29a79648418fc12317bd9b644830ef5ffec1c2d46b5442aa8029d41eb58fb8fc939fb03365e00e1c3c9339849225980c7d3f824f80d19e2a9c2554b6ab2160fa9635528f693fc00d964538da2653f2e62499571e6c78afb8909d3ea8107f306bd6928253680a3a2c8e3c3c5153ef35c01baddac0d2e24dfee9dd922d819aae54fa90e175f9625e2677b02e199903c8131b8e9fafaa7d5b0eeda406cf3d190e01cfdce881ab30ca198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c21800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa11b7e9276171bb0efd647fc63e38bbfba3076f20daca8cd52bcc7284d9b1c6eb1723616533dd6ae53502c9c506a81f23f543d68750b5133ebfbe1f4746b3b0110c4684810202d51d39e2b093a0a9187afacb75e203000170f23687b2cc786b2605865c701a782e7a81549613e8f8832f6a6d86a809ca794fd7e99b54e626080c000000051f8e2a083eb9755b54c89e42cd14e09e457a9a5431a70c689ed889177405b44f2dac04519da58b1e79c49369ae1be3c5037d857f617887c73eb7d02467edc9160b0ae6e491bc04c544da9e8cd4857d201b4cfa0222dbe96aac97f044fdf1c922123e064d2ffdb7f8094b727cde1c0beea6d4d551e5743a336804f8effb7f07ac097c875a6ebd0999b06e7267ff3d8a6bf859bb9635abae07cb6b3534ba409a832d84b73fb0f397e356b524f2d0e9ddc9d0f6ac75e566041147ee8554879183ec1807204ddcd27506ba72e17b55227b0bf310136ecb40c74acd52f3ccfbcba9f7011078b5c7767fe73bb54241dcd143ee805ea4383d48d46bced129482c8c2021008c7b7c98d78c07a2c4be5f6be7082ba41021611f9a2dfc016f8bbb37d36bee09ce6d246baeac24b5a404ca175c2cc4a974e217176fe2ec2a6c22eb60fd65c1

testnet

Account program ID: 0x00168742a5e2dce73b743fcdc77f686086facba22b090524232d9bb42a2ed729

Account predicate:

Sp1Groth16:4388a21c002f850ee998974d6cc00e50cd0814b098c05bfade466d28573240d057f253520121c7d728a5fd961fc179ec5eab938f564deba5b271e1c90c2c29a79648418fc12317bd9b644830ef5ffec1c2d46b5442aa8029d41eb58fb8fc939fb03365e00e1c3c9339849225980c7d3f824f80d19e2a9c2554b6ab2160fa9635528f693fc00d964538da2653f2e62499571e6c78afb8909d3ea8107f306bd6928253680a3a2c8e3c3c5153ef35c01baddac0d2e24dfee9dd922d819aae54fa90e175f9625e2677b02e199903c8131b8e9fafaa7d5b0eeda406cf3d190e01cfdce881ab30ca198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c21800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa11b7e9276171bb0efd647fc63e38bbfba3076f20daca8cd52bcc7284d9b1c6eb1723616533dd6ae53502c9c506a81f23f543d68750b5133ebfbe1f4746b3b0110c4684810202d51d39e2b093a0a9187afacb75e203000170f23687b2cc786b2605865c701a782e7a81549613e8f8832f6a6d86a809ca794fd7e99b54e626080c000000050e40a8fced1abc273e95346ee8c61a83446f9ebd5213576f6f4a896fc7ad705f0a1140b9e5ea87e67eca47fb965e59a0f417d0aef3564245abe623852d2c4a570b0ae6e491bc04c544da9e8cd4857d201b4cfa0222dbe96aac97f044fdf1c922123e064d2ffdb7f8094b727cde1c0beea6d4d551e5743a336804f8effb7f07ac097c875a6ebd0999b06e7267ff3d8a6bf859bb9635abae07cb6b3534ba409a832d84b73fb0f397e356b524f2d0e9ddc9d0f6ac75e566041147ee8554879183ec1807204ddcd27506ba72e17b55227b0bf310136ecb40c74acd52f3ccfbcba9f7011078b5c7767fe73bb54241dcd143ee805ea4383d48d46bced129482c8c2021008c7b7c98d78c07a2c4be5f6be7082ba41021611f9a2dfc016f8bbb37d36bee09ce6d246baeac24b5a404ca175c2cc4a974e217176fe2ec2a6c22eb60fd65c1

What's Changed

  • Feat/sync with repo template by @sapinb in #10
  • chore(github): stop dependabot PRs for the reth-locked dependency family by @prajwolrg in #35
  • Port EE-relevant upstream alpen PRs merged since the repo split by @prajwolrg in #36
  • refactor(provers): simplify the SP1 guest builder by @prajwolrg in #38
  • refactor(alpen-client): split CLI args into domain-grouped structs by @prajwolrg in #34
  • feat(alpen-ee-params): introduce consolidated AlpenParams type by @prajwolrg in #46
  • feat!: migrate to the AlpenParams artifact by @prajwolrg in #42
  • feat!: bake AlpenParams into the EE chunk/acct guest ELF by @prajwolrg in #48
  • chore(deps)(deps-dev): bump the python-dependencies group across 1 directory with 2 updates by @dependabot[bot] in #2
  • refactor(alpen-client): restructure around the sequencer boundary by @prajwolrg in #73
  • refactor(alpen-client)!: configure the node from a TOML file and dispatch startup on the mode by @prajwolrg in #81
  • refactor(reth-statediff): drop the strata-mpt dependency by @prajwolrg in #84
  • refactor(alpen-client)!: rework EE prover backend selection and configuration by @prajwolrg in #72
  • Alpen fee model by @evgenyzdanovich in #44
  • Fix fn-test transaction mempool progapagation by @sapinb in #85
  • feat(alpen-reth-node): dispatch EVM rules per header-carried spec version by @prajwolrg in #75
  • feat: wire predicate-key rotation through to a spec-version switch by @prajwolrg in #76
  • ci: add AI security review (Claude) on pull requests by @storopoli in #80
  • chore(deps): bump strata deps to alpen main, drop the EE dbtool test by @prajwolrg in #93
  • test(functional): cover the real SP1 guest proving path by @prajwolrg in #92
  • refactor(reth-evm): delegate system calls to revm by @prajwolrg in #99
  • chore(cargo): enforce 14-day min-publish-age for crates.io deps by @storopoli in #118
  • fix(ci): address zizmor findings by @evgenyzdanovich in #116
  • chore(cargo): set incompatible-publish-age to deny explicitly by @storopoli in #119
  • Storage: move from sled to mdbx by @evgenyzdanovich in #82
  • fix(alpen-client): install jemalloc as the global allocator by @evgenyzdanovich in #121
  • fix(ci): make cargo-audit actually scan the dependency graph by @prajwolrg in #87
  • fix(provers): point the sha3 patch at the version the guests resolve by @MdTeach in #123
  • Fix/chunk missing bytecode witness by @sapinb in #91
  • chore(deps): bump rsp to reth-2.2.0-sp1-6.5.0-patch.1 by @MdTeach in #124
  • chore!: remove the alpen-cli binary by @evgenyzdanovich in #125
  • docs: add EE trust model and wire it into AI PR reviews by @sapinb in #100
  • feat: JWT-authenticated admin RPC for alpen-client by @sapinb in #94
  • chore(deps): clear nine cargo-audit advisories unblocked by reth v2.2.0 by @prajwolrg in #126
  • feat: activate Osaka at spec v1 and prove across a live VK rotation by @prajwolrg in #77
  • Update imbl to patched sized-chunks release by @voidash in #133
  • fix(evm-ee): stop trusting prover-supplied hashes in the chunk witness by @prajwolrg in #122
  • EE storage schema upgrades by @evgenyzdanovich in #114
  • refactor(ci): use centralized security review v1.1.0 by @storopoli in #147
  • fix(ci): pin and checksum the taplo install by @sapinb in #146
  • feat(sequencer): add L1 broadcast fee guardrail by @bewakes in #90
  • fix(engine): reject malformed payload signatures before execution by @voidash in #131
  • fix(ci): refresh stale action pins flagged by zizmor by @prajwolrg in #128
  • fix(evm): reject maximum-nonce transactions by @voidash in #130
  • Make Alpen base-fee floor configurable from params by @voidash in #132
  • feat(alpen-client): add dynamic DA fee rate service by @bewakes in #120
  • Sealing policy composition and DA-size batch sealing by @sapinb in #145
  • fix(functional-tests): skip genesis when decoding the DA rate by @prajwolrg in #149
  • fix(functional): use configured prover for EEST by @voidash in #117
  • refactor(db): split prover task storage by proof kind by @evgenyzdanovich in #148
  • chore(deps)(deps): bump rand from 0.8.5 to 0.10.2 by @dependabot[bot] in #164
  • chore(deps)(deps): bump rust-overlay from 067959e to 35ca049 by @dependabot[bot] in #154
  • chore(deps)(deps): bump eth-abi from 5.2.0 to 6.0.0 in /functional-tests by @dependabot[bot] in #157
  • chore(deps)(deps): bump the all-dependencies group with 9 updates by @dependabot[bot] in #158
  • chore(deps)(deps): bump rui314/setup-mold from 7e4f20ad28a2e8ca6fd0892ccf72e2abb706b9c3 to 10ca16bf91dc22e05ebdc935cad9c75ea248f621 by @dependabot[bot] in #159
  • chore(deps)(deps): bump astral-sh/setup-uv from 8.2.0 to 10.1.0 by @dependabot[bot] in #160
  • chore(deps)(deps): bump nixpkgs from 7a1a647 to c7def04 by @dependabot[bot] in #155
  • fix(CI): add sp1 to the ignored deps in dependabot. by @evgenyzdanovich in #165
  • chore(deps)(deps): bump rand_core from 0.6.4 to 0.10.1 by @dependabot[bot] in #162
  • chore(deps)(deps): bump rust-overlay from 35ca049 to a1d497a by @dependabot[bot] in #166
  • chore(deps)(deps): bump the rust-dependencies group across 1 directory with 25 updates by @dependabot[bot] in #167
  • storage DBconsole by @evgenyzdanovich in #127
  • feat(dbconsole): migrate-sled, the offline sled → MDBX data migration by @evgenyzdanovich in #141
  • fix(reth)!: set the base-fee floor per spec version by @prajwolrg in #170
  • feat(docker): ship dbconsole in the alpen-client image by @prajwolrg in #171
  • feat(params): per-network alpen params, drop the chainspec crate by @prajwolrg in #172
  • Refactor and crate structure by @evgenyzdanovich in #169
  • ci: publish per-network SP1 guest artifacts on release by @prajwolrg in #153
  • feat(dbconsole): roll back to a block hash and drop its prover work by @prajwolrg in #181
  • feat(da): publish the last block's DA rate from v1 by @prajwolrg in #175
  • feat(dbconsole): set the next block's spec version after a rollback by @prajwolrg in #183
  • ensure consistent prover guest builds by @sapinb in #174
  • fix(params)!: leave V0 header extra_data empty and charge no DA fee by @prajwolrg in #179
  • ci(release): add guest program IDs to release notes and skip dev by @prajwolrg in #178
  • refactor(reth): build the EVM config per spec version by @prajwolrg in #182
  • chore(deps): bump alpen to v0.4.0-rc.1 and follow its pins by @prajwolrg in #187
  • refactor(prover-perf): report through zkaleido-perf-report by @prajwolrg in #188
  • feat(reth-evm): give V1 Osaka's precompiles by @prajwolrg in #191
  • fix(sequencer): keep tracking OL deposits after the switch to a promoted v0.4 OL by @prajwolrg in #193
  • ci(docker)!: publish the alpen-client image on demand, without SP1 ELFs by @prajwolrg in #177
  • Min base fee by @barakshani in #194

Full Changelog: alpen-ee-repo-split...v0.4.0

Don't miss a new alpen-ee release

NewReleases is sending notifications on new releases.