Bye bye browser wallet: How new signers can make your dapp mainstream ready?

Bye bye browser wallet: How new signers can make your dapp mainstream ready? · 31 Jan 2024 · 1:06:34

Christian Koopmann provides an overview of emerging products and technologies that aim to improve dapp user experience by replacing the browser wallet with more user friendly alternatives. A useful survey for dapp developers thinking about onboarding mainstream users.

Speakers

Topics

From Bye bye browser wallet: How new signers can make your dapp mainstream ready?, hosted by Ethereum Engineering Group.

Transcript

hello and welcome everyone my name is Peter Robinson and this is the ethereum Engineering Group Meetup so today we've got Christian who's going to talk about wallets in particular wallets that aren't like metamask wallets that are a new generation and so um I know you've got an intro um in your own slides but um so Christian is doing amazing things in a whole range of areas including some open source projects he's um this is what your second or is it your third talk anyway lot he's he's done more second talk okay and so um yeah great I'm looking forward to it so please um over to you

Christian you might be on mute sorry yeah thank you Peter uh for the introduction um I hope you can see my slides otherwise let me know um yeah as you said today we're going to talk about alternatives to the classical browser wallet um in particular we're going to talk about sign us um um yeah we're going to have the distinction going to make a bit clearer later on between um wallet and CER maybe although sometimes the words are used also interchangeably um and yeah I think this

um they're are really interesting technology that can make a big difference in terms of uh dep DX sorry yeah so a few words about me uh just really short uh as you said uh second uh second uh talk here also a frequent listener and fan of the show um and yeah just an open thought Enthusiast about everything blockchain etherum related I started out as a smart contract developer then also uh moved a little bit down the stack up the stack and this time uh yeah we're going to be

talking about something that's very close to the user experience yourself itself so yeah a little bit further up the stack um and yeah here are my links you can find me on GitHub or just shoot be a message on telegram uh if you have any questions um today's talk I have a few uh slides in between like for breaks uh for discussion and longer questions but if there are shorter questions where you feel like uh you're not understanding something uh then yeah do shoot them maybe in the chat and maybe Peter can uh can keep an eye on it and let me know if there's a question that maybe we should answer straight

away uh structure talk first we're going to talk a little bit about the motivation what the problem is um and um yeah then we're going to compare what I mean by alternative sinus versus um account abstraction in general and smart wallets in particular um then we're going to talk about two kind of Technologies set a potential alternatives to browser wallets um the first one being these what I call remote signup providers or remote wallet providers uh we're going to look at three examples in particular um with the main focus being on web 3o and then also we're going to finish off by taking a look at pass keys

and the promise they hold for the future of user authentication so what's the problem right now why is the current ux broken uh probably won't have to elaborate on this too much um try to summarize it here with some pictures so on the web on the left side it's a a web two stock trading app you click one button there's a bunch of confetti and uh you're done and then uh on web three uh I don't know you click 10 buttons you have to decode some uh signature call data maybe visit two other websites to see how your transaction is doing speed it up cancel it um and whatnot so uh yeah quite different

um in terms of ux there and then also um another big topic I think is account recovery so again web 2 you forgot your password no problem uh usually uh you can uh reset it or recover your account fairly easily but uh yeah in web 3 if you lose your seat phrase if you lose your Hardware wallet and you don't have a backup um you're really kind of out of luck um and so these are two two two problems uh I think uh that really holds web fre back from mainstream adoption and um today we're going to look at ways to fix this uh first just

to um like kind of hone in on AIT a bit on on what we're going to be talking about specifically so there's this whole topic of account abstraction um uh which is I think a pretty wide set of tools um and Concepts that try to solve uh a lot of the complexities uh including the ones that I mentioned before and yeah this includes the problem of of having to pay with gas for gas so gasless transactions Rel layers smart contract wallets alternative M Pools like a whole bunch of uh Technologies I think each of which you could have an a whole talk about yourself just on its own but that's not what this talk is about

um or at least not the entirety instead um we want to talk about alternative signers and so many of the account obstruction tools um you still need a way to authenticate your user so even if you have a smart contract wallet even if you have um I don't know user intents instead of transactions alternative of me pools you still need a way to make sure that only um only the people only the user that is allowed to to do a certain um uh action is actually able to do it um and so kind

of um have a way for the user to prove who they are and this is usually done using signatures um and uh yeah so usually sign a message classically in in ethereum it's you sign a whole transaction which has a certain format but with alternative M Pools maybe you assign something different um but in the in the end usually uh still need a way uh to sign a message um and yeah so we're going to look at uh technology steps really focus on this signature step in the whole um us journey and yeah they're alternative

in the way that they're not Hardware or browser wallets what is the signature uh I think this is like the best uh just a really good uh definition that I found in these two books so it's it's it's used to irrevocably link the center of a message with the content of the message um which then um yeah is a is a authenticates the user so how do signatures work on a very high level um usually you have a private key and a public key um and a message you want to sign and um the private key you should keep secret um and um yeah with

that private key you can then generate a signature and then uh you publish your public key and anyone with that public key can combine the public key the message and the signature to verify that the signature is actually um uh corresponds to this combination of message and public key uh and thereby um verify that it's really you or the user who who signed this message and so the problem here is how do you manage this private key right that's kind of the especially in terms of um terms of account recovery um once uh once someone else gets your

private key he can sign any message on your behalf which effectively on a uh on an ethereum account means he can he can take all of your assets um and yeah if you lose that private key you also lose access to your account and um So currently most people uh solve this problem using a browser browser or Hardware wallet um where the idea is uh you store that private key in a presumably secure Enclave or place that is controlled by the user so either it's uh yeah a um in in your browser or in a browser extension or on a separate

device um but yeah either either way it's fully the responsib IR responsibility of the user to manage that device um usually you have a single opportunity to back up your seat phrase maybe on paper um but then yeah it's again you you are responsible of storing that piece of paper safely or that seat phrase um and um yeah if you lose it it's gone uh and another uh thing that these these wallets have in common is that they usually um ask user for confirmation on every transaction or signature so whenever you you sign or sign something so whenever you use a d

which which wants to do an action on your behalf uh it needs to generate a signature as we established before and usually uh these Solutions uh prompt the user for confirmation every time uh there's a transaction or signature which can be especially for apps where you have a lot of high frequency uh but maybe lower value interactions uh can be quite um disruptive to the user user flow um and so today uh as I mentioned we're going to look at the two Alternatives remote signers and pass keys and uh yeah let's start with remote

signers remote signers I I kind of made this word up myself uh or I don't know may maybe someone else uses it too uh sometimes they're called embedded wallets uh wallet providers so they they have a whole uh range of terms here I'm I'm I keep using the word sin just to differentiate it from Smart contract wallets because some some providers they they have they provide a whole uh bunch of solution that includes alternative signers as well as the smart contract wallets uh but here really just talking about this s up um and they're remote in the way that they manage this private

key or generate the signature at least partially outside of the user device so usually it's some kind of service uh that is run by a um a provider um that you have an SDK and then it it does some kind of call to this one or several um uh remote apis and can then uh generate a signature um and so it partially or sometimes completely um relieves the user of uh of this burden to to manage their own private key um and usually the these

providers they have uh some mechanism um to avoid one party giving one party complete control over your uh uh over your wallet so there are other providers that are like custodial in the sense that um they kind of have custody over your funds but these providers that we're talking about today usually um try to make it such that they themselves cannot control uh your account um and we're going to see um how how they achieve that in in in different ways um or aim to achieve it um as I said we're

going to talk about three examples mostly about web3 o I'm in no way uh associated with them but um it's the one that I had the most experience integrating with and also they have a a pretty good um documentation where I was able to uh copy paste a lot of the the nice Graphics you're going to see um and then we're going to also uh contrast this briefly with with two other providers privy and Magic so um maybe first um we're going to take a look at a little demo uh so for the first provider web 3 off just to kind of see what this looks like in practice um can you see the demo

app yes okay great yeah so there's a link uh this is a demo app hosted by by them um and uh here you sign in you can use your um your normal wallet in which case the user experience will be more or less the same as as you used to with uh with metamask but we're going to use one of the other Solutions uh so in this case uh we'll we'll try Google there's a bunch more here and so all you do is you do a normal kind of O off sign in with Google um

action and then you connect it and you can see that it generates a address here for you so this is uh the address that you're now um that is that that your new signer is connected to so basically generated a new account for you uh with based on your uh Google account and now we can go here and we can sign any message we want um and then here we get the signature um also you can sign transactions sending transaction again once you have this the

message the the signature uh you can then um yeah do pretty much anything you want with it you can you can send transactions sign transactions send transactions um all kinds of stuff um but um I think yeah one one thing uh that becomes immediately clear is that there's no like it's just one click there's no additional confirmation here and so you could even have if if you implement this in your app you can even click one click and and sign multiple messages multiple transactions um and thereby kind of provide the user with a very smooth user experience so

that's a very short look at what it looks looks like when you use it um another question of course so first next maybe uh yeah also as developer um how do you use this um again this is the one that I had the most experience with so I used this for a little hackathon project here and this is really the only kind of I don't know 20 lines of code that I had to use to um more or less get the S get the same login and authent authentication experience that we just saw in the Dem demo uh so yeah you do a little bit of configuration you do have to sign up with web3 O and then you get a client ID

for for your uh app so I think it yeah based on this client ID it will it will generate a a separate wallet for each app um and yeah then you can choose what uh chains you want to support um and once you have configured once you have configured your object it's really uh yeah just one or two method calls and then returns you a ethers signer ethers JS signer in this case they have sdks for other um other Integrations as well um but yeah then you can just use it uh as you're used to the same way as uh with the metamask integration um as we saw they support a

lot of different social login options here so yeah very geographically diverse and also yeah you can even you can manage your uh your wallet with Spotify if that's what you want um which is yeah interesting and sorry yeah one more mention this is basically be because of this o standard so O is a a standard of authentication and authorization between different apps so it's widely used um in on most websites nowadays so whenever you see like sign in with Google signning with Facebook that's kind of have uh this open or standard where um the website you're using kind of

delegates the authentication to um to a different service where you might have already have a have an account um and so this is this is also what is leveraged here and allows you to um potentially sign in with any service that supports or a little bit about the architecture um and this is kind of where it gets interesting and where there are like differences between the different providers um so in web three or um what what happens is first user triggers a login that's what we saw before and then uh this oo standard um triggers in so it it uh uses this oo um to to get an ID

token from from those external login providers and then this this ID token uh is submitted to their SDK uh which then eventually sends it to their or network so um you have this like network of node operators that are yeah uh third party not operators and the private key is shared between these nine node operators and the oo ID token is forwarded to this network of uh n operators there off Network and um if

five out of those nine providers agree that okay this is a valid um o uh token uh then they will then they can um reconstruct your private key um and so but what happens is basically they they each uh each each of those provide each of those not operators uh send their private key share to the SDK and then if you get at least five out of the nine you can use that to reconstruct the private key uh and then uh authenticate the user and use that private key to sign messages and that is kind of what they call the single Factor authentication option which kind of

completely relies on this uh on this o integration with this with this O Network and then if if you want to give your user more control about this you can use um what is here in this like web three off core kit Wider Circle so in this case you take this uh private key that is reconstructed from the O Network and uh you use this as a as a uh as just one share um with the other two shares um being like a backup share and a device share and then you have another another tier of key aggregation and

reconstruction with two out of three and then you use that as the final private key so this is a bit of a tradeoff um I think what uh what we saw in the demo and also what I used before is just this uh single Factor authentication which completely relies on or um I think if you're using this extra level um it it gives you the advantage that the user potentially can can recover their their accounts even when the when the web 3 or network is down um but uh yeah it int it again introduces some of the tradeoffs why uh why we kind of want to move away from the browser

wallet initially because it it it gives a bit more um responsibility to the user um of of managing the device and the backup share um yeah um um so that's kind of how this works here you can see who the nine different operators are in the off Network one of them is web three or themselves so there's really eight third party ones uh and then here we can see again in in red there's there's one or potentially two levels of key reconstruction or key aggregation um and uh or key sharding and so the question of course it's a bit here

here you don't really see what happens there they just kind of use this magic word key reconstruction um and again this is also used for with different terms here I I call it private key sharding um but the idea in this approach is that you take your private key and you kind of split it into three parts um and then each each share of this private key or each shart is is managed by a different party on a different device and then whenever you want to sign a message each party sends you uh sends you the the private key share and then if you

have um enough shares which is kind of configurable um then uh then you can reconstruct your private key and from there on uh it is more or less the the same flow that we saw before um so here in this this example it it's it shows a two out of three um private key sharding um mechanism um where yeah private keyc maybe in this case is not available but but you can you can reconstruct the full private key using the other two shares um and yeah so uh this is uh done using something called Shamir secret

sharing um I have I have a video later a link later in the in the talk it's not actually that complex shami secret sh it's quite quite interesting um but um yeah this this algorithm basically enables this two out of three or M out of M um recovery um but yeah from a security perspective um there maybe two things to to keep in mind here one is that uh you do have to transmit the private key shares somehow so um as we saw earlier all the the private key shares get transmitted over

the network to the SDK on the client side where the private Keys reconstructed and of course this is done with like TLS encryption as as is quite common on the web now but still uh they do kind of have to leave the the device or place wherever they're stored and then the private key is reconstructed on the user device or in in the client software uh again all of these providers uh stress how how this is done in like a safe iframe or whatever but still the private key is reconstructed every time and so if there was some kind of bug that led to this private key somehow

leaking or an attacker somehow getting access to this private key then they would have full control over uh over the account um and could have pretty much signed any message they want and so there's an alternative to this called FAL signatures and so web 3 or they actually offer you alternatively to the setup that we saw earlier you can choose to use uh transaction signat threshold signatures instead um and they call this also called this full MPC versus shallow MPC with Shamir secret

charting um and yeah here the the difference in the in the um in the picture is kind of hard to spot sometimes so it's mostly like the magic word key reconstruction is replaced with the magic word distributed signature Generation Um but yeah that obviously raises the question what that actually means and um with with threshold signatures uh the mechanism is slightly different so here instead of uh we still have the different private key shares but instead of um sending the private keys or reconstructing the full private key each uh party can just sign uh a

separate kind of like partial signature so here we have a partial signature a partial signature B and then only those uh signatures are transmitted and the use on the user device we aggregate those um partial signatures into yeah the full signature uh which uh can then be used for for a given transaction and uh yeah so from a security perspective this has a bunch of advantages again only signatures get transmitted and a signature even if you do um even if hacker gets access to this signature there's not really much that can do with that other than kind of

doing what the user was intending to do anyway um which he was uh yeah signing anyway um and also the full private key never gets reconstructed so only the the signatures get aggregated and um yeah you can make it such that this priv full private key never really existed in the first place so you can even have the whole um private key generation kind of distributed among the different parties so that um no one in this process had ever access to the full private key which makes it more or less theoretically impossible even that this

this could leak um and uh yeah I think that's why it's widely considered to be uh more secure than the private key sharting we saw earlier oh sorry yeah um so that's a bit of the trade-off here um web three or from what I saw was the the only provider that that had threshold signatures uh in place most of the others were still using the private key sharding uh I think um it's parly because it's more computationally efficient and also um thresholding uh the ethereum transaction

signatures which are using a signature scheme called ecdsa is actually quite difficult uh it's a very uh recent and I think recent problem that is uh still under research so for example the algorithm that uh web three or uses was published in 2019 so the algorithm itself even the theory behind this is is very um very new uh and so yeah maybe you can consider it less battle tested in practice than Shamir secret sharing which is um yeah been you in use uh quite a bit

longer um so that's kind of the first part I'm going to take a short break here maybe if someone has questions comments discussions I said something wrong or uh um anything I think there are a lot of questions in the chat but I think they got answered by the slides um you know because I think there was a discussion I mean and the two of them that I think are not done weren't completely answered maybe is um where where does the key get generated and um I think you you didn't really touch on decent distributed key

gener ation but maybe that that's the answer yeah so there is again um for this uh distributed like the threshold signature scheme they usually have in the same algorithm they also have an algorithm to to kind of for the different parties to to generate the private key shares together also with without having to ever have one private key it's it's quite complex to be honest I don't fully understand the algorithm either but there is a way uh for the parties to to generate this in a dis

distributed way um and um yeah for the private key sharting I'm not entirely sure uh for shamia secret sharing um I think it's usually the fact the case that you first have the full secret and then you split it into several parts um so I'm not sure if there's a way there also for for doing this in a in a decentralized way um but either way in that's in that setting you're gonna have to reconstruct the private key at some point anyway um so um yeah it's that's yeah there's a talk I did about four years ago which is on YouTube on the Meetup Channel which is

on um decentralized threshold signature schemes which explains the mathematics of it um so if people want to have a look at the Gory mathematics of how this actually works they can look there um the other another question though that was there was so if I've got a my Google you know like my gmail address and I log in with that or separately I'll use GitHub or one of those other me many providers do I end up with a different key depending on which provider I log in with or is it somehow rather they going to know that I'm all the one person I think so we can try this out so this is like one

key and [Music] then so my uh hypothesis is yes but we can we can try this out it works yeah Facebook changed their apis regularly so um it tends to to break things um yeah so I think I'm just going

to post this in the chat so you guys can try this out yourself and let me know maybe by the end of the talk uh if my hypothesis is right uh I I think I think yes it's a separate uh one for each uh yeah that was that was my guess too but yeah all right anyway so back um are there any other questions so I know um yeah I i i i summarized the questions but did anyone feel their question wasn't answered just that's a final question just to be sure Er When You're relying on on Google out you're making Google owner on your on your cryptos on a certain way because they control it be possible if Google choose

to is forc that I mean to to seize your your your keys or um give a a give an authority access to to your to your login scheme could you could could take your funds yes yes uh if if you have this option where you're purely relying on oo uh in my understanding if Google goes wrong or maybe more likely if someone gets access to your Google account like yes they can they can use web3 o uh and they can generate this o token and they can send it to the Network and then it will look it will look like a uh valid sign in I

think from their perspective so it's very likely someone can dra you if someone get your Google account it's very likely that he can drain your bank account it's par I think yeah yeah that's true many use it as a single point of failure um it is it is the case what I said earlier is that web three they generate the SE separate account for each app so um I mean yeah if on each app you you always authenticate with Google then someone can drain all of these accounts but still there's like a separation so um um yeah let's say you use on one app you use Google and on the other you use

Facebook and then uh only the one where you use Google obviously is at risk yeah all right great yeah we're going to have have a slide later also about kind of the common um drawbacks maybe or security considerations for these providers all right so that was web three off um just for comparison we're also going to take a look at privy which is a competing solution um privy does a bit more than just authentication we're going to see

that uh so they have a whole they have a system where you can connect all of these accounts and build like a rich user identity and then connect their Twitter and Linkedin whatever and and and use that to kind of manage that user and get more data on them um so you can use it in that way but they also have this embedded wallet uh which is more or less uh I think more or less the same product as what web 3 off does from a user perspective and so here you can already see that there's like a a a generated um a generated wallet with an

address um and here yeah we can also sign messages um and test that uh so yeah from a from a login perspective we saw again we just logged in with uh with Google or um so uh yeah very very similar user experience in general um also the architecture is not too different um here I didn't find a good good uh picture in that documentation so I had to build this myself but more or less it's uh very similar to the case uh where you use web three or with um private key sharding

and you use this like uh full option where you have uh where you have uh a user user share device share recovery share and an off share so the off share is is again this oo share and they have their own back end that integrates with oo uh unlike um unlike web three or I don't think they have this network architecture where they have this off share again distributed among uh other third parties or at least they didn't advertise this so from what I understand it's it's just a a privy run service that controls this share and then you have a recovery share um I think by default this is also managed in a separate service run by

privy privy although it's encrypted but um also stored remotely um where yeah I think they're going to offer other recovery options like email as well um and then the third part is just stored in the in the user local storage so browser local storage on the user device and um yeah whenever the user signs a message uh it takes two out of three two out of three shares and kind of reconstructs that and then um yeah uses the same algorithm that we saw earlier for private key sharting so those those are quite similar in privy and theor in that they do this private key sharding um and rely

on this as a mechanism to um balance uh user control or safety with convenience uh and then um yeah I think mentioned all of this again using shamia secret sh sharing and then a third solution um we're not going to have a demo for this one but uh yeah Peter has had a had an interesting talk on the immutable wallet where he goes also in a lot more detail about magic which is the provider they integrated with um but generally their mechanism uh is a bit different in such that they don't as far as I understand

they don't do this private key sharting but instead they store and encrypt the private key remotely so there's just one one share so to speak one private key it's encrypted stored by um Magic on their service and then the decryption of this private key happens in a separate call to uh a Hardware security module um which is like I think usually the AWS HSM hosted solution so um basically in this Hardware security module uh there is a master key that controls all of the uh uh encryption and decryption most mostly decryption um and that is stored

um yeah presumably securely on uh on the AWS Services uh and uh so that way uh they avoid magic itself having uh having direct um access to your private key um there's a from the documentation I wasn't entirely sure about how the authentication works if there's like in some part parts it seemed that there was a separate authentication on the magic back end and then and separate authentication on the AWS HSM I'm not 100% sure maybe Peter can can give us a bit more details later on this um but um yeah I think it was interesting here because because of this like kind of um

layered encryption approach was a bit different to most of the other providers that looked at here little overview about like the pr and cons um all of them have um pretty uh sizable and wellknown Integrations running in production so um yeah all of them seem to be production ready or at least judged as such by by quite reputable companies here um yeah one aspect as I said privy has a has a really a rich user management tool set so they do more than just the authentication whereas the other two providers I think are mostly just focused on this uh authentication aspect magic is special in in that they have a

bit of a different security module and um yeah web three o in my opinion was the one that had uh the best documentation and also the most configuration so you could you could choose if you want to have this like additional key split or not uh and they also had this interesting uh O Network approach for the for the oo share uh which I thought was quite interesting but yeah this is by no means a complete list and many other Solutions uh so here like seven of eight of them um and these are only the ones that kind of focus on the signing authentication aspect then there are on top of that

there are other providers that integrate these signers with smart wallets with uh relays and all that kind of stuff so for example by economy they they kind of aggregate or integrate with all of those so you can if you use bony you can you can then kind of choose uh one or multiple of these um providers under the hood and yeah so generally I think it's a pretty uh rapidly growing um area too uh there bunch of common trade-offs we mentioned earlier that uh in some if if you use oo only you kind of delegate a lot of power to the uh to the login provider that you using to log in um

they usually have separate accounts addresses for each stab which which kind of um yeah has advantages but also has downsides in that uh yeah you have to manage funds across many different accounts if you're using multiple apps um a lot of them or I don't know a lot of them but at least web three or they uh have like domain wi listings so when you set up um for your on web three or as a developer you provide a domain white list um that from from those are apps from which the uh you expect users to log in and so this makes it a bit less composable decentralized so if you have a Deb and someone else wants to

build a front end for your smart contract or your de uh or they they decide may maybe they want to host uh your front end locally or something like this they usually won't be able to to log in with web3 o um into the same account because their domain won't be WID listed um yeah some some of um rely on remote Services run by third party so um yeah as I mentioned with privy um if if you have a two out of three key share split but two Shares are are um kind of stored on privy service then if if privy goes down or um yeah it's not available then you won't have access to your uh

account um and I mean one one big usability when they do is by not challenging you um so um yeah one one thing is there's no additional password challenge every time you use so uh for example once you logged in uh they usually keep you logged in um so if you go back to the back to the app you can immediately use it and that means if you're like in a public environment you leave your computer unattended someone else could go just go to your browser and if you're still logged in uh they can do uh whatever they want basically whereas with metamask usually um if if usually quite often every time

you open it again uh it will ask you for for your password again um and uh yeah then also there's no additional signature confirmation prompt right so this is like one of the big usability wins that we talked about earlier is that the users don't have to uh confirm every single signature confirmation signature um and I mean this is could be considered a bit cheating I mean this is something that probably metam mask Hardware providers could could Implement very easily as well but they don't do that on purpose because they want to give user maximum control and be able to review every single signature whereas

here they don't and that means that once you are logged in uh the code of the dep you're using has more has full control over your account so we press like sign message on the front end but we don't really know what's happening like they could sign a different message the code uh it's there's no no no way for us to really review that or sign multiple messages um they won't be able to leak your your private key but um they still have pretty much arbitrary control of it uh as long as you're logged in any more questions comments maybe some uh drawbacks problems that I missed

um um Eric um said um can you elaborate why they can do multiple signatures um yeah so basically um it's just because the uh so once you as I showed earlier the the code how how you kind of connect it you as a developer you kind of um trigger this this popup and this login progress and once the user has logged in you in your code in the front end you have this signer and you can do in your code you can do any kind of signature that you

want with it there's no additional um prompt for the user to to confirm anything so if if you're the developer behind the front end user clicks a button it's you define in your code what happens after they click that button uh and and if with these signers you can you can sign anything uh or multiple signatures there's no uh the user never gets shown like oh do you really want to to sign this um I might be wrong and there there might be a way to configure that on this that that would be really interesting uh I think that'll be a interesting feature so that as a as a user maybe you could have rules that for certain for certain

transactions you want to you want to be prompted um but right now I think um yeah there not the case um I think I think that all of these things are trust exercises you know like it's even like when you're in a web to check out you know some store online and you click buttons and you know you showed various pieces of information but you know how you're it's you're relying on trust to make sure that you know like when you click on that button this certain action's going to happen and similarly for web 3 I think it's the same thing that you even for metamask you know even if it's saying hey this is what I'm

going to sign hey it's just showing you something on a screen it's it's trust yeah that's true uh even if you using metamask and you are trusting that the the developers at metamask are uh diligent and well intentioned um uh but yeah I I think the difference here is a bit that anyone can integrate this into their websites and so there's there's like U maybe a lower threshold uh so there's a lot more parties that that you have to trust kind of so uh whereas with metamask you're trusting like metamask and you have like this one place of trust whereas here potentially like

every every depth developer that uses this um you kind of have to trust yeah I I yeah that's true and I I trust the people at metamask I know them and they're they're very good um but I know I know though I mean I guess it it it will depend on the integration but I know with um with the mutable our passport wallet so we're letting games integrate our wallet into their game but I know we've been able to have things to limit what they can do so I assume yeah but as you're saying it comes down to the people who are doing the integration to make that they've done that and made sure there's no way there can be some popup or something

thing over the top or some other Rotel and of course when you're integrating with them you can build like your own level of security on top of these providers right so for example you can use them as one signer in a multi and then you can have another signer maybe controlled by someone else or by your app or by your backend so you can have you can build your own security model on top of that that can reduce the the Trust In in that um particular provider and I think that's also if understood your previous talk correctly bit bit what you're doing uh in your integration yeah it is that's how we add add add a fair bit more security is by having a

second signer um yeah trying to have our our our um is of use with security our K can eat it but yeah it's it's a challenge so are there any other questions just a final question about how this is related with the EIP 4337 there some time ago there's a lot of hype about that but um I'm not sure how much impact really is really having is quite complicated architecture with a separated M Pool and I don't remember I read about that a very long time ago but this kind of

solution are somehow related with that yeah so this is is related in uh the way that I I in in one of my first slides I kind of uh try to to emphasize that even these account abstraction tools like ESC 4337 or other uh smart smart contract wallets they usually still require some signature as a user authentication so you're sending maybe a uh intent or something to an alternative meol so you don't have to pay gas or all that kind of solutions but you still need a way uh to to make sure that it's actually the user that's authorized to trigger this action who who sent the

message and so you still kind of need a signer and so uh these signers uh you can you can use then an integrate them with a smart contract wallet with est 4337 to to do this user authentication all right okay good questions um yeah so this is this was all about the the remote signers um and now uh we're going to look at a different solution um that's called pass Keys that's I think getting a lot of people very excited um what are pass Keys pass keys are not

like an web three or invention they are U widely considered the future of authentication everywhere across the web so um I think it it's widely assumed that uh passwords are not the best authentication option anywhere uh and um pass keys are uh supposed like are replacing passwords and even even two Factor authentication to have a single authentication option that is um very safe and user friendly um and while it doesn't come from web3 or crypto it does use crypto cryptography and public private key pairs we'll see in a moment how um it uh kind of so because it's

using public private key pairs it means that um any browser or any device that wants to support pass pass keys or the so-called web or end standard that is based on them needs to provide a way to securely manage these private Keys uh and that's what really makes them so interesting so here for example we see like the iPhone so the iPhone now has like a buil-in uh module I think it's it's even like an isolated H piece of Hardware that manages these private keys and then you can use like face ID other Biometrics uh to unlock those private to the

signatures um and uh yeah also they um not just do they provide this Secure Storage they often also provide a a way to synchronize these these private Keys using the iCloud keychain or a Google password manager um and yeah it's all based on this web orn standard um now how this how does this work in again this is not necessarily for web 3 but web two so this authentication flow um yeah the user request a login and then instead of providing a password the server that they're trying to log in with will send a challenge which is I think random but

it's like a message um that is then sent to the user's device this like secure Enclave or the secure part of the device um and then the device ask the user to authenticate with biometric something um once the user does that the device uses that private key to sign the this challenge uh and then sends the signature back to the server and the server will keep will have like the public key for that user will will verify that uh signature and then if it if it matches um the user is is logged in um and so this is based

basically the same thing that we saw earlier with the it's it's the same flow it's basically public private key message uh signing and authentication which is more or less the same uh that we were using all the time and um yeah so this means that we basically have a buil-in signer in uh in in all those phones in all browsers everywhere uh which is great right problem solved uh it's secure assumably I mean if if if if that's not secure then you really have big problems to worry about maybe beyond your crypto assets um it's recoverable if you're using if you're synchronizing it with a

with a password manager or iCloud keychain it's user friendly um arguably uh so yeah could be argued that this is the perfect solution um and we're done unfortunately there's a bit of a problem here in that while they do use ecdsa signature web orn it uses a different curve I'm not going to explain too much what the difference is um but you can see that it's in the name of the curve it's one letter difference um and yeah so it's a rather small difference in the configuration and setup but it basically means that

web off end signatures are not uh compatible with with the normal ethereum transaction signature scheme but of course we have a uh two incomplete uh evm so we can just at least on Smart contract wallets we can Implement um this signature scheme ourselves so um yeah that way while you can't use it for Native ethereum signatures you could use it in a smart contract uh wallet where you implement this signature verification scheme

but um the problem is that it's very very gas expensive so here took a screenshot from a paper on this and you can see that for a full web offn uh authentication you're using hundreds of thousands of gas up to a million gas so yeah you'll be spending I don't know 100100 doll just to get the user authenticated and that's before you start having any any fun um so that's that's a bit of a showstopper at least on on layer one like ethereum however there's an EIP um I think it's it's some people call it the most underrated EIP it's uh certainly not that much in the news uh but it would it would add um this kind of

verification algorithm as a as a pre-compile and so instead of having to implement it on a smart contract in evm code it would basically be implemented natively on the on the client side so G would implement it in go re would implement it in in Rust and then it would be uh available as a single evm op code which would then according to this e be only 3,450 guas so now um yeah this would be very competitive so this is uh yeah just to leave you this is uh still not uh not deployed obviously and I think it's not even scheduled yet for any specific folk um but it certainly is

getting a lot of people very excited um that this could be the future of user authentication on ethereum yeah that that concludes my talk uh again we're G have more questions uh discussions on this and uh have a bunch of further resources here um you might want to read up on um some of them include a lot of uh like Moon maath um but yeah it's a really interesting Rabbit Hole to go down to so thank you you should be thanking us we need to thank you that was a great talk thank you yeah so we've had the opportunity to ask

lots of questions but um are there more questions Christian a question ER from your personal point of view between all that these horses that are racing in this ER web tree login experience where you putting more of your of your bet what do you think is going to be the final where do you think the the final solution who's going to win this race you think just an opinion just your personal opinion yeah I mean I I think if we do get this EIP 7212 deployed and you can make pass Keys work with smart

contract wallets uh so this one I think that I would it would be hard for me to see like a competitive Advantage for these previous providers that they have over uh like these Pass Key providers which are basically natively integrated into into uh into the iPhone everywhere so so long term I think this is might be the most promising candidate uh however yeah we know what the speed is for uh for these kind of hard Forks so this is probably a few years out until then I think um yeah these uh these remote signup providers are

probably uh already a huge Improvement uh at least in terms of us experience again depends a bit on what you're doing I wouldn't put like all of my funds uh into any of these Solutions uh but if you are looking at games for example if you're looking at other applications where maybe the value that's at stake is not that big uh then I think they really are a great uh a great option to and can really transform the user experience and enable many applications that are just not feasible if you force your user to to use metamask all right

well any more questions if not I'll hand it over to Peter maybe and to answer a question that was in um chat I'll um post a link to the slides in the description on YouTube so that you'll be able to get the PDF of the slides and then get to the links um yeah so if you flip to the next slide yes okay the merch store is open lots of cool t-shirts um next slide um we've got a whole stack of talks coming up um and in fact I'm in the middle of even organ izing another

one after all of these so um with the next one's on oracles um from um Su sura from um Supra oracles um and then we've got um Diego is going to talk about essentially running a whole Linux stack as a smart contract um and then our our own Frank is gonna Dr Frank is going to be talking about his ideas on using vrs for sequencing um and then we've got a whole stack of other talks as well coming up so lots of exciting things in the future and next slide um so there is a YouTube channel um so if if you look just for a theorum

Engineering Group on YouTube you'll find it um there's a slack workpace um please join that if you want to continue the discussion um and if you're watching this on YouTube there is a Meetup Group you can join these talks live and um ask the tricky questions live and for some talks there are qu there are examples and they're on that GitHub um

Related talks