Giter Club home page Giter Club logo

aa-from-scratch's Introduction

AA from Scratch

This repository is for the basic understanding of Account Abstraction in Ethereum.

What is Account Abstraction?

In Ethereum, there are two types of accounts: Externally Owned Accounts (EOAs) and Contract Accounts. EOAs are controlled by private keys and can send transactions, while Contract Accounts are controlled by code and can execute transactions. In the current Ethereum network, only EOAs can initiate transactions, which is a huge barrier to user experience:

  • Users need private keys or wallets to interact with the network, which requires users to manage their private keys and wallets custodianship.
  • Users need to pay for gas fees, though they may not have any Ether in their wallets.
  • If users lose their private keys, they lose access to their assets forever.
  • Users want to customize their security policies, but they have to follow the built-in security policies of Ethereum (e.g., ECDSA signature).

Account Abstraction is a concept that allows Contract Accounts to initiate transactions, which can solve the above problems. In other words, Account Abstraction allows users to interact with the network without knowing their private keys, what the hell is transactions, and how to pay for gas fees. This is a huge step towards user experience and privacy.

One of the mature implementations of Account Abstraction is EIP-4337 (https://eips.ethereum.org/EIPS/eip-4337) which does not require protocol changes. There are also built-in implementations in some blockchains, such as zkSync and NEAR Protocol.

aa-from-scratch's People

Contributors

piatoss3612 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.