Continuation of the post above. Every MUST and definition is there; this reply explains and holds only the SHOULDs it points to by number. Where the two differ, the post above is correct. Sections keep their numbers across revisions. The EIP-8298 Security Considerations draft that was here is merged in ethereum/EIPs#12564.
S1. Where I looked
Informative.
ethereum/ERCs and ethereum/EIPs (open PRs included), the EIP-8298 Magicians thread, and Solady, OpenZeppelin, ZeroDev Kernel, Safe, Coinbase Smart Wallet, eth-infinitism, erc7579-implementation, Alchemy Modular Account, JARDIN and SPHINCs-.
S2. Typed data
Informative; ERC: Rationale and Test Cases. Explains Typed data in the post above.
- Exact strings. Each line is an EIP-712
encodeTypestring with no space after a comma, so it hashes as written; v2.7 printed them with spaces, which hash to other values. typeHashvalues (keccak256of each string; digest vectors follow oncenameandversionare fixed):EIP712DomainwithchainId:0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400fMigration:0x88bf991dc9a5e9f1845328b77bf9cf83b6c7df88ae1e07cc1bb36be610c9801aRegistration:0x0189d872514f3ce92752e739b26c2c44c75e340b91cb0afab5c6364434961bd1RegistrationAnyChain:0xfb6770718b65ed2ee21dcafcd8e962d8ce1c3cf471cb1675cb06f469d202f241EIP712DomainwithoutchainId:0x91ab3d17e3a50a9d89e63fd30b92be7f5336b03b287bb946787a83a9d62a2766
- Chain ID.
Registrationbinds the chain by default, so a saved bundle reused after a key was retired on one chain fails safely. A “twin” account elsewhere is not the reason: an attacker who adopts other code there can list the user’s keys without any proof, and W5 is what catches that. - Chain-free form.
RegistrationAnyChainis a separate type under a domain withoutchainId, so a chain-free proof can’t pass as a chain-bound one. The contract can’t tell how far ahead a deadline was set, so its length is a wallet matter (W11); sinceinitializere-verifies every proof on replacement (R4, R6), a replacement after the deadline needs a fresh cold-key signature. AnauthoritySetHashwas considered and dropped: it binds neither the code nor the chain, and W5 does the work. keyHashandscope.keyis the second half of an ERC-7913 signer (verifier ‖ key). The scope bits are EIP-8141’sAPPROVE_PAYMENTandAPPROVE_EXECUTION;APPROVEreverts on bits outside the mask, andinitializedoes the same.initData. Its layout is implementation-defined, so a signer cannot display what it installs (Q13). If Q13 adds anauthoritiesHashtoMigration, that type string and its hash change.
S3. P1/P4 details
Informative; ERC: Rationale. Explains M3.
- Why two identical calls. An invalid signature already returns empty output, which Solidity reads as
address(0), and since ethereum/EIPs#12540 an EIP-8151 rejection returns the same empty output withsuccess = 1. Before adoption the call must return the account, which shows the signature is genuine; recovery is deterministic, so if the identical call afterwards returns empty output, the only thing that changed is the account’s code. - Delegated account during P1. In Route A, P1 runs while the account holds the 7702 delegation indicator, which EIP-8151 exempts on purpose: a delegation keeps the key’s authority.
- Only empty output. Earlier drafts of EIP-8151 returned 32 zero bytes instead. Accepting those would also be sound, since P1 already showed that the same input recovers, but no chain targeted here returns them, and conformance tests need one expected result.
- Reading the output. A call with empty output writes nothing to the output buffer, which keeps whatever it held before. In P1 that can be the account’s own address, left over from building the EIP-712 domain, exactly the value P1 compares against; so a malformed signature could pass P1 without the
returndatasizecheck. - Gas. Under EIP-8151 a successful recovery costs 6,100 gas cold and 3,200 warm (EIP-8038 access costs), so a fixed 3,000 runs out of gas, which gives
success = 0and never passes as a rejection.
S4. Route A details
Informative; ERC: Specification notes and Security Considerations. Explains M4–M7 and the pseudo-code.
Executor (M4). ENTRY_POINT (0xaa) is the caller of every DEFAULT frame, hence excluded. Self-sent (executor = account): an intent runs only in a transaction the old key signs. Sponsored: the sponsor can run any unexpired intent that names it whenever the account is delegated to Migrator; Migrator can’t tell a call-forwarding executor from a real one (W3). The delegation is not bound to any D: while it stands, every unexpired, unrevoked intent of the account is executable by its executor, and re-delegating away only suspends them; any later delegation to Migrator, including one left by a failed attempt, revives them.
Revocation. The account can still send ordinary transactions with the old key, so it can call MigrationCheck.revoke(D); that records (msg.sender, D), and begin rejects D once (account, D) is recorded. Nobody else can revoke an account’s intent. MigrationCheck is never on a validation path, so the revocation set has no mempool impact. A revocation can still lose a race with a sponsor who executes first, so deadlines SHOULD be short.
The guard’s self-check (M5). Migrator creates MigrationCheck with CREATE in its constructor and reverts if no code results, so it never records 0 or keccak(""); MigrationCheck learns its Migrator from msg.sender, so nothing is circular. Re-checking on every call, rather than trusting the creation, covers deployments that copy runtime code without running constructors (OP Stack’s genesis preinstalls the ERC-4337 EntryPoint and its SenderCreator separately): a Migrator copied alone has the correct code hash and an empty guard. Requiring code (a recorded hash that is neither 0 nor keccak("")) also refuses a template whose immutables were never filled, which would compare 0 with 0. A Migrator whose immutables name other code with that code’s hash still passes M5; only W8 catches it. Cost: about 150 gas per migration.
Linking begin and finish (M2). begin writes a link to transient storage, keyed by (account, D) and holding keccak256(ownerSig), so finish runs P4 with the signature P1 accepted. finish consumes the link, so a second finish reverts: if the adopted code’s initialize calls finish early, before P3 holds, Migrator’s own finish reverts and takes the migration with it. After initialize, Migrator calls only finish, which writes nothing in the account.
P3’s record checks (M7). The check before SETCODEFROM rejects a stale record; the slot need not be empty (an earlier initialization may legitimately have left another hash), only not hold the hash about to be adopted. The check after initialize is what P3 verifies: code that answers every call with success without initializing (a permissive fallback, a proxy with an empty implementation slot) never writes it. Both read a record R4 already requires, so they add nothing to the profile and judge inputs, not quality.
Failure. On failure the call reverts but the 7702 delegation stays, and senders that hard-code 21,000 gas fail against it as against code; hence M6’s receive hooks. What a wallet does next is in S9.
Already-delegated EOAs. The type-4 transaction replaces an existing delegation. The old delegate’s storage stays behind and has no effect under R4; if it happens to hold the new code’s hash in R4’s slot, Migrator reverts before the adoption (M7).
S5. Route B details
Informative. Route B needs ethereum/EIPs#12506; explains M1, M7 and W10.
begin. It requires EXTCODEHASH(sender) == keccak256("") (never 0: frame 0’s APPROVE bumped the nonce; an active 7702 delegation must be cleared first), then reads the next three frames with FRAMEPARAM and FRAMEDATACOPY. With begin itself they must match rows 1–4 of the table below in mode, target, data and flags (‖ is byte concatenation), so the four frames form exactly one atomic batch, and finish must be the last frame, so frame 0’s approval cannot act on the adopted code after Migrated.
Why forward. A revert unrolls only its own batch, so a check outside the set-code frame’s batch could not undo the adoption; begin shares that batch and checks ahead, so a wrong structure reverts before the adoption (pointed out by Daniil Ankushin). Order matters too: initialize before the set-code frame would hit the default code and still succeed.
finish. Transient storage doesn’t survive across frames, so finish checks that the frame three back is begin(p, ownerSig) on this instance, that it and the next two carry the flag, and that all three have status 1; reading ownerSig from that frame makes P4 use the signature P1 accepted. Locating begin by position means only frame 4 can pass, so Migrated is emitted at most once and initialize (frame 3) cannot call it.
R4’s record (M7). finish is another contract and frames pass no return data, so it can’t read the account’s storage; it STATICCALLs initializedCodeHash() and requires 32 bytes equal to EXTCODEHASH(account), else it reverts and the batch undoes the adoption. So code that accepts any call is refused here as in Route A (a stale record only by R4), and code without this view can’t migrate through Route B. Only Route B needs the view for now; whether the profile requires it of all adopted code will be settled before a conformance suite is published.
The source (W10). A frame targeting an address without code succeeds under the default code, so with an empty MigrationCheck frames 1 and 4 would do nothing and the adoption would go through without P4, the structure checks, the deadline or Migrated (only the signer is exposed). The one thing the protocol does check inside the batch is that source exists and holds the signed code hash. So MigrationCheck’s constructor creates a factory that places code of hash h only at CREATE2(factory, salt = h, LOADER), and begin requires p.source to be that address. Without MigrationCheck there is no factory and no source, so the set-code frame reverts and the batch with it: fail-closed, by consensus, in the public mempool. A wallet derives MigrationCheck, the factory and the source from Migrator’s address alone (CREATE at nonce 1 twice, then CREATE2), so even a hardware signer can check the frames. Every route needs a source per chain and code hash, placed in an earlier transaction (EIP-8298); this only fixes where it lives. Not implemented yet.
Private submission. Alternatively, begin can be a VERIFY frame with scope 0, so an empty MigrationCheck makes the transaction invalid. A VERIFY frame after the validation prefix breaks EIP-8141’s public-mempool structure rule, so this form is for private submission only, M1 and finish need variants, and whether builders and L2 sequencers accept it is unchecked.
What remains. A set-code frame outside this batch, or a batch without the flags, shares no batch with a guard frame; begin rejects a sender that already has code, but cannot unroll a frame it shares no batch with. Wallets build the frames as in the table; the simulation after signing (S9) catches a mistake.
ownerSig. It is still needed, because the ECDSA bytes verified by the default code are not readable from the EVM.
| # | mode | target | data | flags |
|---|---|---|---|---|
| 0 | VERIFY | sender | – | 0x3 (APPROVE_EXECUTION_AND_PAYMENT) |
| 1 | SENDER | MigrationCheck | begin(p, ownerSig) |
atomic |
| 2 | SENDER | sender | 0x01 ‖ p.source ‖ p.codeHash |
atomic |
| 3 | SENDER | sender | initialize(initData) |
atomic |
| 4 | SENDER | MigrationCheck | finish(p, ownerSig) |
– (closes the batch) |
S6. More on the guard
Informative; ERC: Security Considerations.
- Missing EIP-8151 is caught. On a chain without EIP-8151, P4 fails, so the migration is refused. A missing EIP-8141 (FM7), by contrast, cannot be detected.
- A missing guard is caught (M5, W8, W10). A call to an address without code succeeds, so a missing
MigrationCheckwould pass silently: in Route A anyone could then migrate an account left delegated toMigratorwith an intent of their own, and in Route B the signer would lose P4 andMigrated. M5 and the factory source close both (S4, S5); W8 catches aMigratorcopied without its guard, whose own code hash is still correct. An address list, or source verification that masks immutables, does not replace W8’s comparison. Nothing is exploitable today: EIP-8298 is live on no chain. - The reference template is inert. The canonical reference kernel is deployed uninitialized. It has no authority and accepts initialization only from itself, so nobody can initialize or replace it, and its hash is stable in practice. FM5 matters mainly when the source is someone else’s live account.
- Completion (W9). A frame transaction’s receipt has no single status, and adopted code can emit a log with
Migrated’s topic, so the wallet checks the emitter.
S7. Verifier rules: notes and SHOULDs
Informative except the SHOULDs; ERC: Specification. Explains V1–V4.
- Stateless (V1). ERC-7913 only says SHOULD.
- Canonical encodings (V3). Trailing bytes must be rejected because
ARBITRARYsignature bytes are outside the signature hash. - Fixed scheme (V4). A signature that selects its own scheme or parameters invites downgrade; and
verifierCodeHashdoes not capture whether a precompile the verifier calls exists on this chain, so an empty return from it must be a failure, not a pass. - Bytes at opcode positions (SHOULD). No
0xA7,0xF4or0xF2at an opcode position, including in compiler metadata.- A contract containing
0xA7is treated by EIP-8298 like a 7702-delegated account, which EIP-8141’s trace rules reject. - Contracts containing
0xF4/0xF2are tracked by code hash, with a cap on the pending transactions that depend on them. - The reference kernel’s verifiers avoid all three.
- A contract containing
- Gas (SHOULD). Publish worst-case gas.
S8. Other code SHOULDs and notes
SHOULDs for adopted code, and informative notes; ERC: Specification and Security Considerations.
- Replaceability (SHOULD). Declare via ERC-165 (interface ID TBD) whether the code is replaceable, and require an explicit freeze flag before replacing itself with code that isn’t.
- Own address in
VERIFY(SHOULD, mempool). NeverCALL*/EXTCODE*its own address while inVERIFY. Replaceable code containsSETCODEFROM. EIP-8298 treats a contract containing it like a 7702-delegated account, and EIP-8141’s trace rules reject validation that reaches such an account. - Constructors don’t run.
SETCODEFROMcopies runtime code only. State a constructor writes (an initialized flag, a locked threshold, an owner) is absent at the adopting account, and animmutablethat capturedmsg.senderoraddress(this)is the source’s, shared by every adopter. Code whose initialization guard lives in a constructor fails FM3; the conformance suite will carry such a negative fixture. - Code that answers unknown selectors. A fallback that returns success for any selector, or a proxy with an empty implementation slot, “initializes” without doing anything; M7 refuses it (suite fixtures: permissive fallback, stale storage). A multisig with
setupopen at threshold zero, or a fixed layout that reads old owners, does not conform as is; its EOA owners stop recovering once they adopt code. - Code that depends on mutable external code. A proxy with an immutable admin elsewhere, or a beacon proxy, passes P3 and any simulation while a third party can still change it. Only W6 catches that.
S9. Simulation (wallets)
Explains W7 and W16; SHOULDs for wallets; ERC: Security Considerations.
- What passes. The test transaction is valid, every
SENDERframe has status 1 (on a relay path,UserOperationEvent.success), and the expected state change happened. ERC-1271 does not count (FM2). - The state. Start from the target chain’s state at a recent block, override the account’s code with the code of the planned
codeHash(not its storage) and its nonce as the test needs, callinitialize(initData)from the account itself, then run the test. For conforming code this leaves the authorities the real migration would, whatever the context R4 lists; external state is not covered (below), and for other code nothing is (W6). - The chain’s rules. A simulator with the wrong fork rules passes code that fails on the chain: a
VERIFYtest with EIP-8141 enabled where the chain lacks it (FM7), or fixed gas forwarded toecrecoverwhere EIP-8151 raised its cost. The pre-signing test no longer catches a missing EIP-8151 through P4, hence the explicit rule. A key-free probe: take the address some arbitrary(hash, v, r, s)recovers to, give it regular code (not a 7702 indicator, which EIP-8151 exempts) in the fork, and callecrecoverwith that input; under EIP-8151 the output is empty. - Never includable. Use a nonce of 2^63 in the frame transaction, or the EntryPoint’s sequential nonce far ahead for a relay path. A harmless target, an entry without the chain ID, or EIP-8250’s single-use nonce (
nonce_seq = MAXis reserved) is not enough. The test is signed once and reused. - Scope. W7 asks for one execution-capable authority on one usable path because that is what prevents lockout: one working execution path can replace the code (R6) and repair the rest. Wallets SHOULD also test every other path, verifier and scope the account will use, including payment by an authority that will pay.
- After signing (SHOULD). Simulate the signed migration itself, then the same test, on the user’s device before submitting it or giving
ownerSigand the authorization to an executor. - Failure (SHOULD). If a migration fails and will not be resubmitted, wallets SHOULD revoke
Dwith an old-key transaction, which also voids unused authorizations and frame transactions by advancing the nonce, and offer to clear a leftover delegation. The delegation keeps every unexpired intent executable (S4) and makes 21,000-gas senders fail; clearing it fixes only the second, and re-delegating later revives the intents, so revoke. - State source (SHOULD). Use state the wallet validated itself (its own node, or
eth_getProofagainst a light-client header), or at least two independent RPC providers; W8 reads the same RPC, so one lying provider defeats both. Nothing signed with the old key exists before the test passes, so the test may run off-device; keeping the signed test on-device is a SHOULD (few-time keys, W16). - Tooling and limits. A relay-path test needs only a current EVM and a code override in
eth_call; aVERIFYtest needs an EVM with EIP-8141, which clients’ devnet branches have and standard simulation APIs don’t yet, and is needed only where EIP-8141 is live. No simulation shows state changes before inclusion (a module’sonInstalltarget), mempool rules or future forks. - Signature budget (W16). A stateful scheme’s signer state is one across chains and is never rolled back with a fork; few-time schemes (FORS, HORS, reduced-parameter SPHINCS+) lose security with every signature seen, so their test stays on the device; one-time schemes (WOTS) cannot carry a registration proof at all.
S10. Wallet recommendations
SHOULDs for wallets; ERC: Security Considerations.
- Display. When signing, show the code hash and its implementation, every authority with its scope, the executor and the deadline; W2’s check and the display SHOULD cover every module, hook, executor and handler that can act or answer for the account.
- Backup. Offer a second, separately held execution-capable authority. After migration, the old key is no longer a fallback.
- Key derivation (W14). Derive authority keys from the seed with a separate, domain-separated KDF. In BIP-32 a non-hardened child key plus the parent
xpubyields the parent key, and a quantum attacker breaks the public keys in anxpubdirectly. - PQ migrations (W15). When the purpose is quantum resistance, install only quantum-resistant authorities; a P256 passkey is a legitimate authority for other purposes.
- Other chains. Before migrating, show the balances held at the same address on other chains, and warn that bridges which alias senders with code will credit deposits to the alias afterwards (S14), and about powers this ERC does not reach: balances released by off-chain or other-chain ECDSA, accounts the address controls elsewhere, keys derived from the old key’s signatures.
- Unexposed public key. If the old key’s public key has not appeared on chain yet, sign every chain’s migration in advance and submit them privately within a short window, originating chains first (W12).
- Submission. Submit privately, because the transaction is signed with the old key (Q-day timing, S14).
S11. Inclusion paths without a sender-code check
Explains W12; ERC: Security Considerations.
- The gap. An OP Stack deposit carries no signature: the portal does not alias an L1 sender that is an EOA or a 7702-delegated EOA, and L2 skips the EIP-3607 check for deposits. So an account migrated on L2 but still an EOA on L1 can be driven from L1 by the old key: token transfers, L2 ETH through
value, calls into its own code (R9 denies those authority, but a deposit withtoset to a token never touches the code). - Ordering. A deposit is derived from the receipts of its L1 origin and runs in the first L2 block of that epoch, ahead of sequenced transactions, and the sequencer keeps its origin behind the L1 head. So a deposit queued before the L1 migration can execute after the L2 migration (raised by Revinand).
- What “retired” means. Once shown, every deposit from an L1 block at or before M has executed on L2, and new old-key transactions here are rejected; later deposits from the same L1 address can only come from the account’s new code.
- The display condition. M must be finalized, because a reorg could undo it; and some finalized L2 block after the L2 migration must have an L1 origin at or past M. Reply #20 required the migration’s own block to have that origin; a wallet that submitted before the origin reached M would then show “pending” forever, so any later finalized block now counts. The origin never moves backward on the canonical chain.
- Submission (SHOULD). Submit the L2 migration only after M is final and a safe L2 head reports
L1Block.number() >= M: an unsafe block can be rebuilt, and once a safe head shows M every later canonical block does too. - Not covered. Assets a queued deposit moves before the migration lands (a loss before migration); earlier approvals and roles; unfinalized withdrawals; failed cross-domain messages that can be replayed; messages through the CrossDomainMessenger, whose
fromis the aliased L1 messenger and whose L2 targets readxDomainMessageSender(). Wallets SHOULD say so. - Other rollups. Arbitrum aliases every L1 message sender through
Inbox._deliverToBridge(retryables included) and keeps the sender-code check on the un-aliased*ToForkpath; Scroll keeps the check for L1 messages (both read at branch heads, not deployed versions; raised by Zealynx). Forced inclusion on zk rollups, and a Scroll L1 message that fails the check, are unchecked. - Rollup-side fix. Process a deposit whose
fromholds regular code on L2 as a failed deposit (mint kept, nothing executed): proposed in ethereum-optimism/specs#980, with Revinand’s regression test (queue a token-transfer deposit, migrate on L1, migrate on L2 while the origin is behind, advance derivation). Without the check, the same sequence tests W12.
S12. Reference kernel: sketch, storage, PQ budget
Informative.
// frame data, covered by the signature hash:
// verify(uint8 authorityId, uint8 sigIndex)
assert FRAMEPARAM(cur, MODE) == VERIFY
assert SIGPARAM(sigIndex, SCHEME) == ARBITRARY
// canonical tx signature hash
assert SIGPARAM(sigIndex, MSG) == 0
sig = SIGDATACOPY(sigIndex)
allowed = FRAMEPARAM(cur, ALLOWED_SCOPE)
// shared verification (R3)
scope = _authorize(authorityId, TXPARAM(SIG_HASH), sig)
assert allowed != 0 && (scope & allowed) == allowed
APPROVE(0, 0, allowed)
- Storage. ERC-7201 namespaced. An active-id bitmap and the code hash recorded at initialization implement R4;
initializedCodeHash()returns that record (M7). - PQ budget. The 100k budget covers the whole validation prefix, not just the verifier. Candidates: JARDIN’s compact path at about 48K (its note) or 60K (its README’s estimate); SLH-DSA-Keccak-128-24 at about 94K for verification alone (the SPHINCs- README), which leaves little room.
- Large PQ keys. A key-blob contract encoded as
0x00 ‖ (PUSH32 ‖ 32 bytes)*keeps every byte as PUSH data; a raw 1,312-byte ML-DSA-44 key contains0xA7at an opcode position in about 80% of cases.
S13. More related work
Informative.
- ERC-8403 (ethereum/ERCs#1979) defines an account-authority lifecycle and notes that no revoke removes a 7702-delegated EOA’s native key; of its two remedies (a new account, or regular code at the same address via EIP-8298 and EIP-8151), this proposal covers the second.
- JARDIN is a hash-based PQ account (a research prototype per its README); its verifiers could be wrapped as ERC-7913 verifiers.
- EIP-8425 (ethereum/EIPs#12383) installs a PQ wallet at the same address during recovery. The kernel could serve as that wallet. That path removes
ecrecover, though, so P1 and P4 don’t apply. - ERC-8421 (ethereum/ERCs#2028) defines alternative mempools, the natural home for configurations over
MAX_VERIFY_GAS.
S14. More residual risks
Informative; ERC: Security Considerations.
- Q-day timing. The migration is signed with the old key, so this is a pre-Q-day procedure. Submit privately.
- Admin rights. Any execution-capable authority can replace the code; v1 has no separate admin role.
- Non-conforming old code. Replacing it is outside what the profile can guarantee: its frame keeps running after
initializeand can do anything the account can, the lock and R6’s count included. - Validation calling into the kernel. Another account’s validation may call into the kernel, for example to check its ERC-1271 signature. EIP-8141’s trace rules already reject that, because it reads storage outside
tx.sender. EIP-8298’s rule would reject even a storage-free call, because the kernel’s code containsSETCODEFROM. - Sponsoring. When the kernel approves payment for another sender, it acts as a non-canonical paymaster, limited to one pending transaction in the public mempool. Its
payframe reads the kernel’s own storage. I read EIP-8141’s “gas account” rationale as allowing that, but the trace rules don’t say so explicitly. - Bridges that alias senders with code (raised by Zealynx).
- Arbitrum’s
InboxcreditsdepositEth()from a sender with code to its L2 alias, andcreateRetryableTicketaliases refund addresses that have code; both already apply to 7702-delegated EOAs, and adoption makes them permanent.tois not rewritten, so a retryable withtoset to the account still deliversl2CallValueto the account’s own L2 address. - OP Stack’s
OptimismPortal2treats the caller as an EOA when it istx.originor holds exactly a 7702 delegation indicator. ASENDERframe passes (ORIGINistx.senderthere); a call through a relay path does not, so its deposit is aliased where a 7702-delegated account would still pass, and without EIP-8141 a relay path is the account’s only way to act. Whether the un-aliased frame case is intended is asked in ethereum-optimism/specs#980. - The opposite direction, deposits from an unmigrated L1 into a migrated L2, is W12 and S11.
- Arbitrum’s
S15. Nested-replacement test (from Revinand)
Informative; part of the planned conformance suite.
Expected results:
- Replacement from inside
execute,executeBatch, an executor, or executor →handleOpsreverts. - Direct dispatch succeeds, with no
SSTORE,CALL*orSETCODEFROMby the account afterinitializereturns. - With old code that ignores R6 but calls back into the account, both
replace(oldSource)and a second op of the same bundle revert on R4’s lock.
S16. More questions (Q4–Q14)
Open questions, continued from the post above.
For EIP-8141 authors
- Q4.
MAX_VERIFY_GAS. EIP-8141’s mempool rule 6 counts “the intrinsic cost of validatingtx.signatures”. I assume this means onlysignature_verification_cost(100 perARBITRARYentry), not signature calldata. Can you confirm? - Q5. P256 entries. Should protocol-validated P256 signature entries be an authority kind? They cost 6,700 gas and need no verifier call, but a contract sees only their resolved signer, and only inside the frame transaction that carries them, so ERC-1271 would need a separate path.
- Q6. Stateless verifiers. Under EIP-8151,
ecrecover-based verifiers are no longer stateless, and EIP-8141’s trace and revalidation rules don’t track that read (the canonical paymaster’s signer check is one case). Should EIP-8141’s mempool section say so? Also raised in the EIP-8141 thread. - Q7. Large PQ keys. PUSH32 key blobs now, or wait for Public Key Aliases?
For wallet and account authors
- Q8. ERC-1271 wrapping. A minimal
AccountMessage(bytes32 hash)under the account’s domain, as Coinbase Smart Wallet does, or ERC-7739, readable but heavier and still Draft? - Q9. Revocation. Are
executor, per-accountrevoke(D)and a short deadline enough? - Q10. Registration digests. Settled with Zealynx: chain-bound by default, with the opt-in
RegistrationAnyChainform carrying a deadline (S2). - Q11. The event. Is an on-chain completion event useful to anyone besides the migrating wallet?
- Q12. Canonical addresses.
MigratorandMigrationCheckare specified by behavior, and a canonical deployment will be published at a deterministic address. Should conformance be limited to it? - Q13. What signers can see.
initDatais opaque to signers. Should the ERC fix an authority-list prefix forinitData, or add anauthoritiesHashtoMigration, so that wallets can display what they install? - Q14. A seal for chains the account doesn’t use. Migrating L1 first is a lot to ask of someone who only uses L2, mostly because of registering PQ authorities (
SETCODEFROMitself costs 12,200 gas with a cold source). Should the ERC define a seal: minimal code that authorizes nothing, or holds only a commitment to a recovery key whose proof is checked on first use? It would close the deposit path (W12) cheaply, but meets neither R4 nor P3 as written, so it needs a guard variant without P3, and the address is unusable there until recovery (forever, without a commitment). To be measured in PoC-2.