Account Abstraction 101
Account Abstraction is an umbrella term that refers to adding more flexibility to the validation phase of Ethereum transactions. Currently, externally owned accounts (EOAs) are “active” in that they can initiate transactions and pay gas for execution. Contract accounts are “passive” — they can be triggered by an EOA, which pays the gas for execution. However, the upside of contract accounts is that they are programmable and can execute arbitrary logic stored in the code of the account. Therefore, Account Abstraction refers to the transition of contract accounts from being passive to becoming active, allowing a smart contract to become the user account and initiate transactions without reliance on an EOA for triggering the transaction or paying the gas for execution.
Until recently, smart accounts relied on an EOA relay to initiate transactions – for example, the Gelato Network relay used by Safe’s smart account. ERC-4337 removes the reliance on EOA relays by introducing the concept of userOperations (smart account transactions), an EntryPoint contract for userOperations and Bundlers (entities that take userOperations and submit them to the entrypoint contract). ERC-4337 also introduces the concept of a Paymaster, an entity that funds gas for EVM execution and has the flexibility to define bespoke pay-back mechanisms for the user. For example, the Paymaster could allow the user to pay gas in any ERC-20 or create unique gas subsidy policies.
For more on ERC-4337 please refer to the official proposal (opens in a new tab) or check out our partners:
- Pimlico (opens in a new tab)
- Biconomy (opens in a new tab)
- ZeroDev (opens in a new tab)
- Safe (opens in a new tab)
- Stackup (opens in a new tab)
- Candide (opens in a new tab)
The layers of Account Abstraction
There are three layers to Account Abstraction:
- Infrastructure for smart account execution (ERC-4337) (opens in a new tab)
- Smart accounts and modules (ERC-7579) (opens in a new tab)
- User interface for controlling a smart account (wallets)
Motivation for Account Abstraction
We can’t say it better than Vitalik himself – The Three Transitions (opens in a new tab)
Account Abstraction terminology
- Contract account – A smart contract used for the user’s account.
- Smart account – A contract account that is modular (existing implementations include Safe’s core account and ZeroDev’s Kernel).
- UserOperation – A structure that describes a transaction to be sent on behalf of a user. To avoid confusion, it is not named “transaction”.
- EntryPoint – A singleton contract to execute bundles of UserOperations. Bundlers / Clients whitelist the supported entryPoint.
- Bundler – A node (block builder) that can handle UserOperations, create a valid transaction calling EntryPoint.handleOps(), and add it to the block while it is still valid.
- Paymaster – A contract that can define specific gas policies for specific user operations.
Account Abstraction vs. MPC
MPC ≠ Account Abstraction. See this article (opens in a new tab) by Lit Protocol, a distributed key management platform.