Curious how Coinbase’s new smart wallet works? I was too.
Here’s an overview of how it’s possible to create and use a crypto wallet through Touch ID without ever needing a chrome extension.
1. The secret sauce
Here's a demo video of a smart wallet in action: .
There are a couple things happening here. First a wallet is created through Touch ID, then a transaction is signed via Touch ID, and finally the transaction is fully paid for by Base.
All of this is made possible by Account Abstraction (AA) aka ERC4337. 2. Passkeys
Before we talk about AA, it’s important to understand what passkeys are. Passkeys are a form of authentication that rely on public/private key cryptography rather than traditional passwords. With passkeys, private keys are stored privately on user devices while public keys can be shared with apps. Touch ID / Face ID can be used to prevent unauthorized use of a passkey.
3. Wallet Creation
The first step in the flow above is to create a wallet. This wallet is a “smart wallet” - it’s a smart contract deployed on Base rather than your typical EOA. Smart wallets are perhaps the greatest unlock of AA.
This particular smart wallet contains code that allows for multiple owners, including ones that are passkey-based. Within the AA flow, a smart wallet is created if it doesn’t already exist.
4. Touch ID Signing
Once the wallet exists, the mint transaction can be signed and executed. To accomplish this, the website will prompt the user to sign a user op (think of it as an AA tx). The user first needs to verify they control the passkey (through Touch ID, Face ID, etc) before they can sign the user op. After that, the user op and signature are verified by the smart wallet code and then executed.
5. Free Transactions
You’ll notice that the price paid by the user in the demo is 0. This is because AA adds a paymaster service that can be used to sponsor transactions. In this particular case, Base has a paymaster setup to pay for smart wallet mints. Other applications can use paymaster sponsorships as a way to easily onboard users with needing them to have ETH in their wallets.
6. Conclusion
All the magic here is made possible by Account Abstraction. While AA has been out for a while, Coinbase’s smart wallet is one of the first to leverage account ownership via passkeys. In the future, it’ll also be possible to control wallets through traditional Web2 signin flows like Google SSO.
A beginner's guide to Runes - the new protocol that will bring fungible tokens to Bitcoin at the halving 🧵:
To start, what are fungible tokens?
These are tokens that are not unique in nature, can be divided, and are interchangeable. They exist on other blockchains as ERC20s on EVM chains or SPL on Solana.
Examples include memecoins and governance tokens.
Historically, fungible tokens have not been possible on Bitcoin since it doesn't support smart contracts.
However, with the advent of ordinals, we saw the rise of BRC-20s, which inscribed token data in individual SATs (satoshis) and were processed by off-chain indexers.
EIP-3074 was just approved to go live in the next Ethereum hard fork.
This EIP will forever change how users interact on EVM chains, making wallet UX simpler, cheaper, and more powerful.
Here's a high level overview of EIP-3074 and how it'll change the game 🧵:
The TLDR of 3074 is that it gives EOAs (normal wallets) smart contract capabilities (like account abstraction).
This includes the ability to do single tx approvals, batch txs, wallet asset recovery, sponsored txs, and more.
Let's first talk about the issues with modern wallets.
@lightclients did a great presentation on 3074 which I will reference in this thread.
Here's a list of UX problems - they can be solved through smart contract wallets, but that would force users to migrate wallets which is bad UX and costs money.
We are now 2 days away from Ethereum's Dencun upgrade, the largest fork since the Merge.
Here's a summary of the biggest changes in Dencun and how they'll affect you 🧵:
First off, why the name "Dencun"?
Ethereum has 2 types of clients, an execution client and a consensus client. Each type has its own set of upgrade names.
On the execution side, we have the Cancun upgrade, while the client side has the Deneb upgrade.
Combined, we get Dencun.
1) EIP-4844, proto-danksharding
Sounds scary, but it's a huge step in the right direction for Ethereum scaling. This change has been in the works for 2 years, and introduces "blobs" as ways for rollups to post transaction data.
It also sets the stage for future scaling changes.
The beginner's guide to understanding Bitcoin Ordinals - what they are, how they differ from other NFTs, and why they're here to stay 🧵:
In order to understand ordinals, you first need to understand how Bitcoin works.
Bitcoin uses "unspent transaction outputs" or UTXOs to manage balances. You can think of UTXOs as batches of currency that you own.
Bitcoin transactions result in UTXOs being consumed and created.
If you own 0.5 BTC and send 0.2 to someone, you'll receive a UTXO worth 0.3 BTC and the recipient will receive a UTXO of 0.2 BTC. The txn consumes the original 0.5 BTC UTXO, which will no longer exist.
Each UTXO is made up of satoshis (sat), which is the base unit for Bitcoin.
A lot of people are wondering how @ethena_labs is able to generate a 27% yield on their "internet bond".
Is it black magic? Are they max levered? What's the catch?
To answer those questions, here's a simple explanation of where the Ethena yield comes from 🧵:
Some quick context on Ethena:
Ethena built USDe, a trust-minimized scalable stablecoin that's pegged to the US dollar. They use a combination of staked ETH and perps to maintain the peg.
Ethena also built staked USDe (sUSDe) which generates yield, similar to a traditional bond.
To understand where the 27% yield comes from, we first need to understand how USDe works.
Rather than store a bunch of dollars at a bank (like USDC) to back each token 1:1, USDe uses a combination of Ethereum collateral and perpetual contracts to maintain its peg.
Excited to launch the "Divisible NFT" standard (DN404) which aims to be a hybrid ERC20/721 token.
ERC404 took the crypto world by storm over the past few days, but it doesn't follow existing standards, is inefficient, and breaks at certain edge cases.
Here's how DN404 works 🧵:
For those that just want the code, you can find it here (with example contracts): .
Big shoutout once again to @optimizoor @0xQuit @0xjustadev @AmadiMichaels @PopPunkLLC and other devs for grinding this out with me over the weekend.github.com/Vectorized/dn4…
Reminder: this is not a project.
We released open source code that other projects can use to build hybrid tokens. We are not selling tokens or a project to anyone, so stay wary of scams.