Smart contract Architecutre
Architecture
The smart contract comprises three main logic components:
This is the primary wallet logic.
Supports the ERC4337 interface.
Manages modules and hooks.
Modules provide extended functionality.
A module is a whitelisted contract capable of executing transactions on behalf of the smart contract wallet.
Modules enhance the functionality of the contracts by adding extra access logic for transaction execution.
A hook is essentially a function or a set of functions that are called at specific points within a contract's execution flow.
Hooks can be set up to perform additional checks on transactions before they're executed.
The Validator is responsible for verifying the authenticity of signatures in Elytro wallet. The default Validator currently supports both native ECDSA verification and passkey verification through WebAuthn.
Last updated