EIP-7761 - HASCODE (formerly ISCONTRACT) instruction

Discussion topic for EIP-7761

Update Log

External Reviews

None as of 2024-09-02.

Outstanding Issues

None as of 2024-09-02.

2 Likes

The EIP should name the specific EIP that disables EXTCODESIZE rather than the meta EIP for EOF.

1 Like

That would be EIP-3540, and it is already listed.

The Changes to Execution Sematics section of EIP-3540 is where EXTCODE* is banned in EOF.

It seems much easier to just add back EXTCODESIZE. I haven’t yet found the rationale for removing the extcode opcodes.

1 Like

I distilled some takeaways from a Eth R&D discord conversation here: Update EIP-7761: Fill Endgame AA's Rationale section by pdobacz · Pull Request #8904 · ethereum/EIPs · GitHub (Endgame AA concerns), hopefully this is accurate. If there are more arguments to be made, let’s continue the discussion here.

1 Like

Overall the arguments are not very convincing to me either.

@vbuterin’s initial proposal was to ban code introspection of EOF accounts only, the rationale was very clear, and there was at least an idea of how to migrate legacy accounts. Current EOF seems to have gone way beyond this initial proposal to ban code introspecion by EOF accounts of all accounts, with unclear rationale, and to my knowledge no idea of how to eventually migrate.

1 Like