* Include LICENCE in the Jekyll build * Replace old licence link with new and improved licence link * Add note to EIP-1 mandating the new link * Maybe this fixes it? * Rename LICENCE so that jekyll picks it up * Add original LICENCE file back * Delete the markdown file * Add Jekyll header Hopefully the tooling still detects it as CC0 * Remove Jekyll header * Maybe this will trick Jekyll and satisfy github? * Remove config changes * Enable incremental build * Will it work if I rename it? * I'll just paste the content of the licence into the file... * Perhaps this will work * Replace the licence file * Fix false positive Co-authored-by: Micah Zoltu <micah@zoltu.net> * Resolve feedback * Perhaps this might work * It didn't work This reverts commit 55116e15168fb20ae57dea97388bb260c0941465. * Will licencee still detect this correctly? * Jekyll Preamble in licence file * Include it? * Licence -> License, get rid of CC0.md * Force wording of copyright waiver * Formatting consistent with the rest of the list * Spelling * Escape * Task failed successfully * Fix two more links * Will this render it? * Perhaps this will work too * .md essential * Fix the issues Micah noted Co-authored-by: Micah Zoltu <micah@zoltu.net>
1.8 KiB
eip | title | author | discussions-to | status | type | category | created |
---|---|---|---|---|---|---|---|
2970 | IS_STATIC opcode | Vitalik Buterin (@vbuterin) | https://ethereum-magicians.org/t/is-static-opcode-useful-for-aa/4609 | Stagnant | Standards Track | Core | 2020-09-13 |
Simple Summary
Add a IS_STATIC (0x4A)
opcode that pushes 1
if the current context is static (ie. the execution is in a STATICCALL
or a descendant thereof, so state-changing operations are not possible), and 0
if it is not.
Abstract
Motivation
The main intended use case is to allow account abstraction (EIP 2938) to be extended so that accounts can allow static calls from the outside (which are harmless to AA's security model) but not state-changing calls.
Specification
Add a IS_STATIC (0x4A)
opcode that pushes 1
if the current context is static (ie. the execution is in a STATICCALL
or a descendant thereof, so state-changing operations are not possible), and 0
if it is not.
Rationale
Determining staticness is already possibly using the following hacky technique: make a CALL
with limited gas, and inside that CALL
issue one LOG
and exit. If the context is static, the CALL
would fail and leave a 0 on the stack; if the context is non-static, the CALL
would succeed. However, this technique is fragile against changes to gas costs, and is needlessly wasteful. Hence, the status quo neither allows a reasonably effective way of determining whether or not the context is static, nor provides any kind of invariant that executions that do not fail outright will execute the same way in a static and non-static context. This EIP provides a cleaner way of determining staticness.
Backwards Compatibility
TBD
Security Considerations
TBD
Copyright
Copyright and related rights waived via CC0.