erc6900 / resources

18 stars 4 forks source link

[Improvement] Remove permitted call hooks and injected hooks #22

Closed jaypaik closed 5 months ago

jaypaik commented 6 months ago

Permitted call hooks are execution hooks that run in an executeFromPlugin or executeFromPluginExternal context that are tied to an execution function and the calling plugin. It was originally introduced to enable running of different hooks based on the calling plugin when plugins perform actions via the account. Later, its use expanded to injected hooks provided during plugin installation, which protect the account at the same time the new plugin is installed, as opposed to installing the plugin first and then applying protective hooks to secure the account later (which introduces a window for potential exploits if the installed plugin is malicious).

Permitted call hooks add an additional component to the spec, and its use with injected hooks increases complexity in the plugin install/uninstall process. This proposal seeks to remove permitted call hooks.

jaypaik commented 6 months ago

PR: https://github.com/erc6900/reference-implementation/pull/20