Sometimes, the frontier is at a crypto conference. We’re returning from our adventures in Tel Aviv with nine exclusive interviews with some of the key players in the StarkNet space.
Wish you could make it to all the crypto conferences, but don't have the time? Don't worry, Bankless brings the frontier to you.
In this episode, we’re talking to Motty Lavie, the founder and CEO of Braavos, the team behind the self-custodial Braavos wallet on top of StarkNet. As the fastest growing wallet on StarkNet, Braavos is paving new ground with smart contract wallets. If you can’t tell yet, David was heavily smart contract wallet-pilled after the Starkware Sessions.
------ 📣 MetaMask Learn https://bankless.cc/metamaskshow
------ 🚀 JOIN THE NATION: https://newsletter.banklesshq.com/subscribe
------ BANKLESS SPONSOR TOOLS:
🐙KRAKEN | MOST-TRUSTED CRYPTO EXCHANGE https://bankless.cc/kraken
🦄UNISWAP | ON-CHAIN MARKETPLACE https://bankless.cc/uniswap
⚖️ ARBITRUM | SCALING ETHEREUM https://bankless.cc/Arbitrum
🚁 EARNIFI | CLAIM YOUR UNCLAIMED AIRDROPS https://bankless.cc/earnifi
👻 PHANTOM | CROSS-CHAIN WALLET https://bankless.cc/phantom
------ Timestamps:
0:00 Intro 3:30 What’s Braavos? 5:30 Smart Contract Wallets 11:30 Signers 14:30 A Use Case Revolution 18:45 An Example 20:50 Synergy with Layer 2 22:50 The Braavos Approach 24:40 Get Involved
----- Resources:
Motty Lavie https://twitter.com/mottylen
Braavos https://braavos.app/
StarkNet https://starkware.co/starknet/
----- Not financial or tax advice. This channel is strictly educational and is not investment advice or a solicitation to buy or sell any assets or to make any financial decisions. This video is not tax advice. Talk to your accountant. Do your own research.
Disclosure. From time-to-time I may add links in this newsletter to products I use. I may receive commission if you make a purchase through one of these links. Additionally, the Bankless writers hold crypto assets. See our investment disclosures here: https://www.bankless.com/disclosures
No summary for this episode yet.
Welcome to Bankless, where we explore the frontier of internet money and internet finance. And sometimes, that frontier is at a conference. Like last weekend, we're over 1,000 developers, founders, builders, and investors attended the Starquare sessions in Tel Aviv in order to participate in growing the StarkNet ecosystem. This is Bankless's Starquare Session series, which are nine bite-sized episodes interviewing the founders, builders, and ecosystem developers of StarkNet. Every once in a while, in the crypto world, a conference happens, but not everyone is available to attend. Don't worry, Bankless has your back, because I go to basically every conference that's out on the frontier, and I bring an entire podcast studio in tow with me, in order to make sure that the Bankless nation stays on the frontier of what's happening in crypto.
In this episode from Bankless's Starquare Session series, I'm interviewing Modi, the CEO and co-founder of Bravos, which is one of the two main smart contract wallets in the StarkNet ecosystem, the other one being Argent. Now if you understand smart contract wallets, you'll know that eventually, this paradigm of externally owned accounts, which is probably the wallet that you use if you use ledger or a metamask, is not long for this world, whereas 99% of wallets these days are probably externally owned accounts. Eventually, once we crack the smart contract wallet nut, 99.9% of all wallets out there will be smart contract wallets.
The potential that these wallets have will break your brain in terms of what they can do for the world. So I'll let your imagination run with his interview for Modi, but first a moment to talk about some of these fantastic sponsors that make these episodes possible. Kraken has been around for almost as long as crypto itself. As crazy as crypto is, Kraken has remained a rock for its clients, building out a platform designed to stand the test of time. Kraken is all about proof, not promises, which is why they've pioneered a proof of reserves, a system that lets Kraken's customers verify for themselves the solvency and responsibility of the Kraken exchange.
And for this reason, and many more, we've chosen Kraken as Bankless's strategic sponsor for 2023. And once you're done using Kraken to get your dirty, fiat money into pristine crypto assets, perhaps you should check out Arbitrum, where so much of the frontier of crypto innovation is taking place. Arbitrum just announced their stylus initiative, which is their brand new programming environment that lets developers deploy apps using their favorite programming languages like Rust, C, C++, alongside regular old solidity EVM apps. That's can use any coding language they like, and it simultaneously drops layer two fees by order of magnitude.
It's a big deal. So many of your favorite TFI apps have already deployed to Arbitrum, like Uniswap. But did you know that Uniswap isn't just for ERC20 tokens anymore? Uniswap is also an NFT aggregator too, to make sure that you are getting the best price on your NFT purchases. Uniswap gives NFT collectors and traders powerful tools all from the cozy comfy Uniswap interface. By the way, it's also got a native fiat on ramp, it's also deployed on like every layer two, and it's got this nifty cool thing called a universal router that ensures that you always get the best price on your trades. Crypto protocols like Arbitrum and Uniswap are becoming super powerful.
So make sure that you're also using a wallet that's equally as powerful, or else you'll be missing out. If you're looking to upgrade your wallet experience, check out Phantom, the number one wall of Salona, which has recently come to both Ethereum and Polygon. Phantom has native NFT support, giving you your own NFT gallery from inside the wallet. Phantom is both a browser extension and a mobile wallet, and is also the only wallet that has banned both the Salona and Ethereum ecosystems. Check it out at Phantom.app, and now let's get into the interview. All right, Bankless Nation, we are here at the Starkware Sessions once again, and I'm talking to Marty of Braavos.
What's Braavos? Braavos is the richest and most powerful city in all seven Kingdom. But what are you working on? So in Braavos, we are working on a smart contract-based wallet on top of Starknet, taking full utilization on account abstraction, and really want to drive UX forward to bring the next cohort of users into crypto. OK, so smart contract wallet account abstraction for people that don't really know these terms. Where should we start? So you can think about account abstraction and small contract-based wallet as synonyms. It's not technically accurate, but I think that in a higher level, it's accurate.
And think about account abstraction as something that divides your wallet, your account into two parts. You have the application pulse, like in normal wallets that you know, and you have the account contract on chain that can run arbitrary logic on your transaction. Now every transaction that is signed on your application is going through the account's smart contract. And that is very powerful because we can add a custom signature verification logic, and we can add custom execution logic, and we can really enable functionality that you couldn't do before on blockchains. The metaphor that I've used to explain this to people is that the wallet that they're typically used for if they're signing with a Metamask or a ledger is called an externally owned account, which is another just like not helpful term to describe what's going on here.
That's what it is. This is like an externally owned account is like Bitcoin, whereas a smart contract wallet is like Ethereum, but these are for wallets, and so your externally owned account is kind of like a dumb input output wallet, and then your smart contract wallet is like a programmable bank account, a programmable wallet, and like why is that hard to explain? Well, because the limitations are endless, and so like where do you even start? But the other way that I describe this is like smart contract wallet or account abstraction is like a virtual wallet, as in we have different ways of accessing this virtual wallet, but the wallet itself exists inside of Ethereum rather than an externally owned account comes from a private key that is external to the actual blockchain, because like a private key actually does not exist on the blockchain, only the public address does.
Do all these metaphors line up? What would you add to this? Definitely, definitely, and maybe an interesting fact that on stocknet, your public key is actually not your address, so since you can only access the stocknet blockchain through account abstraction, to smart contract accounts, then you have the account smart contract address, which is your account address, and the public key is just a storage inside of that. So the public key, unlike Ethereum, is not your address, and that gives you a lot of flexibility because you can use different public keys, you can add more signatures, more signers into your account, and that's actually what we're doing in Braavos.
Okay, so I want to unpack that a little bit. I don't have with a smart contract wallet, I don't have one public address, I have many. No, so you have one public address, but you can have multiple signers. Multiple signers, okay. How does a signer come to be? So if I would present what we call Braavos account abstraction security pyramid, then we can see a hierarchy of security measures that the user, like in a buffet, can decide to activate. So at the very bottom, we have the notorious seed phrase that we all know and don't love so much. And that is the externally owned aspect of this thing? That's the seed phrase that we derived the keeper, the private key and the public key.
And that's the corresponding of an externally owned account that we know from Ethereum. But again, the public key here is not your address, your account's smart contract is your address. And on top of that, the user can add more advanced signers that will give better UX and much better security. So one of the things that we've released about two, three months ago is something that we call the hardware signer. And the hardware signer uses the security chip that we have in our mobile devices in order to generate keys and sign transactions. And that's really cool because that makes hardware wallet redundant.
You get the security of a hardware wallet by the device that you already have. So for people who don't know in modern phone, let's say all iPhones and most advanced latest Android phones, we have a dedicated security chip inside the phone, which is completely isolated from the regular application processor. And it's very how to break. Even if your phone gets hacked, your phone gets rooted, and a tech I want have access to the keys that resides in this security chip. And we utilize that together with the power of account abstraction in order to generate keys and to sign your transactions. Now, I think that the cool thing is you can ask why no blockchain is done that before.
Like it's, you know, if it's so secure and it's very easy in terms of UX, because you sign transactions like you use Apple Pay or Google Pay. So the reason that no blockchain is done that before, at least no popular blockchain and it can be done not on Ethereum, not on Bitcoin, not even on Stocknet itself, is because the security scheme that we have in this mobile chip is not compatible with a signature scheme that we have on blockchain. And this is just like the ED's ECSA signature scheme. It just doesn't work in the chip, it's just like incompatible. Exactly. It's incompatible. But since we have a account abstraction and we have arbitrary verification logic, then we can code the signature verification logic that we want in this exactly what we did.
We coded the verification logic that is corresponding with the security chip that we have in our phones. And that gives you a very high level of security. Actually it gives you two factor authentication. If you think about that sense, the keys are generated within this secure enclave, within this secure chip. They are unknown, the private key is unknown to anyone. It is unknown to the application, it is unknown to the operating system, it is unknown to the user. So the user doesn't have the private key. So it's binded to the device and the other thing is that you authenticate transactions only using your biometric.
So either your face ID or your touch ID and also your biometric authentication works directly with the security chip. So again, even if your device gets hacked and an attacker gets routes on your device, they cannot steal your keys and they cannot sign transactions for you. So I call it a great combination of, I say, UX and security. Because from user point of view, it is seamless, it is frictionless, you sign transactions the same way that you use Apple Pay and Google Pay. But under the hood you get the strongest level of security. And you also just give users assurances because they are signing as transaction going through the same process that they are already familiar with on their phone.
And so like, I pay with Apple Pay all the time, I go through the New York subway, I use Apple Pay, I pay for my coffee with Apple Pay, and like, making transaction signing also with that same, like, oh, there is a smiley face and just gave me the checks, the thumbs up. That feels good to me as a normal consumer, it is like this is a process that I am familiar with. It is completely frictionless. If you try it, when you try it, you will see that it is exactly like you pay for a ticket on the subway. And it is the UX that, of course, we need to actually have adoption at grand scales. And so I remember a long time, bank listeners might remember the burner wallet where you just log in to xdi.
org or something and then boom, you have a wallet. That automatic process is kind of that UX that we really need in order to be able to put private keys in people's hands. I want to ask you about like, signers. So we have this virtual wallet. It's got a contract address and that is our wallet. But there can be multiple signers who can access that wallet. Can you unpack that a little bit? How does that work? Yeah. So, for example, we have added the hardware signer, which is an additional signer on top of the seed signer, on top of the key that is derived from the seed. And once we added the hardware signer, the seed signer doesn't do anything, meaning even if an attacker stole your seed, fish and attack, or malice, software, or whatever, they cannot issue a transaction on behalf of your account.
The only thing that they can do is they can issue a transaction with a time delay to remove the hardware signer and the reason that we support that is if your device gets stolen or if your device gets tricked, we still want you to be able to gain control back of your account. But for an attacker, they will need to weigh this time delay period and in this time you will understand that someone stole your seed and you can move your funds to a secure place. So is the seed signer, is that like the master account as in the place where this smart contract wallet is inserted from? Yes. Yes. And that's why it's at the base of the pyramid, right?
Yes. A soft master. A soft master, right? Yes, a soft master because once the hardware signer is enabled, the hardware signer is like the master. The hardware signer can, because we consider it to be fully secure, the hardware signer can run over anything that the seed phrase is trying to do. But that's not all. So a hardware signer is, as we said, extremely secure and a great combination of UX and security. But let's say that you have a lot of money in your account and you want to be extra secure and you, normally you don't use this account on a daily basis, but this is your hotly account. So we allow you to add a second signer, which means that you will have the hardware signer, as well as an additional signer and you will need two signatures in order to execute a transaction on chain.
And we call it the, this is on the top of the pyramid, this is the multi hardware signer. So for example, you will sign a transaction on your browser extension, browser's browser extension, and then it will automatically redirect you to your browser's mobile wallet and you sign there. And only once both transactions are signed, then the transaction will actually execute it, it will be executed on chain. And so this is an example of the expressivity of smart contract wallets or virtual wallets. And so we have this seed phrase signer, which is where the smart contract wallet originates from. It is the private key that creates the whole thing in the first place.
But then once that, and that's like what you call the soft master, but you can actually create a smart contract wallet using that soft master, but then that smart contract wallet can revoke permissions from the originating seed phrase, which is why we call it soft, as in like we've taken away the power of the thing that created it. And then you can add on a second signer and say, well, this new account has these permissions. And actually, those new permissions can be greater than the power of the account that made it in the first place, the soft master. And then you can start to add in a third device or a fourth device.
And each one of these, like, signers can have rules, arbitrary rules applied to them. And this is what you're talking about, again, at the top of the pyramid, we have a hardware multi-signer, which in parentheses, 3FA, as in three factor authentication, as in certain rules that need multiple signers in order to sign off on in order to execute something. And so these are all examples of like this virtual wallet, this smart contract wallet, that can have arbitrary rules about external signers, and that can be anything. Yes. And more than that, I want to emphasize two things, one, an account can be born, can be deployed on chain already with an hardware signer built in.
So none of that transaction will be signed by the seed phrase key in no time. So that's one thing that I think is very interesting. And more than that, the second thing that we can do is not having these functionalities on separate accounts. We can have them according to your transaction value, or to your daily limit that you want to set. So for example, let's say that you have a threshold of $100, you say $100, I don't care which signer signs, up to $1,000, I want the hardware signer. Above $1,000 a day, I want to have two signers. So I want to have three factor authentication, I want to be authenticated with something I know, something I am, and something I have.
But this is why this is like a programmable bank account, like what do you want? Because any input can become a rule into this virtual wall, this virtual bank account that we've created. How far can this really go? Can this go to the point of like, something of a rule of like, anyone that has a particular NFT in their wallet can execute some particular rule inside of my smart contract wallet. And so like, maybe I have a smart contract wallet. And if you have a crypto-dickpa NFT, I'll allow you to do something in my wallet, whatever that may be. Is that possible? Exactly. The cool thing about smart contract-based wallet and account abstraction is that you can have an arbitrary logic on any transaction.
So whatever you can imagine, we can code and can be implemented. And that's really like taking, I think the crypto user experience to the next level, in terms of functionality, but I think more important in terms of simplicity. We want to reduce the burden from user shoulders about taking care of their keys and taking care of not making even a single error, and all the funds are gone, et cetera, and a smart contract-based wallet. It's like Bravo's really enabled us to do that. Yeah, and I really want to impress this upon listeners that like, this is a Bitcoin to Ethereum moment for the wallet worlds.
We're like, imagine if crypto was just Bitcoin, it would be much less expressive and with much less applications that are possible, and that same thing is true with the smart contract wallet world. This goes from just having dumb input output wallets to having very expressive wallets that can literally do anything. And so the use cases that come out of this world are literally infinite. Exactly. That's a great, great analogy. And my belief is, all wallets going forward will be smart contract-based. The incumbents today will transform to be smart contract-based and certainly new wallets will be smart contract-based because the level of functionality and UX that it enables, it's an order of magnitude better.
Yeah, and just to really drive this point home, let's imagine that you, the user of a smart contract wallet, you're at home and you need to send a very large transaction, almost all of your money. And perhaps you have three signers and so you're on your desktop computer because that's where we mostly do our stuff and you process the transaction and then a message shows up on your phone saying like, oh, this is a large transfer, you need your phone to also sign off on this. So then you press approve on your phone and then your mom calls you and says, oh, son, I just got this message to send all of this money from your wallet to another wallet.
Is this you? Yeah, that's me and then your mom also says, yes, because it was so large that you needed an external reference point and you could go off into the end details about how far this goes. But the cool thing is that these are all devices and so it's really the device that is the unique signer no longer just like a unique private key and I think that's pretty cool. Exactly. And that's a very good point because when we add a second signer, we don't add a second seed. We want to get rid of the seed for the long run, we don't want any seed. So when we add a second signer, there's still only one seed for their account.
So the users still need to handle only one seed and in the future, even that would be redundant. Right. And so like when users write down their seed phrase, they might notice that in their ledger or metamask, you can keep on making new accounts over and over and over again. And so one seed phrase generates an infinite number of accounts and these are new accounts are like signers, right? That's what they are. Yeah. And also in Bravas, so in Bravas, you can also create multiple accounts. You can have like an account for your daily transactions and you can have your holdling account and you can have, I don't know, your NFT account and you can set different level of security to each and every account.
You can put on one account, the hubble signer and the other account, the multi-signer and on the third account, you can just stay with the seed. So there's a conversation pivoting here a little bit about ZK roll ups and smart contract wallets. There's a particular synergy behind the world of ZK layer 2s and smart contract wallets. Can you unpack that center? Why does that synergy exist? What's so special about the relationship between smart contract wallets and ZK roll ups? So if we take stocking it as an example, stocking it has two very important features. The first feature is that it has or at least we'll have very low gas fees and this is important because all this logic that we are talking about is very heavy in terms of compute.
For example, to implement this elliptic curve of the mobile chipset, our initial naive implementation was 400,000 steps, 400,000 chiro steps, chiro is the programming language that we use on stocknet like solidity on Ethereum and that's a lot. Today we released an improvement of that that reduces 40% the number of steps, 250 to 140,000 steps, but still a lot. So we need very low compute gas price in order for that to be economically viable because we want people to use that not only for transferring millions of dollars but also when you use the subway. To do this, together with improvement that's starting to issue in the next version rolling out in two weeks, we will have a sense of difference between using the HODL signer and using like a regular signer.
So that's one thing, the gas fees and the second thing is that on stocknet we have account abstraction built into the protocol meaning every transaction must go to an account before it interacts with other contracts on chain before it goes to an AMM, to an NFT marketplace to whatever. And that's extremely powerful because then we can enforce all these signers and all these logic that we talk about. So getting into bravos more specifically, other bank listeners might be familiar with Argent, bravos also built on the stocknet, stockware ecosystems, what are you really leaning into at bravos, what are your first applications that you're trying to get integrated into your guys' wallet?
So first of all, all the security aspects that we've just discussed in the past 20 minutes, the idea is to make user onboarding as friction as possible and as secure as possible. As I said, to remove the burden from the user's shoulders to take care of security, et cetera, to be in a position that they need to order the HODL wallet, pay for that, learn how to use that store another seed phrase, right? It's like very difficult even for technical people, certainly for mass market. So that's one thing, the entire aspect around making your wallet, making your account like a traditional bank, but a decentralized, self-custodial bank that is completely controlled by you with a great UX.
So that's one. And the second thing is the entire aspect of DeFi. So today in bravos, we already have integrated into the wallet so users don't need to go to outside apps in order to exchange funds. The next step will be to have, I call it one-click on yield. So you'll be able to earn yield on your assets in the wallet, whether it's on stocknet or under the hood, automatically bridge to the Ethereum Brace layer. And for example, take your EIT in rocket pool or in LIDO and earn yield. And going even forward, enabling borrowing and lending also from within the wallet. So the goal is that every day users, users that are not key replace savvy will get the full experience of crypto, right at the fingertips with like two taps.
So if anyone in the bankless nation listening to this be it, maybe they're a developer or maybe they're just a user trying to get their hands on their wallet. Who are you guys really looking for to engage with like what relationships are you guys looking for at bravos and how might people get started learning more? So first of all, you are welcome to our website and to our Twitter account, we share a lot of information there. There is a lot of detailed technical kind of blog posts about the Hubble signer and why is it secure and how the keys are actually being generated in manufacturing process of the silicon etc etc.
So that's one thing we have a very vibrant discord community that people are welcome to join. I think for us, there is a lot of things that in terms of the user journey and the overall UX that we can solve. One thing that really bothers me is the on ramp of free at money to crypto. I think we as an industry need to find ways to make it much more, much easier, much more simple, shouldn't take like half an hour with all sorts of ideas and pictures and proof of address etc etc. So today on bravos we support several on ramp mechanism from credit card, from direct bank transfer, from centralized exchange you can transfer directly to your wallet.
Of course bridge from other chains, but I think that this point is still with very high friction and anyone that walks on interesting stuff in that area will be great to cooperate. Amazing, well thank you so much for helping me walk through the world of account extraction and hardware wallet. Cheers. Thank you.