Web3Auth 🛠 Plugin self-custodial social logins into your app/wallet via MPC with Web3Auth

ETHGlobal Amsterdam 2022 · 26 Apr 2022 · 10:31

Subham Rathi, a senior software engineer at Web3Auth, explains how the team's key management service lets people onboard to web3 without seed phrases. Using Shamir Secret Sharing, a private key is split into shares tied to a social login, a device and a backup such as a password or security question, so access survives the loss of one share while the setup stays non-custodial. The ETHAmsterdam workshop covers the customisable SDK, adoption figures, the permissioned network of nine nodes run by companies such as Binance, Polygon and ENS, plans for an open node network, and audience questions on decentralisation and the hackathon prizes.

Speakers

Topics

From ETHGlobal Amsterdam 2022, hosted by ETHGlobal.

Transcript

Yeah. Uh hi guys. Uh hello. I'm Shubham uh from Web3Auth and we will we build key management solutions as a service. Uh so, yeah, let's get started. So, the motivation for us to build this is the number of Web3 users active, number of Web3 users we have signed up in past couple of years have been rising exponentially. We've hit more than 100 million users uh or keys active at some point in time. So, the current de facto solutions uh don't fit the use cases which still requires us to scale from 100 million to a billion users or more than that.

The key management part is hard. The key management uh because uh currently uh the wallets that are de facto, which are let's say Chrome extension wallets, use a seed phrase flow and it requires users to back up the seed phrase. It requires users to be aware that if you lose the seed phrase, you're going to lose the access to your keys. There's no forget password button. Uh the sign-up flow results in like a bad UX experience because it's it takes more than 10 minutes to sign up a user on the on the wallet.

Another responsibility is to keep the seed phrase secure and more than 3 million Bitcoins have been lost just because of private key management. So, uh that's the part we want to optimize. And so, uh so, how do we onboard the next billion users? So, we have a so, we have a three-point strategy, uh a simple, secure, and non-custodial wallet. Uh a wallet the key management system that we have is simple because we leverage the Web 2.0 login solutions like Google, Facebook, uh you can have your own uh you can have your own J J video You can have your own what's over linked to the login solutions. It's still secure because we still have flows like

multi-factor authentication that you can add. The SDK is customizable and at the same point uh the entire system is non-custodial. Meaning at any point in time user is in full control of his keys. Uh so how do we do this? So we use some something called as Shamir Secret Sharing. What it allows us to do is split the private key into multiple parts. So Oh sorry. Yeah, it allows us to split the private key into multiple parts. So we take the private key. We let's just split it into three parts.

We assign one of the parts to the Google login. We assign one of the parts to a device and we assign one of you can pick the third one to back it up or it can be a password share. And it can also be a security question. So let's say you lose one of the shares. Let's say you lose your device. So you can still login from Google and get your input your password and you are in. If you lose the access to Google account, you still have your device. And the setup is really scalable. You can go from two out of three to two out of n. You can have your laptop as a phone as redundant shares. So even if you lose one of the devices, you still have access to the other ones.

Yeah, so the experience looks like this. Uh As you can see, so the first options are like social logins and you have your email password. You click you input your email. Then you can go to your email address and just click click on the link and then yeah, you're logged in. So that that gets access to the key that easily. So what makes us unique? So even with this setup of using custody like Google login email password login, it's still non-custodial because there are multiple shares. So no one can can access to the keys unless you want them to.

We still get to leverage the web 2.0 login flows which a lot of more than billion users users are already comfortable with. People are used to email passwords, people are used to logging in with their OAuth accounts. And the best part is even if you have your own OAuth setup, you can plug that in into the SDK and it just work. So here are some stats. So we've been building this for the past 3 years and we have more than 3,000 dabs which are using us at this point. More than 7,000 developers have registered their interest on our dashboard. We have about 9 million keys on our network.

And here are the like few dabs which are using us. So Binance uses us in their Chrome extension. Kepler uses us in the wallet. 100 Thieves recently did their integration for the NFT drop. We have a wallets on Solana. We have a Unity SDK for games. And the list goes on and on. The SDK essentially works on web, it works on iOS devices, Android devices. We have SDKs for React Native as well. And to add some more stats, Binance reported that the the user conversion rate on their extension was increased by 74%.

Cash IO is one of the applications on Terra blockchain. They have about half a million monthly active users and we get like three support tickets a month. 100 Thieves did their NFT launch with us two months ago and we were able to onboard more than 300,000 users in just a matter of seconds. So matter of minutes. So the system really does scale with the number of users as well. And yeah, that's the end of it. So Uh, can I help? Uh, any questions, guys? Maybe you can talk about the bounties of the All right.

expecting from the the hack from the participants Uh, I'm not aware of the exact numbers, actually. Uh yeah. So, the first place is $4,000. Yes. The second is $2,000. Third is $1,000. Uh, then there's a UX prize, uh, two UX prizes of $500 each. And a business case prize prize of $500. Do you have a slide that I can Okay, it's fine. Uh, you can we're always available nearby. Uh, we'll post it on the group as well.

Uh, any other technical questions or something I can explain a bit more? Yeah hi. Uh, which one? To which extent extent are you decentralized? Uh, got it. So, let's take the first part, right? So, the SSO login. So, even the share or the private key which is associated with your login uh, is split into nine nodes, again. So, we have a network of nine nodes. The nodes are run by big companies in the industry. Binance runs one of our node, Polygon ENS Ontology uh, they all run one of our nodes. And

in this set of nine nodes, let's say you login from Google. Uh, and after that, the shares sort of shares get redirected to the browser, uh, and we reconstruct the key in the browser itself. So, at any point in time, there is no server involved, uh, and as soon as you close the browser, the key is gone. Yeah, so that's become the the second part. The first part is your the your browser is a So, let's say you go to your browser, there's a local storage available, uh session storage available. We keep one of the shares in there.

So, at any point in time uh any one of the shares does not have the same context as the other one. So, is the it's only user action which can help to sort of, you know, get the final private key. Because the login provider would not have access to the first one, second one would not have access to the first one. Yeah. Okay, and as you said, so Binance is running a node and a few other companies and what's the plan in that? You, me, we are running a node in the future or Yeah. Yeah, so we have plans of launching off network. So, currently the system is permissioned. Uh we're going to launch an off network within which anyone can join and become a node

operator. And applications can choose if they want to keep keys on which nodes, depending upon the like few certain parameters. And it will be like a fully MPC wallet. Uh currently the key has to be constructed to uh make signatures. But we have plans to like further that. And there are so many companies and there are so many companies which which are doing this on the side, I mean, identities. So, many companies are also like the identity for instance and a few other other ones. Do you think there will be only one winner in the end or are you ahead of all these guys or what?

Okay. So, we provide the management key management part. Even with the DID's, I'm not very aware on the specs, uh but you still need like a key or you still need uh some sort of key management setup to sign transactions, sign messages for that for that matter. You still have to prove user identity, right? Yeah. So, it's it's more of a can be used in complimentary. In my understanding, yeah. Yeah.

Uh anyone else? Okay. Uh thanks, guys. Uh we'll be around at any time. We'll be live on uh we're going to be online on Discord as well. So, just ping us. Thanks. Bye.