Skip to content

feat: introduce ScopedExecutionHook - #60

Open
leekt wants to merge 19 commits into
v0.4.0from
feat/permission-hook-module-type
Open

feat: introduce ScopedExecutionHook#60
leekt wants to merge 19 commits into
v0.4.0from
feat/permission-hook-module-type

Conversation

@leekt

@leekt leekt commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@leekt
leekt force-pushed the feat/permission-hook-module-type branch 2 times, most recently from e4ecad4 to 1b86de0 Compare August 5, 2026 00:51
@leekt leekt changed the title feat: add permission hook module type feat: introduce ScopedExecutionHook Aug 5, 2026
@leekt
leekt force-pushed the feat/permission-hook-module-type branch 4 times, most recently from 5a6c453 to 8b21813 Compare August 5, 2026 10:14
@leekt
leekt changed the base branch from fix/audit-batch-enable-install-factory-nonce-validity-format to v0.4.0 August 5, 2026 10:18
leekt added 5 commits August 5, 2026 19:20
Remove generic type-4 hooks, hook registration storage, sentinel-based installation state, and embedded hook configuration from validations, executors, and fallback selectors.
Remove stateless ERC-1271 module installation and the validation-mode signature byte. Structured signatures now begin with their validation type while ERC-4337 enable mode remains supported.
Add type-11 hooks scoped to validations, executors, and selectors, with explicit scoped identifiers and lifecycle checks. Route hooked validation execution through executeUserOp and prevent direct validation reentry.
Replace generic-hook coverage with validation-, executor-, and selector-scoped lifecycle and execution tests. Update formal harnesses, invariants, mocks, and gas snapshots for the scoped model.
Replace stateless enable-mode coverage with the validation-type-first structured signature format and Kernel7702 raw-signature cases. Remove obsolete stateless validators and formal tests, and differentially fuzz Lib4337 validity handling against EntryPoint v0.9.
@leekt
leekt force-pushed the feat/permission-hook-module-type branch from 8b21813 to 8b08d55 Compare August 5, 2026 10:21
leekt added 2 commits August 9, 2026 07:48
Restore the v0.4.0 entry-point gate on fallback selectors that have no
scoped execution hook installed. Installing a type-11 selector-scoped
execution hook makes a selector publicly callable; without one only the
entry point may route to it.

Update tests to install scoped hooks where public access is asserted,
add a regression test and halmos proofs for the gate, and document the
access control in the README.
@leekt
leekt force-pushed the feat/permission-hook-module-type branch from 1184bb8 to bda40bb Compare September 2, 2026 08:36
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