Building Account Abstraction for Polkadot - Introducing Polkadot Smart Account based on ERC-4337

We are actively working on Polkadot Smart Account, which is the account abstraction framework for Polkadot. The ERC-4337 Account Abstraction has been a significant development in the Ethereum community. It enables the possibility of gasless transaction, social recovery and other customizable logics of accounts, which could play an important role for the mass adoption of Web3. The main goal of this project is to develop a bunch of standards, contracts and pallets like Ethereum’s eip4337 to Substrate’s ecosystem.

  • The first version is being developed using ink! and the overall framework has been completed.
  • In future development, we will focus on adjusting the existing implementation to fit the ink! ecosystem and ultimately abstract a PSP standard suitable for it.

Project Architecture Diagram

The working principle of Polkadot Smart Account is quite complex and difficult to explain in a few words. For a detailed explanation, you can refer to the specific definition of ERC-4337 :arrow_upper_right:.

  • If you are interested in related concepts, you can follow our development progress.

Although it is difficult to summarize its working principle in a few words, we can explain its working scenario through a simple example.

  • Polkadot Smart Account provides an underlying architecture to allow anyone who wants to do a smart contract wallet, paymaster, or bundler to enter the field.
  • Specifically, for example, for the wallet, you need to implement the BaseAccountTrait trait.
  • For the paymaster, you need to implement the BasePaymasterTrait interface.
  • They look simple, just as their names suggest, do the related work, and you don’t need to implement various underlying contents.

However, our current implementation is still in the early stage, and some implementation details have not been determined yet.

  • Migrating from eip4337 will also encounter many conflicts, which is why we are posting here.
  • We hope that more people can join us in building an account abstraction belonging to the ink! and Substrate communities, and we need our own PSP standard.
  • We will continue to develop and improve this project to bring a better experience to more developers and users.

We believe that Polkadot Smart Account will become the new standard for the next generation of blockchain account abstraction.

  • If you have any questions or suggestions, please don’t hesitate to reach out to us.

If you are interested in contributing to the Polkadot Smart Account project, please visit our GitHub repository :arrow_upper_right:.