The Seed Phrase Was Never the Right Answer: What Account Abstraction Changes for DEX Users

One of the oddest features of today’s technology is the seed phrase. It requests that users note down a random combination of words, keep them somewhere safe, but not digital, that they don’t photograph, don’t enter on any website, and know that if they lose or disclose this sequence, they lose their access to all of their assets on any blockchain forever.

This is because the first design of the blockchain accounts is an externally owned account, or EOA, which is not recoverable. The private key is the account. No one to call, no verification process to invoke, no order of the court to restore access. The key is the only credential: the seed phrase is a human-readable backup of the key.

This design was designed for the users of the early blockchain system: cryptographers and developers who know what they’re doing. It’s been a bugger for everybody else. The seed phrase isn’t a poor execution of a great idea. The right implementation of a concept is the unreasonable demand that it puts on ordinary users when it is presented as the only option: unreasonable, because it is absolute cryptographic self-custody that is required.

Other options are possible thanks to the architectural change called account abstraction. It is important to consider what it is that will change in the relationship between users and a decentralized exchange platform, as that is quite a bit more than UX improvements.

What an Externally Owned Account Cannot Do

The drawbacks of the traditional EOA model are not accidental; they are intentional because the design constraint was that each operation needs to be signed by one private key and there is no programmability on how the operation is signed.

Gas is used for each transaction made on the network, which is the currency of the network. To initiate their first swap on a decentralized trading platform, new users must first buy ETH, SOL, BNB, or the appropriate gas token, depending on the platform, which can be done through a centralized exchange, peer-to-peer transactions, or from another user’s on-chain wallet that already holds the token. One of the consistent challenges to new user onboarding is this circular issue.

Each operation is considered a new transaction. The approval and swapping of a token are two distinct blocks in the blockchain which each need a signature and gas. It’s a multi-step procedure that can be quite confusing and costly with high gas fees for a new user who has never interacted with the DeFi space before.

There will be no recovery if a key is lost. The EOA model does not provide any way to recover an account if it is lost and its private key is corrupted or lost. There is no back-up system, no time-locked recovery path, and no trusted guardian to assist in restoring access. The account is the key, and if you don’t have the key, then you don’t have the account.

It’s not an implementation bug that can be solved with improved wallet software. These are attributes of the EOA design structure.

What Account Abstraction Makes Possible

Account abstraction, which is enabled on Ethereum with ERC-4337 and will be extended to existing EOAs with EIP-7702 after the Pectra upgrade in May 2025, replaces the fixed EOA model with smart contract accounts that can be programmed. The account is no longer a “thing” that can only be accessed via a single key. It’s a contract having customisable rules for authorization, gas and execution.

This has a significant impact on how the user of a decentralized exchange platform can practically use this change.

Gas sponsorship is possible. A smart contract account can be programmed to accept payment in gas from a third party called a paymaster, which pays the gas fee on behalf of the user, in return for receiving payment in the token that the user owns or as part of a platform’s user acquisition scheme. The user who has only USDC can perform the first exchange on a dex without ever getting a hold of ETH. The gas fee is hidden from the user altogether either by paying for it with their own tokens or sponsored by the platform.

Multiple steps are combined into a batched transaction. An ERC-4337 account is capable of performing an approval and a swap in a single transaction, that is, signed once by the user. Two transactions, two confirmation dialogs and two gas payments are replaced with one interaction. Batching reduces the number of chain interactions a user needs to confirm in a cross chain DEX, where multiple approvals and authorisations are required on the origin chain before the transaction is relayed to the destination chain for execution.

Limited delegated authorization is possible via session keys. A user may issue a session key (limited signing credential that allows a given type of transaction within specified parameters for a specified period of time) to a decentralized trading platform without relinquishing the control of his or her account. An automated DeFi strategy can run within the specified limits without the requirement for the users to sign every transaction. On the expiration of the session, the authorization is terminated.

The social recovery takes the place of the seed phrase without fragility. The smart contract account will allow for the designation of trusted guardians, which can either be a wallet, trusted contacts or recovery services, all of which will enable the account to be recovered in the event that the key for its primary signing key is lost. Having lost access to the primary device does not lead to loss of the account. Unlike the EOA model, which requires the all-or-nothing seed phrase, recovery is possible via a defined process set up in advance by the user.

What This Changes About the DEX Experience Specifically

The account abstraction stack will alter the UX of a decentralized crypto exchange on several fronts, which have traditionally distinguished DeFi from traditional consumer apps.

Onboarding without prior acquisition. Native gas tokens aren’t required for the first trade when a decentralized trading platform or a paymaster pays for gas for new users. For any trader with stablecoins and looking to complete their first swap, the problem of acquiring gas tokens is no longer in the way.

No manual coordination for cross-chain experience. If a user wants to swap tokens from one chain to another on a cross chain decentralized exchange, the batching capability of a smart account can be used to show all the cross chain transactions (origin chain approval, bridge execution, destination chain swap) as a single user transaction. There is a single confirmation dialog for the bridge between blockchains, gas fees on several networks, and the sequence of several transactions.

No surrender of strategy means no money is lost. The session keys enable the automated DeFi strategies to run on the user’s behalf, rebalancing positions, harvesting yields, managing their collateral, and more, without the user having to sign each single transaction or give the strategy permanent access to their account. The authorization is binding, limited, and limited duration.

Success with recovery matching user expectations. The majority of users have encountered account recovery via trusted contacts, authenticator apps or institutional means. This existing mental model is comparable to social recovery with guardian wallets, which is not the case with seed phrase custody.

The Cross-Chain Dimension of Account Abstraction

In the case of a cross-chain decentralized exchange, account abstraction becomes especially significant as the challenge of coordinating multiple chains for cross-chain trading is the same one that smart account architecture aims to resolve.

The ERC-4337 model of a paymaster resolves this gas token issue at chain level. A cross chain cryptocurrency exchange allows one to trade across different chains without the need to hold a separate balance of native tokens on each chain, as long as a user has stablecoins on one of them. Each chain using the paymaster infrastructure will be able to use a stablecoin as the cost basis as it processes the gas settlement in its native token.

The batching feature simplifies the process of multi-step cross-chain transactions that were previously complex, down to just one confirmation. The route consists of a set of multiple interactions with smart contracts that can be batched into a single user operation by the account abstraction layer, which includes a series of token swaps between blockchains using a bridge, followed by a swap on the destination chain.

The session key model can support automated cross-chain strategies that would not be able to work without constant user interaction. Unlike individual monitoring of each chain, a strategy that monitors conditions over multiple chains and rebalances when thresholds are met can be authorized once with specific parameters over a given period of time without the need for manual actions whenever conditions change.

What This Means for Where DEX Adoption Goes Next

The seed phrase barrier isn’t the only obstacle that’s been holding back the widespread adoption of DEXs, but it’s certainly no minor one. The need to manage cryptographic keys on a model that ordinary consumers can’t reference has created a filtering effect, that is, those who are comfortable with that model of cryptographic management are a much smaller group than those who might benefit from what decentralized exchange platforms offer.

Self-custody and the trust properties that make a decentralized trading platform worthwhile are not thwarted by account abstraction. It makes that model available to those who are not as familiar with account management and security as with traditional applications but have a traditional account management and security perspective.

The infrastructure that’s being developed with ERC-4337, EIP-7702, and the account abstraction ecosystem as a whole isn’t making DeFi less trustworthy. In particular, it is making it more accessible while maintaining its qualities of being decentralized which is a far harder engineering task than it was either being decentralized or being easy to use.


The Seed Phrase Was Never the Right Answer: What Account Abstraction Changes for DEX Users was originally published in The Capital on Medium, where people are continuing the conversation by highlighting and responding to this story.



from The Capital - Medium https://ift.tt/xV6J7E8

Post a Comment

0 Comments