[ETH Seoul 2024] Redefining the Signing Experience Through Session Keys by Derek Rein

ETH Seoul 2024 · 12 Apr 2024 · 15:11

Derek Rein, CTO of WalletConnect, asks how signing in crypto can feel less painful. The talk introduces co-signed session keys on contract accounts, which let users grant scoped permissions, sign with passkeys and allow recurring actions such as subscriptions or dollar cost averaging. It also covers one-click authentication, standards such as EIP-6963, and the cross-company work on account abstraction standards that makes these experiences interoperable.

Speakers

Topics

From ETH Seoul 2024, hosted by Kryptoplanet.

Transcript

hey how's it going how's everybody doing who's hacking awesome um yeah today I'm going to talk about ux and my name is Derek I work at Wild connect and how am I credential to talk about user experience so um I'll get into that in a second but first maybe a few words about you who knows about a Keys key okay we got two people who runs their own full node wow who thinks user experience in crypto right now is epic oh one person who thinks it's really

bad okay who thinks it's in the middle all right so um we got one person who thinks that's in the middle so how am I credential to talk about user experience so uh I think user experience in crypto is pretty bad and but I think we're looking at the precipice of making this a bit better at wallet connect most recently for instance we made ux better we ushered in the EIP 6963 standard has anybody heard about that does anybody have a browser extension on their on their desktop computer does anybody have one that's not metam mask does anybody have more than one yeah so EIP 6963 enables you to have

more than one we did that we did that last year and it was adopted by by all wallets pretty much also metamask it's also always a bit political to get everybody aligned on these standards everybody can make a standard but it's only a standard or proposed a standard it's only one if it gets adopted uh anybody heard about the cape 25 standard uh anybody um the metamask browser extension users here when they switch chains in the app uh let's say you're in Unis Swap and you're in ethereum you have connected your wallet now you want to switch to another Network then on metamask you have to which also signed off on the standard on metamask you still have to approve that you want to

on the wallet that you want to switch the Chain versus on other mobile wallets and other browser extension wallets you don't have to do that that's also a standard weeded so a very small thing but it's removing a click so I think uh today I'm want to talk about session keys to something we've been excited about for a very long time but only with the uh increase and the adoption of contract accounts is this really possible so I think it's a very exciting time to be in in crypto so does anybody know what this is what is it I sagr

Familia yes what else is it do you know when it was finished yeah never finished when was it started like over 100 years ago so this is us uh we are this church because we also unfinished like the ux is is unfinished in in crypto it's taken us over 10 years to move from to move towards contract accounts we're still using external accounts and uh so it's exciting to see when we're going to move to contract accounts which are for various reasons better everybody agrees that I think pretty much everybody

agrees that one day all accounts are going to be contract accounts so what contract accounts enable you is uh session Keys you can also do it on euas but really you can only do it on contract accounts or that's a bit controversial so what's a what are cosigned session keys and are they Bliss so let's get into that so um this what what I'm going to talk about today so let's get into a demo I have a video but I think I'll actually skip the video um okay so the those are some some screenshots from a uh from a demo and I'll get

into why this is important after the demo but basically this is an experience that most of you have seen before you connect the wallet most of you I assume have done that especially the builders over there and so the second slide is a bit different you haven't seen this before so now when I connect my wallet when this example I say hey the wallet can spend up to X it's connecting with a specific app and the specific app in this case is a contract it's not an it's not an app and it has a time to live and and so it's called a uh we're calling it a permission so and we'll get into why this is better but um once the

permission is set up I can also set up a pass key that's going to be the session key in this example so I can set up a pass key to to sign so then this permission that I set up in the app I guard with a pass key so this means I don't have to even switch into the wallet anymore when I want to sign so that's less click when you want to sign you just pop up Pass Key and and sign so bum bum bum bum so here you can see on the slide that there's no wallet connected even um but the pass key setup this the sending button is the synchronous signing and where synchronous signing

means I'm still clicking a button I as the end user with my pass key I guard this permission and it's a pass keyy so there's no password involved and the key is guarded by the secure Enclave on your on your phone in this case and so I'm signing in the app currently that's only possible with the embedded wallets which are all a crutch uh at wconnect we have our own embedded wallet it's like this email wallet for you onboarding users who don't have a wallet yet um but it's sort of a a crutch uh all of these other than the wallet connect ones they they are like Facebook they actually make the balcon isation

and interoperability worst because you get one account per app and you can't get out at least the one Connect onboarding app SDK wallet is uh you want the same address in all accounts and you can you can graduate somewhere else but that's that's besides the point um so in this experience I'm signing in the app so it's less clicks um and I'm signing with a pass key which is also a more um pleasant experience I'll argue in many wallets you can also sign with a pass key now but then if I want to use an app I still need to switch in new wallet um all right and oops the other mode and that's a new paradigm that doesn't exist today the the other button here is uh

Asing signing or programmable signing so in this case I delegate the key the app holds the key and I allow the app to do whatever they want on my behalf as long as the permission is as long as it's within the boundaries of the permission that I set up so examples of that might be a newspaper subscription it might be um like Moto froms is here it might be automatic renewal of the of the ens that's possible it could be your favorite Decks that that you grant the permission to do dollar cost averaging and trade up to $1,000 every week on your behalf have and then it just carries out these actions or very the

building we're in today is from a game company so very prevalent there of course like the game just carries out transactions up to $10 on your behalf and you you feel safe we get into how you can feel safe in a in a second um another thing I'm going to show here will actually look at the video is a an innovation we just launched um you'll see that coming to a wallet in your pocket very very soon uh currently when you do a sign in with ethereum and I'll explain why this matters um but in the in the wallet in the demo you're going to see a sign in with ethereum in just one interaction currently when you do a sign in with ethereum you need to connect your wallet once that's done you need to sign you

switch back into the wallet you sign and you come back so it's I'll call it two click versus this we call oneclick authentication and this is also I'll argue a this inflection point because this is the first time in crypto history that actually the crypto experience that's decentralized is better than the web 2 experience in web 2 the best login experience arguably and your mileage M may vary uh the best login experience is is sign single sign on clicking the Google button um but this experience argues better and and then you might argue pass keys but pass keys at least in reality and web two are still just

second factors where this is a primary factor so you can see the the one click login I just recorded that this our sample app um but and this is our sample wallet this already adopted by some wallets and yeah now I'm logged in so it's a less than 10c login experience so I think you can't beat that with single sign on obviously this is decentralized because I'm using my my key why is this relevant for what I was mentioning because this one click something pattern you'll see we're doing a lot of innovation there with our partners and so you'll see that coming to a lot of

experiences and registering the session key is also an experience so to create a session key you don't have to connect your wallet come back you just register the session key and um and it's just going to take you a couple seconds and probably in the UI you can say up to like $10 $100 $ th000 and whatever you want yeah so less clicks as more who agrees few people okay so why do we need coign session keys so currently we just did the survey the our first crypto report our first industry report so most users and you're

probably amongst them I'm definitely amongst them are actually scared of using crypto you're scared of being scammed and yeah using crypto is pretty inconvenient so many clicks obviously and the and it's also expensive if you would do a session key in a non- cosigned way um it would be expensive because every time you need to um when you register a session key it would cost gas so a cosign session key basically is a session key where when you set up the session key when you set up the policy you have someone who's validating the policy so for instance you set up the the key and you say what I trust wallet connect to validate my

policy you don't trust us with a key but you trust us with enforcing the policy and um that enables the inconvenience like you can say it's just Unis swap or just a game and behind the scenes the game can upgrade their contracts or even do aox do changes on the the proxy contract and you can just trust um in this case wallet connect that we're going to simulate the transaction we check that everything is okay otherwise we won't coign it and that enables um that enables most of this and the the feature parody is the the asynchronous transactions the newspaper subscription so yeah that's a motivation for why we need this less clicks more

secure basically and then ushering in a new paradigm and yeah we already went over this and so I thought because we have a couple more minutes and maybe I'll go into how we make this happen and how does the standard happen um so This Is Us last week and this is people from about 10 companies in this picture all the account of exraction sdks were with me in Lisbon last week where we made this happen the sample wallet you you saw supports all the account abstraction stks the entire Community is behind this and it's really crucial that you from

account instraction SD case to wallets to ultimately apps get everybody on board so and this was this was us a few of us last week David here from trust third from left is also in in Soul so friendly face and yeah it's like you need to we're we're like the web we're not like iPhone like we tried we move slower in crypto but um or in the web but for but we get interoperable experiences also the web o n the pasy stand the standard that pasis are based on um that was that came N9 years ago and pasy is you know it's 9 years old so even in the web we move pretty slow and and the reason why

we move slowest you need to get everybody on board and I think in at as W connect we're in a privileged position because we are pretty much the only ones who can get all competitors all stakeholders to fly to Lisbon for a week to to jam on this stuff and Makoto was at the last um hack week that we that we did in in Naples and yeah these were some of the outcomes of last week so we have a couple new standards that the entire Community already agrees on um or the the important stakeholders already agree on so it's going to be easier to Usher it through um those are massive ux enablers currently ERC for s smart accounts which ushers in badge transactions and sponsored transactions

daps can actually not seize that those features that was like not thought through so the the standard enabling to seize these features that's like the one on the left and the one on the right which are two different ones and they're going to go into into draft next week or this one already is um um yeah that's it any questions all righty thank [Music] you