Vid201
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- slideOptions: theme: white --- ### Account abstraction on Ethereum `------` Vid Kersic, Blockchain Lab:UM, Ethereum Protocol Fellow Ethereum Slovenia Meetup Feb 1, 2024 --- ### Goals `------` 1. What is the current status quo of accounts? 1. What's wrong with the current status? 1. What is account abstraction and why do we need it? 1. Future of account abstraction <!-- .element: style="text-align:left" --> --- ### Vitalik's quote `------` *"Account abstraction is something that has for a long time been a dream of the Ethereum developers"* Discussions about **AA** started around **2016/2017** <!-- .element: style="font-size:24px" --> --- ### Status quo of Eth transactions `------` 1. Setup **Web3/crypto wallet** (mobile, browser extension, hardware ...) 2. Create a **seed phrase** (those 12/18/24 words) 3. Generate some **accounts** (seed phrase -> private key -> public key -> address) 4. Send transactions from **address** signed by a **private key** Most adopted Ethereum accounts: **Externally Owned Accounts (EOA)** --- ### What's wrong with EOA? `------` You **mustn't** lose your seed phrase Need some **ETH** to use it Limited to **single cryptographic algorithm** (secp256k1, not quantum secure) **Sequential transactions** - incremental nonce **One account** always used by **one person** <!-- .element: style="text-align:left" --> --- ### But we already have another way... `------` **Contract Accounts (CA)** are already here and in prod! **Account** is a **smart contract** Controlled/governed by **code** You can implement **anything you want**, infinite possibilities - multi-sig (2/3, 3/5, ...), social recovery <!-- .element: style="text-align:left" --> --- ### Examples of Contract Accounts `------` **(Gnosis) Safe** (multi-sig wallet - 2/3, 3/5 ..., from 2019) **Argent** (account abstraction wallet, social recovery, from 2018) <!-- .element: style="text-align:left" --> --- ### What's wrong with Contract Accounts? `------` <img src="https://hackmd.io/_uploads/Bk-v7mV5a.png" alt="meme_ca" width="325"/> https://ambergroup.medium.com/account-abstraction-will-evolve-wallets-69446574e544 <!-- .element: style="font-size:18px" --> --- ### What's wrong with Contract Accounts? `------` **No standardization**, wallets from different vendors not compatible Multi-sig wallets - **still need EOA** **Private/centralized relayers** (not decentralized and fully censorship-resistant) Use of contract account limit to **single use case** <!-- .element: style="text-align:left" --> --- ### EOA vs. Contract Account `------` **EOA** <!-- .element: style="text-align:left;font-size:40px;" --> - Free to create - Controlled by a single private key (derived from seed phrase) - Can initiate transactions <!-- .element: style="font-size:32px" --> **Contract Account** <!-- .element: style="text-align:left;font-size:40px;" --> - Must deploy smart contract - Controlled by logic/code - Cannot initiate transactions, must be done by EOA <!-- .element: style="font-size:38px" --> --- ### Account abstraction `------` *How to abstract all components of accounts while preserving decentralization and censorship restitance of Ethereum?* --- ### Yoav's quote `------` *"Account abstraction is easy… unless you care about censorship resistance"* https://hackmd.io/@timbeiko/censorshipwtf <!-- .element: style="font-size:24px" --> --- ### Account abstraction `------` What are the main components we want to abstract? - how we pay for transactions - **gas abstraction** - how we verify if transaction is correct - **signature/validation abstraction** - which transaction is next - **nonce abstraction** <!-- .element: style="text-align:left" --> --- ### History of AA on Ethereum `------` **EIP-2938**: smart contracts can start transaction execution (new EVM opcodes) **EIP-3074**: delegate control of EOA to a smart contract (new EVM opcodes) **ERC-4337**: account abstraction using alt mempool --- ### ERC-4337 `------` ![Screenshot from 2024-01-27 17-33-38](https://hackmd.io/_uploads/HkU_g2z5T.png) https://eips.ethereum.org/EIPS/eip-4337 <!-- .element: style="font-size:18px" --> --- ### ERC-4337 `------` **The latest proposal** for AA (still Contract Accounts, but more generalized) **ERC**, not EIP!!! (no changes to the core protocol) Covers **all wanted feature**s: <!-- .element: style="text-align:left" --> - **gas abstraction** - pay with any token :heavy_check_mark: - **nonce abstraction** - parallel transactions :heavy_check_mark: - **signautre/validation abstraction** - post-quantum cryptography, passkeys, multi-sig :heavy_check_mark: <!-- .element: style="text-align:left" --> --- ### Architecture `------` Transactions are now **user operations** Centralized relayers replaced with **bundlers** Gas sponsoring enabled by **paymasters** Single point of entry on the Ethereum - **entry point smart contract** <!-- .element: style="text-align:left" --> --- ### User operations workflow `------` 1. Setup **AA wallet** (passkeys, seed phrase, hardware wallet) 2. (Optional) Setup **rules** (over 1k USD Ledger otherwise MetaMask, social recovery) 3. (Optional) Use **paymaster for gas** 4. Send **user operation** to **bundler** 5. Bundlers send **batch of user operations** to **public transaction mempool** --- ### Architecture `------` <img src="https://hackmd.io/_uploads/Bkr_T-79a.png" alt="4337_architecture" width="750"/> https://twitter.com/probablynoam/status/1648080136439488513?s=61&t=tfKGnxF3fow02GH1cn2qLQ <!-- .element: style="font-size:18px" --> --- ### ERC-4337 order flow `------` <img src="https://hackmd.io/_uploads/Bk2JV3McT.png" alt="4337_supply_chain" width="750"/> https://hackmd.io/@dmarz/4337-mev-supply-chain <!-- .element: style="font-size:18px" --> --- ### Use cases `------` - Session keys - Transaction batching - Contract/account whitelisting - Social recovery - Multi-sig wallets - Spending limits - Custom tokens to pay for gas - Anything you can think of :) <!-- .element: style="text-align:left" --> --- ### Projects working on the ERC-4337 `------` **Standard:** Eth Infinitism (or OpenGSN or ERC-4337 core devs) **Paymasters**: Pimlico, Stackup, Circle (USDC) **Bundlers**: Alchemy, Stackup, Pimlico, Etherspot, Silius :) **Wallets**: Candide Wallet, Ambire Wallet, MetaMask **dapps**: Gnosis Safe, CyberConnect <!-- .element: style="text-align:left" --> --- ### What's next? `------` - Bundlers are currently solo -> **public P2P mempool for user operations** - RIP-7560 -> **native account abstraction** (but first on rollups/L2s) - Changes and updates to entry point smart contract -> **gas and other optimizations** <!-- .element: style="text-align:left" --> --- ### What's next? `------` - ERC-6900 & ERC-7579 -> **modular account abstraction** (plugin system for smart accounts) - **Support for AA in existing dapps** and **onboarding million/billion of users** <!-- .element: style="text-align:left" --> --- ### Thank you for your attention `------` <img src="https://hackmd.io/_uploads/BJizx7Eqa.jpg" alt="4337_supply_chain" width="150" style="position:absolute;top:175px; right:150px;border-radius:50%;" /> **Email:** vid.kersic@yahoo.com **Twitter/X:** @vidkersic **Farcaster:** kersic.eth **Lens:** @vidkersic <!-- .element: style="text-align:left" --> Wanna contribute (bundler)? https://github.com/silius-rs

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully