Cointime

Download App
iOS & Android

Demystifying Wallets: A Revolutionary dApp User Flow

Validated Project

By Shu Dong and Zihao Chen From Hexlink

Note: This article assumes that you are already familiar with crypto wallets and related concepts

Account Abstraction is a concept which is rapidly gaining popularity in the world of crypto, with numerous wallets nowadays claiming to be AA-compatible and heralding a new era for the wallet ecosystem. In this article, we propose a new dApp user flow that Hexlink is experimenting with, which reveals the potential of AA from our perspective.

What is a wallet

Before we start to discuss Account Abstraction, let us first define what a Wallet is.

Conceptually, a wallet consists of two layers: the identifier (public address) and the authenticator (private key). The identifier layer handles asset management, chain configuration, and name service, while the authenticator layer handles signing and authentication. It is worth noting that authentication can provide a richer context than signing. For example, a wallet can support “Sign in with Ethereum” or “Wallet Connect” for login, where signing is just the last step of the whole process.

A classic wallet model

Among all these components, which is the essence of a wallet?

Interestingly, Web2 users and Web3 developers have different opinions on what the essence of a wallet should be. According to our survey, Web2 users believe that a wallet is more about assets and account management, while Web3 developers believe that the signing and authentication process is the soul of a wallet since it holds the most secret part of it: the private key. It’s difficult to say which one is correct since, in the EOA world, public and private keys are the same thing and derive from each other. However, things change a little bit when it comes to smart contract wallets.

Smart contract wallet as the 1st class citizen

Smart contract wallets have been around for a while, but they have not become the mainstream due to their inability to pay gas for transactions they have triggered. This means they always rely on an EOA with an ETH balance to trigger transactions and pay gas for them. Account Abstraction (EIP-4337) solves this problem by introducing the entry point contract and the bundler service, promoting smart contract wallets as first-class citizens in the blockchain world. There are other good features introduced by AA, such as paymaster and a unified user operation verification interface, but we believe gas payment is the most important one since it fixes the fundamental flaw of the system.

With AA, wallets are being turned into AA compatible smart contract wallets, but many are still following the architecture of the EOA wallet we showed above, which means that they are missing out on the potential brought by account abstraction.

Break down the wallet: the new dApp user flow

With smart contract wallets, there is no longer a binding between the wallet address and the private key. While a smart contract wallet may still have an EOA as its owner, the owner’s key can now be rotated. In this case, does it still make sense to pack these two layers in one wallet app?

Hexlink aims to break down the typical wallet app by splitting it into several different components/layers, making it more flexible and composable. We are proposing a new dApp user flow shown in the diagram below. With this revolutionary user flow, Hexlink is set to provide a seamless Web2 user experience for Web3 apps.

The new dApp user flow introduced by Hexlink

Let’s go through each component:

Name Service Layer

Users should be able to log in to dApps with human-readable names, such as ENS names, instead of raw addresses. Hexlink supports name mappings from email addresses and social accounts handle to smart contract wallet addresses, making it possible for users to log in to dApps directly with such identities.

Instead of inventing a new ID system, email is considered a natural choice for a decentralized identifier since it’s supported by a decentralized communication protocol. Users have been using their emails as their online IDs for Web1 and Web2 (most social media accounts, including Twitter/Facebook, are registered with emails). We believe this will continue to be the case for Web3.

Since a majority of Web2 users do not have wallet addresses, to further reduce the onboarding cost for new users, Hexlink seamlessly transforms email/Google/Twitter users into Web3 users by translating their familiar login identities into corresponding wallet addresses, allowing them to receive cryptocurrency without any need for downloads or sign-ups! The wallet address is unique to the email or social account owner and is verified by the Hexlink Identity Oracle. We are proposing EIP-4972 to standardize this workflow.

Application Layer

Once users have successfully logged in, they will be directed to the application layer. By using the name service, the application can access the user’s wallet address to display information about their assets. Despite most people being unaware, a wallet can be classified as a dApp as it contains a built-in asset/chain management feature. Nevertheless, Hexlink considers this feature as an independent layer and handles it similarly to any other decentralized applications.

In case users want to sign a transaction, instead of linking the wallet to dApps, Hexlink provides support for push mode. In push mode, dApps can simply send the transaction request to an authenticator app for signing. This approach makes the application layer much more straightforward, as it can now focus primarily on its own business logic, without having to concern itself with private key storage and signing.

Authenticator Layer

The authenticator layer could be an authenticator app, similar to Duo, Authy, or Google Authenticator. It holds the user’s private key and is solely responsible for signing transactions. When a request is received from the user, a notification with the details of the request will be popped up and displayed for the user to review and approve. Once the user confirms the transaction, it will be signed and either returned to the dApp or directly submitted on-chain.

The communication between dApps and the authenticator app is standardized by EIP-6662, which by introducing an unified account view for all dApps through the new IAccountMetadata interface. Once the user publishes their authenticator information on-chain, all dApps can access the required information proactively, eliminating the need for the user to share their information with each dApp individually.

Summary

In this article, we explore the potential of Account Abstraction (AA) and its role in shaping the future of blockchain wallets. We provide a comprehensive overview of the various components found in a typical EOA wallet and highlight how smart contract wallets can assist in dividing them into multiple applications.

We then present a new dApp user flow by breaking down the wallet app into three distinct layers: the Name Service Layer, Application Layer, and Authenticator Layer. With this revolutionary user flow, Hexlink offers a seamless Web2 experience for Web3 applications.

Comments

All Comments

Recommended for you

  • Core Foundation launches $5 million innovation fund

    CoreDAO announced in a post on X platform that the Core Foundation has launched a $5 million innovation fund. The fund is currently mainly targeting the Indian market and has established strategic partnerships with the Indian Institute of Technology Bombay and some top venture capital companies to support the development of innovative blockchain projects in the country. At present, the fund has opened project funding applications.

  • Drift Foundation: The governance mechanism is gradually being improved, and DRIFT is one of the components

    The Drift Foundation stated on the X platform that the DRIFT token is a component of governance and a key element in empowering the community to shape the future. The governance mechanism is gradually improving, and more information will be announced soon.

  • U.S. Department of Justice: Two Chinese nationals arrested for allegedly defrauding at least $73 million through cryptocurrency investments

    According to the official website of the United States Department of Justice, a complaint from the central region of California was made public yesterday, accusing two Chinese nationals of playing a major role in a money laundering scheme involving cryptocurrency investment fraud.Daren Li, 41 years old, is a dual citizen of China and St. Kitts and Nevis, and is also a resident of China, Cambodia, and the United Arab Emirates. He was arrested on April 12th at Hartsfield-Jackson Atlanta International Airport and later transferred to the central region of California. Yicheng Zhang, 38 years old, is a Chinese national currently residing in Temple City, California. He was arrested yesterday in Los Angeles. Today, they are accused of leading a money laundering scheme related to an international cryptocurrency investment scam, involving at least $73 million. These arrests were made possible thanks to the assistance of our international and US partners, demonstrating the Department of Justice's commitment to continuing to combat the entire cybercrime ecosystem and prevent fraud in various financial markets.

  • Hong Kong expands digital yuan pilot to allow e-CNY wallets for cross-border payments

    The Hong Kong Monetary Authority and the People's Bank of China have expanded their cross-border digital yuan pilot to allow Hong Kong residents to use e-CNY wallets for cross-boundary payments. The digital yuan is China's central bank digital currency, which has been piloted for several years and is among the most advanced of its kind globally. Users can set up wallets using just a phone number and top them up in real-time through 17 Hong Kong retail banks. The HKMA plans to work with the Digital Currency Institute to explore enhancing interoperability in payments and corporate use cases, such as cross-border trade settlement.

  • WSJ: GPU cloud computing platform CoreWeave raises $7.5 billion to promote artificial intelligence computing

    CoreWeave, an artificial intelligence cloud computing startup supported by Nvidia, has raised $7.5 billion from investors including BNY Mellon, KKR, and BlackRock. This financing is one of the largest private debt financings ever. Just two weeks ago, CoreWeave completed a $1.1 billion equity financing round with a valuation of $19 billion. As of the end of last year, the company had 14 data centers and plans to double that number to 28 by the end of this year.

  • In the past 24 hours, the entire network has liquidated $139 million, and long orders have liquidated $83.5374 million

    According to Coinglass data, there were liquidations totaling $139 million in the past 24 hours, with a total of 56,471 people being liquidated.Of these, long positions were liquidated for $83.5374 million, short positions were liquidated for $55.4391 million, BTC was liquidated for $39.2379 million, ETH was liquidated for $26.5550 million, and SOL was liquidated for $10.2312 million.

  • Türkiye proposes to align crypto legislation with international standards

    Turkey's ruling party submitted a draft encryption bill to parliament on May 16. The bill focuses on licensing and registration of encryption service providers and aligning with international standards.The draft law aims to update existing legislation to comprehensively regulate the emerging cryptocurrency market. The key areas of focus for the bill include consumer protection, platform transparency, and compliance with financial regulations. The proposed legislation aims to regulate cryptocurrency trading platforms and other service providers in the industry, requiring them to obtain a license from the Capital Markets Board of Turkey.

  • Binance assisted Taiwan’s law enforcement agencies in cracking a major virtual asset case involving nearly NT$200 million

    On May 17th, Binance announced that the Financial Crime Compliance department (FCC) of Binance, in collaboration with the Taiwan Department of Justice Investigation Bureau, has successfully cracked a major criminal case involving money laundering of virtual assets, with an involved amount of nearly 200 million New Taiwan dollars. Throughout the entire case, Binance provided support to Taiwan's crime fighters, offering crucial intelligence and assistance, and played a key role in promoting the investigation.

  • $1.2 billion in notional value of BTC options and $930 million in ETH options are set to expire

    Greeks.live data shows that on May 17th, 18,000 BTC options with a put/call ratio of 0.63 and a maximum pain point of $63,000 (nominal value of $1.2 billion) will expire. Additionally, 320,000 ETH options with a put/call ratio of 0.28 and a maximum pain point of $3,000 (nominal value of $930 million) will also expire. Greeks.live states that this week, inspired by the meme stock craze in the US, BTC ETFs have seen significant inflows, causing BTC to surge above $65,000. However, the rest of the crypto market remains weak, with trading volume continuing to decline, and the divergence in the options data of BTC and ETH reflects this. Looking at the structure of bulk trades and market trades, the downward trend in IV for major deadlines has ended and entered a consolidation phase, with limited downside potential at present. BTC longs and shorts are relatively balanced, while the weak ETH price has led to a continuous decline in market confidence, with selling calls becoming the absolute main transaction.

  • Tether CEO: 1 billion USDT will be issued on Tron Network, but it has been authorized but not yet issued

    On May 17th, Tether CEO Paolo Ardoino announced that 1 billion USDT had been issued on the Tron Network early this morning Beijing time, but not yet released. This means that the amount will be used as inventory for the next issuance request and chain exchange.