Abstracting Web3
ETHCC 7 · 8 Jul 2024 · 21:37
Jan Albers, head of partnerships at Safe, traces how Safe grew from an early Ethereum multi-sig into a modular smart account platform. He describes spending policies, key rotation, batching and gas abstraction, and cites over 70 million transactions and 9.6 million deployed accounts. His examples include hybrid custody, where a Swiss bank can act as a recovery option protected by a delay module, and the cross-chain problem of smart account addresses, where he points to Vitalik's minimal keystore rollups idea. In Q&A he covers passkeys and how Safe earns revenue, such as deployments on 200-plus networks and swaps.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
All right. Welcome everyone. I'm Jan. I head partnerships at Safe. And today I will talk a bit first about what SAFE is, how SAFE came to be, and also three examples how we recently collaborated with Teams that kind of like showcase the depth of what really SAFE and the SAFE ecosystem is. That's good. Let's bring that to 100%, but that looks like 60-70% already. Created back then was really the very first or one of the very first multi-sigs on Ethereum.
And as you can already kind of see, this is just the tip of the iceberg. But in general, this was kind of like the starting point in 2017 and really grew over time. They first had their own treasury in there, and then you saw some more ICO teams that were like, okay, how do we manage our money? They started using it as well, and suddenly you had the likes of a Bitfinex with the first billion and assets that they put into a safe, and the trust grew. Which really brings us to today where you have really this highly trusted smart contract out there. The smart contract piece here is actually very interesting because the very first versions already were built in a way that they actually became modular, that they could be extended.
Given that the multisig is a smart contract in the end that lives on Ethereum, you can start adding other parts to it. And here, this really kind of like grew this huge potential of things that you could start doing with a save. You could start doing spending policies. So for example, you could say, I have a team, I have a few people internally, and actually they should be able to maybe say a thousand USDC per month to use for Twitter ads. I can actually create that policy on chain, and that wallet that belongs to that team can suddenly start doing this.
You could create certain roles, you could start thinking about okay, what actually happens if some of us lose access to the keys? Well, you can do a key rotation. What actually happens if all of us lose access to the keys? So, how do you recover that smart contract then? You can start doing things that are definitely used by quite a few people out there, which is transaction batching. You can allow or deny certain uh smart contracts that you can or cannot interact with, and you can automate a lot. There's quite a few other aspects that come into this, like you can create hierarchies inside of your company, but actually on-chain, or you could do, and I think that is what many people now think about when they hear account abstraction, you can abstract the gas for the user.
So that means a user that actually has a safe under the hood, such as, for example, all of the world coin users out there, they might not know it. They also definitely never held any of the kind of like underlying native cryptocurrency, but they're able to interact on-chain. The reason for that is that this is actually a smart contract. You can add other smart contract pieces to it, and you can do things like gas abstraction with it. Um, and this really comes to this point where we come from a private key in EOA, which is just controlled by a single private key, all or nothing situation, to something that is now really called smart account. So something that is actually inherently controlled by code and that becomes customizable customizable because of it.
Um here the question kind of like stands: is this something that actually anyone is using, or is it just another funny thing that we do? And here's some numbers that I think most actually recognize are quite relevant. We with SAFE have now over 70 million transactions that happened. Um over a hundred billion in assets are stored in saves, and just to put that into perspective, that's similar to Binance. Um, that is definitely similar to certain banks that are out there. Um, if you well, now UPS and Critis Suisse are became the same, but actually, if you like look at the Swiss banking scene, we're not that far off from this.
And here, this is actually something that is happening self-custodial on-chain and where the user has full control rather than coming into a custodial setup. We have over 9.6 million accounts deployed, and with the growth of the overall ecosystem, this has actually just been ongoing. There's no stop in sight so far. And this is definitely something, I mean, when I ask kind of like who of you uses SAFE, and like 60, 70% of people, the hands went up. This is not something that just our UI is doing.
It is actually an ecosystem of over 200 builders that is growing and that is building on top of a tech stack. So when you think about SAFE, many just think about SAFE wallet, which is kind of like the thing that DAOs and so on use. But actually, there's many, many other projects that build on top of it where sometimes you don't even notice it. And I mentioned before the likes of a WorldCoin. There's teams that are focused on the DeFi space, like a Brahma or DeFi Saver. There's a couple of projects that do, for example, debit cards. I think maybe last year actually, the Gnosis Pay team announced their debit card.
And this is really kind of like where you can start to see the power of smart accounts because of the customizability of this code. Quick side note on the Gnosis Pay side, this really makes a ton of use of quite a few of these things. So especially the permissions that you give and kind of like the guarantees that a smart account can give in a certain scenario, which is something you cannot emulate with an EOA. In UA, like you cannot give in a guarantee that you behave in a certain way, but that is detrimental for some like a debit card where you interact between the web 2 and the web 3 world. Now we are here at SAFE to really focus on one of these three things.
This is a visual that Vitalik proposed of kind of like the three key parts: the privacy that we need to improve the scaling of L2 of Ethereum and smart accounts. And this is definitely something you have to pick all three, but we focus on the acceleration of smart accounts. And for this, I wanted to give you kind of like three quite different types of settings than you might think about when thinking about SAFE or smart accounts in general. And the first one is what we kind of call hybrid custody, where we work together with the Swiss bank Cygnum. And here Cygnum actually acts in a way as a recoverer for those that lose access to a SAFE.
Now, Cygnum, obviously, as an institutional bank in Switzerland has quite different kinds of use cases. So actually it fits really well to this primary group that thinks about SAFE in the beginning, like a DAO, like a team that has a big on-chain treasury and that gets into this situation where actually all of the owners of that SAFE have lost for some reason access to their key. To put this into perspective, over 900,000 of ETH has been or is now inaccessible because of forgotten keys. So that's approximately kind of like the number of funds that we're already that were already lost.
And we always have to kind of like create this balance between giving flexibility to the user but also achieving enough security. And here our really the approach for us is that we have created this recovery hub where our goal is to give the user the control of how they want to do this. So one thing is that you could do it all by yourself. Actually, Vitalik uses that setup, he has quite a long tweet thread of how his safe is set up and how he has different people that don't know each other and that kind of like can, in theory, he can ask them to help switch everything around. Like that's the super hardcore version as an individual.
But you can also, for example, say, I actually, as the whole team, go to Cygnum, I KYC myself with this bank, and I trust them that in the case that I lose access to my funds, they can actually, through another type of smart contract, do a key rotation of the whole safe. Now, at the same time, you need to, as I mentioned, this is kind of the flexibility, but you need to balance this out with security. And here the iceberg comes in again, and here actually something that is super helpful is a delay module that was built by the Zodiac team back then for DAOs, but is again becoming really relevant where you say, I can actually always cancel this recovery if I still have access, because there is enforced by the blockchain a delay until this key rotation actually takes place. And if I see, oh, there's something happening here, I can always cut that.
So here, this is kind of like something that I think not many have immediately in mind when they think about smart accounts. Um, and the next thing is quite a large topic that is for you guys who are using safe, likely something that is quite quickly top of mind. And that is the issue that smart accounts, especially compared to EOAs, are actually right now still a bit worse in certain scenarios. And one of them is cross-chain. If you have an EOA, you actually have a guaranteed the same address across networks, and it feels quite easy to jump from say Ethereum to base. This is actually not the same for smart accounts.
For some, you can create something where you can guarantee the same address across networks. But the bigger we look at the VM space, so for example, once we start looking at the likes of a CK sync, this becomes fundamentally impossible because CKSync works differently. And therefore we need to solve this and actually come to a place where right now smart accounts are a bit worse than EOAs, to something where we come to a place where smart accounts are fundamentally significantly better and actually solve something that is not possible smart with EOAs. And the idea here is one that was proposed by Vitalik, I think actually a couple of years ago at this point, called minimal keystore rollups, which is basically the idea of a designated rollup that lives either on Ethereum or it could even also live on it on an L2, which basically acts as like of a password manager for you.
It's a single point where kind of like all of the keys that you have that are associated with your account are stored, and then either through push or pull are distributed to all other networks and are therefore syncing the status of your account. Now with that, you not only achieve that you have the same address, but you actually can come to the point that you actually don't care about where your assets are at anymore. You can just say I want to interact with something that is happening on base. So for example, I want to buy the coffee down there, but actually I have my USDC on Polygon.
What do I care? All of my accounts are connected anyways, and I'm actually doing proper cross-chain where I just pay for the coffee down there. And this is something where we really want to come towards. We're currently working with the scroll team as well as the base team on this and are really looking to build this out as the next piece of how Web3 will look like. So basically, your owner doesn't have to adhere to the same logic anymore as private and public keys work on Ethereum.
And the most prominent example here is that you can actually work with pass keys as the signature logic for your account. And this suddenly becomes quite big, right? Pass keys have their drawbacks as well, and we might have already published or will publish at some point an article about this because pass keys are domain specific, and therefore there are some drawbacks that you have to keep in mind. But they definitely have something that is really really superior, and that's everybody has their smartphone, it has biometrics, it's super easy to use, and big tech is actually pushing it. So every all of these users will be boarded onboarded into pass keys already with Apple, with Amazon, with Google who want to push this as well.
Now this is something, as I mentioned, with the current setup of private keys, public keys, you can't properly do. And where with smart accounts, you can actually set something up where, for example, you set something up that a pass key is your default signer, but if you do a transaction over, say 2000 USDC, you say there is a 2 of A needed, and that 2 of A is maybe actually another private key, it might be an SSO, it might be an MPC, it might be your ledger, it could be anything where you say kind of like, oh, this is suddenly a high value transaction, I want to have a 2FA. So this is something that we are currently launching with the WorldCoin team.
As I mentioned, every WorldCoin account actually has a save under the hood by default. And where we are going to push towards this direction of the user should have the choice, they can always use this module or not. You do make use of the multisig capabilities of a save, but actually, as you notice, we have moved quite far away from the tip of the iceberg here, and we will always make sure that all of our modules are formally verified and audited. Now, this is something that kind of like looks a bit ahead. Where are we right now?
We we're at the point of pass keys, session keys is actually something the commuth team who are building on safe as well, are I think thinking around. I'm not sure how much they've shared today already. Um, and where we will be pushing more and more towards an account abstract um native version on Ethereum. Quickly wanted to share this one for all of you who are using SafeWallet. Um, we have a rewards program that is ongoing. So if you're an active user of SafeWallet, you are currently collecting points already, and you can definitely have um have a look at how many you've collected and what this actually brings you. And a quick lookout to tomorrow, where Lucas will be talking on stage, I think on main stage, um, where he will be uh bringing something to to the wider ecosystem and all of the builders on Ethereum.
With that, uh, I'd love to close and see if there's any questions. Thank you very much. We got time for a few questions. Hello, I'm Megali. Thank you very much for your talk. Could you explain quickly how does the gas abstraction work on with Save, please? Yeah, so um we've actually been doing gas abstraction for quite some time. Back then we worked together with Gilato. Um now, as I mentioned, we have kind of like modularity, and we've decided to uh create a 437 module where you can tap into the 437 bundler and paymaster network and um basically tell that uh through this channel, then pay for the gas cost.
So the user says, okay, I want to do this, you actually pay for the gas cost, and through the bundler paymaster system, it is then paid for the user. Um reason why it's a module is for the reason has been in development for quite some time and still a bit drafted. And since we take security super serious, we don't change the underlying smart contract that easily. So that will maybe at some point come, but right now it's a module. Okay, thank you. Thank you for the talk. Um quick question related to spending policies and roles.
Are those currently available and how do they work, or is it also on the roadmap and eventually will be no spending policies are live. So if you go into save wallet, you can already kind of like create allowances. I think it's called allowances in there, or you can say kind of like these kind of wallets can have that kind of allowance for this time period in this example. So there it's definitely live. I know there's a couple of other teams which make use of it as well, like a CoinShift or so. I'm pretty sure they're live there as well. All right, any other questions? Maybe in the back on the right, there?
Yeah. Okay, this might be a little off topic, I don't know. But talking about ways to recover keys and that type of thing, has the has there been any thought, maybe I don't know, by SAFE or in the community in general, about what happens when people die and they want people to inherit their crypto and those people being able to get their keys so that they can actually get the crypto that they've inherited. Yeah, it's it's not something that we um advertise as such, but technically it's in theory you could use exactly this recovery mechanism that we've set up where you could propose a certain account, a certain wallet as the recoverer, so to say. And if you use the purest form where it's not a third party that interacts, in theory, it could also be a third party that takes care of this.
But if you right now want to do it, um you could just set, I don't know, your sibling or whatever as the recoverer that would then um be able to recover. And if you log into Safe Wallet, for example, you always see, oh, I'm set as a recoverer for this wallet. So this could be a path to take. So technically it's possible. I don't think there's anyone who currently focuses on this topic, um, but it's very much feasible to create. Thanks, Jan, for the talk. Uh, with respect to pass keys, they use a different elliptical curve than R1 instead of a K1. Um, generally uh you that's used with like 4337 through a bundler, and the bundler is actually executing the transaction with a signature that's compliant with the base protocol.
Is that what you're doing, or do you have another way of actually handling pass keys that aren't using the Ethereum sec P256K1 curve? Um happy to properly share you the article, but I'm pretty sure we use um this also in conjunction with 437. Um we definitely use the on chain version, which is quite gas intensive. Um yeah, uh it is the current setup that we use. It's with WorldCoin going live, so I think quite a few things will be in production then visible how they exactly look like. Cool, thank you.
All right, maybe one last question over there. Hi, thanks for that. Thanks for your presentation. Uh, one quick question. You have a token now that's been tradable for a couple months. What's the plan to uh monetize these wonderful things you're developing? Um so there's a couple of things that we already do, and then there's a long-term vision. Um right now, safe is monetizing certain aspects. So for example, um the smart contracts themselves are uh distributed on or are actually deployed on 200 plus networks. Um as you can see on our front end, like 15 are actually visible.
All of the other ones want us as well, and that is something we do monetize. Um we recently introduced swaps, we will introduce other like these kind of convenience features, and we will monetize those as well. So this is kind of like the the early stage. Uh when it comes to the long term vision, it's really about what I previously mentioned with this cross-chain, multi-chain uh question, where for us it's something that we want to solve on top of the contracts for those that develop with smart accounts to to have a vastly better experience for their users. And that's where we also want to bring the token into play as a something that represents the value of the ecosystem.
Related talks
- ERC–7947Account Abstraction Recovery Interface
- Social Recovery | Rasul Ibragimov, R&D Lab of Ethereum Foundation
- Universal Ethereum Logins
- ERC725 - The Future of On-Chain Interaction by Fabian Vogelsteller (Devcon5)
- Dapper Building a Better Interface
- Post-Merge Wallet by Chang-Wu Chen | Devcon Bogotá
- Path to Seedless Recovery by Stefan George (Devcon5)
- Next Generation Wallets: Passkeys, Why and How.
- ZK Email: Decentralized Email Login + Account Recovery + 2FA